From cc703e530d69fb6623f5840da0f4f7c55dc816a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Wed, 24 Jan 2024 13:26:08 +0100 Subject: [PATCH 01/25] Upgrade Parsson from 1.0.0 to 1.0.5 (#722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #705 Signed-off-by: Aurélien Pupier --- java-client-serverless/build.gradle.kts | 2 +- java-client/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-client-serverless/build.gradle.kts b/java-client-serverless/build.gradle.kts index fca219d44..b7ee174bf 100644 --- a/java-client-serverless/build.gradle.kts +++ b/java-client-serverless/build.gradle.kts @@ -210,7 +210,7 @@ dependencies { // Needed even if using Jackson to have an implementation of the Jsonp object model // EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 // https://github.com/eclipse-ee4j/parsson - api("org.eclipse.parsson:parsson:1.0.0") + api("org.eclipse.parsson:parsson:1.0.5") // OpenTelemetry API for native instrumentation of the client. // Apache 2.0 diff --git a/java-client/build.gradle.kts b/java-client/build.gradle.kts index dd32d8514..7db58d67e 100644 --- a/java-client/build.gradle.kts +++ b/java-client/build.gradle.kts @@ -206,7 +206,7 @@ dependencies { // Needed even if using Jackson to have an implementation of the Jsonp object model // EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 // https://github.com/eclipse-ee4j/parsson - api("org.eclipse.parsson:parsson:1.0.0") + api("org.eclipse.parsson:parsson:1.0.5") // OpenTelemetry API for native instrumentation of the client. // Apache 2.0 From 43b7022bfc986b37b6c88be1ef2cbbafa4452aff Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Wed, 24 Jan 2024 13:51:17 +0100 Subject: [PATCH 02/25] Update Parsson, add test for big numbers (#730) --- .../elastic/clients/json/JsonpMapperTest.java | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/java-client/src/test/java/co/elastic/clients/json/JsonpMapperTest.java b/java-client/src/test/java/co/elastic/clients/json/JsonpMapperTest.java index 5119a20eb..37f31249f 100644 --- a/java-client/src/test/java/co/elastic/clients/json/JsonpMapperTest.java +++ b/java-client/src/test/java/co/elastic/clients/json/JsonpMapperTest.java @@ -19,15 +19,18 @@ package co.elastic.clients.json; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.jackson.JacksonJsonpMapper; import co.elastic.clients.json.jsonb.JsonbJsonpMapper; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import jakarta.json.JsonArray; +import jakarta.json.JsonNumber; +import jakarta.json.bind.spi.JsonbProvider; import jakarta.json.stream.JsonGenerator; import jakarta.json.stream.JsonParser; +import org.eclipse.parsson.JsonProviderImpl; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -46,16 +49,18 @@ public class JsonpMapperTest extends Assertions { @Test public void testJsonb() { - JsonpMapper mapper = new JsonbJsonpMapper(); + JsonpMapper mapper = new JsonbJsonpMapper(new JsonProviderImpl(), JsonbProvider.provider()); testSerialize(mapper, json); testDeserialize(mapper, json); + testLargeNumber(mapper); } @Test public void testJackson() { JacksonJsonpMapper mapper = new JacksonJsonpMapper(); - testSerialize(new JacksonJsonpMapper(), json); - testDeserialize(new JacksonJsonpMapper(), json); + testSerialize(mapper, json); + testDeserialize(mapper, json); + testLargeNumber(mapper); } @Test @@ -149,6 +154,20 @@ private void testDeserialize(JsonpMapper mapper, String json) { assertNull(child.getChildren()); } + private void testLargeNumber(JsonpMapper mapper) { + String json = "[1e999999]"; + JsonParser parser = mapper.jsonProvider().createParser(new StringReader(json)); + parser.next(); + + JsonArray array = parser.getValue().asJsonArray(); + + JsonNumber number = array.getJsonNumber(0); + + assertTrue(Double.isInfinite(number.doubleValue())); + + Assertions.assertThrows(Exception.class, number::bigIntegerValue); + } + public static class SomeClass { private List children; private double doubleValue; From 280f8464568438d5c3175b1a0bde432a3ceaf4b9 Mon Sep 17 00:00:00 2001 From: Laura Date: Wed, 24 Jan 2024 17:59:24 +0100 Subject: [PATCH 03/25] fixed copypaste typo --- docs/getting-started.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started.asciidoc b/docs/getting-started.asciidoc index 268f8db18..c5f76ed1b 100644 --- a/docs/getting-started.asciidoc +++ b/docs/getting-started.asciidoc @@ -158,7 +158,7 @@ include-tagged::{doc-tests-src}/usage/IndexingTest.java[single-doc-delete] ["source","java"] -------------------------------------------------- -include-tagged::{doc-tests-src}/usage/IndexingTest.java[create-products-index] +include-tagged::{doc-tests-src}/usage/IndexingTest.java[delete-products-index] -------------------------------------------------- From 137b731944e8101374c334c362bcff34c78c4e6a Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Thu, 1 Feb 2024 18:16:40 +0100 Subject: [PATCH 04/25] Example realworldapp backend (#737) * WIP initial implementation, User crud, half Article crud * WIP more article crud (update, complete fav/unfav) some refactor * WIP various bugfixes, making responses compatible with API * WIP finished articles + comments + tags crud. not bug checked though * minimal bugfix, added waitFor and refresh to post and delete methods * minor refactor, WIP documentation, added license * major refactor, added validation to user controller, WIP testcontainer unit test example * working testcontainer unit test * the rest of the test * style refactor, more documentation * fully documented user service, linting * code style * code style, a e s t e t h i c s * quick bug fixes * putting java instant directly into db * logic optimizations, hashing passwords * fixed unit test * more documentation * finished documenting methods, added README.md, set up gradle correctly, minor refactors * fixed readme, added license to all files * fixed readme * feed follow fix, shortened comment id --- examples/realworld-app/README.md | 76 +++ examples/realworld-app/build.gradle | 25 + examples/realworld-app/docker-compose.yaml | 29 ++ .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 43462 bytes .../gradle/wrapper/gradle-wrapper.properties | 7 + examples/realworld-app/gradlew | 249 ++++++++++ examples/realworld-app/gradlew.bat | 92 ++++ .../realworld-app/rw-database/build.gradle | 45 ++ .../java/realworld/constant/Constants.java | 27 + .../java/realworld/db/ArticleService.java | 461 ++++++++++++++++++ .../java/realworld/db/CommentService.java | 145 ++++++ .../main/java/realworld/db/ElasticClient.java | 130 +++++ .../main/java/realworld/db/UserService.java | 407 ++++++++++++++++ .../realworld/document/article/Article.java | 49 ++ .../document/article/ArticleCreationDTO.java | 34 ++ .../document/article/ArticleDTO.java | 54 ++ .../document/article/ArticleForListDTO.java | 54 ++ .../document/article/ArticleUpdateDTO.java | 30 ++ .../document/article/ArticlesDTO.java | 25 + .../realworld/document/article/TagsDTO.java | 25 + .../realworld/document/comment/Comment.java | 36 ++ .../document/comment/CommentCreationDTO.java | 31 ++ .../document/comment/CommentDTO.java | 47 ++ .../document/comment/CommentForListDTO.java | 41 ++ .../document/comment/CommentsDTO.java | 25 + .../ResourceAlreadyExistsException.java | 27 + .../exception/ResourceNotFoundException.java | 27 + .../exception/UnauthorizedException.java | 27 + .../java/realworld/document/user/Author.java | 27 + .../realworld/document/user/LoginDTO.java | 29 ++ .../java/realworld/document/user/Profile.java | 34 ++ .../realworld/document/user/RegisterDTO.java | 29 ++ .../java/realworld/document/user/User.java | 33 ++ .../java/realworld/document/user/UserDTO.java | 39 ++ .../java/realworld/utils/ArticleIdPair.java | 25 + .../main/java/realworld/utils/UserIdPair.java | 25 + .../main/java/realworld/utils/Utility.java | 49 ++ .../java/realworld/db/ElasticClientTest.java | 113 +++++ .../java/realworld/db/UserServiceTest.java | 64 +++ .../src/test/resources/test.properties | 4 + examples/realworld-app/rw-logo.png | Bin 0 -> 59699 bytes examples/realworld-app/rw-rest/build.gradle | 22 + .../realworld/rest/ArticleController.java | 188 +++++++ .../realworld/rest/ProfileController.java | 69 +++ .../java/realworld/rest/TagsController.java | 55 +++ .../java/realworld/rest/UserController.java | 79 +++ .../java/realworld/rest/error/RestError.java | 33 ++ .../rest/error/RestExceptionHandler.java | 79 +++ examples/realworld-app/rw-server/build.gradle | 21 + .../main/java/realworld/SpringBootApp.java | 34 ++ .../realworld/config/DefaultProperties.java | 39 ++ .../src/main/resources/application.properties | 13 + examples/realworld-app/settings.gradle | 5 + 53 files changed, 3333 insertions(+) create mode 100644 examples/realworld-app/README.md create mode 100644 examples/realworld-app/build.gradle create mode 100644 examples/realworld-app/docker-compose.yaml create mode 100644 examples/realworld-app/gradle/wrapper/gradle-wrapper.jar create mode 100644 examples/realworld-app/gradle/wrapper/gradle-wrapper.properties create mode 100755 examples/realworld-app/gradlew create mode 100644 examples/realworld-app/gradlew.bat create mode 100644 examples/realworld-app/rw-database/build.gradle create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/constant/Constants.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/db/ArticleService.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/db/CommentService.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/db/ElasticClient.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/db/UserService.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/article/Article.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleCreationDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleForListDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleUpdateDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticlesDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/article/TagsDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/comment/Comment.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentCreationDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentForListDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentsDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/exception/ResourceAlreadyExistsException.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/exception/ResourceNotFoundException.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/exception/UnauthorizedException.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/user/Author.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/user/LoginDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/user/Profile.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/user/RegisterDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/user/User.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/document/user/UserDTO.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/utils/ArticleIdPair.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/utils/UserIdPair.java create mode 100644 examples/realworld-app/rw-database/src/main/java/realworld/utils/Utility.java create mode 100644 examples/realworld-app/rw-database/src/test/java/realworld/db/ElasticClientTest.java create mode 100644 examples/realworld-app/rw-database/src/test/java/realworld/db/UserServiceTest.java create mode 100644 examples/realworld-app/rw-database/src/test/resources/test.properties create mode 100644 examples/realworld-app/rw-logo.png create mode 100644 examples/realworld-app/rw-rest/build.gradle create mode 100644 examples/realworld-app/rw-rest/src/main/java/realworld/rest/ArticleController.java create mode 100644 examples/realworld-app/rw-rest/src/main/java/realworld/rest/ProfileController.java create mode 100644 examples/realworld-app/rw-rest/src/main/java/realworld/rest/TagsController.java create mode 100644 examples/realworld-app/rw-rest/src/main/java/realworld/rest/UserController.java create mode 100644 examples/realworld-app/rw-rest/src/main/java/realworld/rest/error/RestError.java create mode 100644 examples/realworld-app/rw-rest/src/main/java/realworld/rest/error/RestExceptionHandler.java create mode 100644 examples/realworld-app/rw-server/build.gradle create mode 100644 examples/realworld-app/rw-server/src/main/java/realworld/SpringBootApp.java create mode 100644 examples/realworld-app/rw-server/src/main/java/realworld/config/DefaultProperties.java create mode 100644 examples/realworld-app/rw-server/src/main/resources/application.properties create mode 100644 examples/realworld-app/settings.gradle diff --git a/examples/realworld-app/README.md b/examples/realworld-app/README.md new file mode 100644 index 000000000..d8de99d20 --- /dev/null +++ b/examples/realworld-app/README.md @@ -0,0 +1,76 @@ +# ![RealWorld Example App](rw-logo.png) + +> ### Spring Boot + Elasticsearch codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API + +### [RealWorld](https://github.com/gothinkster/realworld) + +This codebase was created to demonstrate a fully fledged fullstack application built with **Java + Spring Boot + +Elasticsearch** including CRUD operations, authentication, routing, pagination, and more. + +We've gone to great lengths to adhere to the **Java + Spring Boot + Elasticsearch** community styleguides & best +practices. + +For more information on how to this works with other frontends/backends, head over to +the [RealWorld](https://github.com/gothinkster/realworld) repo. + +# How it works + +The application was made mainly demonstrate the +new [Elasticsearch Java API Client](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/index.html). + +The application was built with: + +- [Java](https://www.java.com/en/) as programming language +- [Spring Boot](https://spring.io/projects/spring-boot) as dependency injection framework +- [Gradle](https://github.com/gradle/gradle) as build tool +- [Elasticsearch](https://github.com/elastic/elasticsearch) as database +- [Jackson](https://github.com/FasterXML/jackson-core) as data bind serialization/deserialization +- [Java JWT](https://github.com/jwtk/jjwt) for JWT implementation +- [Jaxb](https://github.com/jakartaee/jaxb-api) for JWT parsing +- [Slugify](https://github.com/slugify/slugify) for slug + +Tests: + +- [Junit](https://github.com/junit-team/junit4) +- [Testcontainers](https://github.com/testcontainers) to create an Elasticsearch instance + +#### Structure + +This is a multimodule gradle project: + +- rw-database + - Elasticsearch client connection, queries, document classes +- rw-rest + - Spring rest controllers +- rw-server + - Configuration and entrypoint. Main class: [SpringBootApp.java](rw-server/src/main/java/realworld/SpringBootApp.java) + +# Getting started + +#### JVM + +A version of the JVM has to be installed, openjdk version "21.0.2" was used during development. + +#### Elasticsearch + +An Elasticsearch instance needs to be running for the application to start successfully. +To start one easily, a [docker-compose](docker-compose.yaml) is provided, it will start Elasticsearch on port 9200 and +Kibana on [5601](http://localhost:5601/app/home#/); otherwise, the connection properties can be changed in [application.properties](rw-server/src/main/resources/application.properties). + +### Build: + +> ./gradlew clean build + +#### Start the server: + +> ./gradlew run + +#### Run + +The application will start on [8080](http://localhost:8080/api) with `api` context, it can be changed +in [application.properties](rw-server/src/main/resources/application.properties). + +### Unit tests + +A basic [unit test](rw-database/src/test/java/realworld/db/UserServiceTest.java) using testcontainer (docker is +required). diff --git a/examples/realworld-app/build.gradle b/examples/realworld-app/build.gradle new file mode 100644 index 000000000..263b3d313 --- /dev/null +++ b/examples/realworld-app/build.gradle @@ -0,0 +1,25 @@ +plugins { + id 'java' + id 'org.springframework.boot' version '3.2.1' + id 'io.spring.dependency-management' version '1.1.4' + id 'application' +} + +group = 'realworldapp' +version = '0.0.1-SNAPSHOT' + +java { + sourceCompatibility = '21' +} + +repositories { + mavenCentral() +} + +dependencies { + implementation('org.springframework.boot:spring-boot-starter-parent:3.2.0') + implementation('realworldapp:rw-server') +} + +mainClassName = 'rw-server/src/main/java/realworld/SpringBootApp.java' + diff --git a/examples/realworld-app/docker-compose.yaml b/examples/realworld-app/docker-compose.yaml new file mode 100644 index 000000000..e07806c64 --- /dev/null +++ b/examples/realworld-app/docker-compose.yaml @@ -0,0 +1,29 @@ +services: + es: + image: docker.elastic.co/elasticsearch/elasticsearch:8.11.1 + container_name: es + environment: + "discovery.type": "single-node" + "xpack.security.enabled": "false" + "xpack.security.http.ssl.enabled": "false" + ports: + - "9200:9200" + networks: + - elastic + kibana: + image: docker.elastic.co/kibana/kibana:8.7.1 + container_name: kibana + environment: + XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: d1a66dfd-c4d3-4a0a-8290-2abcb83ab3aa + ports: + - 5601:5601 + networks: + - elastic + deploy: + resources: + limits: + cpus: '2.0' + reservations: + cpus: '1.0' +networks: + elastic: diff --git a/examples/realworld-app/gradle/wrapper/gradle-wrapper.jar b/examples/realworld-app/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..d64cd4917707c1f8861d8cb53dd15194d4248596 GIT binary patch literal 43462 zcma&NWl&^owk(X(xVyW%ySuwf;qI=D6|RlDJ2cR^yEKh!@I- zp9QeisK*rlxC>+~7Dk4IxIRsKBHqdR9b3+fyL=ynHmIDe&|>O*VlvO+%z5;9Z$|DJ zb4dO}-R=MKr^6EKJiOrJdLnCJn>np?~vU-1sSFgPu;pthGwf}bG z(1db%xwr#x)r+`4AGu$j7~u2MpVs3VpLp|mx&;>`0p0vH6kF+D2CY0fVdQOZ@h;A` z{infNyvmFUiu*XG}RNMNwXrbec_*a3N=2zJ|Wh5z* z5rAX$JJR{#zP>KY**>xHTuw?|-Rg|o24V)74HcfVT;WtQHXlE+_4iPE8QE#DUm%x0 zEKr75ur~W%w#-My3Tj`hH6EuEW+8K-^5P62$7Sc5OK+22qj&Pd1;)1#4tKihi=~8C zHiQSst0cpri6%OeaR`PY>HH_;CPaRNty%WTm4{wDK8V6gCZlG@U3$~JQZ;HPvDJcT1V{ z?>H@13MJcCNe#5z+MecYNi@VT5|&UiN1D4ATT+%M+h4c$t;C#UAs3O_q=GxK0}8%8 z8J(_M9bayxN}69ex4dzM_P3oh@ZGREjVvn%%r7=xjkqxJP4kj}5tlf;QosR=%4L5y zWhgejO=vao5oX%mOHbhJ8V+SG&K5dABn6!WiKl{|oPkq(9z8l&Mm%(=qGcFzI=eLu zWc_oCLyf;hVlB@dnwY98?75B20=n$>u3b|NB28H0u-6Rpl((%KWEBOfElVWJx+5yg z#SGqwza7f}$z;n~g%4HDU{;V{gXIhft*q2=4zSezGK~nBgu9-Q*rZ#2f=Q}i2|qOp z!!y4p)4o=LVUNhlkp#JL{tfkhXNbB=Ox>M=n6soptJw-IDI|_$is2w}(XY>a=H52d z3zE$tjPUhWWS+5h=KVH&uqQS=$v3nRs&p$%11b%5qtF}S2#Pc`IiyBIF4%A!;AVoI zXU8-Rpv!DQNcF~(qQnyyMy=-AN~U>#&X1j5BLDP{?K!%h!;hfJI>$mdLSvktEr*89 zdJHvby^$xEX0^l9g$xW-d?J;L0#(`UT~zpL&*cEh$L|HPAu=P8`OQZV!-}l`noSp_ zQ-1$q$R-gDL)?6YaM!=8H=QGW$NT2SeZlb8PKJdc=F-cT@j7Xags+Pr*jPtlHFnf- zh?q<6;)27IdPc^Wdy-mX%2s84C1xZq9Xms+==F4);O`VUASmu3(RlgE#0+#giLh-& zcxm3_e}n4{%|X zJp{G_j+%`j_q5}k{eW&TlP}J2wtZ2^<^E(O)4OQX8FDp6RJq!F{(6eHWSD3=f~(h} zJXCf7=r<16X{pHkm%yzYI_=VDP&9bmI1*)YXZeB}F? z(%QsB5fo*FUZxK$oX~X^69;x~j7ms8xlzpt-T15e9}$4T-pC z6PFg@;B-j|Ywajpe4~bk#S6(fO^|mm1hKOPfA%8-_iGCfICE|=P_~e;Wz6my&)h_~ zkv&_xSAw7AZ%ThYF(4jADW4vg=oEdJGVOs>FqamoL3Np8>?!W#!R-0%2Bg4h?kz5I zKV-rKN2n(vUL%D<4oj@|`eJ>0i#TmYBtYmfla;c!ATW%;xGQ0*TW@PTlGG><@dxUI zg>+3SiGdZ%?5N=8uoLA|$4isK$aJ%i{hECP$bK{J#0W2gQ3YEa zZQ50Stn6hqdfxJ*9#NuSLwKFCUGk@c=(igyVL;;2^wi4o30YXSIb2g_ud$ zgpCr@H0qWtk2hK8Q|&wx)}4+hTYlf;$a4#oUM=V@Cw#!$(nOFFpZ;0lc!qd=c$S}Z zGGI-0jg~S~cgVT=4Vo)b)|4phjStD49*EqC)IPwyeKBLcN;Wu@Aeph;emROAwJ-0< z_#>wVm$)ygH|qyxZaet&(Vf%pVdnvKWJn9`%DAxj3ot;v>S$I}jJ$FLBF*~iZ!ZXE zkvui&p}fI0Y=IDX)mm0@tAd|fEHl~J&K}ZX(Mm3cm1UAuwJ42+AO5@HwYfDH7ipIc zmI;1J;J@+aCNG1M`Btf>YT>~c&3j~Qi@Py5JT6;zjx$cvOQW@3oQ>|}GH?TW-E z1R;q^QFjm5W~7f}c3Ww|awg1BAJ^slEV~Pk`Kd`PS$7;SqJZNj->it4DW2l15}xP6 zoCl$kyEF%yJni0(L!Z&14m!1urXh6Btj_5JYt1{#+H8w?5QI%% zo-$KYWNMJVH?Hh@1n7OSu~QhSswL8x0=$<8QG_zepi_`y_79=nK=_ZP_`Em2UI*tyQoB+r{1QYZCpb?2OrgUw#oRH$?^Tj!Req>XiE#~B|~ z+%HB;=ic+R@px4Ld8mwpY;W^A%8%l8$@B@1m5n`TlKI6bz2mp*^^^1mK$COW$HOfp zUGTz-cN9?BGEp}5A!mDFjaiWa2_J2Iq8qj0mXzk; z66JBKRP{p%wN7XobR0YjhAuW9T1Gw3FDvR5dWJ8ElNYF94eF3ebu+QwKjtvVu4L zI9ip#mQ@4uqVdkl-TUQMb^XBJVLW(-$s;Nq;@5gr4`UfLgF$adIhd?rHOa%D);whv z=;krPp~@I+-Z|r#s3yCH+c1US?dnm+C*)r{m+86sTJusLdNu^sqLrfWed^ndHXH`m zd3#cOe3>w-ga(Dus_^ppG9AC>Iq{y%%CK+Cro_sqLCs{VLuK=dev>OL1dis4(PQ5R zcz)>DjEkfV+MO;~>VUlYF00SgfUo~@(&9$Iy2|G0T9BSP?&T22>K46D zL*~j#yJ?)^*%J3!16f)@Y2Z^kS*BzwfAQ7K96rFRIh>#$*$_Io;z>ux@}G98!fWR@ zGTFxv4r~v)Gsd|pF91*-eaZ3Qw1MH$K^7JhWIdX%o$2kCbvGDXy)a?@8T&1dY4`;L z4Kn+f%SSFWE_rpEpL9bnlmYq`D!6F%di<&Hh=+!VI~j)2mfil03T#jJ_s?}VV0_hp z7T9bWxc>Jm2Z0WMU?`Z$xE74Gu~%s{mW!d4uvKCx@WD+gPUQ zV0vQS(Ig++z=EHN)BR44*EDSWIyT~R4$FcF*VEY*8@l=218Q05D2$|fXKFhRgBIEE zdDFB}1dKkoO^7}{5crKX!p?dZWNz$m>1icsXG2N+((x0OIST9Zo^DW_tytvlwXGpn zs8?pJXjEG;T@qrZi%#h93?FP$!&P4JA(&H61tqQi=opRzNpm zkrG}$^t9&XduK*Qa1?355wd8G2CI6QEh@Ua>AsD;7oRUNLPb76m4HG3K?)wF~IyS3`fXuNM>${?wmB zpVz;?6_(Fiadfd{vUCBM*_kt$+F3J+IojI;9L(gc9n3{sEZyzR9o!_mOwFC#tQ{Q~ zP3-`#uK#tP3Q7~Q;4H|wjZHO8h7e4IuBxl&vz2w~D8)w=Wtg31zpZhz%+kzSzL*dV zwp@{WU4i;hJ7c2f1O;7Mz6qRKeASoIv0_bV=i@NMG*l<#+;INk-^`5w@}Dj~;k=|}qM1vq_P z|GpBGe_IKq|LNy9SJhKOQ$c=5L{Dv|Q_lZl=-ky*BFBJLW9&y_C|!vyM~rQx=!vun z?rZJQB5t}Dctmui5i31C_;_}CEn}_W%>oSXtt>@kE1=JW*4*v4tPp;O6 zmAk{)m!)}34pTWg8{i>($%NQ(Tl;QC@J@FfBoc%Gr&m560^kgSfodAFrIjF}aIw)X zoXZ`@IsMkc8_=w%-7`D6Y4e*CG8k%Ud=GXhsTR50jUnm+R*0A(O3UKFg0`K;qp1bl z7``HN=?39ic_kR|^R^~w-*pa?Vj#7|e9F1iRx{GN2?wK!xR1GW!qa=~pjJb-#u1K8 zeR?Y2i-pt}yJq;SCiVHODIvQJX|ZJaT8nO+(?HXbLefulKKgM^B(UIO1r+S=7;kLJ zcH}1J=Px2jsh3Tec&v8Jcbng8;V-`#*UHt?hB(pmOipKwf3Lz8rG$heEB30Sg*2rx zV<|KN86$soN(I!BwO`1n^^uF2*x&vJ$2d$>+`(romzHP|)K_KkO6Hc>_dwMW-M(#S zK(~SiXT1@fvc#U+?|?PniDRm01)f^#55;nhM|wi?oG>yBsa?~?^xTU|fX-R(sTA+5 zaq}-8Tx7zrOy#3*JLIIVsBmHYLdD}!0NP!+ITW+Thn0)8SS!$@)HXwB3tY!fMxc#1 zMp3H?q3eD?u&Njx4;KQ5G>32+GRp1Ee5qMO0lZjaRRu&{W<&~DoJNGkcYF<5(Ab+J zgO>VhBl{okDPn78<%&e2mR{jwVCz5Og;*Z;;3%VvoGo_;HaGLWYF7q#jDX=Z#Ml`H z858YVV$%J|e<1n`%6Vsvq7GmnAV0wW4$5qQ3uR@1i>tW{xrl|ExywIc?fNgYlA?C5 zh$ezAFb5{rQu6i7BSS5*J-|9DQ{6^BVQ{b*lq`xS@RyrsJN?-t=MTMPY;WYeKBCNg z^2|pN!Q^WPJuuO4!|P@jzt&tY1Y8d%FNK5xK(!@`jO2aEA*4 zkO6b|UVBipci?){-Ke=+1;mGlND8)6+P;8sq}UXw2hn;fc7nM>g}GSMWu&v&fqh

iViYT=fZ(|3Ox^$aWPp4a8h24tD<|8-!aK0lHgL$N7Efw}J zVIB!7=T$U`ao1?upi5V4Et*-lTG0XvExbf!ya{cua==$WJyVG(CmA6Of*8E@DSE%L z`V^$qz&RU$7G5mg;8;=#`@rRG`-uS18$0WPN@!v2d{H2sOqP|!(cQ@ zUHo!d>>yFArLPf1q`uBvY32miqShLT1B@gDL4XoVTK&@owOoD)OIHXrYK-a1d$B{v zF^}8D3Y^g%^cnvScOSJR5QNH+BI%d|;J;wWM3~l>${fb8DNPg)wrf|GBP8p%LNGN# z3EaIiItgwtGgT&iYCFy9-LG}bMI|4LdmmJt@V@% zb6B)1kc=T)(|L@0;wr<>=?r04N;E&ef+7C^`wPWtyQe(*pD1pI_&XHy|0gIGHMekd zF_*M4yi6J&Z4LQj65)S zXwdM{SwUo%3SbPwFsHgqF@V|6afT|R6?&S;lw=8% z3}@9B=#JI3@B*#4s!O))~z zc>2_4Q_#&+5V`GFd?88^;c1i7;Vv_I*qt!_Yx*n=;rj!82rrR2rQ8u5(Ejlo{15P% zs~!{%XJ>FmJ})H^I9bn^Re&38H{xA!0l3^89k(oU;bZWXM@kn$#aoS&Y4l^-WEn-fH39Jb9lA%s*WsKJQl?n9B7_~P z-XM&WL7Z!PcoF6_D>V@$CvUIEy=+Z&0kt{szMk=f1|M+r*a43^$$B^MidrT0J;RI` z(?f!O<8UZkm$_Ny$Hth1J#^4ni+im8M9mr&k|3cIgwvjAgjH z8`N&h25xV#v*d$qBX5jkI|xOhQn!>IYZK7l5#^P4M&twe9&Ey@@GxYMxBZq2e7?`q z$~Szs0!g{2fGcp9PZEt|rdQ6bhAgpcLHPz?f-vB?$dc*!9OL?Q8mn7->bFD2Si60* z!O%y)fCdMSV|lkF9w%x~J*A&srMyYY3{=&$}H zGQ4VG_?$2X(0|vT0{=;W$~icCI{b6W{B!Q8xdGhF|D{25G_5_+%s(46lhvNLkik~R z>nr(&C#5wwOzJZQo9m|U<;&Wk!_#q|V>fsmj1g<6%hB{jGoNUPjgJslld>xmODzGjYc?7JSuA?A_QzjDw5AsRgi@Y|Z0{F{!1=!NES-#*f^s4l0Hu zz468))2IY5dmD9pa*(yT5{EyP^G>@ZWumealS-*WeRcZ}B%gxq{MiJ|RyX-^C1V=0 z@iKdrGi1jTe8Ya^x7yyH$kBNvM4R~`fbPq$BzHum-3Zo8C6=KW@||>zsA8-Y9uV5V z#oq-f5L5}V<&wF4@X@<3^C%ptp6+Ce)~hGl`kwj)bsAjmo_GU^r940Z-|`<)oGnh7 zFF0Tde3>ui?8Yj{sF-Z@)yQd~CGZ*w-6p2U<8}JO-sRsVI5dBji`01W8A&3$?}lxBaC&vn0E$c5tW* zX>5(zzZ=qn&!J~KdsPl;P@bmA-Pr8T*)eh_+Dv5=Ma|XSle6t(k8qcgNyar{*ReQ8 zTXwi=8vr>!3Ywr+BhggHDw8ke==NTQVMCK`$69fhzEFB*4+H9LIvdt-#IbhZvpS}} zO3lz;P?zr0*0$%-Rq_y^k(?I{Mk}h@w}cZpMUp|ucs55bcloL2)($u%mXQw({Wzc~ z;6nu5MkjP)0C(@%6Q_I_vsWrfhl7Zpoxw#WoE~r&GOSCz;_ro6i(^hM>I$8y>`!wW z*U^@?B!MMmb89I}2(hcE4zN2G^kwyWCZp5JG>$Ez7zP~D=J^LMjSM)27_0B_X^C(M z`fFT+%DcKlu?^)FCK>QzSnV%IsXVcUFhFdBP!6~se&xxrIxsvySAWu++IrH;FbcY$ z2DWTvSBRfLwdhr0nMx+URA$j3i7_*6BWv#DXfym?ZRDcX9C?cY9sD3q)uBDR3uWg= z(lUIzB)G$Hr!){>E{s4Dew+tb9kvToZp-1&c?y2wn@Z~(VBhqz`cB;{E4(P3N2*nJ z_>~g@;UF2iG{Kt(<1PyePTKahF8<)pozZ*xH~U-kfoAayCwJViIrnqwqO}7{0pHw$ zs2Kx?s#vQr7XZ264>5RNKSL8|Ty^=PsIx^}QqOOcfpGUU4tRkUc|kc7-!Ae6!+B{o~7nFpm3|G5^=0#Bnm6`V}oSQlrX(u%OWnC zoLPy&Q;1Jui&7ST0~#+}I^&?vcE*t47~Xq#YwvA^6^} z`WkC)$AkNub|t@S!$8CBlwbV~?yp&@9h{D|3z-vJXgzRC5^nYm+PyPcgRzAnEi6Q^gslXYRv4nycsy-SJu?lMps-? zV`U*#WnFsdPLL)Q$AmD|0`UaC4ND07+&UmOu!eHruzV|OUox<+Jl|Mr@6~C`T@P%s zW7sgXLF2SSe9Fl^O(I*{9wsFSYb2l%-;&Pi^dpv!{)C3d0AlNY6!4fgmSgj_wQ*7Am7&$z;Jg&wgR-Ih;lUvWS|KTSg!&s_E9_bXBkZvGiC6bFKDWZxsD$*NZ#_8bl zG1P-#@?OQzED7@jlMJTH@V!6k;W>auvft)}g zhoV{7$q=*;=l{O>Q4a@ ziMjf_u*o^PsO)#BjC%0^h>Xp@;5$p{JSYDt)zbb}s{Kbt!T*I@Pk@X0zds6wsefuU zW$XY%yyRGC94=6mf?x+bbA5CDQ2AgW1T-jVAJbm7K(gp+;v6E0WI#kuACgV$r}6L? zd|Tj?^%^*N&b>Dd{Wr$FS2qI#Ucs1yd4N+RBUQiSZGujH`#I)mG&VKoDh=KKFl4=G z&MagXl6*<)$6P}*Tiebpz5L=oMaPrN+caUXRJ`D?=K9!e0f{@D&cZLKN?iNP@X0aF zE(^pl+;*T5qt?1jRC=5PMgV!XNITRLS_=9{CJExaQj;lt!&pdzpK?8p>%Mb+D z?yO*uSung=-`QQ@yX@Hyd4@CI^r{2oiu`%^bNkz+Nkk!IunjwNC|WcqvX~k=><-I3 zDQdbdb|!v+Iz01$w@aMl!R)koD77Xp;eZwzSl-AT zr@Vu{=xvgfq9akRrrM)}=!=xcs+U1JO}{t(avgz`6RqiiX<|hGG1pmop8k6Q+G_mv zJv|RfDheUp2L3=^C=4aCBMBn0aRCU(DQwX-W(RkRwmLeuJYF<0urcaf(=7)JPg<3P zQs!~G)9CT18o!J4{zX{_e}4eS)U-E)0FAt}wEI(c0%HkxgggW;(1E=>J17_hsH^sP z%lT0LGgbUXHx-K*CI-MCrP66UP0PvGqM$MkeLyqHdbgP|_Cm!7te~b8p+e6sQ_3k| zVcwTh6d83ltdnR>D^)BYQpDKlLk3g0Hdcgz2}%qUs9~~Rie)A-BV1mS&naYai#xcZ z(d{8=-LVpTp}2*y)|gR~;qc7fp26}lPcLZ#=JpYcn3AT9(UIdOyg+d(P5T7D&*P}# zQCYplZO5|7+r19%9e`v^vfSS1sbX1c%=w1;oyruXB%Kl$ACgKQ6=qNWLsc=28xJjg zwvsI5-%SGU|3p>&zXVl^vVtQT3o-#$UT9LI@Npz~6=4!>mc431VRNN8od&Ul^+G_kHC`G=6WVWM z%9eWNyy(FTO|A+@x}Ou3CH)oi;t#7rAxdIXfNFwOj_@Y&TGz6P_sqiB`Q6Lxy|Q{`|fgmRG(k+!#b*M+Z9zFce)f-7;?Km5O=LHV9f9_87; zF7%R2B+$?@sH&&-$@tzaPYkw0;=i|;vWdI|Wl3q_Zu>l;XdIw2FjV=;Mq5t1Q0|f< zs08j54Bp`3RzqE=2enlkZxmX6OF+@|2<)A^RNQpBd6o@OXl+i)zO%D4iGiQNuXd+zIR{_lb96{lc~bxsBveIw6umhShTX+3@ZJ=YHh@ zWY3(d0azg;7oHn>H<>?4@*RQbi>SmM=JrHvIG(~BrvI)#W(EAeO6fS+}mxxcc+X~W6&YVl86W9WFSS}Vz-f9vS?XUDBk)3TcF z8V?$4Q)`uKFq>xT=)Y9mMFVTUk*NIA!0$?RP6Ig0TBmUFrq*Q-Agq~DzxjStQyJ({ zBeZ;o5qUUKg=4Hypm|}>>L=XKsZ!F$yNTDO)jt4H0gdQ5$f|d&bnVCMMXhNh)~mN z@_UV6D7MVlsWz+zM+inZZp&P4fj=tm6fX)SG5H>OsQf_I8c~uGCig$GzuwViK54bcgL;VN|FnyQl>Ed7(@>=8$a_UKIz|V6CeVSd2(P z0Uu>A8A+muM%HLFJQ9UZ5c)BSAv_zH#1f02x?h9C}@pN@6{>UiAp>({Fn(T9Q8B z^`zB;kJ5b`>%dLm+Ol}ty!3;8f1XDSVX0AUe5P#@I+FQ-`$(a;zNgz)4x5hz$Hfbg z!Q(z26wHLXko(1`;(BAOg_wShpX0ixfWq3ponndY+u%1gyX)_h=v1zR#V}#q{au6; z!3K=7fQwnRfg6FXtNQmP>`<;!N137paFS%y?;lb1@BEdbvQHYC{976l`cLqn;b8lp zIDY>~m{gDj(wfnK!lpW6pli)HyLEiUrNc%eXTil|F2s(AY+LW5hkKb>TQ3|Q4S9rr zpDs4uK_co6XPsn_z$LeS{K4jFF`2>U`tbgKdyDne`xmR<@6AA+_hPNKCOR-Zqv;xk zu5!HsBUb^!4uJ7v0RuH-7?l?}b=w5lzzXJ~gZcxRKOovSk@|#V+MuX%Y+=;14i*%{)_gSW9(#4%)AV#3__kac1|qUy!uyP{>?U#5wYNq}y$S9pCc zFc~4mgSC*G~j0u#qqp9 z${>3HV~@->GqEhr_Xwoxq?Hjn#=s2;i~g^&Hn|aDKpA>Oc%HlW(KA1?BXqpxB;Ydx)w;2z^MpjJ(Qi(X!$5RC z*P{~%JGDQqojV>2JbEeCE*OEu!$XJ>bWA9Oa_Hd;y)F%MhBRi*LPcdqR8X`NQ&1L# z5#9L*@qxrx8n}LfeB^J{%-?SU{FCwiWyHp682F+|pa+CQa3ZLzBqN1{)h4d6+vBbV zC#NEbQLC;}me3eeYnOG*nXOJZEU$xLZ1<1Y=7r0(-U0P6-AqwMAM`a(Ed#7vJkn6plb4eI4?2y3yOTGmmDQ!z9`wzbf z_OY#0@5=bnep;MV0X_;;SJJWEf^E6Bd^tVJ9znWx&Ks8t*B>AM@?;D4oWUGc z!H*`6d7Cxo6VuyS4Eye&L1ZRhrRmN6Lr`{NL(wDbif|y&z)JN>Fl5#Wi&mMIr5i;x zBx}3YfF>>8EC(fYnmpu~)CYHuHCyr5*`ECap%t@y=jD>!_%3iiE|LN$mK9>- zHdtpy8fGZtkZF?%TW~29JIAfi2jZT8>OA7=h;8T{{k?c2`nCEx9$r zS+*&vt~2o^^J+}RDG@+9&M^K*z4p{5#IEVbz`1%`m5c2};aGt=V?~vIM}ZdPECDI)47|CWBCfDWUbxBCnmYivQ*0Nu_xb*C>~C9(VjHM zxe<*D<#dQ8TlpMX2c@M<9$w!RP$hpG4cs%AI){jp*Sj|*`m)5(Bw*A0$*i-(CA5#%>a)$+jI2C9r6|(>J8InryENI z$NohnxDUB;wAYDwrb*!N3noBTKPpPN}~09SEL18tkG zxgz(RYU_;DPT{l?Q$+eaZaxnsWCA^ds^0PVRkIM%bOd|G2IEBBiz{&^JtNsODs;5z zICt_Zj8wo^KT$7Bg4H+y!Df#3mbl%%?|EXe!&(Vmac1DJ*y~3+kRKAD=Ovde4^^%~ zw<9av18HLyrf*_>Slp;^i`Uy~`mvBjZ|?Ad63yQa#YK`4+c6;pW4?XIY9G1(Xh9WO8{F-Aju+nS9Vmv=$Ac0ienZ+p9*O%NG zMZKy5?%Z6TAJTE?o5vEr0r>f>hb#2w2U3DL64*au_@P!J!TL`oH2r*{>ffu6|A7tv zL4juf$DZ1MW5ZPsG!5)`k8d8c$J$o;%EIL0va9&GzWvkS%ZsGb#S(?{!UFOZ9<$a| zY|a+5kmD5N&{vRqkgY>aHsBT&`rg|&kezoD)gP0fsNYHsO#TRc_$n6Lf1Z{?+DLziXlHrq4sf(!>O{?Tj;Eh@%)+nRE_2VxbN&&%%caU#JDU%vL3}Cb zsb4AazPI{>8H&d=jUaZDS$-0^AxE@utGs;-Ez_F(qC9T=UZX=>ok2k2 ziTn{K?y~a5reD2A)P${NoI^>JXn>`IeArow(41c-Wm~)wiryEP(OS{YXWi7;%dG9v zI?mwu1MxD{yp_rrk!j^cKM)dc4@p4Ezyo%lRN|XyD}}>v=Xoib0gOcdXrQ^*61HNj z=NP|pd>@yfvr-=m{8$3A8TQGMTE7g=z!%yt`8`Bk-0MMwW~h^++;qyUP!J~ykh1GO z(FZ59xuFR$(WE;F@UUyE@Sp>`aVNjyj=Ty>_Vo}xf`e7`F;j-IgL5`1~-#70$9_=uBMq!2&1l zomRgpD58@)YYfvLtPW}{C5B35R;ZVvB<<#)x%srmc_S=A7F@DW8>QOEGwD6suhwCg z>Pa+YyULhmw%BA*4yjDp|2{!T98~<6Yfd(wo1mQ!KWwq0eg+6)o1>W~f~kL<-S+P@$wx*zeI|1t7z#Sxr5 zt6w+;YblPQNplq4Z#T$GLX#j6yldXAqj>4gAnnWtBICUnA&-dtnlh=t0Ho_vEKwV` z)DlJi#!@nkYV#$!)@>udAU*hF?V`2$Hf=V&6PP_|r#Iv*J$9)pF@X3`k;5})9^o4y z&)~?EjX5yX12O(BsFy-l6}nYeuKkiq`u9145&3Ssg^y{5G3Pse z9w(YVa0)N-fLaBq1`P!_#>SS(8fh_5!f{UrgZ~uEdeMJIz7DzI5!NHHqQtm~#CPij z?=N|J>nPR6_sL7!f4hD_|KH`vf8(Wpnj-(gPWH+ZvID}%?~68SwhPTC3u1_cB`otq z)U?6qo!ZLi5b>*KnYHWW=3F!p%h1;h{L&(Q&{qY6)_qxNfbP6E3yYpW!EO+IW3?@J z);4>g4gnl^8klu7uA>eGF6rIGSynacogr)KUwE_R4E5Xzi*Qir@b-jy55-JPC8c~( zo!W8y9OGZ&`xmc8;=4-U9=h{vCqfCNzYirONmGbRQlR`WWlgnY+1wCXbMz&NT~9*| z6@FrzP!LX&{no2!Ln_3|I==_4`@}V?4a;YZKTdw;vT<+K+z=uWbW(&bXEaWJ^W8Td z-3&1bY^Z*oM<=M}LVt>_j+p=2Iu7pZmbXrhQ_k)ysE9yXKygFNw$5hwDn(M>H+e1&9BM5!|81vd%r%vEm zqxY3?F@fb6O#5UunwgAHR9jp_W2zZ}NGp2%mTW@(hz7$^+a`A?mb8|_G*GNMJ) zjqegXQio=i@AINre&%ofexAr95aop5C+0MZ0m-l=MeO8m3epm7U%vZB8+I+C*iNFM z#T3l`gknX;D$-`2XT^Cg*vrv=RH+P;_dfF++cP?B_msQI4j+lt&rX2)3GaJx%W*Nn zkML%D{z5tpHH=dksQ*gzc|}gzW;lwAbxoR07VNgS*-c3d&8J|;@3t^ zVUz*J*&r7DFRuFVDCJDK8V9NN5hvpgGjwx+5n)qa;YCKe8TKtdnh{I7NU9BCN!0dq zczrBk8pE{{@vJa9ywR@mq*J=v+PG;?fwqlJVhijG!3VmIKs>9T6r7MJpC)m!Tc#>g zMtVsU>wbwFJEfwZ{vB|ZlttNe83)$iz`~#8UJ^r)lJ@HA&G#}W&ZH*;k{=TavpjWE z7hdyLZPf*X%Gm}i`Y{OGeeu^~nB8=`{r#TUrM-`;1cBvEd#d!kPqIgYySYhN-*1;L z^byj%Yi}Gx)Wnkosi337BKs}+5H5dth1JA{Ir-JKN$7zC)*}hqeoD(WfaUDPT>0`- z(6sa0AoIqASwF`>hP}^|)a_j2s^PQn*qVC{Q}htR z5-)duBFXT_V56-+UohKXlq~^6uf!6sA#ttk1o~*QEy_Y-S$gAvq47J9Vtk$5oA$Ct zYhYJ@8{hsC^98${!#Ho?4y5MCa7iGnfz}b9jE~h%EAAv~Qxu)_rAV;^cygV~5r_~?l=B`zObj7S=H=~$W zPtI_m%g$`kL_fVUk9J@>EiBH zOO&jtn~&`hIFMS5S`g8w94R4H40mdNUH4W@@XQk1sr17b{@y|JB*G9z1|CrQjd+GX z6+KyURG3;!*BQrentw{B2R&@2&`2}n(z-2&X7#r!{yg@Soy}cRD~j zj9@UBW+N|4HW4AWapy4wfUI- zZ`gSL6DUlgj*f1hSOGXG0IVH8HxK?o2|3HZ;KW{K+yPAlxtb)NV_2AwJm|E)FRs&& z=c^e7bvUsztY|+f^k7NXs$o1EUq>cR7C0$UKi6IooHWlK_#?IWDkvywnzg&ThWo^? z2O_N{5X39#?eV9l)xI(>@!vSB{DLt*oY!K1R8}_?%+0^C{d9a%N4 zoxHVT1&Lm|uDX%$QrBun5e-F`HJ^T$ zmzv)p@4ZHd_w9!%Hf9UYNvGCw2TTTbrj9pl+T9%-_-}L(tES>Or-}Z4F*{##n3~L~TuxjirGuIY#H7{%$E${?p{Q01 zi6T`n;rbK1yIB9jmQNycD~yZq&mbIsFWHo|ZAChSFPQa<(%d8mGw*V3fh|yFoxOOiWJd(qvVb!Z$b88cg->N=qO*4k~6;R==|9ihg&riu#P~s4Oap9O7f%crSr^rljeIfXDEg>wi)&v*a%7zpz<9w z*r!3q9J|390x`Zk;g$&OeN&ctp)VKRpDSV@kU2Q>jtok($Y-*x8_$2piTxun81@vt z!Vj?COa0fg2RPXMSIo26T=~0d`{oGP*eV+$!0I<(4azk&Vj3SiG=Q!6mX0p$z7I}; z9BJUFgT-K9MQQ-0@Z=^7R<{bn2Fm48endsSs`V7_@%8?Bxkqv>BDoVcj?K#dV#uUP zL1ND~?D-|VGKe3Rw_7-Idpht>H6XRLh*U7epS6byiGvJpr%d}XwfusjH9g;Z98H`x zyde%%5mhGOiL4wljCaWCk-&uE4_OOccb9c!ZaWt4B(wYl!?vyzl%7n~QepN&eFUrw zFIOl9c({``6~QD+43*_tzP{f2x41h(?b43^y6=iwyB)2os5hBE!@YUS5?N_tXd=h( z)WE286Fbd>R4M^P{!G)f;h<3Q>Fipuy+d2q-)!RyTgt;wr$(?9ox3;q+{E*ZQHhOn;lM`cjnu9 zXa48ks-v(~b*;MAI<>YZH(^NV8vjb34beE<_cwKlJoR;k6lJNSP6v}uiyRD?|0w+X@o1ONrH8a$fCxXpf? z?$DL0)7|X}Oc%h^zrMKWc-NS9I0Utu@>*j}b@tJ=ixQSJ={4@854wzW@E>VSL+Y{i z#0b=WpbCZS>kUCO_iQz)LoE>P5LIG-hv9E+oG}DtlIDF>$tJ1aw9^LuhLEHt?BCj& z(O4I8v1s#HUi5A>nIS-JK{v!7dJx)^Yg%XjNmlkWAq2*cv#tHgz`Y(bETc6CuO1VkN^L-L3j_x<4NqYb5rzrLC-7uOv z!5e`GZt%B782C5-fGnn*GhDF$%(qP<74Z}3xx+{$4cYKy2ikxI7B2N+2r07DN;|-T->nU&!=Cm#rZt%O_5c&1Z%nlWq3TKAW0w zQqemZw_ue--2uKQsx+niCUou?HjD`xhEjjQd3%rrBi82crq*~#uA4+>vR<_S{~5ce z-2EIl?~s z1=GVL{NxP1N3%=AOaC}j_Fv=ur&THz zyO!d9kHq|c73kpq`$+t+8Bw7MgeR5~`d7ChYyGCBWSteTB>8WAU(NPYt2Dk`@#+}= zI4SvLlyk#pBgVigEe`?NG*vl7V6m+<}%FwPV=~PvvA)=#ths==DRTDEYh4V5}Cf$z@#;< zyWfLY_5sP$gc3LLl2x+Ii)#b2nhNXJ{R~vk`s5U7Nyu^3yFg&D%Txwj6QezMX`V(x z=C`{76*mNb!qHHs)#GgGZ_7|vkt9izl_&PBrsu@}L`X{95-2jf99K)0=*N)VxBX2q z((vkpP2RneSIiIUEnGb?VqbMb=Zia+rF~+iqslydE34cSLJ&BJW^3knX@M;t*b=EA zNvGzv41Ld_T+WT#XjDB840vovUU^FtN_)G}7v)1lPetgpEK9YS^OWFkPoE{ovj^=@ zO9N$S=G$1ecndT_=5ehth2Lmd1II-PuT~C9`XVePw$y8J#dpZ?Tss<6wtVglm(Ok7 z3?^oi@pPio6l&!z8JY(pJvG=*pI?GIOu}e^EB6QYk$#FJQ%^AIK$I4epJ+9t?KjqA+bkj&PQ*|vLttme+`9G=L% ziadyMw_7-M)hS(3E$QGNCu|o23|%O+VN7;Qggp?PB3K-iSeBa2b}V4_wY`G1Jsfz4 z9|SdB^;|I8E8gWqHKx!vj_@SMY^hLEIbSMCuE?WKq=c2mJK z8LoG-pnY!uhqFv&L?yEuxo{dpMTsmCn)95xanqBrNPTgXP((H$9N${Ow~Is-FBg%h z53;|Y5$MUN)9W2HBe2TD`ct^LHI<(xWrw}$qSoei?}s)&w$;&!14w6B6>Yr6Y8b)S z0r71`WmAvJJ`1h&poLftLUS6Ir zC$bG9!Im_4Zjse)#K=oJM9mHW1{%l8sz$1o?ltdKlLTxWWPB>Vk22czVt|1%^wnN@*!l)}?EgtvhC>vlHm^t+ogpgHI1_$1ox9e;>0!+b(tBrmXRB`PY1vp-R**8N7 zGP|QqI$m(Rdu#=(?!(N}G9QhQ%o!aXE=aN{&wtGP8|_qh+7a_j_sU5|J^)vxq;# zjvzLn%_QPHZZIWu1&mRAj;Sa_97p_lLq_{~j!M9N^1yp3U_SxRqK&JnR%6VI#^E12 z>CdOVI^_9aPK2eZ4h&^{pQs}xsijXgFYRIxJ~N7&BB9jUR1fm!(xl)mvy|3e6-B3j zJn#ajL;bFTYJ2+Q)tDjx=3IklO@Q+FFM}6UJr6km7hj7th9n_&JR7fnqC!hTZoM~T zBeaVFp%)0cbPhejX<8pf5HyRUj2>aXnXBqDJe73~J%P(2C?-RT{c3NjE`)om! zl$uewSgWkE66$Kb34+QZZvRn`fob~Cl9=cRk@Es}KQm=?E~CE%spXaMO6YmrMl%9Q zlA3Q$3|L1QJ4?->UjT&CBd!~ru{Ih^in&JXO=|<6J!&qp zRe*OZ*cj5bHYlz!!~iEKcuE|;U4vN1rk$xq6>bUWD*u(V@8sG^7>kVuo(QL@Ki;yL zWC!FT(q{E8#on>%1iAS0HMZDJg{Z{^!De(vSIq&;1$+b)oRMwA3nc3mdTSG#3uYO_ z>+x;7p4I;uHz?ZB>dA-BKl+t-3IB!jBRgdvAbW!aJ(Q{aT>+iz?91`C-xbe)IBoND z9_Xth{6?(y3rddwY$GD65IT#f3<(0o#`di{sh2gm{dw*#-Vnc3r=4==&PU^hCv$qd zjw;>i&?L*Wq#TxG$mFIUf>eK+170KG;~+o&1;Tom9}}mKo23KwdEM6UonXgc z!6N(@k8q@HPw{O8O!lAyi{rZv|DpgfU{py+j(X_cwpKqcalcqKIr0kM^%Br3SdeD> zHSKV94Yxw;pjzDHo!Q?8^0bb%L|wC;4U^9I#pd5O&eexX+Im{ z?jKnCcsE|H?{uGMqVie_C~w7GX)kYGWAg%-?8|N_1#W-|4F)3YTDC+QSq1s!DnOML3@d`mG%o2YbYd#jww|jD$gotpa)kntakp#K;+yo-_ZF9qrNZw<%#C zuPE@#3RocLgPyiBZ+R_-FJ_$xP!RzWm|aN)S+{$LY9vvN+IW~Kf3TsEIvP+B9Mtm! zpfNNxObWQpLoaO&cJh5>%slZnHl_Q~(-Tfh!DMz(dTWld@LG1VRF`9`DYKhyNv z2pU|UZ$#_yUx_B_|MxUq^glT}O5Xt(Vm4Mr02><%C)@v;vPb@pT$*yzJ4aPc_FZ3z z3}PLoMBIM>q_9U2rl^sGhk1VUJ89=*?7|v`{!Z{6bqFMq(mYiA?%KbsI~JwuqVA9$H5vDE+VocjX+G^%bieqx->s;XWlKcuv(s%y%D5Xbc9+ zc(_2nYS1&^yL*ey664&4`IoOeDIig}y-E~_GS?m;D!xv5-xwz+G`5l6V+}CpeJDi^ z%4ed$qowm88=iYG+(`ld5Uh&>Dgs4uPHSJ^TngXP_V6fPyl~>2bhi20QB%lSd#yYn zO05?KT1z@?^-bqO8Cg`;ft>ilejsw@2%RR7;`$Vs;FmO(Yr3Fp`pHGr@P2hC%QcA|X&N2Dn zYf`MqXdHi%cGR@%y7Rg7?d3?an){s$zA{!H;Ie5exE#c~@NhQUFG8V=SQh%UxUeiV zd7#UcYqD=lk-}sEwlpu&H^T_V0{#G?lZMxL7ih_&{(g)MWBnCZxtXg znr#}>U^6!jA%e}@Gj49LWG@*&t0V>Cxc3?oO7LSG%~)Y5}f7vqUUnQ;STjdDU}P9IF9d9<$;=QaXc zL1^X7>fa^jHBu_}9}J~#-oz3Oq^JmGR#?GO7b9a(=R@fw@}Q{{@`Wy1vIQ#Bw?>@X z-_RGG@wt|%u`XUc%W{J z>iSeiz8C3H7@St3mOr_mU+&bL#Uif;+Xw-aZdNYUpdf>Rvu0i0t6k*}vwU`XNO2he z%miH|1tQ8~ZK!zmL&wa3E;l?!!XzgV#%PMVU!0xrDsNNZUWKlbiOjzH-1Uoxm8E#r`#2Sz;-o&qcqB zC-O_R{QGuynW14@)7&@yw1U}uP(1cov)twxeLus0s|7ayrtT8c#`&2~Fiu2=R;1_4bCaD=*E@cYI>7YSnt)nQc zohw5CsK%m?8Ack)qNx`W0_v$5S}nO|(V|RZKBD+btO?JXe|~^Qqur%@eO~<8-L^9d z=GA3-V14ng9L29~XJ>a5k~xT2152zLhM*@zlp2P5Eu}bywkcqR;ISbas&#T#;HZSf z2m69qTV(V@EkY(1Dk3`}j)JMo%ZVJ*5eB zYOjIisi+igK0#yW*gBGj?@I{~mUOvRFQR^pJbEbzFxTubnrw(Muk%}jI+vXmJ;{Q6 zrSobKD>T%}jV4Ub?L1+MGOD~0Ir%-`iTnWZN^~YPrcP5y3VMAzQ+&en^VzKEb$K!Q z<7Dbg&DNXuow*eD5yMr+#08nF!;%4vGrJI++5HdCFcGLfMW!KS*Oi@=7hFwDG!h2< zPunUEAF+HncQkbfFj&pbzp|MU*~60Z(|Ik%Tn{BXMN!hZOosNIseT?R;A`W?=d?5X zK(FB=9mZusYahp|K-wyb={rOpdn=@;4YI2W0EcbMKyo~-#^?h`BA9~o285%oY zfifCh5Lk$SY@|2A@a!T2V+{^!psQkx4?x0HSV`(w9{l75QxMk!)U52Lbhn{8ol?S) zCKo*7R(z!uk<6*qO=wh!Pul{(qq6g6xW;X68GI_CXp`XwO zxuSgPRAtM8K7}5E#-GM!*ydOOG_{A{)hkCII<|2=ma*71ci_-}VPARm3crFQjLYV! z9zbz82$|l01mv`$WahE2$=fAGWkd^X2kY(J7iz}WGS z@%MyBEO=A?HB9=^?nX`@nh;7;laAjs+fbo!|K^mE!tOB>$2a_O0y-*uaIn8k^6Y zSbuv;5~##*4Y~+y7Z5O*3w4qgI5V^17u*ZeupVGH^nM&$qmAk|anf*>r zWc5CV;-JY-Z@Uq1Irpb^O`L_7AGiqd*YpGUShb==os$uN3yYvb`wm6d=?T*it&pDk zo`vhw)RZX|91^^Wa_ti2zBFyWy4cJu#g)_S6~jT}CC{DJ_kKpT`$oAL%b^!2M;JgT zM3ZNbUB?}kP(*YYvXDIH8^7LUxz5oE%kMhF!rnPqv!GiY0o}NR$OD=ITDo9r%4E>E0Y^R(rS^~XjWyVI6 zMOR5rPXhTp*G*M&X#NTL`Hu*R+u*QNoiOKg4CtNPrjgH>c?Hi4MUG#I917fx**+pJfOo!zFM&*da&G_x)L(`k&TPI*t3e^{crd zX<4I$5nBQ8Ax_lmNRa~E*zS-R0sxkz`|>7q_?*e%7bxqNm3_eRG#1ae3gtV9!fQpY z+!^a38o4ZGy9!J5sylDxZTx$JmG!wg7;>&5H1)>f4dXj;B+@6tMlL=)cLl={jLMxY zbbf1ax3S4>bwB9-$;SN2?+GULu;UA-35;VY*^9Blx)Jwyb$=U!D>HhB&=jSsd^6yw zL)?a|>GxU!W}ocTC(?-%z3!IUhw^uzc`Vz_g>-tv)(XA#JK^)ZnC|l1`@CdX1@|!| z_9gQ)7uOf?cR@KDp97*>6X|;t@Y`k_N@)aH7gY27)COv^P3ya9I{4z~vUjLR9~z1Z z5=G{mVtKH*&$*t0@}-i_v|3B$AHHYale7>E+jP`ClqG%L{u;*ff_h@)al?RuL7tOO z->;I}>%WI{;vbLP3VIQ^iA$4wl6@0sDj|~112Y4OFjMs`13!$JGkp%b&E8QzJw_L5 zOnw9joc0^;O%OpF$Qp)W1HI!$4BaXX84`%@#^dk^hFp^pQ@rx4g(8Xjy#!X%+X5Jd@fs3amGT`}mhq#L97R>OwT5-m|h#yT_-v@(k$q7P*9X~T*3)LTdzP!*B} z+SldbVWrrwQo9wX*%FyK+sRXTa@O?WM^FGWOE?S`R(0P{<6p#f?0NJvnBia?k^fX2 zNQs7K-?EijgHJY}&zsr;qJ<*PCZUd*x|dD=IQPUK_nn)@X4KWtqoJNHkT?ZWL_hF? zS8lp2(q>;RXR|F;1O}EE#}gCrY~#n^O`_I&?&z5~7N;zL0)3Tup`%)oHMK-^r$NT% zbFg|o?b9w(q@)6w5V%si<$!U<#}s#x@0aX-hP>zwS#9*75VXA4K*%gUc>+yzupTDBOKH8WR4V0pM(HrfbQ&eJ79>HdCvE=F z|J>s;;iDLB^3(9}?biKbxf1$lI!*Z%*0&8UUq}wMyPs_hclyQQi4;NUY+x2qy|0J; zhn8;5)4ED1oHwg+VZF|80<4MrL97tGGXc5Sw$wAI#|2*cvQ=jB5+{AjMiDHmhUC*a zlmiZ`LAuAn_}hftXh;`Kq0zblDk8?O-`tnilIh|;3lZp@F_osJUV9`*R29M?7H{Fy z`nfVEIDIWXmU&YW;NjU8)EJpXhxe5t+scf|VXM!^bBlwNh)~7|3?fWwo_~ZFk(22% zTMesYw+LNx3J-_|DM~`v93yXe=jPD{q;li;5PD?Dyk+b? zo21|XpT@)$BM$%F=P9J19Vi&1#{jM3!^Y&fr&_`toi`XB1!n>sbL%U9I5<7!@?t)~ z;&H%z>bAaQ4f$wIzkjH70;<8tpUoxzKrPhn#IQfS%9l5=Iu))^XC<58D!-O z{B+o5R^Z21H0T9JQ5gNJnqh#qH^na|z92=hONIM~@_iuOi|F>jBh-?aA20}Qx~EpDGElELNn~|7WRXRFnw+Wdo`|# zBpU=Cz3z%cUJ0mx_1($X<40XEIYz(`noWeO+x#yb_pwj6)R(__%@_Cf>txOQ74wSJ z0#F3(zWWaR-jMEY$7C*3HJrohc79>MCUu26mfYN)f4M~4gD`}EX4e}A!U}QV8!S47 z6y-U-%+h`1n`*pQuKE%Av0@)+wBZr9mH}@vH@i{v(m-6QK7Ncf17x_D=)32`FOjjo zg|^VPf5c6-!FxN{25dvVh#fog=NNpXz zfB$o+0jbRkHH{!TKhE709f+jI^$3#v1Nmf80w`@7-5$1Iv_`)W^px8P-({xwb;D0y z7LKDAHgX<84?l!I*Dvi2#D@oAE^J|g$3!)x1Ua;_;<@#l1fD}lqU2_tS^6Ht$1Wl} zBESo7o^)9-Tjuz$8YQSGhfs{BQV6zW7dA?0b(Dbt=UnQs&4zHfe_sj{RJ4uS-vQpC zX;Bbsuju4%!o8?&m4UZU@~ZZjeFF6ex2ss5_60_JS_|iNc+R0GIjH1@Z z=rLT9%B|WWgOrR7IiIwr2=T;Ne?30M!@{%Qf8o`!>=s<2CBpCK_TWc(DX51>e^xh8 z&@$^b6CgOd7KXQV&Y4%}_#uN*mbanXq(2=Nj`L7H7*k(6F8s6{FOw@(DzU`4-*77{ zF+dxpv}%mFpYK?>N_2*#Y?oB*qEKB}VoQ@bzm>ptmVS_EC(#}Lxxx730trt0G)#$b zE=wVvtqOct1%*9}U{q<)2?{+0TzZzP0jgf9*)arV)*e!f`|jgT{7_9iS@e)recI#z zbzolURQ+TOzE!ymqvBY7+5NnAbWxvMLsLTwEbFqW=CPyCsmJ}P1^V30|D5E|p3BC5 z)3|qgw@ra7aXb-wsa|l^in~1_fm{7bS9jhVRkYVO#U{qMp z)Wce+|DJ}4<2gp8r0_xfZpMo#{Hl2MfjLcZdRB9(B(A(f;+4s*FxV{1F|4d`*sRNd zp4#@sEY|?^FIJ;tmH{@keZ$P(sLh5IdOk@k^0uB^BWr@pk6mHy$qf&~rI>P*a;h0C{%oA*i!VjWn&D~O#MxN&f@1Po# zKN+ zrGrkSjcr?^R#nGl<#Q722^wbYcgW@{+6CBS<1@%dPA8HC!~a`jTz<`g_l5N1M@9wn9GOAZ>nqNgq!yOCbZ@1z`U_N`Z>}+1HIZxk*5RDc&rd5{3qjRh8QmT$VyS;jK z;AF+r6XnnCp=wQYoG|rT2@8&IvKq*IB_WvS%nt%e{MCFm`&W*#LXc|HrD?nVBo=(8*=Aq?u$sDA_sC_RPDUiQ+wnIJET8vx$&fxkW~kP9qXKt zozR)@xGC!P)CTkjeWvXW5&@2?)qt)jiYWWBU?AUtzAN}{JE1I)dfz~7$;}~BmQF`k zpn11qmObXwRB8&rnEG*#4Xax3XBkKlw(;tb?Np^i+H8m(Wyz9k{~ogba@laiEk;2! zV*QV^6g6(QG%vX5Um#^sT&_e`B1pBW5yVth~xUs#0}nv?~C#l?W+9Lsb_5)!71rirGvY zTIJ$OPOY516Y|_014sNv+Z8cc5t_V=i>lWV=vNu#!58y9Zl&GsMEW#pPYPYGHQ|;vFvd*9eM==$_=vc7xnyz0~ zY}r??$<`wAO?JQk@?RGvkWVJlq2dk9vB(yV^vm{=NVI8dhsX<)O(#nr9YD?I?(VmQ z^r7VfUBn<~p3()8yOBjm$#KWx!5hRW)5Jl7wY@ky9lNM^jaT##8QGVsYeaVywmpv>X|Xj7gWE1Ezai&wVLt3p)k4w~yrskT-!PR!kiyQlaxl(( zXhF%Q9x}1TMt3~u@|#wWm-Vq?ZerK={8@~&@9r5JW}r#45#rWii};t`{5#&3$W)|@ zbAf2yDNe0q}NEUvq_Quq3cTjcw z@H_;$hu&xllCI9CFDLuScEMg|x{S7GdV8<&Mq=ezDnRZAyX-8gv97YTm0bg=d)(>N z+B2FcqvI9>jGtnK%eO%y zoBPkJTk%y`8TLf4)IXPBn`U|9>O~WL2C~C$z~9|0m*YH<-vg2CD^SX#&)B4ngOSG$ zV^wmy_iQk>dfN@Pv(ckfy&#ak@MLC7&Q6Ro#!ezM*VEh`+b3Jt%m(^T&p&WJ2Oqvj zs-4nq0TW6cv~(YI$n0UkfwN}kg3_fp?(ijSV#tR9L0}l2qjc7W?i*q01=St0eZ=4h zyGQbEw`9OEH>NMuIe)hVwYHsGERWOD;JxEiO7cQv%pFCeR+IyhwQ|y@&^24k+|8fD zLiOWFNJ2&vu2&`Jv96_z-Cd5RLgmeY3*4rDOQo?Jm`;I_(+ejsPM03!ly!*Cu}Cco zrQSrEDHNyzT(D5s1rZq!8#?f6@v6dB7a-aWs(Qk>N?UGAo{gytlh$%_IhyL7h?DLXDGx zgxGEBQoCAWo-$LRvM=F5MTle`M})t3vVv;2j0HZY&G z22^iGhV@uaJh(XyyY%} zd4iH_UfdV#T=3n}(Lj^|n;O4|$;xhu*8T3hR1mc_A}fK}jfZ7LX~*n5+`8N2q#rI$ z@<_2VANlYF$vIH$ zl<)+*tIWW78IIINA7Rr7i{<;#^yzxoLNkXL)eSs=%|P>$YQIh+ea_3k z_s7r4%j7%&*NHSl?R4k%1>Z=M9o#zxY!n8sL5>BO-ZP;T3Gut>iLS@U%IBrX6BA3k z)&@q}V8a{X<5B}K5s(c(LQ=%v1ocr`t$EqqY0EqVjr65usa=0bkf|O#ky{j3)WBR(((L^wmyHRzoWuL2~WTC=`yZ zn%VX`L=|Ok0v7?s>IHg?yArBcync5rG#^+u)>a%qjES%dRZoIyA8gQ;StH z1Ao7{<&}6U=5}4v<)1T7t!J_CL%U}CKNs-0xWoTTeqj{5{?Be$L0_tk>M9o8 zo371}S#30rKZFM{`H_(L`EM9DGp+Mifk&IP|C2Zu_)Ghr4Qtpmkm1osCf@%Z$%t+7 zYH$Cr)Ro@3-QDeQJ8m+x6%;?YYT;k6Z0E-?kr>x33`H%*ueBD7Zx~3&HtWn0?2Wt} zTG}*|v?{$ajzt}xPzV%lL1t-URi8*Zn)YljXNGDb>;!905Td|mpa@mHjIH%VIiGx- zd@MqhpYFu4_?y5N4xiHn3vX&|e6r~Xt> zZG`aGq|yTNjv;9E+Txuoa@A(9V7g?1_T5FzRI;!=NP1Kqou1z5?%X~Wwb{trRfd>i z8&y^H)8YnKyA_Fyx>}RNmQIczT?w2J4SNvI{5J&}Wto|8FR(W;Qw#b1G<1%#tmYzQ zQ2mZA-PAdi%RQOhkHy9Ea#TPSw?WxwL@H@cbkZwIq0B!@ns}niALidmn&W?!Vd4Gj zO7FiuV4*6Mr^2xlFSvM;Cp_#r8UaqIzHJQg_z^rEJw&OMm_8NGAY2)rKvki|o1bH~ z$2IbfVeY2L(^*rMRU1lM5Y_sgrDS`Z??nR2lX;zyR=c%UyGb*%TC-Dil?SihkjrQy~TMv6;BMs7P8il`H7DmpVm@rJ;b)hW)BL)GjS154b*xq-NXq2cwE z^;VP7ua2pxvCmxrnqUYQMH%a%nHmwmI33nJM(>4LznvY*k&C0{8f*%?zggpDgkuz&JBx{9mfb@wegEl2v!=}Sq2Gaty0<)UrOT0{MZtZ~j5y&w zXlYa_jY)I_+VA-^#mEox#+G>UgvM!Ac8zI<%JRXM_73Q!#i3O|)lOP*qBeJG#BST0 zqohi)O!|$|2SeJQo(w6w7%*92S})XfnhrH_Z8qe!G5>CglP=nI7JAOW?(Z29;pXJ9 zR9`KzQ=WEhy*)WH>$;7Cdz|>*i>=##0bB)oU0OR>>N<21e4rMCHDemNi2LD>Nc$;& zQRFthpWniC1J6@Zh~iJCoLOxN`oCKD5Q4r%ynwgUKPlIEd#?QViIqovY|czyK8>6B zSP%{2-<;%;1`#0mG^B(8KbtXF;Nf>K#Di72UWE4gQ%(_26Koiad)q$xRL~?pN71ZZ zujaaCx~jXjygw;rI!WB=xrOJO6HJ!!w}7eiivtCg5K|F6$EXa)=xUC za^JXSX98W`7g-tm@uo|BKj39Dl;sg5ta;4qjo^pCh~{-HdLl6qI9Ix6f$+qiZ$}s= zNguKrU;u+T@ko(Vr1>)Q%h$?UKXCY>3se%&;h2osl2D zE4A9bd7_|^njDd)6cI*FupHpE3){4NQ*$k*cOWZ_?CZ>Z4_fl@n(mMnYK62Q1d@+I zr&O))G4hMihgBqRIAJkLdk(p(D~X{-oBUA+If@B}j& zsHbeJ3RzTq96lB7d($h$xTeZ^gP0c{t!Y0c)aQE;$FY2!mACg!GDEMKXFOPI^)nHZ z`aSPJpvV0|bbrzhWWkuPURlDeN%VT8tndV8?d)eN*i4I@u zVKl^6{?}A?P)Fsy?3oi#clf}L18t;TjNI2>eI&(ezDK7RyqFxcv%>?oxUlonv(px) z$vnPzRH`y5A(x!yOIfL0bmgeMQB$H5wenx~!ujQK*nUBW;@Em&6Xv2%s(~H5WcU2R z;%Nw<$tI)a`Ve!>x+qegJnQsN2N7HaKzrFqM>`6R*gvh%O*-%THt zrB$Nk;lE;z{s{r^PPm5qz(&lM{sO*g+W{sK+m3M_z=4=&CC>T`{X}1Vg2PEfSj2x_ zmT*(x;ov%3F?qoEeeM>dUn$a*?SIGyO8m806J1W1o+4HRhc2`9$s6hM#qAm zChQ87b~GEw{ADfs+5}FJ8+|bIlIv(jT$Ap#hSHoXdd9#w<#cA<1Rkq^*EEkknUd4& zoIWIY)sAswy6fSERVm&!SO~#iN$OgOX*{9@_BWFyJTvC%S++ilSfCrO(?u=Dc?CXZ zzCG&0yVR{Z`|ZF0eEApWEo#s9osV>F{uK{QA@BES#&;#KsScf>y zvs?vIbI>VrT<*!;XmQS=bhq%46-aambZ(8KU-wOO2=en~D}MCToB_u;Yz{)1ySrPZ z@=$}EvjTdzTWU7c0ZI6L8=yP+YRD_eMMos}b5vY^S*~VZysrkq<`cK3>>v%uy7jgq z0ilW9KjVDHLv0b<1K_`1IkbTOINs0=m-22c%M~l=^S}%hbli-3?BnNq?b`hx^HX2J zIe6ECljRL0uBWb`%{EA=%!i^4sMcj+U_TaTZRb+~GOk z^ZW!nky0n*Wb*r+Q|9H@ml@Z5gU&W`(z4-j!OzC1wOke`TRAYGZVl$PmQ16{3196( zO*?`--I}Qf(2HIwb2&1FB^!faPA2=sLg(@6P4mN)>Dc3i(B0;@O-y2;lM4akD>@^v z=u>*|!s&9zem70g7zfw9FXl1bpJW(C#5w#uy5!V?Q(U35A~$dR%LDVnq@}kQm13{} zd53q3N(s$Eu{R}k2esbftfjfOITCL;jWa$}(mmm}d(&7JZ6d3%IABCapFFYjdEjdK z&4Edqf$G^MNAtL=uCDRs&Fu@FXRgX{*0<(@c3|PNHa>L%zvxWS={L8%qw`STm+=Rd zA}FLspESSIpE_^41~#5yI2bJ=9`oc;GIL!JuW&7YetZ?0H}$$%8rW@*J37L-~Rsx!)8($nI4 zZhcZ2^=Y+p4YPl%j!nFJA|*M^gc(0o$i3nlphe+~-_m}jVkRN{spFs(o0ajW@f3K{ zDV!#BwL322CET$}Y}^0ixYj2w>&Xh12|R8&yEw|wLDvF!lZ#dOTHM9pK6@Nm-@9Lnng4ZHBgBSrr7KI8YCC9DX5Kg|`HsiwJHg2(7#nS;A{b3tVO?Z% za{m5b3rFV6EpX;=;n#wltDv1LE*|g5pQ+OY&*6qCJZc5oDS6Z6JD#6F)bWxZSF@q% z+1WV;m!lRB!n^PC>RgQCI#D1br_o^#iPk>;K2hB~0^<~)?p}LG%kigm@moD#q3PE+ zA^Qca)(xnqw6x>XFhV6ku9r$E>bWNrVH9fum0?4s?Rn2LG{Vm_+QJHse6xa%nzQ?k zKug4PW~#Gtb;#5+9!QBgyB@q=sk9=$S{4T>wjFICStOM?__fr+Kei1 z3j~xPqW;W@YkiUM;HngG!;>@AITg}vAE`M2Pj9Irl4w1fo4w<|Bu!%rh%a(Ai^Zhi zs92>v5;@Y(Zi#RI*ua*h`d_7;byQSa*v9E{2x$<-_=5Z<7{%)}4XExANcz@rK69T0x3%H<@frW>RA8^swA+^a(FxK| zFl3LD*ImHN=XDUkrRhp6RY5$rQ{bRgSO*(vEHYV)3Mo6Jy3puiLmU&g82p{qr0F?ohmbz)f2r{X2|T2 z$4fdQ=>0BeKbiVM!e-lIIs8wVTuC_m7}y4A_%ikI;Wm5$9j(^Y z(cD%U%k)X>_>9~t8;pGzL6L-fmQO@K; zo&vQzMlgY95;1BSkngY)e{`n0!NfVgf}2mB3t}D9@*N;FQ{HZ3Pb%BK6;5#-O|WI( zb6h@qTLU~AbVW#_6?c!?Dj65Now7*pU{h!1+eCV^KCuPAGs28~3k@ueL5+u|Z-7}t z9|lskE`4B7W8wMs@xJa{#bsCGDFoRSNSnmNYB&U7 zVGKWe%+kFB6kb)e;TyHfqtU6~fRg)f|>=5(N36)0+C z`hv65J<$B}WUc!wFAb^QtY31yNleq4dzmG`1wHTj=c*=hay9iD071Hc?oYoUk|M*_ zU1GihAMBsM@5rUJ(qS?9ZYJ6@{bNqJ`2Mr+5#hKf?doa?F|+^IR!8lq9)wS3tF_9n zW_?hm)G(M+MYb?V9YoX^_mu5h-LP^TL^!Q9Z7|@sO(rg_4+@=PdI)WL(B7`!K^ND- z-uIuVDCVEdH_C@c71YGYT^_Scf_dhB8Z2Xy6vGtBSlYud9vggOqv^L~F{BraSE_t} zIkP+Hp2&nH^-MNEs}^`oMLy11`PQW$T|K(`Bu*(f@)mv1-qY(_YG&J2M2<7k;;RK~ zL{Fqj9yCz8(S{}@c)S!65aF<=&eLI{hAMErCx&>i7OeDN>okvegO87OaG{Jmi<|}D zaT@b|0X{d@OIJ7zvT>r+eTzgLq~|Dpu)Z&db-P4z*`M$UL51lf>FLlq6rfG)%doyp z)3kk_YIM!03eQ8Vu_2fg{+osaEJPtJ-s36R+5_AEG12`NG)IQ#TF9c@$99%0iye+ zUzZ57=m2)$D(5Nx!n)=5Au&O0BBgwxIBaeI(mro$#&UGCr<;C{UjJVAbVi%|+WP(a zL$U@TYCxJ=1{Z~}rnW;7UVb7+ZnzgmrogDxhjLGo>c~MiJAWs&&;AGg@%U?Y^0JhL ze(x6Z74JG6FlOFK(T}SXQfhr}RIFl@QXKnIcXYF)5|V~e-}suHILKT-k|<*~Ij|VF zC;t@=uj=hot~*!C68G8hTA%8SzOfETOXQ|3FSaIEjvBJp(A)7SWUi5!Eu#yWgY+;n zlm<$+UDou*V+246_o#V4kMdto8hF%%Lki#zPh}KYXmMf?hrN0;>Mv%`@{0Qn`Ujp) z=lZe+13>^Q!9zT);H<(#bIeRWz%#*}sgUX9P|9($kexOyKIOc`dLux}c$7It4u|Rl z6SSkY*V~g_B-hMPo_ak>>z@AVQ(_N)VY2kB3IZ0G(iDUYw+2d7W^~(Jq}KY=JnWS( z#rzEa&0uNhJ>QE8iiyz;n2H|SV#Og+wEZv=f2%1ELX!SX-(d3tEj$5$1}70Mp<&eI zCkfbByL7af=qQE@5vDVxx1}FSGt_a1DoE3SDI+G)mBAna)KBG4p8Epxl9QZ4BfdAN zFnF|Y(umr;gRgG6NLQ$?ZWgllEeeq~z^ZS7L?<(~O&$5|y)Al^iMKy}&W+eMm1W z7EMU)u^ke(A1#XCV>CZ71}P}0x)4wtHO8#JRG3MA-6g=`ZM!FcICCZ{IEw8Dm2&LQ z1|r)BUG^0GzI6f946RrBlfB1Vs)~8toZf~7)+G;pv&XiUO(%5bm)pl=p>nV^o*;&T z;}@oZSibzto$arQgfkp|z4Z($P>dTXE{4O=vY0!)kDO* zGF8a4wq#VaFpLfK!iELy@?-SeRrdz%F*}hjKcA*y@mj~VD3!it9lhRhX}5YOaR9$} z3mS%$2Be7{l(+MVx3 z(4?h;P!jnRmX9J9sYN#7i=iyj_5q7n#X(!cdqI2lnr8T$IfOW<_v`eB!d9xY1P=2q&WtOXY=D9QYteP)De?S4}FK6#6Ma z=E*V+#s8>L;8aVroK^6iKo=MH{4yEZ_>N-N z`(|;aOATba1^asjxlILk<4}f~`39dBFlxj>Dw(hMYKPO3EEt1@S`1lxFNM+J@uB7T zZ8WKjz7HF1-5&2=l=fqF-*@>n5J}jIxdDwpT?oKM3s8Nr`x8JnN-kCE?~aM1H!hAE z%%w(3kHfGwMnMmNj(SU(w42OrC-euI>Dsjk&jz3ts}WHqmMpzQ3vZrsXrZ|}+MHA7 z068obeXZTsO*6RS@o3x80E4ok``rV^Y3hr&C1;|ZZ0|*EKO`$lECUYG2gVFtUTw)R z4Um<0ZzlON`zTdvVdL#KFoMFQX*a5wM0Czp%wTtfK4Sjs)P**RW&?lP$(<}q%r68Z zS53Y!d@&~ne9O)A^tNrXHhXBkj~$8j%pT1%%mypa9AW5E&s9)rjF4@O3ytH{0z6riz|@< zB~UPh*wRFg2^7EbQrHf0y?E~dHlkOxof_a?M{LqQ^C!i2dawHTPYUE=X@2(3<=OOxs8qn_(y>pU>u^}3y&df{JarR0@VJn0f+U%UiF=$Wyq zQvnVHESil@d|8&R<%}uidGh7@u^(%?$#|&J$pvFC-n8&A>utA=n3#)yMkz+qnG3wd zP7xCnF|$9Dif@N~L)Vde3hW8W!UY0BgT2v(wzp;tlLmyk2%N|0jfG$%<;A&IVrOI< z!L)o>j>;dFaqA3pL}b-Je(bB@VJ4%!JeX@3x!i{yIeIso^=n?fDX`3bU=eG7sTc%g%ye8$v8P@yKE^XD=NYxTb zbf!Mk=h|otpqjFaA-vs5YOF-*GwWPc7VbaOW&stlANnCN8iftFMMrUdYNJ_Bnn5Vt zxfz@Ah|+4&P;reZxp;MmEI7C|FOv8NKUm8njF7Wb6Gi7DeODLl&G~}G4be&*Hi0Qw z5}77vL0P+7-B%UL@3n1&JPxW^d@vVwp?u#gVcJqY9#@-3X{ok#UfW3<1fb%FT`|)V~ggq z(3AUoUS-;7)^hCjdT0Kf{i}h)mBg4qhtHHBti=~h^n^OTH5U*XMgDLIR@sre`AaB$ zg)IGBET_4??m@cx&c~bA80O7B8CHR7(LX7%HThkeC*@vi{-pL%e)yXp!B2InafbDF zjPXf1mko3h59{lT6EEbxKO1Z5GF71)WwowO6kY|6tjSVSWdQ}NsK2x{>i|MKZK8%Q zfu&_0D;CO-Jg0#YmyfctyJ!mRJp)e#@O0mYdp|8x;G1%OZQ3Q847YWTyy|%^cpA;m zze0(5p{tMu^lDkpe?HynyO?a1$_LJl2L&mpeKu%8YvgRNr=%2z${%WThHG=vrWY@4 zsA`OP#O&)TetZ>s%h!=+CE15lOOls&nvC~$Qz0Ph7tHiP;O$i|eDwpT{cp>+)0-|; zY$|bB+Gbel>5aRN3>c0x)4U=|X+z+{ zn*_p*EQoquRL+=+p;=lm`d71&1NqBz&_ph)MXu(Nv6&XE7(RsS)^MGj5Q?Fwude-(sq zjJ>aOq!7!EN>@(fK7EE#;i_BGvli`5U;r!YA{JRodLBc6-`n8K+Fjgwb%sX;j=qHQ z7&Tr!)!{HXoO<2BQrV9Sw?JRaLXV8HrsNevvnf>Y-6|{T!pYLl7jp$-nEE z#X!4G4L#K0qG_4Z;Cj6=;b|Be$hi4JvMH!-voxqx^@8cXp`B??eFBz2lLD8RRaRGh zn7kUfy!YV~p(R|p7iC1Rdgt$_24i0cd-S8HpG|`@my70g^y`gu%#Tf_L21-k?sRRZHK&at(*ED0P8iw{7?R$9~OF$Ko;Iu5)ur5<->x!m93Eb zFYpIx60s=Wxxw=`$aS-O&dCO_9?b1yKiPCQmSQb>T)963`*U+Ydj5kI(B(B?HNP8r z*bfSBpSu)w(Z3j7HQoRjUG(+d=IaE~tv}y14zHHs|0UcN52fT8V_<@2ep_ee{QgZG zmgp8iv4V{k;~8@I%M3<#B;2R>Ef(Gg_cQM7%}0s*^)SK6!Ym+~P^58*wnwV1BW@eG z4sZLqsUvBbFsr#8u7S1r4teQ;t)Y@jnn_m5jS$CsW1um!p&PqAcc8!zyiXHVta9QC zY~wCwCF0U%xiQPD_INKtTb;A|Zf29(mu9NI;E zc-e>*1%(LSXB`g}kd`#}O;veb<(sk~RWL|f3ljxCnEZDdNSTDV6#Td({6l&y4IjKF z^}lIUq*ZUqgTPumD)RrCN{M^jhY>E~1pn|KOZ5((%F)G|*ZQ|r4zIbrEiV%42hJV8 z3xS)=!X1+=olbdGJ=yZil?oXLct8FM{(6ikLL3E%=q#O6(H$p~gQu6T8N!plf!96| z&Q3=`L~>U0zZh;z(pGR2^S^{#PrPxTRHD1RQOON&f)Siaf`GLj#UOk&(|@0?zm;Sx ztsGt8=29-MZs5CSf1l1jNFtNt5rFNZxJPvkNu~2}7*9468TWm>nN9TP&^!;J{-h)_ z7WsHH9|F%I`Pb!>KAS3jQWKfGivTVkMJLO-HUGM_a4UQ_%RgL6WZvrW+Z4ujZn;y@ zz9$=oO!7qVTaQAA^BhX&ZxS*|5dj803M=k&2%QrXda`-Q#IoZL6E(g+tN!6CA!CP* zCpWtCujIea)ENl0liwVfj)Nc<9mV%+e@=d`haoZ*`B7+PNjEbXBkv=B+Pi^~L#EO$D$ZqTiD8f<5$eyb54-(=3 zh)6i8i|jp(@OnRrY5B8t|LFXFQVQ895n*P16cEKTrT*~yLH6Z4e*bZ5otpRDri&+A zfNbK1D5@O=sm`fN=WzWyse!za5n%^+6dHPGX#8DyIK>?9qyX}2XvBWVqbP%%D)7$= z=#$WulZlZR<{m#gU7lwqK4WS1Ne$#_P{b17qe$~UOXCl>5b|6WVh;5vVnR<%d+Lnp z$uEmML38}U4vaW8>shm6CzB(Wei3s#NAWE3)a2)z@i{4jTn;;aQS)O@l{rUM`J@K& l00vQ5JBs~;vo!vr%%-k{2_Fq1Mn4QF81S)AQ99zk{{c4yR+0b! literal 0 HcmV?d00001 diff --git a/examples/realworld-app/gradle/wrapper/gradle-wrapper.properties b/examples/realworld-app/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..1af9e0930 --- /dev/null +++ b/examples/realworld-app/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/examples/realworld-app/gradlew b/examples/realworld-app/gradlew new file mode 100755 index 000000000..1aa94a426 --- /dev/null +++ b/examples/realworld-app/gradlew @@ -0,0 +1,249 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed 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 +# +# https://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. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/examples/realworld-app/gradlew.bat b/examples/realworld-app/gradlew.bat new file mode 100644 index 000000000..93e3f59f1 --- /dev/null +++ b/examples/realworld-app/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/examples/realworld-app/rw-database/build.gradle b/examples/realworld-app/rw-database/build.gradle new file mode 100644 index 000000000..5fc84db67 --- /dev/null +++ b/examples/realworld-app/rw-database/build.gradle @@ -0,0 +1,45 @@ +plugins { + id 'java' + id 'org.springframework.boot' version '3.2.1' + id 'io.spring.dependency-management' version '1.1.4' +} + +group = 'realworldapp' +version = '0.0.1-SNAPSHOT' + +java { + sourceCompatibility = '21' +} + +repositories { + mavenCentral() +} + + +dependencies { + // Spring + implementation('org.springframework.boot:spring-boot-starter:3.2.0') + implementation('org.springframework.boot:spring-boot-starter-validation:3.2.0') + + // Elastic + implementation('co.elastic.clients:elasticsearch-java:8.11.4') + implementation('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.16.0') + + // JWT creation + parsing + implementation('javax.xml.bind:jaxb-api:2.3.1') + implementation('io.jsonwebtoken:jjwt:0.9.1') + + // Slug + implementation('com.github.slugify:slugify:3.0.6') + + // MIT + // https://www.testcontainers.org/ + testImplementation('org.testcontainers:testcontainers:1.17.3') + testImplementation('org.testcontainers:elasticsearch:1.17.3') + + testImplementation('org.springframework.boot:spring-boot-starter-test:3.2.0') +} + +tasks.named('test') { + useJUnitPlatform() +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/constant/Constants.java b/examples/realworld-app/rw-database/src/main/java/realworld/constant/Constants.java new file mode 100644 index 000000000..7149f39ad --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/constant/Constants.java @@ -0,0 +1,27 @@ +/* + * 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. + */ + +package realworld.constant; + +public class Constants { + + public static final String ARTICLES = "articles"; + public static final String USERS = "users"; + public static final String COMMENTS = "comments"; +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/db/ArticleService.java b/examples/realworld-app/rw-database/src/main/java/realworld/db/ArticleService.java new file mode 100644 index 000000000..083366e7e --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/db/ArticleService.java @@ -0,0 +1,461 @@ +/* + * 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. + */ + +package realworld.db; + +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch._types.Refresh; +import co.elastic.clients.elasticsearch._types.SortOrder; +import co.elastic.clients.elasticsearch._types.aggregations.Aggregation; +import co.elastic.clients.elasticsearch._types.query_dsl.MatchQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.MatchQuery.Builder; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.elasticsearch._types.query_dsl.TermsQueryField; +import co.elastic.clients.elasticsearch.core.DeleteByQueryResponse; +import co.elastic.clients.elasticsearch.core.IndexRequest; +import co.elastic.clients.elasticsearch.core.SearchResponse; +import co.elastic.clients.elasticsearch.core.UpdateResponse; +import co.elastic.clients.elasticsearch.core.search.Hit; +import co.elastic.clients.util.NamedValue; +import com.github.slugify.Slugify; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import realworld.document.article.*; +import realworld.document.exception.ResourceAlreadyExistsException; +import realworld.document.exception.ResourceNotFoundException; +import realworld.document.exception.UnauthorizedException; +import realworld.document.user.Author; +import realworld.document.user.User; +import realworld.utils.ArticleIdPair; + +import java.io.IOException; +import java.time.Instant; +import java.util.*; +import java.util.stream.Collectors; + +import static realworld.constant.Constants.ARTICLES; +import static realworld.constant.Constants.COMMENTS; +import static realworld.utils.Utility.*; + +@Service +public class ArticleService { + + private final ElasticsearchClient esClient; + + @Autowired + public ArticleService(ElasticsearchClient esClient) { + this.esClient = esClient; + } + + /** + * Creates a new article and saves it into the articles index. + *

+ * The + * refresh + * parameter, which controls when the changes to the index will become visible for search operations, + * is set + * as "wait_for", + * meaning that the indexing request will return after the next refresh. Usually this is not recommended, + * as it slows down the application, but in this case it's required since the frontends will try to + * retrieve + * the article immediately after its creation. + * + * @return the new article. + */ + public Article newArticle(ArticleCreationDTO articleDTO, Author author) throws IOException { + + // Checking if slug would be unique + String slug = generateAndCheckSlug(articleDTO.title()); + + Instant now = Instant.now(); + Article article = new Article(articleDTO, slug, now, now, author); + + IndexRequest

articleReq = IndexRequest.of((id -> id + .index(ARTICLES) + .refresh(Refresh.WaitFor) + .document(article))); + + esClient.index(articleReq); + + return article; + } + + /** + * Simple term query (see {@link UserService#findUserByUsername(String)}) to find an article + * given its unique slug. + * + * @return a pair containing the article and its id, + */ + public ArticleIdPair findArticleBySlug(String slug) throws IOException { + + SearchResponse
getArticle = esClient.search(ss -> ss + .index(ARTICLES) + .query(q -> q + .term(t -> t + .field("slug.keyword") + .value(slug)) + ) + , Article.class); + + if (getArticle.hits().hits().isEmpty()) { + return null; + } + return new ArticleIdPair(extractSource(getArticle), extractId(getArticle)); + } + + /** + * See {@link ArticleService#updateArticle(String, Article)} (String, User)} + *

+ * Updates an article, checking if the author is the same and if the new title's slug would be unique. + * + * @return the updated user. + */ + public ArticleDTO updateArticle(ArticleUpdateDTO article, String slug, Author author) throws IOException { + + // Getting original article from slug + ArticleIdPair articlePair = Optional.ofNullable(findArticleBySlug(slug)) + .orElseThrow(() -> new ResourceNotFoundException("Article not found")); + String id = articlePair.id(); + Article oldArticle = articlePair.article(); + + // Checking if author is the same + if (!oldArticle.author().username().equals(author.username())) { + throw new UnauthorizedException("Cannot modify article from another author"); + } + + String newSlug = slug; + // If title is being changed, checking if new slug would be unique + if (!isNullOrBlank(article.title()) && !article.title().equals(oldArticle.title())) { + newSlug = generateAndCheckSlug(article.title()); + } + + Instant updatedAt = Instant.now(); + + // Null/blank check for every optional field + Article updatedArticle = new Article(newSlug, + isNullOrBlank(article.title()) ? oldArticle.title() : article.title(), + isNullOrBlank(article.description()) ? oldArticle.description() : article.description(), + isNullOrBlank(article.body()) ? oldArticle.body() : article.body(), + oldArticle.tagList(), oldArticle.createdAt(), + updatedAt, oldArticle.favorited(), oldArticle.favoritesCount(), + oldArticle.favoritedBy(), oldArticle.author()); + + updateArticle(id, updatedArticle); + return new ArticleDTO(updatedArticle); + } + + /** + * Updates an article, given the updated object and its unique id. + */ + private void updateArticle(String id, Article updatedArticle) throws IOException { + UpdateResponse

upArticle = esClient.update(up -> up + .index(ARTICLES) + .id(id) + .doc(updatedArticle) + , Article.class); + if (!upArticle.result().name().equals("Updated")) { + throw new RuntimeException("Article update failed"); + } + } + + /** + * Deletes an article, using the slug to identify it, and all of its comments. + *

+ * Delete queries are very similar to search queries, + * here a term query (see {@link UserService#findUserByUsername(String)}) is used to match the + * correct article. + *

+ * The refresh value (see {@link ArticleService#newArticle(ArticleCreationDTO, Author)}) is + * set as "wait_for" for both delete queries, since the frontend will perform a get operation + * immediately after. The syntax for setting it as "wait_for" is different from the index operation, + * but the result is the same. + */ + public void deleteArticle(String slug, Author author) throws IOException { + + // Getting article from slug + ArticleIdPair articlePair = Optional.ofNullable(findArticleBySlug(slug)) + .orElseThrow(() -> new ResourceNotFoundException("Article not found")); + Article article = articlePair.article(); + + // Checking if author is the same + if (!article.author().username().equals(author.username())) { + throw new UnauthorizedException("Cannot delete article from another author"); + } + + DeleteByQueryResponse deleteArticle = esClient.deleteByQuery(d -> d + .index(ARTICLES) + .waitForCompletion(true) + .refresh(true) + .query(q -> q + .term(t -> t + .field("slug.keyword") + .value(slug)) + )); + if (deleteArticle.deleted() < 1) { + throw new RuntimeException("Failed to delete article"); + } + + // Delete every comment to the article, using a term query + // that will match all comments with the same articleSlug + DeleteByQueryResponse deleteCommentsByArticle = esClient.deleteByQuery(d -> d + .index(COMMENTS) + .waitForCompletion(true) + .refresh(true) + .query(q -> q + .term(t -> t + .field("articleSlug.keyword") + .value(slug)) + )); + } + + /** + * Adds the requesting user to the article's favoritedBy list. + * + * @return the target article. + */ + public Article markArticleAsFavorite(String slug, String username) throws IOException { + ArticleIdPair articlePair = Optional.ofNullable(findArticleBySlug(slug)) + .orElseThrow(() -> new ResourceNotFoundException("Article not found")); + String id = articlePair.id(); + Article article = articlePair.article(); + + // Checking if article was already marked as favorite + if (article.favoritedBy().contains(username)) { + return article; + } + + article.favoritedBy().add(username); + Article updatedArticle = new Article(article.slug(), article.title(), + article.description(), + article.body(), article.tagList(), article.createdAt(), article.updatedAt(), + true, article.favoritesCount() + 1, article.favoritedBy(), article.author()); + + updateArticle(id, updatedArticle); + return updatedArticle; + } + + /** + * Removes the requesting user from the article's favoritedBy list. + * + * @return the target article. + */ + public Article removeArticleFromFavorite(String slug, String username) throws IOException { + ArticleIdPair articlePair = Optional.ofNullable(findArticleBySlug(slug)) + .orElseThrow(() -> new ResourceNotFoundException("Article not found")); + String id = articlePair.id(); + Article article = articlePair.article(); + + // Checking if article was not marked as favorite before + if (!article.favoritedBy().contains(username)) { + return article; + } + + article.favoritedBy().remove(username); + int favoriteCount = article.favoritesCount() - 1; + boolean favorited = article.favorited(); + if (favoriteCount == 0) { + favorited = false; + } + + Article updatedArticle = new Article(article.slug(), article.title(), + article.description(), + article.body(), article.tagList(), article.createdAt(), article.updatedAt(), favorited, + favoriteCount, article.favoritedBy(), article.author()); + + updateArticle(id, updatedArticle); + return updatedArticle; + } + + /** + * Builds a search query using the filters the user is passing to retrieve all the matching articles. + *

+ * Since all the parameters are optional, the query must be build conditionally, adding one parameter + * at a time to the "conditions" array. + * Using a + * match + * query instead of a + * term + * query to allow the use of a single word for searching phrases, + * for example, filtering for articles with the "cat" tag will also return articles with the "cat food" + * tag. + *

+ * The articles are then sorted by the time they were last updated. + * + * @return a list containing all articles, filtered. + */ + public ArticlesDTO findArticles(String tag, String author, String favorited, Integer limit, + Integer offset, + Optional user) throws IOException { + List conditions = new ArrayList<>(); + + if (!isNullOrBlank(tag)) { + conditions.add(new Builder() + .field("tagList") + .query(tag).build()._toQuery()); + } + if (!isNullOrBlank(author)) { + conditions.add(new Builder() + .field("author.username") + .query(author).build()._toQuery()); + } + // Alternative equivalent syntax to build the match query without using the Builder explicitly + if (!isNullOrBlank(favorited)) { + conditions.add(MatchQuery.of(mq -> mq + .field("favoritedBy") + .query(favorited)) + ._toQuery()); + } + + Query query = new Query.Builder().bool(b -> b.should(conditions)).build(); + + SearchResponse

getArticle = esClient.search(ss -> ss + .index(ARTICLES) + .size(limit) // how many results to return + .from(offset) // starting point + .query(query) + .sort(srt -> srt + .field(fld -> fld + .field("updatedAt") + .order(SortOrder.Desc))) // last updated first + , Article.class); + + // Making the output adhere to the API specification + return new ArticlesDTO(getArticle.hits().hits() + .stream() + .map(Hit::source) + // If tag specified, put that tag first in the array + .peek(a -> { + if (!isNullOrBlank(tag) && a.tagList().contains(tag)) { + Collections.swap(a.tagList(), a.tagList().indexOf(tag), 0); + } + }) + .map(ArticleForListDTO::new) + // If auth was provided, filling the "following" field of "Author" accordingly + .map(a -> { + if (user.isPresent()) { + boolean following = user.get().following().contains(a.author().username()); + return new ArticleForListDTO(a, new Author(a.author().username(), + a.author().email(), a.author().bio(), following)); + } + return a; + }) + .collect(Collectors.toList()), getArticle.hits().hits().size()); + } + + /** + * Searches the article index for articles created by multiple users, + * using a + * terms query, + * which works like a + * term query + * that can match multiple values for the same field. + *

+ * The fields of the nested object "author" are easily accessible using the dot notation, for example + * "author.username". + *

+ * The articles are sorted by the time they were last updated. + * + * @return a list of articles from followed users. + */ + public ArticlesDTO generateArticleFeed(User user) throws IOException { + // Preparing authors filter from user data + List authorsFilter = user.following().stream() + .map(FieldValue::of).toList(); + + SearchResponse

articlesByAuthors = esClient.search(ss -> ss + .index(ARTICLES) + .query(q -> q + .bool(b -> b + .filter(f -> f + .terms(t -> t + .field("author.username.keyword") + .terms(TermsQueryField.of(tqf -> tqf.value(authorsFilter))) + )))) + .sort(srt -> srt + .field(fld -> fld + .field("updatedAt") + .order(SortOrder.Desc))) + , Article.class); + + return new ArticlesDTO(articlesByAuthors.hits().hits() + .stream() + .map(Hit::source) + .map(ArticleForListDTO::new) + // Filling the "following" field of "Author" accordingly + .map(a -> { + boolean following = user.following().contains(a.author().username()); + return new ArticleForListDTO(a, new Author(a.author().username(), + a.author().email(), a.author().bio(), following)); + }) + .collect(Collectors.toList()), articlesByAuthors.hits().hits().size()); + } + + + /** + * Searches the article index to retrieve a list of each distinct tag, using an + * aggregation , + * more specifically a + * terms aggregation + *

+ * The resulting list of tags is sorted by document count (how many times they appear in different + * documents). + * + * @return a list of all tags. + */ + public TagsDTO findAllTags() throws IOException { + + // If alphabetical order is preferred, use "_key" instead + NamedValue sort = new NamedValue<>("_count", SortOrder.Desc); + + SearchResponse aggregateTags = esClient.search(s -> s + .index(ARTICLES) + .size(0) // this is needed avoid returning the search result, which is not necessary here + .aggregations("tags", agg -> agg + .terms(ter -> ter + .field("tagList.keyword") + .order(sort)) + ), + Aggregation.class + ); + + return new TagsDTO(aggregateTags.aggregations().get("tags") + .sterms().buckets() + .array().stream() + .map(st -> st.key().stringValue()) + .collect(Collectors.toList()) + ); + } + + /** + * Uses the Slugify library to generate the slug of the input string, then checks its uniqueness. + * + * @return the "slugified" string. + */ + private String generateAndCheckSlug(String title) throws IOException { + String slug = Slugify.builder().build().slugify(title); + if (Objects.nonNull(findArticleBySlug(slug))) { + throw new ResourceAlreadyExistsException("Article slug already exists, please change the title"); + } + return slug; + } + +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/db/CommentService.java b/examples/realworld-app/rw-database/src/main/java/realworld/db/CommentService.java new file mode 100644 index 000000000..24b87b8da --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/db/CommentService.java @@ -0,0 +1,145 @@ +/* + * 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. + */ + +package realworld.db; + +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.elasticsearch._types.Refresh; +import co.elastic.clients.elasticsearch.core.DeleteByQueryResponse; +import co.elastic.clients.elasticsearch.core.IndexRequest; +import co.elastic.clients.elasticsearch.core.SearchResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import realworld.document.article.ArticleCreationDTO; +import realworld.document.comment.Comment; +import realworld.document.comment.CommentCreationDTO; +import realworld.document.comment.CommentForListDTO; +import realworld.document.comment.CommentsDTO; +import realworld.document.user.Author; +import realworld.document.user.RegisterDTO; +import realworld.document.user.User; + +import java.io.IOException; +import java.security.SecureRandom; +import java.time.Instant; +import java.util.Optional; +import java.util.stream.Collectors; + +import static realworld.constant.Constants.COMMENTS; + +@Service +public class CommentService { + + private final ElasticsearchClient esClient; + + @Autowired + public CommentService(ElasticsearchClient esClient) { + this.esClient = esClient; + } + + /** + * Creates a new comment and saves it into the comment index. + * The refresh value is specified for the same reason explained in + * {@link ArticleService#newArticle(ArticleCreationDTO, Author)} + * + * @return the newly created comment. + */ + public Comment newComment(CommentCreationDTO commentDTO, String slug, User user) throws IOException { + // assuming you cannot follow yourself + Author commentAuthor = new Author(user, false); + Instant now = Instant.now(); + + // pre-generating id since it's a field in the comment class + Long commentId = Long.valueOf(String.valueOf(new SecureRandom().nextLong()).substring(0, 15)); + Comment comment = new Comment(commentId, now, now, commentDTO.body(), commentAuthor, + slug); + + IndexRequest commentReq = IndexRequest.of((id -> id + .index(COMMENTS) + .refresh(Refresh.WaitFor) + .document(comment))); + + + esClient.index(commentReq); + + return comment; + } + + /** + * Deletes a specific comment making sure that the user performing the operation is the author of the + * comment itself. + *

+ * A boolean query similar to the one used in {@link UserService#newUser(RegisterDTO)} is used, + * matching both the comment id and the author's username, with a difference: here "must" is used + * instead of "should", meaning that the documents must match both conditions at the same time. + * + * @return The authenticated user. + */ + public void deleteComment(String commentId, String username) throws IOException { + + DeleteByQueryResponse deleteComment = esClient.deleteByQuery(ss -> ss + .index(COMMENTS) + .waitForCompletion(true) + .refresh(true) + .query(q -> q + .bool(b -> b + .must(m -> m + .term(t -> t + .field("id") + .value(commentId)) + ).must(m -> m + .term(t -> t + .field("author.username.keyword") + .value(username)))) + )); + if (deleteComment.deleted() < 1) { + throw new RuntimeException("Failed to delete comment"); + } + } + + /** + * Retrieves all comments with the same articleSlug value using a term query + * (see {@link UserService#findUserByUsername(String)}). + * + * @return a list of comment belonging to a single article. + */ + public CommentsDTO findAllCommentsByArticle(String slug, Optional user) throws IOException { + SearchResponse commentsByArticle = esClient.search(s -> s + .index(COMMENTS) + .query(q -> q + .term(t -> t + .field("articleSlug.keyword") + .value(slug)) + ) + , Comment.class); + + return new CommentsDTO(commentsByArticle.hits().hits().stream() + .map(x -> new CommentForListDTO(x.source())) + .map(c -> { + if (user.isPresent()) { + boolean following = user.get().following().contains(c.author().username()); + return new CommentForListDTO(c.id(), c.createdAt(), c.updatedAt(), c.body(), + new Author(c.author().username(), c.author().email(), c.author().bio(), + following)); + } + return c; + }) + .collect(Collectors.toList())); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/db/ElasticClient.java b/examples/realworld-app/rw-database/src/main/java/realworld/db/ElasticClient.java new file mode 100644 index 000000000..e9270c701 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/db/ElasticClient.java @@ -0,0 +1,130 @@ +/* + * 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. + */ + +package realworld.db; + +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.json.jackson.JacksonJsonpMapper; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.endpoints.BooleanResponse; +import co.elastic.clients.transport.rest_client.RestClientTransport; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.json.JsonMapper; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.apache.http.Header; +import org.apache.http.HttpHost; +import org.apache.http.message.BasicHeader; +import org.elasticsearch.client.RestClient; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import java.io.IOException; + +import static realworld.constant.Constants.*; + +@Configuration +public class ElasticClient { + + @Value("${elasticsearch.server.url}") + private String serverUrl; + + @Value("${elasticsearch.api.key}") + private String apiKey; + + /** + * Creates the ElasticsearchClient and the indexes needed + * + * @return a configured ElasticsearchClient + */ + @Bean + public ElasticsearchClient elasticRestClient() throws IOException { + + // Create the low-level client + RestClient restClient = RestClient + .builder(HttpHost.create(serverUrl)) + .setDefaultHeaders(new Header[]{ + new BasicHeader("Authorization", "ApiKey " + apiKey) + }) + .build(); + + // The transport layer of the Elasticsearch client requires a json object mapper to + // define how to serialize/deserialize java objects. The mapper can be customized by adding + // modules, for example since the Article and Comment object both have Instant fields, the + // JavaTimeModule is added to provide support for java 8 Time classes, which the mapper itself does + // not support. + ObjectMapper mapper = JsonMapper.builder() + .addModule(new JavaTimeModule()) + .build(); + + // Create the transport with the Jackson mapper + ElasticsearchTransport transport = new RestClientTransport( + restClient, new JacksonJsonpMapper(mapper)); + + // Create the API client + ElasticsearchClient esClient = new ElasticsearchClient(transport); + + // Creating the indexes + createSimpleIndex(esClient, USERS); + createIndexWithDateMapping(esClient, ARTICLES); + createIndexWithDateMapping(esClient, COMMENTS); + + return esClient; + } + + /** + * Plain simple + * index + * creation with an + * + * exists check + */ + private void createSimpleIndex(ElasticsearchClient esClient, String index) throws IOException { + BooleanResponse indexRes = esClient.indices().exists(ex -> ex.index(index)); + if (!indexRes.value()) { + esClient.indices().create(c -> c + .index(index)); + } + } + + /** + * If no explicit mapping is defined, elasticsearch will dynamically map types when converting data to + * the json + * format. Adding explicit mapping to the date fields assures that no precision will be lost. More + * information about + * dynamic + * field mapping, more on mapping date + * format + */ + private void createIndexWithDateMapping(ElasticsearchClient esClient, String index) throws IOException { + BooleanResponse indexRes = esClient.indices().exists(ex -> ex.index(index)); + if (!indexRes.value()) { + esClient.indices().create(c -> c + .index(index) + .mappings(m -> m + .properties("createdAt", p -> p + .date(d -> d.format("strict_date_optional_time"))) + .properties("updatedAt", p -> p + .date(d -> d.format("strict_date_optional_time"))))); + + } + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/db/UserService.java b/examples/realworld-app/rw-database/src/main/java/realworld/db/UserService.java new file mode 100644 index 000000000..b35ae4225 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/db/UserService.java @@ -0,0 +1,407 @@ +/* + * 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. + */ + +package realworld.db; + +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.elasticsearch._types.Refresh; +import co.elastic.clients.elasticsearch.core.IndexRequest; +import co.elastic.clients.elasticsearch.core.SearchResponse; +import co.elastic.clients.elasticsearch.core.UpdateResponse; +import co.elastic.clients.elasticsearch.core.search.Hit; +import io.jsonwebtoken.Jwts; +import io.jsonwebtoken.SignatureAlgorithm; +import io.jsonwebtoken.impl.TextCodec; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; +import realworld.document.exception.ResourceAlreadyExistsException; +import realworld.document.exception.ResourceNotFoundException; +import realworld.document.exception.UnauthorizedException; +import realworld.document.user.*; +import realworld.utils.UserIdPair; + +import javax.crypto.SecretKeyFactory; +import javax.crypto.spec.PBEKeySpec; +import java.io.IOException; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.security.spec.InvalidKeySpecException; +import java.security.spec.KeySpec; +import java.time.Instant; +import java.util.*; + +import static realworld.constant.Constants.USERS; +import static realworld.utils.Utility.*; + +@Service +public class UserService { + + private final ElasticsearchClient esClient; + + @Value("${jwt.signing.key}") + private String jwtSigningKey; + + @Autowired + public UserService(ElasticsearchClient esClient) { + this.esClient = esClient; + } + + /** + * Inserts a new User into the "users" index, checking beforehand whether the username and email + * are unique. + *

+ * See {@link UserService#findUserByUsername(String)} for details on how the term query works. + *

+ * Combining multiple term queries into a single + * boolean query with "should" occur + * to match documents fulfilling either conditions to check the uniqueness of the new email and username. + *

+ * When the new user document is created, it is left up to elasticsearch to create a unique + * id field , since there's no user field that is guaranteed not to be updated/modified. + * + * @return The newly registered user. + */ + public User newUser(RegisterDTO user) throws IOException { + + // Checking uniqueness of both email and username + SearchResponse checkUser = esClient.search(ss -> ss + .index(USERS) + .query(q -> q + .bool(b -> b + .should(s -> s + .term(t -> t + .field("email.keyword") + .value(user.email())) + ).should(s -> s + .term(t -> t + .field("username.keyword") + .value(user.username()))))) + , User.class); + + checkUser.hits().hits().stream() + .map(Hit::source) + .filter(x -> x.username().equals(user.username())) + .findFirst() + .ifPresent(x -> { + throw new ResourceAlreadyExistsException("Username already exists"); + }); + + checkUser.hits().hits().stream() + .map(Hit::source) + .filter(x -> x.email().equals(user.email())) + .findFirst() + .ifPresent(x -> { + throw new ResourceAlreadyExistsException("Email already used"); + }); + + // Building user's JWT, with no expiration since it's not requested + String jws = Jwts.builder() + .setIssuer("rw-backend") + .setSubject(user.email()) + .claim("name", user.username()) + .claim("scope", "user") + .setIssuedAt(Date.from(Instant.now())) + .signWith( + SignatureAlgorithm.HS256, + TextCodec.BASE64.decode(jwtSigningKey) + ) + .compact(); + + // Hashing the password, storing the salt with the user + SecureRandom secureRandom = new SecureRandom(); + byte[] salt = new byte[16]; + secureRandom.nextBytes(salt); + String hashedPw = hashUserPw(user.password(), salt); + + User newUser = new User(user.username(), user.email(), + hashedPw, jws, "", "", salt, new ArrayList<>()); + + // Creating the index request + IndexRequest userReq = IndexRequest.of((id -> id + .index(USERS) + .refresh(Refresh.WaitFor) + .document(newUser))); + + // Indexing the request (inserting it into to database) + esClient.index(userReq); + + return newUser; + } + + /** + * Using a simple term query (see {@link UserService#findUserByUsername(String)} for details) + * to find the user using the same unique email as the one provided. The password is then hashed and + * checked after the search. + * + * @return The authenticated user. + */ + public User authenticateUser(LoginDTO login) throws IOException { + + SearchResponse getUser = esClient.search(ss -> ss + .index(USERS) + .query(q -> q + .term(t -> t + .field("email.keyword") + .value(login.email()))) + , User.class); + + + if (getUser.hits().hits().isEmpty()) { + throw new ResourceNotFoundException("Email not found"); + } + + // Check if the hashed password matches the one provided + User user = extractSource(getUser); + String hashedPw = hashUserPw(login.password(), user.salt()); + + if (!hashedPw.equals(user.password())) { + throw new UnauthorizedException("Wrong password"); + } + return user; + } + + /** + * Deserializing and checking the token, then performing a term query + * (see {@link UserService#findUserByUsername(String)} for details) using the token string to retrieve + * the corresponding user. + * + * @return a pair containing the result of the term query, a single user, with its id. + */ + public UserIdPair findUserByToken(String auth) throws IOException { + String token; + try { + token = auth.split(" ")[1]; + Jwts.parser() + .setSigningKey(TextCodec.BASE64.decode(jwtSigningKey)) + .parse(token); + } catch (Exception e) { + throw new UnauthorizedException("Token missing or not recognised"); + } + + SearchResponse getUser = esClient.search(ss -> ss + .index(USERS) + .query(q -> q + .term(t -> t + .field("token.keyword") + .value(token)) + ) + , User.class); + + if (getUser.hits().hits().isEmpty()) { + throw new ResourceNotFoundException("Token not assigned to any user"); + } + return new UserIdPair(extractSource(getUser), extractId(getUser)); + } + + /** + * See {@link UserService#updateUser(String, User)} + *

+ * Updates a user, checking before if the new username or email would be unique. + * + * @return the updated user. + */ + public User updateUser(UserDTO userDTO, String auth) throws IOException { + + UserIdPair userPair = findUserByToken(auth); + User user = userPair.user(); + + // If the username or email are updated, checking uniqueness + if (!isNullOrBlank(userDTO.username()) && !userDTO.username().equals(user.username())) { + UserIdPair newUsernameSearch = findUserByUsername(userDTO.username()); + if (Objects.nonNull(newUsernameSearch)) { + throw new ResourceAlreadyExistsException("Username already exists"); + } + } + + if (!isNullOrBlank(userDTO.email()) && !userDTO.email().equals(user.email())) { + UserIdPair newUsernameSearch = findUserByEmail(userDTO.username()); + if (Objects.nonNull(newUsernameSearch)) { + throw new ResourceAlreadyExistsException("Email already in use"); + } + } + + // Null/blank check for every optional field + User updatedUser = new User(isNullOrBlank(userDTO.username()) ? user.username() : + userDTO.username(), + isNullOrBlank(userDTO.email()) ? user.email() : userDTO.email(), + user.password(), user.token(), + isNullOrBlank(userDTO.bio()) ? user.bio() : userDTO.bio(), + isNullOrBlank(userDTO.image()) ? user.image() : userDTO.image(), + user.salt(), user.following()); + + updateUser(userPair.id(), updatedUser); + return updatedUser; + } + + /** + * Updates a user, given the updated object and its unique id. + */ + private void updateUser(String id, User user) throws IOException { + UpdateResponse upUser = esClient.update(up -> up + .index(USERS) + .id(id) + .doc(user) + , User.class); + if (!upUser.result().name().equals("Updated")) { + throw new RuntimeException("User update failed"); + } + } + + /** + * Retrieves data for the requested user and the asking user to provide profile information. + * + * @return the requested user's profile. + */ + public Profile findUserProfile(String username, String auth) throws IOException { + + UserIdPair targetUserPair = Optional.ofNullable(findUserByUsername(username)) + .orElseThrow(() -> new ResourceNotFoundException("User not found")); + User targetUser = targetUserPair.user(); + + // Checking if the user is followed by who's asking + UserIdPair askingUserPair = findUserByToken(auth); + boolean following = askingUserPair.user().following().contains(targetUser.username()); + + return new Profile(targetUser, following); + } + + /** + * Adds the targed user to the asking user's list of followed profiles. + * + * @return the target user's profile. + */ + public Profile followUser(String username, String auth) throws IOException { + + UserIdPair targetUserPair = Optional.ofNullable(findUserByUsername(username)) + .orElseThrow(() -> new ResourceNotFoundException("User not found")); + User targetUser = targetUserPair.user(); + + UserIdPair askingUserPair = findUserByToken(auth); + User askingUser = askingUserPair.user(); + + if (askingUser.username().equals(targetUser.username())) { + throw new RuntimeException("Cannot follow yourself!"); + } + + // Add followed user to list if not already present + if (!askingUser.following().contains(targetUser.username())) { + askingUser.following().add(targetUser.username()); + + updateUser(askingUserPair.id(), askingUser); + } + + return new Profile(targetUser, true); + } + + /** + * Removes the targed user from the asking user's list of followed profiles. + * + * @return the target user's profile. + */ + public Profile unfollowUser(String username, String auth) throws IOException { + UserIdPair targetUserPair = Optional.ofNullable(findUserByUsername(username)) + .orElseThrow(() -> new ResourceNotFoundException("User not found")); + User targetUser = targetUserPair.user(); + + UserIdPair askingUserPair = findUserByToken(auth); + User askingUser = askingUserPair.user(); + + // Remove followed user to list if not already present + if (askingUser.following().contains(targetUser.username())) { + askingUser.following().remove(targetUser.username()); + + updateUser(askingUserPair.id(), askingUser); + } + + return new Profile(targetUser, false); + } + + /** + * Searches the "users" index for a document containing the exact same username. + *

+ * A + * term query + * means that it will find only results that match character by character. + *

+ * Using the + * keyword + * property of the field allows to use the original value of the string while querying, instead of the + * processed/tokenized value. + * + * @return a pair containing the result of the term query, a single user, with its id. + */ + public UserIdPair findUserByUsername(String username) throws IOException { + // Simple term query to match exactly the username string + SearchResponse getUser = esClient.search(ss -> ss + .index(USERS) + .query(q -> q + .term(t -> t + .field("username.keyword") + .value(username))) + , User.class); + if (getUser.hits().hits().isEmpty()) { + return null; + } + return new UserIdPair(extractSource(getUser), extractId(getUser)); + } + + /** + * Searches the "users" index for a document containing the exact same email. + * See {@link UserService#findUserByUsername(String)} for details. + * + * @return the result of the term query, a single user, with its id. + */ + private UserIdPair findUserByEmail(String email) throws IOException { + // Simple term query to match exactly the email string + SearchResponse getUser = esClient.search(ss -> ss + .index(USERS) + .query(q -> q + .term(t -> t + .field("email.keyword") + .value(email))) + , User.class); + if (getUser.hits().hits().isEmpty()) { + return null; + } + return new UserIdPair(extractSource(getUser), extractId(getUser)); + } + + /** + * Hashes a string using the PBKDF2 method. + * + * @return the hashed string. + */ + private String hashUserPw(String password, byte[] salt) { + + KeySpec keySpec = new PBEKeySpec(password.toCharArray(), salt, 65536, 128); + String hashedPw = null; + try { + SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1"); + byte[] hash = secretKeyFactory.generateSecret(keySpec).getEncoded(); + Base64.Encoder encoder = Base64.getUrlEncoder().withoutPadding(); + hashedPw = encoder.encodeToString(hash); + } catch (NoSuchAlgorithmException | InvalidKeySpecException e) { + throw new RuntimeException(e); + } + return hashedPw; + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/article/Article.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/Article.java new file mode 100644 index 000000000..b06213bb4 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/Article.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package realworld.document.article; + +import com.fasterxml.jackson.annotation.JsonFormat; +import realworld.document.user.Author; + +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +public record Article( + String slug, + String title, + String description, + String body, + List tagList, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant createdAt, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant updatedAt, + boolean favorited, + int favoritesCount, + List favoritedBy, + Author author) { + + public Article(ArticleCreationDTO article, String slug, Instant createdAt, Instant updatedAt, + Author author) { + this(slug, article.title(), article.description(), article.body(), article.tagList(), createdAt, + updatedAt, false, 0, new ArrayList<>(), author); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleCreationDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleCreationDTO.java new file mode 100644 index 000000000..94d23084a --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleCreationDTO.java @@ -0,0 +1,34 @@ +/* + * 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. + */ + +package realworld.document.article; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeName; +import jakarta.validation.constraints.NotNull; + +import java.util.List; + +@JsonTypeName("article") +@JsonTypeInfo(include = As.WRAPPER_OBJECT, use = Id.NAME) +public record ArticleCreationDTO(@NotNull String title, @NotNull String description, @NotNull String body, + List tagList) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleDTO.java new file mode 100644 index 000000000..94796110e --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleDTO.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package realworld.document.article; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeName; +import realworld.document.user.Author; + +import java.time.Instant; +import java.util.List; + +@JsonTypeName("article") +@JsonTypeInfo(include = As.WRAPPER_OBJECT, use = Id.NAME) +public record ArticleDTO( + String slug, + String title, + String description, + String body, + List tagList, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant createdAt, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant updatedAt, + boolean favorited, + int favoritesCount, + Author author) { + + + public ArticleDTO(Article article) { + this(article.slug(), article.title(), article.description(), article.body(), article.tagList(), + article.createdAt(), article.updatedAt(), + article.favorited(), article.favoritesCount(), article.author()); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleForListDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleForListDTO.java new file mode 100644 index 000000000..a602ac426 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleForListDTO.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package realworld.document.article; + +import com.fasterxml.jackson.annotation.JsonFormat; +import realworld.document.user.Author; + +import java.time.Instant; +import java.util.List; + +public record ArticleForListDTO( + String slug, + String title, + String description, + String body, + List tagList, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant createdAt, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant updatedAt, + boolean favorited, + int favoritesCount, + Author author) { + + + public ArticleForListDTO(Article article) { + this(article.slug(), article.title(), article.description(), article.body(), article.tagList(), + article.createdAt(), article.updatedAt(), + article.favorited(), article.favoritesCount(), article.author()); + } + + public ArticleForListDTO(ArticleForListDTO article, Author author) { + this(article.slug(), article.title(), article.description(), article.body(), article.tagList(), + article.createdAt(), article.updatedAt(), article.favorited(), article.favoritesCount(), + author); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleUpdateDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleUpdateDTO.java new file mode 100644 index 000000000..3cbcb0b3e --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticleUpdateDTO.java @@ -0,0 +1,30 @@ +/* + * 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. + */ + +package realworld.document.article; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeName; + +@JsonTypeName("article") +@JsonTypeInfo(include = As.WRAPPER_OBJECT, use = Id.NAME) +public record ArticleUpdateDTO(String title, String description, String body) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticlesDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticlesDTO.java new file mode 100644 index 000000000..46411646c --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/ArticlesDTO.java @@ -0,0 +1,25 @@ +/* + * 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. + */ + +package realworld.document.article; + +import java.util.List; + +public record ArticlesDTO(List articles, int articlesCount) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/article/TagsDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/TagsDTO.java new file mode 100644 index 000000000..72c3edc2b --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/article/TagsDTO.java @@ -0,0 +1,25 @@ +/* + * 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. + */ + +package realworld.document.article; + +import java.util.List; + +public record TagsDTO(List tags) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/Comment.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/Comment.java new file mode 100644 index 000000000..682c1ecd1 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/Comment.java @@ -0,0 +1,36 @@ +/* + * 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. + */ + +package realworld.document.comment; + +import com.fasterxml.jackson.annotation.JsonFormat; +import realworld.document.user.Author; + +import java.time.Instant; + +public record Comment( + Long id, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant createdAt, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant updatedAt, + String body, + Author author, + String articleSlug) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentCreationDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentCreationDTO.java new file mode 100644 index 000000000..0cca6a407 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentCreationDTO.java @@ -0,0 +1,31 @@ +/* + * 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. + */ + +package realworld.document.comment; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeName; +import jakarta.validation.constraints.NotNull; + +@JsonTypeName("comment") +@JsonTypeInfo(include = As.WRAPPER_OBJECT, use = Id.NAME) +public record CommentCreationDTO(@NotNull String body) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentDTO.java new file mode 100644 index 000000000..b18db813e --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentDTO.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package realworld.document.comment; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeName; +import realworld.document.user.Author; + +import java.time.Instant; + +@JsonTypeName("comment") +@JsonTypeInfo(include = As.WRAPPER_OBJECT, use = Id.NAME) +public record CommentDTO( + Long id, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant createdAt, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant updatedAt, + String body, + Author author) { + + public CommentDTO(Comment comment) { + this(comment.id(), comment.createdAt(), + comment.updatedAt(), comment.body(), + comment.author()); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentForListDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentForListDTO.java new file mode 100644 index 000000000..f5111a2fc --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentForListDTO.java @@ -0,0 +1,41 @@ +/* + * 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. + */ + +package realworld.document.comment; + +import com.fasterxml.jackson.annotation.JsonFormat; +import realworld.document.user.Author; + +import java.time.Instant; + +public record CommentForListDTO( + Long id, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant createdAt, + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "UTC") + Instant updatedAt, + String body, + Author author) { + + public CommentForListDTO(Comment comment) { + this(comment.id(), comment.createdAt(), + comment.updatedAt(), comment.body(), + comment.author()); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentsDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentsDTO.java new file mode 100644 index 000000000..80bc5d802 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/comment/CommentsDTO.java @@ -0,0 +1,25 @@ +/* + * 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. + */ + +package realworld.document.comment; + +import java.util.List; + +public record CommentsDTO(List comments) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/ResourceAlreadyExistsException.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/ResourceAlreadyExistsException.java new file mode 100644 index 000000000..ebf0e497f --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/ResourceAlreadyExistsException.java @@ -0,0 +1,27 @@ +/* + * 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. + */ + +package realworld.document.exception; + +public class ResourceAlreadyExistsException extends RuntimeException { + + public ResourceAlreadyExistsException(String message) { + super(message); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/ResourceNotFoundException.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/ResourceNotFoundException.java new file mode 100644 index 000000000..b861cc55e --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/ResourceNotFoundException.java @@ -0,0 +1,27 @@ +/* + * 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. + */ + +package realworld.document.exception; + +public class ResourceNotFoundException extends RuntimeException { + + public ResourceNotFoundException(String message) { + super(message); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/UnauthorizedException.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/UnauthorizedException.java new file mode 100644 index 000000000..d94f896d4 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/exception/UnauthorizedException.java @@ -0,0 +1,27 @@ +/* + * 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. + */ + +package realworld.document.exception; + +public class UnauthorizedException extends RuntimeException { + + public UnauthorizedException(String message) { + super(message); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/user/Author.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/Author.java new file mode 100644 index 000000000..b2bf8afa5 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/Author.java @@ -0,0 +1,27 @@ +/* + * 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. + */ + +package realworld.document.user; + +public record Author(String username, String email, String bio, boolean following) { + + public Author(User user, boolean following) { + this(user.username(), user.email(), user.bio(), following); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/user/LoginDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/LoginDTO.java new file mode 100644 index 000000000..300748b77 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/LoginDTO.java @@ -0,0 +1,29 @@ +/* + * 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. + */ + +package realworld.document.user; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import jakarta.validation.constraints.NotNull; + +@JsonTypeName("user") +@JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = JsonTypeInfo.Id.NAME) +public record LoginDTO(@NotNull String email, @NotNull String password) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/user/Profile.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/Profile.java new file mode 100644 index 000000000..a62704f4a --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/Profile.java @@ -0,0 +1,34 @@ +/* + * 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. + */ + +package realworld.document.user; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeName; + +@JsonTypeName("profile") +@JsonTypeInfo(include = As.WRAPPER_OBJECT, use = Id.NAME) +public record Profile(String username, String image, String bio, boolean following) { + + public Profile(User user, boolean following) { + this(user.username(), user.image(), user.bio(), following); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/user/RegisterDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/RegisterDTO.java new file mode 100644 index 000000000..96cae013b --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/RegisterDTO.java @@ -0,0 +1,29 @@ +/* + * 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. + */ + +package realworld.document.user; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import jakarta.validation.constraints.NotNull; + +@JsonTypeName("user") +@JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = JsonTypeInfo.Id.NAME) +public record RegisterDTO(@NotNull String username, @NotNull String email, @NotNull String password) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/user/User.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/User.java new file mode 100644 index 000000000..bbcb967f7 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/User.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package realworld.document.user; + +import java.util.List; + +public record User( + String username, + String email, + String password, + String token, + String bio, + String image, + byte[] salt, + List following) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/document/user/UserDTO.java b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/UserDTO.java new file mode 100644 index 000000000..92ff08939 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/document/user/UserDTO.java @@ -0,0 +1,39 @@ +/* + * 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. + */ + +package realworld.document.user; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeName; + +@JsonTypeName("user") +@JsonTypeInfo(include = As.WRAPPER_OBJECT, use = Id.NAME) +public record UserDTO( + String username, + String email, + String token, + String bio, + String image) { + + public UserDTO(User user) { + this(user.username(), user.email(), user.token(), user.bio(), user.image()); + } +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/utils/ArticleIdPair.java b/examples/realworld-app/rw-database/src/main/java/realworld/utils/ArticleIdPair.java new file mode 100644 index 000000000..81f4f113d --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/utils/ArticleIdPair.java @@ -0,0 +1,25 @@ +/* + * 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. + */ + +package realworld.utils; + +import realworld.document.article.Article; + +public record ArticleIdPair(Article article, String id) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/utils/UserIdPair.java b/examples/realworld-app/rw-database/src/main/java/realworld/utils/UserIdPair.java new file mode 100644 index 000000000..d8ffb1ecc --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/utils/UserIdPair.java @@ -0,0 +1,25 @@ +/* + * 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. + */ + +package realworld.utils; + +import realworld.document.user.User; + +public record UserIdPair(User user, String id) { +} diff --git a/examples/realworld-app/rw-database/src/main/java/realworld/utils/Utility.java b/examples/realworld-app/rw-database/src/main/java/realworld/utils/Utility.java new file mode 100644 index 000000000..700f85725 --- /dev/null +++ b/examples/realworld-app/rw-database/src/main/java/realworld/utils/Utility.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package realworld.utils; + +import co.elastic.clients.elasticsearch.core.SearchResponse; + +import java.util.Objects; + +public class Utility { + + public static boolean isNullOrBlank(String s) { + return Objects.isNull(s) || s.isBlank(); + } + + /** + * Utility method to be used for single result queries. + * + * @return The document id. + */ + public static String extractId(SearchResponse searchResponse) { + return searchResponse.hits().hits().getFirst().id(); + } + + /** + * Utility method to be used for single result queries. + * + * @return An object of the class that was specified in the query definition. + */ + public static TDocument extractSource(SearchResponse searchResponse) { + return searchResponse.hits().hits().getFirst().source(); + } +} diff --git a/examples/realworld-app/rw-database/src/test/java/realworld/db/ElasticClientTest.java b/examples/realworld-app/rw-database/src/test/java/realworld/db/ElasticClientTest.java new file mode 100644 index 000000000..fb4940ac4 --- /dev/null +++ b/examples/realworld-app/rw-database/src/test/java/realworld/db/ElasticClientTest.java @@ -0,0 +1,113 @@ + +/* + * 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. + */ + +package realworld.db; + +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.json.jackson.JacksonJsonpMapper; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.endpoints.BooleanResponse; +import co.elastic.clients.transport.rest_client.RestClientTransport; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.json.JsonMapper; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.apache.http.HttpHost; +import org.apache.http.auth.AuthScope; +import org.apache.http.auth.UsernamePasswordCredentials; +import org.apache.http.impl.client.BasicCredentialsProvider; +import org.elasticsearch.client.RestClient; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.testcontainers.elasticsearch.ElasticsearchContainer; + +import javax.net.ssl.SSLContext; +import java.io.IOException; +import java.time.Duration; + +import static realworld.constant.Constants.*; + +@Configuration +public class ElasticClientTest { + + @Bean + public ElasticsearchClient elasticRestClient() throws IOException { + // Creating the testcontainer + String image = "docker.elastic.co/elasticsearch/elasticsearch:8.11.4"; + ElasticsearchContainer container = new ElasticsearchContainer(image) + .withEnv("ES_JAVA_OPTS", "-Xms256m -Xmx256m") + .withEnv("path.repo", "/tmp") // for snapshots + .withStartupTimeout(Duration.ofSeconds(30)) + .withPassword("changeme"); + container.start(); + + // Connection settings + int port = container.getMappedPort(9200); + HttpHost host = new HttpHost("localhost", port, "https"); + SSLContext sslContext = container.createSslContextFromCa(); + + BasicCredentialsProvider credsProv = new BasicCredentialsProvider(); + credsProv.setCredentials( + AuthScope.ANY, new UsernamePasswordCredentials("elastic", "changeme") + ); + + // Building the rest client + RestClient restClient = RestClient.builder(host) + .setHttpClientConfigCallback(hc -> hc + .setDefaultCredentialsProvider(credsProv) + .setSSLContext(sslContext) + ) + .build(); + ObjectMapper mapper = JsonMapper.builder() + .addModule(new JavaTimeModule()) + .build(); + ElasticsearchTransport transport = new RestClientTransport(restClient, + new JacksonJsonpMapper(mapper)); + ElasticsearchClient esClient = new ElasticsearchClient(transport); + + // Creating the indexes + createSimpleIndex(esClient, USERS); + createIndexWithDateMapping(esClient, ARTICLES); + createIndexWithDateMapping(esClient, COMMENTS); + + return esClient; + } + + private void createSimpleIndex(ElasticsearchClient esClient, String index) throws IOException { + BooleanResponse indexRes = esClient.indices().exists(ex -> ex.index(index)); + if (!indexRes.value()) { + esClient.indices().create(c -> c + .index(index)); + } + } + + private void createIndexWithDateMapping(ElasticsearchClient esClient, String index) throws IOException { + BooleanResponse indexRes = esClient.indices().exists(ex -> ex.index(index)); + if (!indexRes.value()) { + esClient.indices().create(c -> c + .index(index) + .mappings(m -> m + .properties("createdAt", p -> p + .date(d -> d)) + .properties("updatedAt", p -> p + .date(d -> d)))); + + } + } +} diff --git a/examples/realworld-app/rw-database/src/test/java/realworld/db/UserServiceTest.java b/examples/realworld-app/rw-database/src/test/java/realworld/db/UserServiceTest.java new file mode 100644 index 000000000..dde02c678 --- /dev/null +++ b/examples/realworld-app/rw-database/src/test/java/realworld/db/UserServiceTest.java @@ -0,0 +1,64 @@ + +/* + * 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. + */ + +package realworld.db; + +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.TestPropertySource; +import realworld.document.user.LoginDTO; +import realworld.document.user.RegisterDTO; +import realworld.document.user.User; +import realworld.document.user.UserDTO; + +import java.io.IOException; +import java.util.Objects; + +// This test uses test container, therefore the Docker engine needs to be installed to run it +// The testcontainer will take ~30 seconds to start +@TestPropertySource(locations = "classpath:test.properties") +@SpringBootTest(classes = {UserService.class, UserServiceTest.class, ElasticClientTest.class}) +public class UserServiceTest { + + @Autowired + private UserService service; + + @Test + public void testCreateUpdateUser() throws IOException { + RegisterDTO register = new RegisterDTO("user", "mail", "pw"); + User result = service.newUser(register); + assert (result.username().equals(register.username())); + assert (result.email().equals(register.email())); + assert (Objects.nonNull(result.token())); + String token = "Token " + result.token(); + + LoginDTO login = new LoginDTO("mail", "pw"); + result = service.authenticateUser(login); + assert (result.username().equals(register.username())); + + UserDTO update = new UserDTO("new-user", "mail", "", "bio", "image"); + result = service.updateUser(update, token); + assert (result.username().equals(update.username())); + assert (result.email().equals(update.email())); + assert (result.bio().equals(update.bio())); + assert (result.image().equals(update.image())); + } +} diff --git a/examples/realworld-app/rw-database/src/test/resources/test.properties b/examples/realworld-app/rw-database/src/test/resources/test.properties new file mode 100644 index 000000000..3b3058aed --- /dev/null +++ b/examples/realworld-app/rw-database/src/test/resources/test.properties @@ -0,0 +1,4 @@ +### +# Test properties +### +jwt.signing.key=c3VjaGFteXN0ZXJ5b3Vyc3VwZXJzZWNyZXR3b3c= diff --git a/examples/realworld-app/rw-logo.png b/examples/realworld-app/rw-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..99e5ed76a1ae52b33a94ed96791231bff5cfc98c GIT binary patch literal 59699 zcmeGEWl)?=w+0Fi46YMMg3I9U?tuii0Kwe}?t?>u2Pe2D!AbC-0VcS+JAvTt&KdHC z=h^R%@5ipM&W}^IDXJK_dsg?l*0rR&*AS+xD20hehz0-vFlD4)ssI2e2mk<_GYS&y zFJFvh&R{>nJ=HW_RE*ro9h~gVt!&K5T|6Aj$ju;D<^TX>=1tT*W-A*?;9?2|<$*I2 zr{Xhe72b`DpXK8`i$LNH1gXw-pAjAq(x+GFF6;1NV;W%txF*ld2pYFcUE@`>S5muO z&<05(vYsp<_y4#i2t8P9*w>ysWoszL-*AgGp_IMz>F6;V^qHDukJmlhXW9cB^OOPr zXed^&RcR{73z*p3vKX1#8=J8}Y#m_B1ptIZAr3|+)@Cl`#%2~)cES|<4b2qfR;I!f z8r%wO3JwxxmR8c9PG+i}ifSgF)+YR>6rv(%LJ$F%09!K`BXWqXjh(XqM3~}_TmjhY zhd;AYkpCItVl7Oesh~_QVee!{&c(vT!p8gxV&%p`A%aFO1kuL#(0!W5P+ zE)D{$tnTjaEbg2v_D&Y8?EL)vtZW>t930HB5zNjWb}mK`W;RE3e|Ylm z@P{`GC|g0yY&2h5*_zoo!C!V;#-f4xV^$;u3d!h^oT6zmkN4_LDP1ruf))_;uifYAT@U;j7B{|e*( zgX{m``d=aNzZ(31?D{{r{#OY6uLl1gyZ*lg7uvt&otYi1rgMiCZzaastgyll!C72J z4F&e)jba)K0FVP@UcOL+%9gH)L189-Qm{pXcRD^<*;V@-PpD3Te zmzG|K3p%k<1w1j9q;|)162KS{e2t1qHg4DCYI}Nh*Uy7VG%cI0l6~1i84*`;WVt%p|Dl)Xn zNQ#n2xE-b=IKz{_Cqe`G!2qr&>!gc!s72_N>K;%y@5`~-KXf5f)r7Vg8M7d5Ghe&1NJKu1LIu7#&bR4Q;{S+EskQ_BO_^b2R}upst)@GJ|?58bv4j&yH1vj~`S2CDKPoO$ya4dTw?ATXS5hJR^7^JWiph^JJ2 zv>wqPII&@Hf@(?miY$?>bQN{aX*J!QXE^|kD)47~QDx`+Y$q<#C#+|1e%R?m;!|66 z34fPxO7jO4U>m+D$_*O6+CdMej^VC-Sm_;UwWz9gfE-rfr+nPAJ2niF>SQw8OhgfU zaY)B7!(U9dnE&vVs2v|yEWFwb9<8`As&*~^U~3;ds(kfxhc~fo5zlZxTKsbbzSIa#tlZ--+-EI#XUvd?VUp0-a}a*1kFi`#Y92u;MM-En7$xZt8feztCeP9?Xw?EC;Z0~UCZ%To-Uai8opq#@y^urBe1FMU#h0ndWC=KI<+qsQ$T0hKM2^z z1b^k|`ipf=W>+8};iJ|Edh7lOqEs2v;3x4CCOm>nFNhN{!#)M@#YiKfGK7`G7f=PF zQ6wOUN0f6vk&wfv0$GBCpJ($2@0`V$0RvA#6CtK<)CK-)Q#x^wt}bk3aCB;O9SNp`t-3um}%C z$BQJ*qH@$sglLizOD49WL?Gid7Eo{d=Zmiv;i`=mXCX5^DgCXe!%X%&2+BM;Yjl^zTehVKYh98ZHDj;)b0# zf)7}hG?&=WzE`^qs^L*$Bm4q_yKfVWe&bfsu6Qr1goU#Yz&A~IYa8|thMg|Hv-$FZ z`D1_-=m%`KVZ@s^zWVHlOk;coF&1L!IADRty@p5=`uo9T zv(wy7s3bI9Z@HHog=JL{v3E2EltV2IpO*0skrm7x#(&x+n$_`FfWBRNwbTx3Sz{5I zJPz1*D~iiYXj^Z_(7Cf)$CLOhYP4g6e^@9!KbRj3+F^PmZVk-o^?tqcxK^X?Va$s` z&8HIQqZa@E+CxGCw1?W}5hm}p@SC>rX80NGQS7V+C{uf%Mr69-VW~ zP~2bOoB2ZEaEj^Gjx-9<`SP5XgX?n58f=vL1Rc= z-j)JH0lxU+Q*lyWSa5rYXFEf$)AXrCj$d1P5BwbNCyQ-K{$MmVDX25NQq}*oY(81` z?|k*CsBl{`TF%%dmV_0z??Ix-@@`D0C`96`?kV`bhr8z!!ghRPqYs(9(ti+e>v>RU zhtP!W%^FyCsW4N8e1L6uk3~|rO#f@7GTSu+n3Iq1i)Hl79jxY(m$(=N5;10bw47dl zNNrE=$*UDCjOm^AfM{TAgmm<&CdLiN>nDDK>lX<`m?55V_$Jg2q{={yy;u27She^U zuTa3ViVg4%oDPy9Zx^qye{qrppO_=dC{=bI2G-m>$GH_$?Y#sC?i0vAQd0w#zU|*m z826-Bnhb`sUn8Q>;>YUe(!aC=lw@*#yJK(twD;V^8{2`I?GqmFiqR4yI1t(W?JTc< zuYlT0UPI`hFMP!S!=lOVAxn#n?_x@hKNlNyphL~ikAGdy^%*XFmCoqCu!HjF!p&o? zUmgK$GodG*?oWQXTPx{aYQPUW6fm~q7yD~3$x$CI#KV;U%tJsU>>cp|Isq>ixNU0_ zYHyBXY#p;tT;4BECq9iK9vUW`fVam6f8|MjjAWPOOit9qWTLcc1M#QOM@JwN>1C;#!g zSup;YkK!v_AA%vt@0+(dMJdi^t@lX>x=q{O+oEv#*qbT8Aze`e5kv`O% zUS{EkBT?iz(4fC^+(y0s{sakG&Yt^(t0ka$XG5w`-B1N(*%3(pcUA@(T==W9%@0yh z6so>5E;_ssd3Q{xDkrFCe2xXOLC`G`^p&GC)3ttcZe z4zF#<1r1_vJXJ6@6~7x@cUY?oX&J8>@-FbVUOMu4MPlvhQ%m3OpChx8R{}=z3Q}^S zaKt3ymfSIqRx)M>XJglIREM>iyt*Qag|H}Fy{w8qWe>EsoiW+q78Trz)j!YP`dUZT ziCw5q8unX5QA62J zGa~oq0yQwa;ujKKW#q-!=Fq{%_ql2!(!2K(_`Zr#9}J$0*N)LW`g3@DpufoKF?MsK zcWM9j0HqTu+f?X=0#kI@PLM|C#RzlbW{w35v9o%F5sMf`m`O=`#V>F}h4oG{!II?C zZBP+sRS6yAY&n9U#EcY6ok`?{G3*@R|IkUe#?-)P)X%kpoHDK zpPeq2p}@{S5b6Jbgbkb>om}qFx7pVA26WC#*fUCj6XsVc?AVUmX#ABG|Cl^b2EZOX z!kKnz_>SFHARS_++_ytiEjsoAF+0+mgTWwQBhX`j3o;iM3rltFZ2}S^ ztKBpM*5S+~Um{k3U$UgbqE3?V;i@?kzB6awq>=_1XUMps&iA$w#!UQ`dqm&aLIFZ; z%d1jktCVw$wyDYmI%Kt>ecVoE$B~~TUX$|nG$I}pT;E*EK3;_svE%(L@Y|Oj=7z$7 z18pT=KdLSbQ$0Hcy;vzCHVe2C863V^g3#?;ntb)^DAP$Cj~U{f$M_KoL=gr$vHwT@oVcGlBBDL3wa<4Q-&FgD{0U&~B66u-|^ z@-AYaB=%&)5UQZeWkm<;zWrDCk8B9JE88DB_xMd-oU$65f@y#SwF~jo$Ey*DCM+4; z=S$(44&quZH8TzQ?NH?1l3$_hSO|7GU%CNLQhiU|tNpxQL@OZyq*;A}I;{5xONSDX z<&id2@m{6Y-k`^94ngjs@mJ{H(>=O96)wDNTVK$)g}V7Km8DTh3B4SgmYqB>X0(z4 zpPh<(W>?fo*7V&3WFyEuYG!edA)GM)D5zG!-3q&K%f3`nIw?Y;?Zoaag;sZxQ2Qv1 zq8ZP(lhE@6qzS|x0~$C5G}PN)Z~JR01-+;=IyTMUCo;7Dr;d2v0WVyjqxe7r= z@|eb($ZFbnR0~wPGW-=sD4u|tn+_*t(t_-EBkM`M+j<%ZM3l&FZheZ&)wDPj6425UklwMwh4lDCAzGw5Ai`nvG(dF|L*C2&lWtilFQjR3A z+mbJ0^wjv+J7kyE#ky*2+~#?z6`E5{Mz|X*c0C3`hT>w2jf(2J2<-9pYMKSN`z~OvzdRvp%sy_KFLgXO7_EpjDAe3l;O$GfexrY6Wv=Bq~1=jvIgMk-hh!7df!W&qworM@0{Z%D^y#}K?PM}wj_XGhX3mB1TpTzIqYrXew@&6$s6_a@YwT(~V^8oq*S_@debIO)w7bK6y~HaM<{ zv-IZJCxDkn0f{BnZZ(k5Uwp?mNjZ#vEMJ0A;e@APZXx{nGt;Gme|%)HXS2hefB1eS~WFR@T6kq$f=^iCg zv@+RIdtT9ie9f*uc9xblGf&#GTFOegT|YjaKcN-@PbmD;;?2Dy<<(-=l*LQvPN6- z?N2+NMQuUb-;ID-onAbE&g^vl4~`7sR+f#J=-=Pn1>{z~pC`z#9P6_f&c;XKH!c+O ziuLwhCJG35)F%D>XRePh0K2rDWd=0a)@a#-`Nh~M7>t1MhaCjyMfbv4;*k>7_s9-n zf@u|PeXs6sqRG;)yq&2QChVxe=~frVxF*C{^4?ZgY4n9EN3)Bv1r%{3OXC#un}tL)PcTSe3Kz@O+&u0ONa(N$`l z|4sYost4C^M&Zq9ljm%kY-?7MAF#)1o}VYzs_F1B4oz%<6M>7#am-S~`W}76gSMyE z=AYx7R+#g`y?q`kaFJg?C$@uW*jQS@?s5H~_SixPIBh}?o_Knp8q_jb zD&jF7oMDh9eEHoLZmmXxCQi6NW}T)(6OK4bDJAi8FmZzDcb70~f>|A&r8ZoOEf(o_ zKZVA#MH2cmU&_amv@H}|`1;{j#~q|kC2EQAVVF*~cQr_;uDnY*kC@&zFvx0hn9D)I z+s&KWb!qyxn5szthFdgo0zg&eR-(v2T8Z5?O zg|Rlhw*6+tTmwjPL`4zZlWv^4sRBt0@w~%?9IW66**DJ>YfMt`RB@8%E+|vG_t zDR>i4czF|aAJF=(0VRMxG1t})=s#c8=`jO7(!hfgoQuN(!zew!J5&H!q;+rYW;N=Q9dz(dXw}FX-1>Tio0~Tl?;CI2H zhovw5qKXs|-($QKkw>AcK*x*91i_<+V(=2GbiRUQ8yNqlCaE6|YO}+E|3zPE?m^}a zyk4CXolWg7v8RKvq7%E{KAlHsv*7jKQ5N+Q-Fuq9@_ItBTfz&>mkVOMlQmIxEVyzM zwRAG+1uf1@M@Zj0bw{s^&l&+EmwN(2!+;p&5J1#HFKuy$?bb747W>AuVs!ZrjVdG>ad!~7)yR}1!pgAv3 zqV7s7>8%V#VNau&Cy=YuX^hT2Z9f>sr?y!34#TBK%hz#$vr){M^CI%{>Y&S#5?def z#c$dYRMmyXro%Z3W#TV#mp)s>sJqx;0W6{Nep!r<&rxhI5K`%ZAP@+iv4 zTtW%d6al z3zSeyB?04)_j>gADbx$bWB*e%e{&XmFD$UW9aWAZ8q-dVk=RdMYh#Lq>a-PDhHRRf zgbOWSCCnlgz!Q0toI_bGZi4q`~|kt;u?joTvrWKF~^x^-EnUr_{uMg+eqv1x@8KAnJTm|Nl~d5&okmDc%FW_A~{`{AIK{z>gj9P_1ClMbM0g+ z`1@IWJ z5mfQ5z$Z^PSg8^?MzCC$j51o1T<_^q9{tqh8Wj#MZwk8s0$%5h|MVvJbS>FJT+9Y` zIGQn3!IRa<=>Ozj9MN&%1&khwMNlC-j!HfgYcEy4x0lmAqn=|KY%?kf9Q$6md2p}! zW1p>I#WfR|gTFClr$$PKTZkV#_-UxDZTNGPb@%nzdIjuy?LR1{!(9IbCtfrOQAOB2 zMf00H>c$0=u*9Pk723uFl_XN`DnU6hy1_)HYPmaVa&Q%Z(P_rrL9_+hGhzvO6}MU- z?7S#i4Lvi%!gtlQ(TcZ^75>-V@L*U%VJY5x^w84~8;0dnW83N~qoU8<_Yx5Yo{rfW zAK~6Gw_cXaF4xW<&2JVZs5>zNOiAsdXS0H)wxnNo{uY&h0{)E$L8x#fY`$H|sUS!a zjL1u+z?fvtPH*m8$cyRrK&7|VS;f<9ayqxFDcb0tQKL7Nf<#`Bwt}1t^ zaBuz#&LfxMcU$gawPVuKBu`uB6uhtmO<+e;)$Wt@eIh3PZsK0p^(%MW$21Yu@%rnT zy6*C%Dio-2E5~v$cY&Rc$7>&F(zQR_mHoj}MNuB5tMyNS30j1gfoc4*wqkMKmF#Z% zb+pU<%~tHI-NtnKUOqYKwlJ1WzgcI+dnpi-+Q}6XY?~$48Xtw@s#wjxh{HkvyDt4B zvL_4`?h>K6e3Q@+=EFx5IH*})Gqib4&TJ}#e|ahf2JJSIns9-a3<5zMP!j&#ba`br z7gyHiVPqVWkk!}Z=$J}^%40H{-spT1|6~zb8iZBLKf4ZSXGGw~e5iFB-|wD6*XBK$ z{L`EI`j7zTT^kOtp$6|-y~*#w5aqM#;lR7!jTN7|Uwh#&^f<8&UBH{x2#SyKv+oNP z-u)M*PHZN37sBE^hm@4y-;7MCVQhtNGd*5jGb!^9JShP88pC56y2oCCN~^`qon+_FJ+H#dO*B7JRo7UdIVc$Hwc)SeFC9ZI{GS9B zaIzb-J)=Zw4MVOXF>%J-w3vv|x{}rT4E?Z89=|)`Mw1 z0=o`}-LY2sn4YjX_#5Wm{wHcf1lwRyWca)y03pO5n9SzXq##I=NHJYKT^ zEq{zdU%0odH*??t5cpVXdU6hc4v>0?dd#25BgHs9St{+{?4vDtC}Z_qMq-1E*xM@I zXDT#S8YIb3S%v2`uI!~Kpt)7l@Kp7=f(*TMf;LoUA(1&a-bC}T0WTlBMuIBNNEaqwlO-Dd6_t6^RM!3U_)LOZMHjqrW8M3oRPG*sIm5aDcbiW z;@8Lf=ceE^J$#8Nez5;b4tY3P5iofNAAB;m&0K z*tBb#+&NhuK|8%cUM#8UY(lVfg_r%#hp<-=Y}okXafkG~CD4DqEAEm-8J6&PPY~FT z%lSvunKv8Vf9_ClGz>(LnHZxf>lBgTnJ@vH;QNq}&J&LncWRKIUGKuFV%b=C=1Gpo zP3~x#FFk{u1-z&>@u2TMlsNvdTur?Ir#DiG$7!80 zZ066#A#n6g;G~W6Cw!|vdD^oeLUV2+eEehzlJ5?5T^JfgLDo-F3VSb((u?s}a&PwY zNkA20mCILp+)^H#5j$o%sutQ3zVf{n1+0h@1hqvdT6kpti1XzM}iE^++&T4ynK}tK%pY zOb*XV!1Wj?S>#csWK_-jk^*Y*QLXR@madtB9E-JA8O4NhMP}??qJbH>@F=DWFT$u0 z+VE-NCxM+Og|E}(W9IzqjoScZb`*Y|?*j+g1;mxfG(I z93T?;`@3%Y7O2JT-&g_5ANRj*1SK&8*m|X<8)~y&{*wDnTLSs~lnAf#uqkHB6)^$7 zwVZmm3I86m77Jgq%hSL*{KoZ7F!))3NiZ$`aI^bY@p$|?+GmvKfmX=h+bveyIIOEz zHDp?G_R$!Uhy27v8bmGH{_$Q8SY-Z~L~Q}@MS!~L_Z2%J#aZ#|Jz{`nQRI%n-N=eU z$`(@g+kAz_tJxFw4zXDrxJv(bLf@36lA8ru$+kx3zSBrt8A!Ho6hU*0WTFT%4Mz?T zaFMA!U!}L`1L=A#+yMTzN)UHtID2v2<7uxtxPM5@fd7sMkA+l_A~uW_0E`HJiBKX( zt7ERq?a^P~G_(ZU?BfCVr!P-kq$3*N_Jm*QPX@4`A^Rex>xEub=P#c#j@;O2F&5XX zClYZ~aX6fmA#`FWaad`-lQ@%AR;Sn(aGbU+`<67F>_cQqKXfu-^&Xmt?Tk1~F?6A1i-Z%17L~N| zd&NefzYpP3B}~_I)x`O#C#%36J^_f(pBaVgVVGKZqH`^yX%(-87hRr{>Sg^NKGpL5 z@s;`D8e7q!@1QzMrZsMdHyfD-g-htwY!RUf+=(b#RwE}A9Z5k&DM2=O%YO_0&G~I= zYHBIb8<~X=G}13h@RQGqno?5^rw0`wC_|VRiCULN3-t%Z!o8tzqnSJE*Ir%Uv^ih zbIc$75QOioG1Y3K?zMLlIwIyKXS0ID!9bEH%rw0JiCTYKsu1b>LI;uKLQ~vTL4+Fq zAPs*-Ndn~qX7(RrZP^Zp-rul8#nwnqdCRn)F3{vSl+hk5<2iPyU7$7TYUXJ z@jgEcAh-ys&8n3X7c=WE+qDOh?iA*em=Gh(Nz%r_CEE2IB{bKRdCOHxeYYJy>ngh9 z;@wUD}n|E8%GIUf>=%2`(S^L16Io(|JcIXiL1nSQ_#f|wDey_B!P-{VT)_J;}vlr*h zdqqGL0@CyB9&78jZ`D0qVcb21pc*;|mSS^p#iIAbA^_M0=x76BhoR-_kY6ENm^>8`31m3Zu_eu2{T=>B<OHX2CuPVuX%Po!d$d9kPY=G-zbPmy}hGz0Qna|{L0 z7a>(a$D}(X-GJTc%;0PN{)72^ol8+a>$N3O+x03$1>LikjK}I0Q&TGG-?3Y|O3zMf zlwB>Cs8Cm|QO7H@9X=Rfz_TE28Al{_;)mdGEL;zNtTwZ50^B^;jF-*5iOM z43_e2Bw0l8`wSgdhg*j`&rvBPbrfyf`ITZ8_5yeZ@QxOWhjW8qABZs|c-lu>4)&$K zWJtK;wym7oQH2)a>H1!#OP2np7tn3o!U84v;fgJl!oUTkAaMQ_#^ScS{k(zsAdNNO zf^Kugn?WwKqO>XQ*9B5Eu)N0#5SfUrz_hxU^XZ>!ZVavyIlJ z#kyO^0ix1iDsj9OgClJ_%R-S*3Oe;WZFy~nbBl_6gAtsr`;`)=Dtr^jnQ}6}rgXVd;Yf`se#_Do{I)kp z16;L(9oB$m(iB~H+R;09N8<;$J0QdkucUhHEThtWG*r8(fmKAbOLfdzzSqX7rNUD! z<$kuNBL+m5J&QUQ{pePSwgV%>{0J>w$3HATrX3jt)-34unfm*E$2*W%T85QDn7%Un zSjlPlTube045z>Cb)8-Zfn&q3Ko=j?7+hW4c~}x;NzlCO#Kw2w`gYdNA^=UV1B*DJ z%=%b=62|vZB^rcu?j+ODbo=w-Kq1Kp1GyMdEx~VhqYuSFON@(rVCRgNFs?~-3apJ2 z*13W#z}DM4)6tdkA=SfJVzD3B!^3NJEy0S#Gbf1tIF;{YO;W_wp0k&Cogh9y3Q9@~ z8QzFI%@X4~!NP}_YLH!`EG^)#44Om$cSGY;FmKBInga%5)KbL^xvGH0@6LcL3esQi z=jYn)b(XH~2F*CF>yPaL`J>fBvY+NPR8=c~GXCiu%{e>m4)jNrC>{iK%-(MOo_KL_ z7c~ut`kGOFgsdU2*SJvTqUbL*+pJ^m^-^3cf_Bl3@}^jU zIrfs(qIPR@;-<5=pp-ytcOhFQP{RJb@Ay1KZlw~sQjSc`U1-<=tbq|>5$4gt7$H|> zqIl(d?yw$55w)eOGZ_rRp^Saxc&}yrKinvs+>S?ub=o@bdY-E2pxm(F49wN8m)*kh zu+RK70L|MEWx0IbW`iDkbO14LO~+D4;AprZO{=Nh)PKIt$2Iub?2)dRVYGWq|5Nf^ zn+<}8>-q|?@UjgJ;JgjLnZQJThM#)975b%6ttTz^s>oObBXdj-mA6oB%h2$iLe0mM z_iWtjgWA49BgP-H&NPZ7f!Lf6r^-Qj)2CanCVou>CLZ{Z4_D zHm1VzsZtwlfQw*Slz=tM{1rKK2OnBNe~qp{i^ab6=4da%Dh1K9)S#PTqJQiFPIku5 zIdx0GB&@>{cT!O3LPY{RScH*`*ay3fGowvNKZNSR7WGo%lgRnqeA%g;p>u4J(uhwb zLb`g6X9G3ZP-utATMAgB$B@%O=-Uqy5xxc|^lIHa8yI%2RiFRe|2=X0KS2Qjf&<&DUI$LI;Gi+GvSG zoQM#*4oJ-H8>chCo_wxKJ|WsEb&{?KE#{nhn}qykUY<|3^eJhaY%bPD@Yz%AI{#+K zvp*%+NypXL`$Jfd=7#{K>D?_yib07RE2_-#xB-mP4DI`~nL=02HTgmVE-$BsMRkoQ zLHMM$_or<}^E@w&h0?IRRd+hBxSAmY;E%-Zh5N^{L_5inY!H@GG}115vNSk2PN|Xx{8IWA5M}mKP=xSJgxaGR`DG047!m|# zlnbISRiA9{9R>QUF>u2}q@G|qYV)4FE;rw7=w4=h0DgpMTNM>fVY7T6cvd+(-p})7 zB?FFy(n%5qTXc?V}8la$~bN5jA3ZK28PhY!uB*%htbyIqS?ygdHCqwFowd&zno-7BFvX%zzL3bvtJNk7KFc+EU+Hmf319 zi&~py!j5qk@OMj0%#18{LpBGwh{IMl!|p=(yN|ND!9-}MV0ZZTRIJSy66}qJk* zcawDwnFxyds=(9MZTn1$`0h_cYb}|}9 z6{Aur=l8o2m_{}Fj$6m21VyB7#fH3`2!T_2oCw~C_-RT36HMN_KcA=S(UaTHj>H-W zXRR~AeR>D$CdSk^7_%2z9uhPhniYK0FTu)v5Je{3d*rHMU%S}Rfw5S7Y=%|8Wo762 zR@Gv#38Pk|<3dKTVl@K6*A9P7V{B~92I)E8A&Az^F@Au_>9#Xpr4X!lCKXcjBHmI? zouNvHB_+Pc6Y(#Zdah(8?oAGxTDu(L^h)5hk-s9S<3La~Wq3*=sMK*d8Lt=5M;I$D zR>%rGKdrs=uBf<0-qaJ35Q}hB%BER#TJ$YSu;3NE5!g!V9reERcexQ&BiDYC7Ca(TA(G zHj1;lKT*gN*M|n2&7^t>4mESDa~lyi*N~AsktDuSEWOy6~+pb9K~YB^Sev5Glg~Kyu|(ef>{HW%p(XSCvO$*8;EL9OS9(rJ>{v)mAC*#U z0#l`Q1a2H&-*4ylYF};ya>RkpIgA#a!&vX}D;Bh6XPVY=I&MV;Dvwkm9F}d1Yqv7L zXNY8c>n9KqsfqF!v|a8b!*9**F_kL5(u#0YKv~8TtTT;JQp3EW(>oth+T!8n<}QX+ z`?yanB=fgmRf8BT79X)#_FOm6ndW=1#C>3Bf|dKs?LuAcc!N9G#0G(XYCB?4hd<%^ z<9m@<*v9HtIb~Oy`|Nz<0Ft3us1bD=iRy7k0()B$4tre*^>nS#Z)oc=n2w&gX1=pZ|Q4$7zTb2Oej0M=LOvLo=(N z=iAMIj5QHPbiKmr^qD@^G(4$fZjcw!@i({d`c>UV65H7rb*(U!=dm_uig(?vxu^5G1CQH)1*q~k%0Hi`AK{m`!z#ux@3AmQ{3@!0Gwq3&0K>&Fc@eG0`^^k@?o>{kviwYO(pjcMw^-kf*9o8I~F@!E9 zOiAC@>6WndGpXl_rlc2d6jY~v17iS5a$R+4y?6Ahwc9s;aZhvA#8=iF>9zKx1~$dS zn5_eWlXh(Wxu3mJmb15whK4hW%-e&_73=mq5*sJf#zyC-l9yKvL^_oQzpklDxo*^r zh`?H#9lTLKwZkbx1oP^e;A&wzstmLnlmeC`ub!HSAF_HdO0E>Dz2#=BKp9usdq?A4 z_Cdl;;Gms?%;fEpE${5SyftpAAOF#X{?fi*soD9&7kr@DP_JVHxD!MWNg^jz5zO`N zN>JTas&jgKYxaF~Yb^yMJCo_7S>mqwXaMX3Sy}xS>%m+%NBqsP`WTZ!Y4=~zjaD__ zREK57n;ios_BUKOprY#B4m;7A%$~59-_0qq>dK?Y?i*VNy<(En* zNY~UTzlr2%s&->56EH=Puo{)9 zc&Fmwj$8+s-aWea;*4q9Kia~Ve@<2i{a{Hm_ylJk0N&?@G|p##K?zyFy6tc+N^KUZ zOgX=C;V-q@p2^9;UzX!7T}3``o*8Cn!Z8u*3{dul#RMWk!s<*kA>|wi`TC1rDYubT zSD`xLn&)BdMSKsNiirJSNMmWJYjZx{S@|F2sqbfI z*t{BEc#1vez(XMMW#Mh-g-=tXEqGdGM+;s=oHR^+lj+8$t`hiEwbLAxZxDKFE}=+G zd_+sPKc_MvdUtJ|ewl_hwUD}7o#(xqm~^rEo+OigX$IfqJMi;`8xy4iPgxzxIBjte z5{d1{aXeF^Y8HkOSA_PIySuD~MFsG+*pqD*N%;0rm{PqYn}4c=-z7P?@FMpIv%O)j zZoepGJA>#Q5+o(5d4{rV&pQZOU%V1Ik~*IDxa%dD;1LiM zV`ql&w;uI-hzyaqaAAl{ES*YT`zAUJxyEcvE;ASh64aEg!BC}&-@V&D?)CExn@w`v zxSSGOqJ@2E;Wca%gH}MVa*9l7bc*=5tjyU`s(mPEUKKSo;J{-k<*KZNtGTo1$z6T; zqWiGsoSTm>;?S7L?L|b4>NIp3SewBzFyVYG+CB}{@V83qXXE;Ze(ibJ9neaJ8*3ma z{7jj;1H$Ieb#JjR)S6RJfpnv;v=J5vMBo{`n3W9f{FR&D{W5TkE(B@T^JV&}sJ79+mzXy-x$eF+)FwvUBY$p{jX$D8+8tLS^R>gyPc zSY79%2w6PLp6%TKg`lS`XwzwpXiO*y)F9Jm2mENW~gRPm=zP(11e_2ug z>C^+U;yg^Yk9V7a?|Ax|4O6kqh1{LtG*(Cdd{^iT5(?oHr``%0tJJ(6#JWLoJkvGW z5yadOV)->M)+xs3)AgE!GlRz zqv(QW-uBt(L(ewWHYm|8wf1BDzeK-@5>W?a!5I(+zb?uf^h=2ngo6Wyhoe+8X&a zjpSEv@AGEk_c?*E&iNdXde7MbsS*MsU(IfnX4xyB#W3mw*Mq(zZ98GQFPq3#R+f7E z9apbH1kAK?!+-c%`sfEnY;Y_OYSw2o%j?J(=DV-0bZKo9)Z3$9xetV`mT@iV|H_&X z*ks2r`3Cw-SXX?tqR-G*NPnlX^wefu(he8fcJt=DdsH#&vD8lLFMIr8_C-b?ra(UU z*=}c{YRa!>2qEhNezq3|^OxdMd+X3%=r)Xp@`r^d&kxGbokpFUkE2@$R>AL8Wg;+0 zEhy;8#ZZRRXara($w4R|`@_Dgr2A*!28hDZnjo`rCtOu;L$3rYDvyeSK6S|^kYJ3JurfRo zV9m_pS~Tg|OMImVUNJHjhZrK?kc4NH=jb(->n`h_pF{op3G%E;9EyeOOWdIYGh6_^ zt`q|j!YT_QH@1aA=sGmrG)>1nk~o%tu2kSTJ__;PR4UdK!CgWA2Q))WH}b=C==${Z zU1^+=4MRhTjSWYn33q-1%N&gr5T2=*7x0EPyAXl7Dt~LFC^GClkIm~XWvY$>4E>$4tt8iHSH9%3EhpG+d;N9w%#qIM!3HC(A?aVipYBkp2vF) z_&uFyhB?G#n@RYxL^Vj4)@Y7GJrG0-tO4ZLk^3gCd>KN;g0O+;yueQk?gBxbKs=y@ ziD2EFVfHcaYm`G`HgHOYMdUKV1QQaLeRYZjJBytA9#@YflpVcYH?>MHIuAh7= zP54VQvV+sg-zU%1I-rTV`H!+g8wWIfa3BM07_2X2s$JH8l7rhUTiN!eN8zF>z4#pP zVi8~L8izWQ$;hUy%`wsrlS8OvJ>jt}EPi9+iO-qhcX(|b_6WP^*(2%#Zu(mUo?FU3 z^*~=QO*0WJbvI@Hi8bOmz}3%z;TV%=@$87=?aY!P5~MTKWb$+kUwbp7;#WQmEOpG!fbLCmgbP2sth z-sCy5UE$ZSO=X$s%BzNgM^}JWe`FWEdxY9SE(QAPPDiX;%-WthzpJyMOyX=@w;^c4 zz^ON;P(oS~H#cd33g#7XDSpT1-YQmT82EpA5FPKQp_LAF)~3 zsBhHYv9NuIW*rCg(5)ym>>16|e2G-ppYFlWwG%O<9Bk5{ zDMi$}K=J1aF~2z^B@1?utak`=X^!txAj2!IuB|OH2I4=%_$bWMT}Kd!rEToz|KrIl zJ1*nRRIz>OQ*j}rxs1=h5%N|P#h@U=msR57AJ9h2M{}hlNZe$vEZ@s(U%`?HvPfcf z7Ovh_uV&vgrGG3`i=7naq!v{m@ldINYhf;neH?M22~Bkz+S^;kDXrI^m#1>6p7o895($ z8>bBI61UzYHk(2v*Nc;xXOOU=0sn@1r<;v>-xz1I3r;5vo9_S?Aj_z$50XP#M3c=P z2rxkR?JFrtpY6N5eb)|G=TirGhj-5Ne!L2mTC9WZ{|{5|7+zSn<*ZMV|ImWm(W+X$8OHvlJV8*I0oQG^U zi4lo`KG7k)blZva!l$-(M$2C?dl9GOGar0TE7052vFi}8O3eqq=EYsz)L{|{J}m-% zSIaP*(R$Va@0Rt8TXVv?ps*zCB;Cg%AHiK z_FgqP;f^%tHOMV?S++b#j!z)1c`D;5WK^=h!9ypX3{2bj*2EFmP#-dv;i2ctsN50b zQ^XKn!3iJPg;=L%3Fk7f%<2P=f+5LAp`b!A@E}EgI{gA6{2Epqt%|?|3Uk)&Rp-q0 zw-)7;^-Z`Q>|NB`r7Ng6;Nf<_rRW2<^T|(=*e+!TeD?f$i2IXmIHo+f(gR zp>Jo^r%!WzCU!L6h_-%BIX(St;jL;jHNAHRE!D!OLg2~F4iNNFf|j0niVW{qYN~VL z1wY^XfVe$|k*BKxKZq{fcJHo})nw*}2g_D52*Vmk#x_<{_yuao0e`t=?~H+ceu90z zv{smzE@W$Ve9=y1C+{nJjHAwIB$JrR>d7I1-{3L3Rp->u`kdftmFdoOB`MZ4h{sPZ z+NdTXGtf{S8`GW4Rot~`BAJ1N5HX%4UpfRWEjzZmVS}+6R9i&ym#yg)%j#rte{0ajedQ+>>U zLKuR>FY$j8uB9oPhSTy~c>k)M1sLNGS>T;7+Aqh(A!AuRw7^iCTkbQt5}!m)=Cj^6 z&IR%HZDLN=kJdP2*k(K5LtL2k_R_PlNtuPl1z|@AooMEF+HLfqy<;lKOkj(aNHGIXv^^hf4AeY27Zn z!Y<<&kVesoRD=aElWggDC$D!Xd3}2L#VT+EqhE?I~*j6QvRwoHQ3e$7?c!p zaVgQhPEHC`Q>5beA#?-Diuq9pGLlK#FxcCsKv>g^C_Fuoi+if@}icFF_0V45jq# zDR>&3BL13l6RLzL{bu)$Z)A|Zfi7^oyY~%zDh=rozT&6jGB+8{r*#huzBublXkQ9o z9ozb&A0I;7px0gba&VU%Fbt=L>8+X}Ys8NVUFygm=$stV>jjb9Hrj_AZo!=&okBRm z%Af=Y`5ckA2TH3)fX{9N2nJ8)RPOC5-vbBgpwS5L22mBxzB}|~^MZ-(38dhCQZzNE z+&62*7QpBxmfWl6rm;>>rfHjIIz$hvWC)BEnrH;jv6G{%S2B`;PZCsB)sI3uwa8~!^TNRz(q zutZ}viHee+k)?d=V(-BbU!;#G#XSlL&A?7g$m}4OVqUbL9tn+5^GtBYmdN;@d_t|A zRg61WczW@lKU!zP4=t7Sykw&s4)Wu8uGMQb@X7RdMRM=W^V1+hiA78W1!00u<&9LZ zhtb_C(9PFsJ_dT!iBMDVTlc++MfeAau4tGJ$5zSrag(a+tEUTpJ!@O_-h0*<<^CgG zOH{NgHgGsT=Jlb|0o-qT)UnC;<;w4l_}4pP3)Yd}9B1qKPU~9W!t%ahuJfb|#+Apm zjhKM)*FZd1&=df*Mi2DIN9y-%+(5nf0&Xq?3%g8#hf&BeKkC8F0xwTH?YN6BA?|2` zR+$Grn9nY>SL`tY5UoZ64W;R&?WK`^e0ZKt|JpcHuN#}YlX#o@{eUb(mDb=+PNl{` z{dx3S7!_C+63ernb7G4yq4h&2=PwRP$n_Gfc>WbToPT ztHWQmX1Hq#y#%HwaB!X?YX8&0x5}Zls3d@xab~J8p|xEP=uFjrM#P1D+|6ACsNSk zizXbcKRPc#2f2vqvEI!mqDD?rPs}cctt`m=t)P4&@6t^{j-Zony8UxtlokwmlC+6= z_eQh2gFNFcgs{@BLBko|H8B0;kMG9X_blRg7&087IA#?1w6q+}2#Kecx~~R3fuoqj z=xAG4-H#(3g<(>6t=iKHf8$NgDs52;K_OuYGzH?rkK&o(L(8ERs>1mICuXkOfSq|p zqTrWyerd;CRTg;;s@AxfnAF`a-WQZ=$PM5`5w{5gB*)QZ>$5cHZ+pBty^ z)pl|bRb6sVKv6UO?HzUP?)|qj(3%ZVW(k8qYuEdu0#Tr7Ovrv$Cxj(Du zG=a}^dMTd;`VWWzqqAk_lu~Qq3qg-w!UIdo5Ixj$vxsy;lO^;%h&j%G*Rt`;Hx0s@ zLGhTECYo4io}u62(?7J%-g2CToXkJB1c=OW(s1(Vg;{65vngED=i^x5;k<5Y=BW#T zDOQ7IRvk(4v%nG4h!s&vI!*6p|B6~bfv@FX_#MG3ub(TlcW{cz!3xZ=A0^$#&ZjoC zcc?;maeek3lb5!FtSqbXVY)!->ghRw_NS-C=6+Zn-8kxDb^a2whZhT~9m$wEysOUlxJ8YtV z+QGFjktNoCg@lu)&a_WzM^iDKOa#C6$-kwye?$;0*RbtYnDe#J;wDApwurILOoOsC zwG2k6>aaSCZaA%PKK&!HqWzDuW9AhjBaD1eQd@zvOVz=Z{)f_BOOQhGXtNiZ%U}aw zr+s@`u}VNci0whz(7IUhj|B{cfq`7~tDb@QU#r}eDhr$V?b zgHucSX^Ba|qHB)y4~5T~4!&)%wwtsC-06hZ=Ou$BcJy()$o*UMfk~70BZk((;_e?q zG2pjBWvhLFiZz4zn>gZL6Q9Q{3ZoE&^s9;olqgW1ab3nSW7)h$ijwU2wB?i99c7R@ z(A2I273=YNcoqsOn>@D_vUhm+IjRqNh*d zHeydGn>2R#$|FL9%UP6IAN91x1{H^PVFWv@zsPen-(a1 zh+MSBXQ?^Pw6UXcprS2Abw9M~1>A*)jUxY~A%7mI{ z>FmVdo#&irXIEtZnvH<_;Nn2zIxW*G>a}2a;)s9?b7^{Smu;#rm#oV?%sF9MH`f}z z7lbc>uE&236r*r}YpOj|SZ1l$c(F7!tbPOArO}cd`eFVZ#t9uh{B^;!zd#%4Caf9Xc<>}fCN7(m^Ay3LqM`#hs?tNW_8ibe#j~;& zxiRJE7#Av=)#~Q-c#8Gv$gQ}w?tWHac^ECNqTX&48RmD{Bxfxh!0-s+9b}DE#a?Sl z86JG-VO#>^9D(6Tfr=Z#6t5B#=}rYIW^UoiM9*PKIgHo5^-u+-h_Wi;A-*1D4yG| zRE)MhDL-QYdkr+=6YUH+3ss}f)z(u%e9RG>dI&R}1jD0WB#G!xgQ^dYek3ebc=!iI zo4roPt6cna=2jSZCJ-XTbTdja^X{O1rm1yTb=TZCxlY7OzEH-s~2>Vi#9MARms73~!5Z)p!k2+#7Tovfj2m)yFm{_{cVrT*IvyMkB{ zYw6rLV5|f)U%f^RrO}_QX^=w0%c&+H&S-_?d}wA?Esf6+g!Xr_FqAdmxju6_tdkGG z#}S_&Mj0HdjCwiG@uTIwBP!Wzi@QzlPs*|cPPP`3^dQ*hMaFk4ow(_HGc-ZJq1sP< zm;F_{=E1%_lb3NVr!zJgRFYNoU;&aW4$rBsmUiVm9^IsT!rm?L)GlSE_$k>J%G~6_ zzzW-mGWesqR=z|gdkZ&2tfEpD)0ZQ#0l=d4f#tE&t zIHLsaL?s*)@CTi@>bO<5jatOXCS;g6{N*c+qs-$`Lf*9!BEOP)DX%I0iq7vrDS`dZ z7phA9n*%zM59;X~a!oepf&^UW9|t)nRJU0|3?>YTW6u7OAF;ApccvUL_%!^l^zco9 zqjjHT1Iaw>TXtE_;RJadih#zSV77~ag&08r1MDITY@;$N_%#auFg-w60Q>N}Z+{k_ zTyX2=aL+k>dVS|?g#L4v@Gwu$-*Mw$FC+_OWef!s zAtx%DuW1hN6#Rk`gBN@6Vv%;#W3Ke%MwQ0+n0g6quK#-N;rjmf<4|h#_WdfM2k;nI z_+45d$sJkKYnj+vLdA^p8?%+)Rxs`ildOJI&$l8Pmi=Lc6gm++gJ?myKtQ^HqL8@c z_G!%s7nrQ{AP#S?Zo!3kr)iH_3)%@1)xjHJ1+$}=W*Xyf5rx&SutuMU87C8l{Yf&$ zuO$d`MxBPmj{zZlh6@#oa90^)jmImmv!!}AopjqoTStr@P~__#Eh*srB~y|6tLr>* zz2L*!8%m)^_7q~u!{<@Vw6JDq}V~CmwV`Pryyn%c4Za(vF$6ckVl1=_$w9s4jU*!k)x5=R_5t z@Btpf1>Se{L1Rzabq=xUQ+zEWOSlM)nl9y_u`;N%YiY7UQ^hFDCAyKjUWo_J*?`D_ z+WRyz3(`9ZH`H}p{p7+tHmx>`% z{mXJYR(kd6a~@*qtIB+XfoI`64;LcOfRS`L``^#s*rA~sGM~g1VhE3$#%Dd>ctzlw z?<6@C+xF6^eZP@+Bvuu|(BW*g&IgJ zaxU2UPTu_Lg*nOBo#5vPnI_9SOz^>ADKhbvUr*I$=2^d~UM*<&4%<`XAK=Z(3LtfY zzcBmO4%i(L#`xoj4=wG>!S|17eJRY5dC)I&tkIVPXDox0m8>;w(``Qh`AeAmOYBz> zFvou=t!A6+&V2_6x;-*_0NlEHHEC;EjkECqfXd%uoq0Lh7AV^p zd;gij-A^_Cob0gluUT?YBpiUJPC9xpj+TtH!T=MD$`{q{cwj?^jQ|U1IU3`RLX%{{ zqOpBwR;!X2_+(YwF~kC3&86GJdT1vicFrMjQ)IT0#p&e7f>Un_iUt+q+QM$k^!&39 zo-^;Rq4@s}*iY0lDHQpO4c^7;S-_iVf5aEdjUYm4+Wp*@IDR}`Lc8lud-H!-s|ckd z2$ZsoEVKTqTj`odD8PQ4TJ~pAMn?q}dR`YdjY+3Tk5$wU%FXQsc!cui$p#JYttmd# zd~Kt*?d9Y2T>x&)7T)w5yTEtRhG}ow)gVV{5|pc(7pCmTGb9`o6n0Xj>tEb%;z_85Cn{w#~&OnZ^ctAj#(X2!K*ikn(* zI;=q$#>S+rIWtvX)W88(Yz!~_iD4}`s3C>a?p`FpPzu_}wXWLai`wO%Nx!{j(fl)v z-#lB!l}5cb(36 z&iWX)Pgy%z)Z91p+=V0~TmRb=C}b*8Ace_14O7oKxKcEt9rK49CWLp7Idp0@#W z;8PhZHoHBSjm%LQivp%G^>Uj`T9T6)9o|5O0_PS}?4=R0*ER<9y_4v!va4sZ zcjI7KG+*Am@5p|{#m;Vc5(PuUEE%ZB5DYC$znnjJlP4S26D>5R!wX0hlhDEzQw*%F zrj}T&SyjRRs4gQjC-`pv&=p28X`baZ6e9<9Ks)QFiwFP3JRC91*$i8DPKpO5hJE+_ zV9afTF}}H2L>yJjcM-@u?i~*r*+ol|ud-z8J7R{tSP03lC44K$*@1bZVi8o!RE%bD zAvqsIj&h21ph&MWU8WJ=+9zRWickmI%J|^2|rSF%oOTPFL^uD*}WoHE>k@E8$DQE%+(s<5tTRf<(Ti1l{95!SLRxY$Rbw0ar0 zkYN^GZ{e0{bmh%@I{of7-N=UunCu6rma3RQG&&7;Rpjs>Temka=>W6LTzs%A=+Zp% z0O>zUrdqt`+JC8RVzI8JO^GrP)iEFzY5NUlzJ_B^vT#?!1M&Ro2xY5=*<6!~LoE*R zTTW0RNre7MBMgF$cu6>B2~H9ZrLM$+CKxYZ=C@H`nD5IouHy3r!#^OW#se-HIxlaD z=C%S|NSyW})Es(_oLsbb<}EIWu34I>|A63f!%ge%(1nHO>_5XXPayrO9aV88Y8QTy z`z8e$y3C;djFn{+2*E0^T4@gvf&tqniMi(KXu!t!-viy4BS;CWoCSL(w*NN^AT_5sITh~; zDwFGZEBzY^WKfDekcS+hpd_t>2PaVBtXR=RQti|{oEzawcfOweqAfELAk^av@Zp=n zJcRyOr_~S#J?RLB7R)uX+|Loe`5}VpWf;bcGLU|Dr1{|+@DZ?9HW1O2fz}-$oUnQ_ z?}wi9m-{4I1glJO9a3NHsKaHz6%NRa)$lCas~%Ne2EN%7&po7<-C{W zRHY;PMj46E=5xuNX}$q+RHJ$*rLytiTK-_sd4>Y1K)C_W#IBwiXvNzpM>s`tNW;?o z=*?JBY1Y?z{opNqvme)kp6vWMD|z$q_v6L;EuQ;)M;F3a8Y&4`;`AP8)nARg)^OJ& zGc|JYS>?!APTj;^eaU&1W8BMON0aLVq4C?QXmL1kX;Ui3JR}|gfY!{~1Ee=)7s-I( z+#m-tTJ95&ia~iIDgtDoh{Bvr$(0ug1$JLh&JqcQPzR12@Q2c^pdksf9dWKIB|xNE zP}e_EEeF^pqqc=&8}XapnPirlYcUGx$R-pMtCa}Odm-D8S5M>d?e<|fM&Eed+c65w zzfE=y_R)nI-?&2+S`dcSkJV?ap$;tD;SW&`ux_%Vm;zwnofE}0#2DYvbAIwgp`pvh zQht2b@^%C}Rc^p8fc`UwMo2?iaHgk{4fY)8J2ZCq%4<6KH0NVV#p#nswq;S+OMK3G zFH;I!rgdh?GFJ*w;@MUUQKQKB>;~YUpMec3Y*2D~(y=V=BLTl}3d}&1g~`p0bI>#^ ziTz1KG_aKFJ*1`19~Exyozr_+NkD~GP&WQ%X4yJ9XLLO4AF<7?yH-R7xNc$=1vzEy zUjrR_^89xFc1QlCxIalB21%}-MG1!e1>($czHVtOX=phQv&bF&-M4diH%C0J+(28s z|D4r0jrN9dp5I!qjeYj@3Q@{i?w`-wawtt@aekMB;(KE$9OZlKGp6$QSy7gO(woP@ zR7X>*q`l20XU{Bgq6E`iAwDM;NbbBF)$+%{i8y6fbMtWx91?~7$u-8$8ykzj2;-p| z+de1D#Pf zpZeE@q_drFn~$%hYL=7Ra$Ka@8$)LqDojhLw@Q{L5a_x*k1bLzs{@&3&R=S-$U?nTKB75 ze>2a4VZY7suzpk0@-=o!MR1JljH?*+U~jsb!5IE+qyg6AG7~JZn<3@|^5Ap8 zo?&1<77Z&p=8e01H;HUW6z=Qzr{r%-k)Py_F^xFQD|#Ha#yH=R-k~Q{5AVEHpgNpjBI4WcWLYsF%5u!)N*#0|TKanRqQraNS^MyC&vcQ;*~zmijGj;OR+Ez} zA{09{+U_^=9X52!|c48OmmcjM)f_@iTw1c~5Ndft4-k@y@EqtYa|AE>#BjF;7gh5ctR84f%ho{q9+W@*#u=erMTF9|=4TY8g@ z;?5~rWb|bIkpe=-lk#D0%l&{o^s0T0cPO!iiY$lBgFU)8VzQ{NPrVnjtZPey^$I&S zNC(9YDvVc$FA@*@Ykn!9`%;h=H}|o<9s3jz6QPyK3=C9p`2w#?Z7Z!~r4&upaiD>X zgr1bu?t(pC_QpL?rXVpOdlY7?+crOxQDh(_y2ySK!47ldPyq#%DXU2+$kjJx=q+)$ z<>~8(81S}3RQc^koBl9-Nfw{=pETmP3CpgVHU1OEv@(Su11k_}(*R!4Ek5!a{Ug@J=+xH@)*HXb$)e+qCyygP9xLqi9}AyqRC`j9~*ND;&Q0`@DOpD+Xp5C z|KlVaw$y|13C9E|mqP_SGg7(`1OmpB;)S>t;(Qmx zee;Drf6dbOLHCdqtxl$$%>($FJk+oHLtrdt7v5W}>^bsBX*;{7pI>8kZB&Wdol;-J z0G1StJaRn)yk~v=>S6~t4`H3uL<`YLGAgd!iADcd#(!f6kdF42OP#C zgm!Nemr1$QYCQ!gx;yrAi# zA21Oh9qpE!@BUAzemzg=@JnDy<->*|0Va5UgP27}VIb5&&I9*(^ql2iNBJ@y1KzTz zJsb+} zH_Hb-UPJDPNbx+!$~-h+S<1zWR1sJ&Z6&$dQ;d`FRy?lB&F_>N=?tc+tS|`-41P#_ zc5fNqb1pUWk{VqC?UfHf-z4*(1)I#JLU)Q;zqcycKXR1CxW%WyEWhD&Y=}P5_Fsc| z7EEKrQ$4J*%_{b5;?OPw@jjiQ;*4q1b&Zv4p^to;xF1%9guq3QA#LiQpIIZDCq(3y zol3#MxKjHhvRPY#gs_Z7(#W-me^wT-c5qrb+0f>`avyEb&A0=uEv`(|(|q}o#$sVw ztvgnlvv85CEEn8zSU~dk1Hef|Pm|X96qYEP{HTK#Un(@zES(2!s|bXAf-@0Ru55op zLgpkdn)KuKC4?ETADKM)JxfxE9E$$t3y1#EfW&h;kUEBun3c6PP_$PlUsxS&mL~zI zS5SE!BnMn(xi(|WL12E$wlW431Iu$d%ohexX81W4C3RG-gmflj#yoQIo zqBaDN6J#J&;{m%z+}-CeCblNbxLRz7KX#8lxzW5EK6|luc(>hmcRo@eP_8cL5tRUd zC@K^!BBZ5EgMeLADwQj?gV?_j-T|mX_MKp5msL5yq!vSyNh1BIeQJApO|^q0in{lf zq{X7@F1ur1xe6m?v*@6b5tQTR7Ux;;DvZjc?|ygklG7mkzzA6xSY7(k<^q;Fm5(>GpzvT6Jv$9rvx=V`T*KWhzHB?RO_qupAD_F_Lvhx6H_R~LQe z@P)s;O{v452QjN}yiR1T0g!IN!ZXUq0>haj6dwvEHrdqAt8SE z@T@EJ_A~mzxP|3jbWL2S$+F#<5`ch3r`~L=l|PutuGX(k!|&H{Fp5u~aQf;nOb&3& zo`=gR%9K6BoEWSG=sPd`{&ULW|4tc71`8v;RL4GPlF8za!lETrQgV!{XGXuy23jK{ z5|P8wbS}3NNbe-F0>6o~X*za4bCr+|5;C)NK{xdldb(Gp7e3bJa4*=clG$7Qsr8o4 zEk7?cV*(v+*+6f6MZ|ZaY)w|kWna*X|CO^Z<>?AwJ8gge2El(C7nDGlnPiQgxNXUiy=cag7&lr}YZBe3TG0B@#lb)dI>Ub>w$zNjzhlboOpDpIE19ZqFk!xGYK zY&b=d{0d|tkr6*Bhz5pgKBeO0D-f3Xr#R=YwFoy3Mg1 z9anzNFzLGJrR8QXwLl9`4EmT^NH;lnh+C3y3&l0RIWM>OSPwtlOPyY0{=SK{L(U;$#8}$NE`BCN&F2;m5n@~JeQ{Te|8ZrmRAVweki)M z<4q%39X8b}bbIinWE5op2P}(FkIyU7aD)}Kbn^NvkI23iv%5?%f{4Id)RUxx;4Io* zPaBN>Ddls5ed{_iULAvzDb}<>;s~dqzame6S)Y2FG~Vc6P2d%gmdo8(y`aw@fn?8u z+pCEY+jQZNi&HmH9%MF|30Yq=5W`RzP$;;U};0ikTd*qXb?u1H$Yn#Snj|UmLiAN9ZN+z}FA@urNP!!HN4dTJ$jl z1fzGfm!)$fz_vjL*bo^25zjJbqC;VV07A31DW}8E{kV>#3xtxc1MLCsw*_XH&%Wye zphCRpEDX#8#S1yTzk{?s)mloe(V(KXl&_?6RJRx0(n;TDGvijDJ5-SLI9go3R@PG#8>!3_~OMY>9E57Z!4(d}Kcg=#~3IZ9kY*W}Vy)n&EKw z#C>}W;0$Y$j*D|%@GX&Nff(i9A{O&x=}(PHA6U2kr6a9P{*Rf?vTYd;#&$-ztW zkIA$7&H7Q;WxC$$dO7uqn=Pc;>1Cu934@B_e~jXPuP6X^^W)^1WPBlU*M**La0HZT z1;@@g1TK*mu_!!jx;S@=HMYEL6yaw2H9pDQpC`9`(wS>oNHu4Izq3DKvvij^tk1Jm zb+5MWI~rhb|GIVLU`dwja4;ppOs<@^&hU$8>Fjsz!Z?2K0Ur2hIdmt-r$MP@d}^cy zuArF^CWx$VQ7MdRu3&=|Kn>q;LA|f1MX1r4CAf<1k`5L>r+PGGZP|9R0S9vF`*)s{v##frLCL@4v{9s4`iE@y z#%0&9bRLo@NkvVMD{H8x=sSzA=!*_qrz$HO4F+RJY)2+LbOqC1`)8}`7M2)n;$Kw- zz9T?EO`asCHb6oW2zy@9idcF?GB^JH$I2F_zE?D>T84U=*TqUN)*RHkQDrZIp<6vx z!i#jzGgp zb;Qi*`RE(uh2AxCC_`F&<>*1Mc2|!VbgkoNpEDD3TlcAO_DZP`SaUm)9UmZ5u_C>7 zi5cS>lq9XzQelDW0N%C6mukD2T&q9j?xhH6L-0iNu<3tSL-;4xaDcidSFwqoRLV%` z{@WU>>eOZ~V<>05upS{HrI9Flexjj8g}DLrDz1eMU=1uGv_BMU37EtKxe{-=K&axO zVjnDRQjjQtOSG5iggyabKku><%ihs}@T@`8S)T zrsF!9qqXa{dnjz*YQjqTtJe8CpACOJNvCg^uTI{u8FVotGcegr1Uhn$pdqBgp7klp z&3$6tq#>#2b!&k6=R;obiU7t#;gMRK+n`dqtyX2^>D9`es_=79vM`_5`f3RcUh8G_ zR+{#H;^JlbPPC;~ot0ncNgaNjmch@sNXU|A5fl6&P6`Qlqe8hd&%*NZy14Ij+G;gQ z&_6_1&}R_-iB^J8H(DHh02oS{nwT70Lu*Q=Z6UiuO0x_60pC`P-h~AA@md*2C zbU#}Y$C3N@nmTn2TqOnQIUC^%qavu6Wd7%(jt~V^0 zn38*R0}gRIv7OPZXZRfCZ!lX_zRCNg9UUi;2HnDPMUwdUE-7+lzCl3e(lxiqUgOG1 z)1va=t`61(oGxCG^M*_^6lDXg@kbH=fnT!|HoF%=F#=U|y6wsJR19sErg%4#LdU5% zdH1Dp0d#vxQ}6wE^tUlwsjiMW1jiIqvbLQZK&B0e!U0y;`IMV6#B-D# zjlOD3n(J`;pD+ZBg|tAI`G|W)M@k;@d^`;MgV=MxsB|&s`eH&Ik~>nP^xpHkCz)hK z9ixbCS*oFno~ve0EW^x;Pqu{Z<2teld`Tt-dR~V=Vu2P&6T&p;aoN0)kX>@=7FuEM zg=uriX=&s`29UkV3Q9QR6W_x;^yk8RkY6CvD#qW*Rj~n##mKI2n*Y=doY8-Q$4~K` zkdUcT&1v67Z9k7o$gQw1BB8rXd>i0kZ?*R#srDO~RC-tnQRDXFKCcT~pp=)vYy}>i z_yIOvuNZx;Gvu!YgQ?PsHG#IqnM)WiW8i%q49N}5(3{I1lg}&eT+Sc!yTGY{x?%FS zV?lo!jMeIKK5Fd6Wa|EQi080hxg=L!q1HO0Jy%4&ivn4dvM6SXKU5|b5%6(orwv); z4ymSqc_fwKHya)=59Bj-W!5*0!jkJhyZBtQLKEuC)lo0m4a!=Z%0427+BUfHBV1!9cwq-c$u0LF{yy9UG| zL=@Y)UMAL(wrO6U-@G59_qcA5lC@rmc#9MAYG8694Y(CtLQlLTk>=Qb-A(+-9v%bJ z-1v$8Pi{2%(-?-4M)1Kzsjb~z*<-F+%asGhdd8yA;8lA`c0PGB~x)zqu8aMzE|36lr#ajetrZ+?b_m$==+{+rpc6Fh|ORTrrsk;4M- z_Z~Ffpp6_y%VbS0ePlt*I9p({>TgT-TW&wVU;rVgIMr#kLgf(3b(50jF)+h_<177o z4~Yk|jCq#dk!*3}0F6ht0DYMPe^XYS=@$)8U3(FlXGLvA>vmc6oQ#ng;sA zO7jl9MPez{5`Jf)7T}e{GUFSmJfg*dc$HwGzx*!RYIQpCFmxXIrsU;6r)$I5UUhF9 zjJwpOQuqyW_lrg55CzG{N!3nOYi8gCs-fiZl-Oht5?FK&Y$6*v_^OVR!T=rS*?B8S zAF2yB8X63#2pJ1=2YuJ?j@t|+tkuY9Q%a+(cT(4gJ91!;SvB;i$2_7>rL)=Nz)(hl}$2i!`3zQ;jDh}k!KNfHZp6ThUmygx(Cu?frK|zb1twQPRY_*$a zTF^PU;j7%AcJu^PuU#hdd*)2XR+{&XmRjcmOA?Ix<*KxA<8N%9TI%jXhyW(}w;%YE zW|SSqvvH@{O|a-JzTXym^2EKTM8}lqImY78OItzJq4%q9Fm6qAe60IKGrE0dseK*e zsrmM7Dd`-C;oi543MDCZ_5-`Mv38MPmeTe$nN7@Bphq-jP(wsv zirk~+A*udcJrUDvQ9x7M@011L83%Pb-dN&!imYEFl+jRqQ?f2TW{gg-7sYgT=-AM$ zUy|GPzY?Lt3oC}jVv7+Yub+K8ve_m%OIdFO#_HP7yK*AXO&6+QJh}bjFIJRe9x)oM zenH@>v<;nz=G&zre>I1PxpCF|0EjxzGPv!!3WseJoy^`mC9}({z_N-iXeq$t{$_{| zSiIZ_N>;K27W!2Bj#xWuITc)5|2SqI2y}pzAi;L!THE`bQn9?M7GBvxP4BMTI$|ub zK7s;kwQ(c@VATn@P!pbhzF$3B|3NeVXz(Vb7dwoVCzp614VEIEPN>)p#YOr`NpHy? z!I-7v2T;{$8yDTL@3_>VW#;zIkMl{CLitzQD7qHj0t%v;aQ9>h1i<=+Z5EHys)u2P zQ6PR@OGngNfR5M_i=_)-;Av}-fM&CT1*`a58Bj<0N!xMI}m!C$s zCS8w<^3R0N@Ss7&^g5d!Hd4c=D=Ud;s`N2*-}~)E7#DE<6IANs6bq2{2VCj8dtAc` zB^p=0G;zRjdykTQb^~2P2$Ge)wgMX*HDA@~ushX&loerpkjQ_L@INKSF+mU#^0T7_ zLfv$(M(LLws%Z54{<~((r4k!3Y=Kv4WJSPjqk2Zvtlvk>7gsv}fE{FMl zvj9C|#`1s_+?h$`y#ESgJ-kMmLV^f}p$1eJlx2FA-easM95n0@e0h-F#Q02evZKlM7!T#AMBy{dhL2a!^NAoCbgPj)i`;{v0 z8h7sL`k6-r!)T(0gVEn@2Y2nF4kJ04INt-qKeWhZO>W)Elo=9TX56R#*FTt6v{o4< zXg{%Z(0_ye%*bWEClO=L=C-H%H2EGf*ZZ9LXud|tFU&J1J(G_no8U}2QRe)&2Z%;9 zW$Su*w0TAWd~=*?EQ>*95ts|miTOmeDSV$$2HM6(Ned!G96yN?;Q}!v{U6ThEJ}f= zt{iGVmJ;_-optbNs2*+^GAA)tYQF$-OK^&=>5#N@10-S$_!O_sXDp!3*2Rz$kg$V< zMp+eHmqfgJZup6`dzzF3X)0|8lDt}~n{DFR}PXIa2?{QqAmiG-n5%}XvF zAIE;WEGSxR((P2f4ZV_*1%HH_%>gCb;0Lgz9GYWwYA(SdLq&nT^On37a!}ewez-IU(a|o43!J4vYjr4Tv9+d32hZ@;rwlhkmuQTW(eJZ404 z`2K(jNXkXjc2NIR(eS03*rW7coG~im{Pg>SK^%9E0Jt6JQqZg6#Ctr)DR+@^Cpv5L zo7oCHTlgs=Yqz#9hA>qMF*-RWKxjoLv;JyB`03Lhe`%kOGLtj-bD-4sN;5B-PHpaO z+0nn7s$_wWPWt+7C~Vs zbHH+N8uR{(a&0+)AJFH^wP^eI%r1EOemN-p0%S|mZ~sFAA^>}CnsEy^j;r0l(*8;a zI|}Bo^xpe%Znj|yCf2@xDxjjOszV?HY$%T0X(El>z(#F9-K5bskU)B$MtTgef%-WZ z;?1Gqtl(GIv6)P!Js|6>Xz+sLXunbpoDGM=1d{u_)Scf`gTMW9EhtshfYCk|EtxXWycmo`@<31x2K#Xdg9=Tu>DZ zfK1_c36$T#<9BXMSD_LK)_pY%YsWCsAPSu`1{&D}Oz#Pz}sI>sHS zC}wBk-*n>EZi7zSA}du~>u4Wvm%SoMMma;q ze=zY0)vWOvEh{+dko$l4hp;G3Gij$j5W+Us>tt2cJRBR*p1_cbiKg*@sxFLs=g>{K z?bFJbk#;JMJC`!3qlF?&fdDpH!h8DRE#t;ICB4-DOBttuFxz*{e;$Rl9%#^c>n(h$ zmBA(RD0y+7b!W+tva|J>^Np)1N!0*_uSZ&VLr*#zBmv0qc{6RN$vzUZ(y^8aSrgl0 z6hHSJ81DZ`I-wW=z$*_FA)ZPIe=;$4xhW+4u}yqrZ4A8BY%b_cl*~0A?Z^%MuH6|G zcYX7-K9t$&134lkHr}aTs_{-u1m{4rj6KL+2`@c{sQ!peHBkXzw|y9l3H=oQuz<|LXJxSSQEpTR`NFwn^apudVxU7`ub^aT-Q7?EL#g3 z+`S7D)xVOMHk9k(?;Y9gRRP~~CZ@-NY(EMy^N^IH-85>YrYg&lEDHTw7>n$Ze|*i#a<_LoIqTaNk849NO;V){8bDXo~EB%Rt*Y-OL$yF3Vt3nUj~_p zgt9NaBGn# zbswsw?76>_?BgFb3FkGX&ScYy2Yfax{91SEc^vvp3f+UzXA`L)G# z^(9dLU~(S_5CyTwG^~q#DL)BiT0+3>`4NIn>LdGqEItV+U{8B|w?6LLrX{gw`3y=) zO7v*~kqd5uYPqb3XGdARR+60JRRlbYIB z|KmXMduE<`hwQ+X9MdHAO_CQteaJw!AtVn=R(;Q;LC&^m+&fX^N0A{4Fr5_GEFr|b z;Z_J<4#th!*2+sE4pf$S|GaT@~U{6u5(7_@|YM12-T@MH=K+_2;T$YWHn~|C^5*6h)sUi_fdY)^Ixcu!{$a8cfo;I}IOQy~mf)l2AQE@o*fr?!P4i+UWw^n;e=hsV0(y@Sn+eP#k~nfJFZcSl7kFK z;O921FT6kxbu~LxS^}0NtbzVk0A1zG>!nDBqQIsA(TM-sbz^pUO=>ijZs;7EdpwWl;={Z)+0(S7B&-_7gPtOW(0rc90xYyr zk13DIE4J~g1Ui=tXCre}kxHjKREZW{@g$0_2Yj<>;{g&lD|>wKd=`0=$l*JJ zjsOS3woWCIe7Ef69RUaIt?DDZ(rI!P9)?y-ii3>s^fO+gKJCPOVb!K{bB%CBawFK_ zNg}}298>SJnD!g2dJN};PRw^NbXAm_l#KRJ>+*Sb4avXh5;82XB*`l zVfX0y{DE^W=G=G%Q?l{OCQ=9i&IhZU<70Xd_A4|*;8@AlWf+y(von9e^kbcN-IG%3 zhGhnZ2U!`=(y|Y8^Xa9PD0tDinO?Mw%Nh3(CwAld*X9>S^`T! zYcy-KV%oIX{jkEP_;<@>l#hw|yo|6bRUXpQ+Cm@=vXxsw$p;6MEL?JTGZg&~D z$oKFgVHj2Vb-tfBRqy48L6RAvwA@>9F%}!Z)%XCDKBlswS+>s0*uh@ebJWhGJe!+f z30kFl!;f`e6Mj>UbcBKcC;pi?BW{N%-58b@u=-?_5eYBy{GeuKgcvOCTU|z0BJ>;k z>_G2jhfy~Ha<$lutozg{;L=+9I$CeZ!ZZZu&J<}EK{9W!ZeFY&ibmy-S5Pa_j*HjS z@NE?|BQ2mnqx2D{ccb%yP_OG-ccdP^eEXr28FS!o25*nH zvncon!W#>5fxH3&8K(RKtLB!ldt6wahFsvF2r4JOhT40dyKW&EoO$QlQ{WrFKDypr z?2~@{ueQtvVD_W%v&6b-40m}V>!sZ++cFP6Y)eW@_rc(ITyI4@Qe_!u5`r+z_Bjcf zGVKP87*`WxY%Xcv-t+LY3&vOe-Y6;j_D$E>MANb<3N}eIzG~S`s}F`~=Se30>@M7b zE!A!#!(Emb`l(&2Tq=BDN;2X=RnBdauu5c1ibrU5?xgQ*U-%7czSavgO!X($jx{Kz zvvqf9aI*lZ>T>zH((eH~+Pg;vWEP^f;FDT}ba=4Owhu8fErtms?=3ONx#2ea&S{|| z)ww9barB;1W&=9GCOE+7bI)F$6yR-F+Gu9kqHg}>ih|F?3p>p|vsb#p&eS7l*L_7E zu>G20#;lQTKJuHNC+5AVK1ihryaIgP-~&uXll9GX(JQEIEheDdxkadZ-aI2+*^gkTUTT8JbSj!wQx)WOXd>jpP%;MJ-Q+( z0ISYQRI?*PzaX=A=XU&%KaV5x5EP+$p~$Z>J~7G7h={Y^`g^P2WxX)H_u@u1g$oBR zbba^2(L8hxF$JMBHi0dB^knBov-?8oVQ;d-jfbDV)B^>HPlPGuVR&Hian6-jtIxCPB`H)0woSS)E_UIOf%T2A_-ULZ^h z9C4D}zA`N^1ILfa`))=!__(>3N2hOM`bgh9-Q;+-J>zjs#5j_!lE0>w0boJJ)Qw9+ zu)G(z%h|Ebvs-sV0BP8MOC35bZ06vYIdO?TYO%2Q+Bsd1R##2&Ya613jpG|2C|jT z%$8HW1hG92cf{0HAEa1lFF7zsu{sHAU*VrC6Ef(r)FdjQYqwOd=lcZ)MZ@{*s;Pt!K+ZWd&Bn7q{-zk_U1ag=JRmL^n^C7|Dr2 zQl`eXZBUd7#lIr2H#*2m_93O$9>m1jHNcDYji{u!w^Co`D3C!cBo)~nObbiiWotB0 zQ^U-t4vR1PMqklGSe0^8DPhAzVCEfiJ+k(MV@FSKqN5C<_Z3)VqY2C`z9~Dm@gVJK zJ#`-(=#z2{Hjee4TfdLq9Ak$)|2ByFBL8E-9m zYiKmBGwP}Z_&qT@i7!2i+35nRxE~E2VWwce|1dYwsDRXOJd9rNS63vFO8~^q09@xZ z24vdt-23>!z$MbdBqjz@jpHMPZ#E7sKhtC{g6+;&DEPruOv`YBfKXJZKtTrSBPwg> zw_Dh;g;LBrh(&YMeFXFnMB z6cs&`&p;I?m^-9KK#jZmL5UD4CgHCDF}1RZF2yxvX6wa#kFI&zEj850PmvKW*cbGsE~ zqFW`CJi8>90MLbJ2t+9LeD{*o=R%8qW%Vu~RUz}RjLJ|`*o->L0+wd4Le%PyZd0P4 zy&%VqcB~3h#Z5)V-=$k%qrQI4hePoW@>9W)XNp0fY_)KBiWSOfXyoTc?jbRQMdY|1Z`?=bLB?7 zu9vuGpYT@vIc=#&O;Kk*#ALyU&&cIV++2c}8n_2u4$j7~Y|AxcZG};m<&^dDl16(T zcgZR&o;;?D1#{3$qL#roM%%k#A3X|Ds=^31su} zqx{>S(b;v*RIz0F%g0{SSjZ&s{D=q9pB+vkj=~#t9vqKIJZ>fHjvGCn8-?Fke<*(+ zbjYZ#;avehUMfJ6DOuI!==#09{BUfTFK^w+v7iJEC0;O2@XQFz#iqqYr?>7SSZRGX zY^!}QI3cA~$5lS9!p{=v?@4&@c@lO!n_S3lKC%*O5_KFtpc9VH*94#2esJj41YX)Z zzb!@bgw9`sfM_oYyzsgwhXwKT=+&1*H+ZM%N$w{oU_}_s$jvD3jRWVllp|(ky;UFJ z2=ThE+xcX&8djXV?zAiz%9L={_fn%0J>51_av6+dg<2eqJBA>0B^L~B2%fv=x6?RJ zOUD)~0>9yP`FsMj!iORz#~!`207fT^keR47hNg+FW~ue)>Uz1KD)S#-Mr612hXEZf z6le+-squ}Y7!Ca{$Y*TA7_2$1cJpmPAAlzr*|457Tq^M(#h$u?S$N(Uk&eO`eB(kPA+w4c-I`z%;#w~LAC(d4k=fbls!O(5;|buts8L6J#h zogqeY!6+! z;a%Z}6{N^xp49uM&smAG`))>j5Q|gBWzt0Y53f{f0zbLIZ^L@QK0U^6*Z7|>P8#}M zm$d#|!c??C%mp~N-8^AFoCWclrklf9yCeYo+sJR7lr++B;VIK;XFlJBMId7qKINq; zi|_5e^^4z26S4O-Jcbu{>T0jFKb}#b3fKcp<>H0B|7n8)Tk7!b0|i8PdVfF6K3gr~ zV#JE4bptl!QH+0EW8l0-W{$wIAVUo;A=2WCgT?^|4knb%3hT+|eCbLXZ0?1LO1oj( z0i-c|^=!nM+WBPt@$Bl^lg{7rvYkrHNw43r+|w&;`S=-sb#t*U$AnGi z1;+LLBX=RE5hSp2*^72{O7p|IT^2UsWo)cZ3>H=%kY6|vOVhj=yOt&ID3FOj#QY%Cg7DIF#&bfs3g@x#>yIbxfkBmR6L|OeJswbPJ1#F=y z5HwRL)>mo-1nx+~wTM6rwO`d32^O!105*Q zG^n<4UQ)cly>I1L*zFw4_gf=(ytr7hiL;@7+A{NlFE+`o*&8tP+O}TX4;4i!*>?hj zAmvxuPp4y!I;aW!y&b<#8~E+@ne#BNMj3jnw^16TU(dF-&k_|0t`Lwj^%OQZx{%Mz zoYu+BblS_7xw9xl9Otcw74R$%JT5OJYg%dQJR1>$3h}zaH?Qw!VB2H?vSPU>rhtmA zxNW)*m8Ox7Oa(I33wQ+r4N4?`o0GBs@%J9M*Vfgg^aT{<9QXQ8=#Bt-C z0Q*yC>{2y=<$%;)E`che$jBsoTdzLrdaZQhn(-0)paNX-t%8mJ3sV)3rsxy2#_-qX zCJ4+NOsV0SW^%)IO84zQm#&uix*P;0LBTWei|uLU({#fX+l`;z(M5)Z;Qh6V*sio4+H zS7~8s5*mOyMsg%|n%a-Ab%dRdC+>HeJH5jo(z@hr%U)Tv$i1^8S2>VKzxYm>+%La1 z5Hwqo8?%)Ru}@k6!`D_xiEiU&jXS{{CB~T~U;N~}yVwfIF$VAi&avxG|A!85#o`-K?zCsN2plVU&`VFbQYW)ErvzYMtp96F+K} z)md$p#I@M`5IHJ_W=OQf&C;%)0mMQh)A-kCL_)9E$OsQWIP-jYu=G){2=NHcGW-B9O%Y%lEeytrB)hn{ zS|qnfCYkXpD6gJQcV^_FBZ@1?j&0kSqR;MNfFD&sX0V;-0>7Oolhg7`B$n^zEOts7Hv|&7fy2GPb=rQS4grj0phLC2cMkN7bxE_*s7DB@B-@}1s69*LIBs{iG) z5@(o0AWj+yJN7Il-R3|M{lm6e3A{2kl>C8n!bBT5Cby%vAy1Px>$ir&vMTb|l=$f0 zK7*W+M?)Lgr>kMt(%i8Wb31e8%yeTn-0e+9AS*nW`_d#Cbj%jXRBQ=vnd~|?36~6# zd(-^>zFfkCl(3-ewrO(agYE?LV?P)YCDC$h-^F_i1{lvbuC3kCvb;v-@qZxNw98;k zCRQbG2=Ts1kx`>GuhisfRz{s#I7;D~;CN{%Ve}AR*0jg4m~AViVZHEZFPJUGVZ>(+ zy{m>(xah4h{<-h%deOM;bZSj4!D`D@>ynybzNzI_jFa|O*WtW?*!+#So-%%scz9Ma z_gzX?0DipQdHi{wqfFt=y9iMI;~;yhn~65O$H3_<&B!Lv1hMUcDb!nj*jI@G>|TM(Azxp$5NT&}3d)_k5sSi;3CCGM^S^q*ghS zAUEKuZ@n~dUrD}CAE`s%neLbR^u1kIDYLc7#Q)du?Qnj*Q%ilppEQN$ZCkZm5o4k* zYsj|>a}BqP;nvmOnfLk>DBSA>?MVLoX-JTxiL`yy4!rXoC8S0(l02ojaL(0sKjnsQ z(pufc`G|>IvXYu@xEZWr{XuY?Nob>3^bTn7#YO~2o9Mi_@uZ~&o3UA@x>in1EkbV z(;WV__Yfox;;PHJDgYbb#J8uMyC#GN?*p7zfWeb;V*ZG&%hJlvqeI+KhwgW6t1ZUU zu$m}}iTzo>bpbCMfD690FvIsV5y}>a;kk-QHH1XvQmWYD%g4)cnTM5bnWa-{jWNF; zm7RWbBxBI>Ti>O77V(T*;Z=`YS-=!hdI`d5JA$2>Bi{{le2xmN2<&b+GQ<1WKHfgmT&oeEt$&s&$bhL_wZB4F|*CQXegu1KIlWFMJIFdP)((bXb|}8 zbRtbnX200RDO$uYHs*ex%kxyvE2IrltjIoK1RsV~JLP6T_EuaBg@fDN9Nz~x z+sH7DC>?Ix7N#~=*T&7~mc|MvrEi|BG<-^|m#cGTIi;|UVKWLe%l`4tL*m{97$?x9 z`8m8X)R~;*wHV0P&mgso_&HmBt`=|800+7*lD%Zaw68FW_3j2_(Cy?V5VK#>no-m< zsV{5FpwO?L))#aCzT5nTC%zN2+j-R6t%;xGj?Dj!zzZuE+o#?Wp)`njdy=cucfO+-b zN94u!&?GTO+;)j%i=TJ1t5sZKD%J05>QCX8$PG^4N#~D3)SBp=z^jQ>d86a8pbw7) zm5*9rOtUH-pddmtqw@M3pS4?^@6`>SwK-+k^G;k?%I(qqWD^CadQhLvvVx6;>Sm9mGjf2u9h`^nvo@N<(3)dp$jeav7o0H;4xio*rwm zDonWl9p)=ZFQQ~DZ?+MiN3}vch8UIfEHm0eHZZFRI1W30;g0WJNRoyNgZ z?e^s>zW4Mq9^bUp8sTQSWBUy?L|T*%smSm`q}nV#Et>o? z7TL?xbFs5C8E@{JTENq)|C11?Vk`_%3^ab@r_?~vG%sl(;lV-1Hq?jYkhk?5PnUkn ziE>0$8}Lo$W^FN04Qz7)_5}vcIJEf<6@#hAkF(0(2K22{OjW*hKCGjD53+THd0qAa$b2r^y2ppKwdo!dq6eRN5%G9&vjiroFZye7a!t=;zbWKg zC?ej=NA*|yMWy!{*FkEo68$J`NG%ZGZu(ajj5!$jbS-I~1sg$ITSLmDDtYw!AZ~p% z*yizev%;hADnV4!HkWOyuF&*fgQ3sDf!j-Jk=r)ro`JnB_(lVkE+|Yr=&Lq_N8+V8 zPG?GqT9InA(sFuu2%6f*+kAef!)|~!y=2TC*gV^%qCiOI@Shi5dTJ*mUswx+bM?@{>-`QV9 zV7iY06DlcC4)aG$1mZg_*_69q-3C*=@YVtlV0sm;%W3A zs%m5gA1gwT;8%2<|G`(EJ5f5;iu0fdab}cb$w5(zqYJUK2jd}B)oT{QT*1=9Jf+hBCBgU>ohi_BD47ad6&e@ z&r=jwyB=jFfK#@jki=1n^+TJS`ku z^8`~KBhwMD(11^|pH3}Cf?4Qoky-4&hO&0}lG`-2WkKCewLgZ|;4|D8$Cel>rtww#|694eK&5BTlFeRXye`bfGp>%hZFJVhz6<1U_lC9DZA)QY83gE({d~A zkCQ!Cr5a>F&8^(LkApMo|%%@N+p4N6SLoo)4jLPo;Y^mzs^mURH8+w7TU&h$$ON?4@bkrDm^l z``_&~g+#Z6E*%d&9yQ~rv`y7~GC=jt&o!M15P9ENx))2;N%3OIIyC6+X2`+nxYd)( zO4o3xqqx|G(3?>X)(wwD>^XDng5`CWw!e7v=7#Y%WMJ1HpZ!p_FKB-aXg3oW6lAeN zNog}gO6NB#J6=D?+$`qPhv8yF!v=H;w^tOUFbf<(R#R|W#^*GOrfNF^3EFBO=KVoV zPNAG84lp~!hd!K4>ZHQh#-j4q3E|JhT(yg-TVI*LbwWe)hjQ>Mge)!Rm@jFOal?&- z$LP+g?sC94M~KWE-R_x5RR2St@fw$={xJ2PMT=sYARlK`B$+ajS@54~L;g#nTD5@_ zF28=yNvui^A0J82rbAT@L#SV29`3Dx-RhYD>3Y2~3aor7226R5TJ%q9o6oq8A-jNJ z4mAclYM9)W?`hJfTKhB}cr|bB0!G{DQb2bFUss^u&-(pWbWoOP## zX@F`2T9SPJEssX`S|HAq<;FtxS>)Hf`(hsIfdBL9cq3aDV56HM^x$EA2gAo;w zaRY}aBmeB|We@O04bBww1V0A)nS;g$rba9Mr!)vEUBS+aOY0lsWh>Tq1Y!EZt0urN z%7uxNtltJchLEZ51X@M#e}Pa`G@CP*VdYx?|pTbJuhhii5Nor>m~-lGs*z>Ep!EVsuDJgjbLfZrm&UJYl~sVNairi+e0 zTDqWDfO^QpO3xpT{Sj4PMU?Q7<8E@D02 zO$eKjzgfutod3r`cpbx%xt-^Lz??%G*oTb%YYOzTCoa^VQ%VtiV&+8|S)@|4#Q?8k zPzxF%)Q6snnbi(jzsE~hoF;k^YB-#h7TvX2VBpOn+CtWt2i{DO#O|upf`M$!*C}K! z0=vaJ99QNXX~lV6al^cxfQb)9+b(-FpoUP%2v+or@0V~z!CYerfg zU2EeDC9B4O>ehL-0YH-YG?BJY)@y1~5Akfh#YXl0aC68_3?511)04?b6E%N_AMd&F zx#GL8!);Y2UJp{RJYY@TKYq`~EiEfvJN82dhI8d^Oa>m^t2aGiDg~Bii%xbD_^jY_XvY+eX*FK{#PuNW7duH=sKLH zhqkCJxe_)nN#&qUis%YDU2BzPKmdVm`kCWRD~{6l!CaL!aNhRN6TJ~6lY^FdM+uM` zlbjQXF$@zjPzYl~U;?|!MIhVgMJ6u~r5ElUEI1gzWTBfeRz-3Dy6@^{t@GL;o%V3q zpeS80*u}!a1XpIQ={6^2x_f?90@Z`oRMi;QklWpd)2TvQn|C_u>?AXHnLPGVAngGm zyb6{Id9MsQ;QMqvO3K-pv;dl_Qd#G9P zU+Ic=EGStmvJGESEJ~q_RPQTxpIi1z2b4_2CVU|X=+iH#kK+oBPZ zS#xwo(?Fc$D#>egQTV)gojadk3x}yF^Dh;fI5(XQY1D0+tvh>4e=$$hrB!4kVz)V} zp9)cA!U4~ZQ`{4A+tVb_L#&g{)L`^9LN|Xm;7l);(Z&&?|Ef$RVkMyVtL{Qo43>)NEh5mK(!W61z^M^92K;-_zTmqu zMh`+BCLoBH@I8mRsoEaniWDZDHvO48>pE%v8brcD#KYT6>Mc2Uraqvhy?#@gRPLIU zrmZhs#z=ao|0pj6Ka-l5U$e`RfzlhkwemFAz*x5QD_>IcAImdP77?z}5cfEzIjg)A zwX27{f`uxV{7Vo^r;e8}JmHDkjaSt`IQaF+Emji|{GNv>i%2f+%IcJT4$|k|>cSsR z|HW6|%RJO>toc+Ok1~>3N4Ykhxbhk<%_N+AnxEZjZC(YhfolyES~FdW)St=g`Bk>` zJBp-to(IbmZ?@X3asdSHa6Vfh-6UL=q>_D!70)Pgi(S3EW36o=B&zN zV)ih2^4q&s5?J5@())?ioVO*L2H*se?;X zunJqq2?;Ht!E8pkly&0ZAa;rs$afJjsWp5%5n(MOYJ~Uxj@`D-R#Sw3WiW?RCIU0f z;|W?irT>;f0=l^;y0%WK#ki>)NP9gGR0%`51NzXdu}2v!zQItUZK?U*NAs@FH0RMK zIbU|wc)holp0pr$8<|>H0S6qWm4sbERFUk(S{1#5Gnd&jei<_Gy`C|ee5|W?s33t# zaen@L?^mKIu#g9vBArrI&8r`rSChE(&hxT=?qs9Yhpp)BSPa zqj$xw3mCKRWkz~8hokz!rpA7bgnz2W zEqmfb`{8x0;Q;|z=-tHHFWy-6jDp)WqxTE6SlteCQ_W2K*erHe6vCufyOq5b9&l8= z@^{2GmjECD{4pa%bDGnP8!bqtxQ{B?YH9_39wxmqj#?lDqmz?Su!F;&>fWe!33!lFUXh|4m2+b+BOU5^DZj= z+Xn>XMIg*1Ry!(O8@zA**P^UQ(~_PP=Ms3M3k4;vZ-$fn6}WRRSR=r)<=x?WC_NhI z>C_Q2h*MPeW0caGC1kJ9Z$|DxZ5x+S>td7#~B>Sq3Y9Nkk#5v>gn{64@^AvT3vse~V+x-1TRG;sJ za*x?v771C%pGOEM%uBRj(IU2PKurV;CfHT~$MYV3;xF;Q-k{W+iS&2LG5riLZnOzw;+3|E{3}4AoS+-`bGkR_p)xSYRdN1g z;IbqRo1t^FkEEdawMzN=qxI8j1=LLyxp~zhy6yv|Olf4oiL3<8o?q=#2u4A&rR(Kh zo_c?hH8-SWADj)4CWUT@S@>W3I0(XqYt{c#DFAAxp6FZixD4t+`xPvjt@#JlFK~*U zVqd;E6XLYD?p@&TSLb+1C`Kv{H>Wy*R~Q_^cC9z4bS|g)7^g1V1560v>(f7edld@{ zqn#ksdWRv##>@h<4a{^)Ti270&}J;0%g&cn#9-bDm=S%Riws(LVLw3MwZ7498+^5i z^*_vr6!<10%wQ`3egew2k3yL#=nFosAHucXmsB2n2ihx^hrQfaEv$4S8ph!ls>U%6 zg#LyGs7&xpy(`b9Nj?jj-0z**I~~XiYV3>8x^j#)4wyt6;vZG&yDQqh;;vumGa||D z&55JHV%Kzp=&Qd=m#ImN#~LkL`JpNY@X3FPCKBk^v$-)c;e{MhPbYNIt2UeawiwQ@ zjZ4aC+l|$LiUj4llQmmSMg_aqLv4$R3_GfxF=3mhVQQt6L&CakqxUUt2OcWYixn7l zo$+FG;?-4QI%ECyOIq}xL11kKs`V@8a?&0Aq4wzDd+Xhvmr0_=qIz`+;mexwE~r%( z457Rf!s%jvgL|d;7i5!;MHKM60R|~@1X-!BGolW)Ig0E0;4W&R6o4fgx|MQ*SIaHK z)MUgp2I6;&gP40-!e=G zCVCNSmT?Qi8lHATPzztTIx957XEW5a+E(~Y@k6_zTr7s^$;q3zPYVtdVCFOdmrX~p z>LvVFh9WQ!Zr988k^Le(&N-$CHWE!$+{;tWOLFYWFd{to9)q#Gm2y?t+fl-a%=x!} z#pkAv`+bQ)=bI~0+zZpMllbLc=hX>wDyfQ(yIxOchZrYYC>yydxX8QGB%FMzg!X=u;7l*|44iH8_9bXQenIoz zvAaum8LFT!uqpQMv^ppN8}4caO7EA;wB-(O1;cClb%TFJKkV^%8YoHObR0e}VGDoz zc)J$0&bozf&J&r_61sZ!0#w9BSBY|oYpqv}lwLRU#;EvCSU#Ey;HhL2r|DBI06|GV zq&JX=DC=>ZXaE1dFq73wk%QFO9sM{_@7^l1jdEh zC|KOM0t&pN6N-|=x5JAXCC6my1AkCZtSox^*6U9Nj$CiNf`K8ukre%?SZ`)K9`H)6 zf(k*kcCsZJ;73j)Rx1u?`n-lX83tT`jW#G48!j_uyFh((^xK^UnmFC--S*dUe5DO- zT?t5~Y2|koVpN<;jP$%&P}?w{c9iA=#Js-yw_@D%?|hhq%S8K#nIwU@xU;Tb=k4e3ewO^mrkeRJ z6<&cEC~^dkN>h3-K_RI%fgew%OHx`FXG2pFU#oiV%Nwm?hVTI;l#OY6{@w>QQ((L2 zQ7Q)OP071~p}ah9hP`#}8AD~unH5VNknmVVMVe#TzmZ-P2!d=0+P5bQ_e0z$ER3yGFhtf*j2UaFP^&4P%C5M|5oXnD&CvXq5?+H#&SXq;N z1-e;F4Cn~l^HcdY27uyz#O{r>I)$#uh}CG_$_cPWqnB_ZBk5m$J_ZDkVzgkRLMieL7Trem*%G~m3jQ^otw>%_k#={+WAudIbHOiPjg+kdiVnH* z4Vu#uGt$LlZ6O!Ktjx3x%TdA^^?U9Wm9aEC?Y55(jb<NWh6 zYeR1`BN3SW?KJiJU)JR>kG#fVA>YTdo*?EOy&}a8e+@eHZ5W!98%}Gsy)R{v)!`|Q z7_#IY`^~E>*SBIk3&)RowfeP}-}W+lZ>rE?H^*Iamu-3z8^jZaAtA_~a6C+^b15g* z3Q`3l!76#v&fAr$H3bg{ddjs&v$(Un^26I^4&W48sE-U;k^Ovi?J?BvbcXBcOrdpXW!u94KcL`Wi)Iq2 zDR)_X7dMU*x;pEqT{uQ~9u3U7ungMFzNIaF!b(tVt>4%tv||d=Dam*{sp~R(YOQm% z^}T;i0Sf*$^hIcbAeLm`bTl)oK zr%NItfz#S|8*qA99SKnSY-nw+G+;>3kPOU*>7W4*`L00Yx7Di5uT<3)lgH(5*FGX? z^zbg#Z@B?mZPqFTSF{tag#rshWE6(^dMH=4be*edrAeE)xjh;KrqCUNwF$U0%iW}V ztO})`{k(DdJ;m!%#_L;c2|=&_O)06A=h@%D<}wl4R#zNx2+I!AY78fG|GFFYi^;0o zAV9R!3J%y+fX8gKUfxUEGd@Zck>I2qQXRaY&dCz7PO3-=&{L(2&+qFZZPRss=zAaK zZKikF04b?RIbYdAPicKndQlc~zwHyqkz;kyU|-kjfCVI8xrdKryer>6qu(j<=as?) z5QAd)Y5$6gO+iHXdkhORF9AsZHExIPc{9qCkhChrpH@}hgl>1XgzB_U1NlBQ{(dou zz-XjfNk;N5zTI3D1rlF3sqX+Gh!FllDshd-?dZVf;u` z=OfO#sNb?~MbXI>oPYS0h{EL8{vq~Z(tp!lyHY&X|Gr|Y6`-5izwO6G&akUEj@mh@ zoljO*Lfezr9D@Wf7WEnF6FwMta(HRhM8SSrl_Z=1m>uGc2jjL@-H0`Y%cf4Xs>3TS z`N*Dua=K_(7_PiiN7#=0lo`OV{J$Xni}7B46%mFjnQz>x1oBf%xbEX!RnV=Q?n9#- zwpPHObXW!GAX6o=Q-vB*hqsIb96SOu@~1wm>_YUJH5Aq3V!L2V2lRA%fR3ujnAba# zLU!vOAd9WKz*6X!5q^Pnd3TJoL2!2N^9i|BBWK6qV<5g`2>pnO!l8z#OFGiUEtw9n ztwnR*F^p&C{9pZ19{%$4Mrd?;NwFOLi=(O~jllcS(aRp&_(9F>Z8sG+1>^+Qn!LNg z3K~?jJU$^O19aT-ihD9zNY@2MUt_$Vh4+D1`~BqH>$LPNIQsrn(?Vf7;=({7ge@1U z&WBph7I*H+VW0yfZ;`Q=H81rE{`4dPQ~y$h2S>8LIoqycyQ57|v(3KQolsNA^mkz6 zWI(OBd_{8Kj9H7_AZn(OW%SB?&Vt;k#Fb0UupByyN)r4!AxV62l(hB>hr=JvAtfT zuBOFxZC><*AcwoHyI7Epc7-0!@lDIsRyWi=6t||lKfp)CC0$4x;5P}qt@?KbusU8I zIV$TrkwRW*vNEd@SXa~&uIrb8(M#L8 zd?!rG!|-3DzgIQs9Q^?%W|GZh-%7#54wRptbCVN0RAszQbFMa&lX=yROSJFUkw6KS;RfwsI>NC2wEiu5%{(rz)RY#t4y?yCNOg^$G%OLo zbLN>o_f)9)uBOC*3t?U>ZiR0+hrFtoW`@o=TPxg zpSNLb3yKXh)_JPSHQc~NOSG7`sjs;+Vy678E9-12r&t zL?AK+i@&3Z6t%(qzLCWD>&_E2*wyruiq3MGW`3C1kdAq!8-w;H6`Z%8P{u&?riBm$ zg)a@dY^G?qU94ZGc&Uqsib0&_Z2$w)@zgT1mhwq^HCwN4l3z9&DssGvs^VesiOw=hde5EzMIR;g55#Ejrop&o;cj-o-YPZrN;TgLLXy7_X zf@->x6t-mZf!${%gr?`+SF|!1r|pcDN>;c5q6V~vbw=I$O;k@@$11K|j1o|7KZcqIR4MH45{u|jLT zId->T!4IjVd7ql-f2uqpk*&owI!O54c1LQ*EyGLcB`R1PojaBSYPPd^E>9 zdl3RNT%1ksw_h40EpWGai(?8Feu{#9!|(kkwJ8Ulx)wi1h*jhjo?$s1jw^DWJZia$ zGYSleDgIx3SHjdp*0m93a6yrA0R+V*5c9Ii`T_#(u@e?e6j@|ZHX$ryP#}bmIH))Z zICetVVH5&Jwh;&z2mwSH!xCP$Fc1WUNE8A{*e0xB2=&!l_5FtLR&`gUQuREipL@=^ zr>ncqwZ{>ECMwJa?zJTB|qV)?WpFYQpT(XEDetX4mT=dRI|Gi6qkaPFm zV@XEelrWmM9V*Lc*+-aM51Ss06X{J@lZZLxDGwk1E?veS{(ePeFCBb^I?(yYmDC_i z3r)Y0Cv8P?`|Q@P+laysa+OD4XL)uzBlxdRbU9x*n9g&|c#GIVd!lw!L;jRNUXcCS zM)+L|>5kET)Hb*{n`RjIdKM(9M2}5jjv(|rN7kgsC%=*RIyH=U$dNSC@DT7sbG7aCidp@ zrf){@UukI-ncavueBV(YN4_VGMZLr^dT-{;4~vVZ)+i_*R8spu6aT(DkU0wXqVG3q zx@Ue!va$mz^y|u37W}{izwPj+FB9ZUXT*0xbZC+T)(7+(J(>}J9#v6yzjFjV0ii77nZF|St#YZ@aFE{VTlCtjs=`f?TQk;LjHjJa;YMa93%HPH zidYt^{#)b)Jf3}T1cvLGbKPng0|!&6s3VdG%s_~w2cm^A4p(aGM2NpbQYffwQ|%2t zIVFonq^l!aCp`Z=+Lm-6e!hY@^R!&LElGUT|sT%3{?ATMjMz>>e;axwmxClLusi#nB|6K{y|+i2fBhj zN_2)mTCT z#LqHXOnG21GlOa_RrY>N)xkxAUI=6S{tF%U(m5+c!n{n>WyA>wcW%k;ZZ7#)M@5w) zJCE&dYJj&zYP7Lp=hHN%QxpIcW;F{^_)~ODIgb_ASSMV9TkH&fm`N0@#Ekzb@h>R=&<;8X@k35M2?HY`TofyW;A0wU3+5Dv1GwK-}9m zI#ml5$vJfqk|rpvVLdg`E$s4o6-!Y>etutQGgNCqVC=k?T9FL)AU!FIhBu>6whSZ- zDp1W+XEO`b0j{I?@m$K*B+Xx|>MS^RI^Pjk4D2Fj#|9ngs>3mF%5r_Rs@_S$WR4T3 zh1Q_fg%H2stalS62X5qP?}@!q%z!Xq9EJEY?vjU-;CoJsmIVtk(Q+ zlda77vesI_(U2xm8mM*b8P^Kh)#hQoruV}^2Hs1XgDawR zP84n3U^L<}-<^JZGkSTXJZL<}?@nl(Qry>tN>c-tI3d33>8}B~JS%O^VZih5YYgEQ zpURqj5atIjHN2}#ZRGcd_jHbm3um8Ob+4NSUnZ&#pQ3NZ{*No$r8Pla=nU&pd8|1{ zz0;c#s3RE`5XaY^=*vfy1QnZ*2Qmd_@zp$Pb{uYEby3h_t)(hD=4R^?VLShdToxs! zoc9=CgOuvif~o(KiKC?Th;-^s&l}S{tmqDHK=K(vhP;1L*!TOTSX|rFDWb|xTaVMR|^PwDI{5cS(f*=EseT4c^kAwBbO(3gxEg=b8gK$RjHeJloLaC9ScBcKuv?%pz>v^UV`7q`)yJtuRG12VKyv+1mc(I$(PZp<*I4IN|6c(p`bn zV0Yv2jv7?+w04?-%Hw*QL}$X{cyGv3z*Qs7pkk@WC{R^tta@m$3W||x;oz?25SA6y zTciQQt!4_p5_VAqW+wi-$2x1eh&M=er=%ZWNr#bG>fbLHOWjYG7Q2?xIfjV1vt_z; zt(ZH)d=1-3&)^T-Ki@D6E{i1)LoE@*;_%-&&qHHR607~t3+8{V-*J+*z9?;VPknY! zkJH(hue2c609h|7*c|$%DjjE!d27~GU}nBEx}6}Fj)yeg7kqFCsbvb9%d4xl$Gwog z(S2F`1(Krlak`|o&7b{e2y!iWVyp;%d-)yTargthOPr6}C0-C3HYY43y^Q)zgUl+V zl<_Mz{ra0!b#Cpb1~jrY2FtGju{f~r=P#D;YIN#wJ?ft)E;QV^im@@_famH*tyVl3NP}MOleOAbASAcWdXV3+^ds;+}M3v!7U9$8em;3x&{kFGd z7|vWe&yUuT>-7!KokD}N4W48*4!XO%O2|iqXquF8Dev&?WunlFjv2& zRM4bf;)a(LopM{EeVD}I@=Xu2$Jv#AMR%r3yT4|*`A z`>DoY+NVTeyVuObC;Iu}1C&PT5xClpR&LjQo@#khfixY7T&mjs&781#bxX{>ryGhz zZok}ikalnp2wNK;&R(N4UsBk1E`+9B>kkbs&KQCNI03GFyS%1Z>{d<_dRNYAw)!Y4 z`y$&PtS`-04rb5wr27{Kj(ryvXrcN2#x=Pn<^9%6Io4JtHMJ);ioA>HJ?$&N33gXY zE?{6lTVVvsaw_R~));9kZ8;36bV=fxIjf+a%=5is}v#UM*D3ZC)wvro~l4^h*HE|*0tN^%_iw~-d|%3%wfs#q0(U`kb24n- zy=y6t_+G8>S6*Kf(g7C^3X#6ostc&%H2=}zL@f`tU(LUV>w4UvP^J+FPiDCs2S7Nu zau>AIqXq9%l%XUT?%Z-ZKv?3y2m79J9oyW=VlrSwGk#T>Ldi%kj_Lm_H{3^O7&wV} z5IeGO^EUi)F~kcH#{=wZh_}hxH$l)lw`hVJigfffw^RD9>|nZJ1=7z&gv26Y%s}Cs zC2M({rR9q?ufv8`$b3WO7hU zAmyNa^iqdpE*!xAP&|Ss2Rn%W>1uZ;2kX=RHrOWPiQ-E2Nsb+*`sg@Jp8f}$?X!*q_gsaN=N03&wyuVq(y_Z~*UuUyLku$+itpl|jg>3P44&T`WD)KZ;=tS zSkf16UNdR8iDlF&wI`D6kx}X6U+aCzE3oxsTWc`IIQP17E`*HK&kCe)`-ARNP*(1+ zELuJlg~t@zz!I}jm@s_?)XXN3^4To$uo=NRS|h}|#D*}6hS5u>*!T~)=y;*zocFK)1B2)K>;M1& literal 0 HcmV?d00001 diff --git a/examples/realworld-app/rw-rest/build.gradle b/examples/realworld-app/rw-rest/build.gradle new file mode 100644 index 000000000..8b17e2b26 --- /dev/null +++ b/examples/realworld-app/rw-rest/build.gradle @@ -0,0 +1,22 @@ +plugins { + id 'java' + id 'org.springframework.boot' version '3.2.1' + id 'io.spring.dependency-management' version '1.1.4' +} + +group = 'realworldapp' +version = '0.0.1-SNAPSHOT' + +java { + sourceCompatibility = '21' +} + +repositories { + mavenCentral() +} + +dependencies { + implementation('org.springframework.boot:spring-boot-starter-web:3.2.0') + implementation('realworldapp:rw-database') +} + diff --git a/examples/realworld-app/rw-rest/src/main/java/realworld/rest/ArticleController.java b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/ArticleController.java new file mode 100644 index 000000000..9e207c7e2 --- /dev/null +++ b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/ArticleController.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. + */ + +package realworld.rest; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; +import realworld.db.ArticleService; +import realworld.db.CommentService; +import realworld.db.UserService; +import realworld.document.article.*; +import realworld.document.comment.Comment; +import realworld.document.comment.CommentCreationDTO; +import realworld.document.comment.CommentDTO; +import realworld.document.comment.CommentsDTO; +import realworld.document.exception.ResourceNotFoundException; +import realworld.document.user.Author; +import realworld.document.user.User; +import realworld.utils.UserIdPair; + +import java.io.IOException; +import java.util.Optional; + +import static realworld.utils.Utility.isNullOrBlank; + +@CrossOrigin +@RestController +@RequestMapping("/articles") +public class ArticleController { + + private final ArticleService articleService; + private final UserService userService; + private final CommentService commentService; + + Logger logger = LoggerFactory.getLogger(UserController.class); + + @Autowired + public ArticleController(ArticleService articleService, UserService userService, + CommentService commentService) { + this.articleService = articleService; + this.userService = userService; + this.commentService = commentService; + } + + @PostMapping() + public ResponseEntity newArticle(@RequestBody ArticleCreationDTO req, @RequestHeader( + "Authorization") String auth) throws IOException { + UserIdPair userPair = userService.findUserByToken(auth); + Author author = new Author(userPair.user(), false); + + Article res = articleService.newArticle(req, author); + logger.debug("Created new article: {}", res.slug()); + return ResponseEntity.ok(new ArticleDTO(res)); + } + + @GetMapping("/{slug}") + public ResponseEntity findArticleBySlug(@PathVariable String slug) throws IOException { + Article res = Optional.ofNullable(articleService.findArticleBySlug(slug)) + .orElseThrow(() -> new ResourceNotFoundException("Article not found")) + .article(); + logger.debug("Retrieved article: {}", slug); + return ResponseEntity.ok(new ArticleDTO(res)); + } + + @GetMapping() + public ResponseEntity findArticles(@RequestParam(required = false) String tag, + @RequestParam(required = false) String author, + @RequestParam(required = false) String favorited, + @RequestParam(required = false) Integer limit, + @RequestParam(required = false) Integer offset, + @RequestHeader(value = "Authorization", required = + false) String auth) throws IOException { + Optional user = Optional.empty(); + if (!isNullOrBlank(auth)) { + user = Optional.of(userService.findUserByToken(auth).user()); + } + ArticlesDTO res = articleService.findArticles(tag, author, favorited, limit, offset, user); + logger.debug("Returned article list"); + return ResponseEntity.ok(res); + } + + @GetMapping("/feed") + public ResponseEntity generateFeed(@RequestHeader("Authorization") String auth) throws IOException { + User user = userService.findUserByToken(auth).user(); + + ArticlesDTO res = articleService.generateArticleFeed(user); + logger.debug("Generated feed"); + return ResponseEntity.ok(res); + } + + @PostMapping("/{slug}/favorite") + public ResponseEntity markArticleAsFavorite(@PathVariable String slug, @RequestHeader( + "Authorization") String auth) throws IOException { + String username = userService.findUserByToken(auth).user().username(); + + Article res = articleService.markArticleAsFavorite(slug, username); + logger.debug("Set article: {} as favorite", slug); + return ResponseEntity.ok(new ArticleDTO(res)); + } + + @DeleteMapping("/{slug}/favorite") + public ResponseEntity removeArticleFromFavorite(@PathVariable String slug, @RequestHeader( + "Authorization") String auth) throws IOException { + String username = userService.findUserByToken(auth).user().username(); + + Article res = articleService.removeArticleFromFavorite(slug, username); + logger.debug("Removed article: {} from favorites", slug); + return ResponseEntity.ok(new ArticleDTO(res)); + } + + @PutMapping("/{slug}") + public ResponseEntity updateArticle(@RequestBody ArticleUpdateDTO req, + @PathVariable String slug, @RequestHeader( + "Authorization") String auth) throws IOException { + UserIdPair userPair = userService.findUserByToken(auth); + Author author = new Author(userPair.user(), false); + + ArticleDTO res = articleService.updateArticle(req, slug, author); + logger.debug("Updated article: {}", slug); + return ResponseEntity.ok(res); + } + + @DeleteMapping("/{slug}") + public ResponseEntity deleteArticle(@PathVariable String slug, + @RequestHeader("Authorization") String auth) throws IOException { + UserIdPair userPair = userService.findUserByToken(auth); + Author author = new Author(userPair.user(), false); + + articleService.deleteArticle(slug, author); + logger.debug("Deleted article: {}", slug); + return ResponseEntity.ok().build(); + } + + @PostMapping("/{slug}/comments") + public ResponseEntity commentArticle(@PathVariable String slug, + @RequestBody CommentCreationDTO comment, + @RequestHeader("Authorization") String auth) throws IOException { + // Checking if the article exists + articleService.findArticleBySlug(slug); + // Getting the comment's author + User user = userService.findUserByToken(auth).user(); + + Comment res = commentService.newComment(comment, slug, user); + logger.debug("Commented article: {}", slug); + return ResponseEntity.ok(new CommentDTO(res)); + } + + @GetMapping("/{slug}/comments") + public ResponseEntity allCommentsByArticle(@PathVariable String slug, @RequestHeader( + value = "Authorization", required = false) String auth) throws IOException { + Optional user = Optional.empty(); + if (!isNullOrBlank(auth)) { + user = Optional.of(userService.findUserByToken(auth).user()); + } + CommentsDTO res = commentService.findAllCommentsByArticle(slug, user); + logger.debug("Comments for article: {}", slug); + return ResponseEntity.ok(res); + } + + @DeleteMapping("/{slug}/comments/{commentId}") + public ResponseEntity deleteComment(@PathVariable String slug, @PathVariable String commentId, + @RequestHeader("Authorization") String auth) throws IOException { + String username = userService.findUserByToken(auth).user().username(); + + commentService.deleteComment(commentId, username); + logger.debug("Deleted comment: {} from article {}", commentId, slug); + return ResponseEntity.ok().build(); + } +} diff --git a/examples/realworld-app/rw-rest/src/main/java/realworld/rest/ProfileController.java b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/ProfileController.java new file mode 100644 index 000000000..65ad334ca --- /dev/null +++ b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/ProfileController.java @@ -0,0 +1,69 @@ +/* + * 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. + */ + +package realworld.rest; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; +import realworld.db.UserService; +import realworld.document.user.Profile; + +import java.io.IOException; + +@CrossOrigin +@RestController +@RequestMapping("/profiles") +public class ProfileController { + + private UserService service; + + Logger logger = LoggerFactory.getLogger(UserController.class); + + @Autowired + public ProfileController(UserService service) { + this.service = service; + } + + @GetMapping("/{username}") + public ResponseEntity get(@PathVariable String username, + @RequestHeader("Authorization") String auth) throws IOException { + Profile res = service.findUserProfile(username, auth); + logger.debug("Returning profile for user {}", res.username()); + return ResponseEntity.ok(res); + } + + @PostMapping("/{username}/follow") + public ResponseEntity follow(@PathVariable String username, + @RequestHeader("Authorization") String auth) throws IOException { + Profile res = service.followUser(username, auth); + logger.debug("Following user {}", res.username()); + return ResponseEntity.ok(res); + } + + @DeleteMapping("/{username}/follow") + public ResponseEntity unfollow(@PathVariable String username, + @RequestHeader("Authorization") String auth) throws IOException { + Profile res = service.unfollowUser(username, auth); + logger.debug("Unfollowing user {}", res.username()); + return ResponseEntity.ok(res); + } +} diff --git a/examples/realworld-app/rw-rest/src/main/java/realworld/rest/TagsController.java b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/TagsController.java new file mode 100644 index 000000000..7fd8452d7 --- /dev/null +++ b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/TagsController.java @@ -0,0 +1,55 @@ +/* + * 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. + */ + +package realworld.rest; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.CrossOrigin; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import realworld.db.ArticleService; +import realworld.document.article.TagsDTO; + +import java.io.IOException; + +@CrossOrigin +@RestController +@RequestMapping("/tags") +public class TagsController { + + private final ArticleService service; + + Logger logger = LoggerFactory.getLogger(UserController.class); + + @Autowired + public TagsController(ArticleService service) { + this.service = service; + } + + @GetMapping() + public ResponseEntity get() throws IOException { + TagsDTO res = service.findAllTags(); + logger.debug("Retrieved all tags"); + return ResponseEntity.ok(res); + } +} diff --git a/examples/realworld-app/rw-rest/src/main/java/realworld/rest/UserController.java b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/UserController.java new file mode 100644 index 000000000..2d6e7def5 --- /dev/null +++ b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/UserController.java @@ -0,0 +1,79 @@ +/* + * 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. + */ + +package realworld.rest; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; +import realworld.db.UserService; +import realworld.document.user.LoginDTO; +import realworld.document.user.RegisterDTO; +import realworld.document.user.User; +import realworld.document.user.UserDTO; + +import java.io.IOException; + +@CrossOrigin +@RestController +@RequestMapping() +public class UserController { + + private UserService service; + + Logger logger = LoggerFactory.getLogger(UserController.class); + + @Autowired + public UserController(UserService service) { + this.service = service; + } + + @PostMapping("/users") + public ResponseEntity register(@RequestBody RegisterDTO req) throws IOException { + User res = service.newUser(req); + logger.debug("Registered new user {}", req.username()); + return ResponseEntity.ok(new UserDTO(res)); + } + + @PostMapping("users/login") + public ResponseEntity login(@RequestBody LoginDTO req) throws IOException { + User res = service.authenticateUser(req); + logger.debug("User {} logged in", res.username()); + return ResponseEntity.ok(new UserDTO(res)); + } + + @GetMapping("/user") + public ResponseEntity find(@RequestHeader("Authorization") String auth) throws IOException { + User res = service.findUserByToken(auth).user(); + logger.debug("Returning info about user {}", res.username()); + return ResponseEntity.ok(new UserDTO(res)); + + } + + @PutMapping("/user") + public ResponseEntity update(@RequestBody UserDTO req, + @RequestHeader("Authorization") String auth) throws IOException { + User res = service.updateUser(req, auth); + logger.debug("Updated info for user {}", req.username()); + return ResponseEntity.ok(new UserDTO(res)); + + } +} diff --git a/examples/realworld-app/rw-rest/src/main/java/realworld/rest/error/RestError.java b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/error/RestError.java new file mode 100644 index 000000000..1390744a4 --- /dev/null +++ b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/error/RestError.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package realworld.rest.error; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import java.util.List; + +@JsonTypeName("errors") +@JsonTypeInfo(include = As.WRAPPER_OBJECT, use = Id.NAME) +public record RestError(List body) { +} + diff --git a/examples/realworld-app/rw-rest/src/main/java/realworld/rest/error/RestExceptionHandler.java b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/error/RestExceptionHandler.java new file mode 100644 index 000000000..b09b505e2 --- /dev/null +++ b/examples/realworld-app/rw-rest/src/main/java/realworld/rest/error/RestExceptionHandler.java @@ -0,0 +1,79 @@ +/* + * 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. + */ + +package realworld.rest.error; + +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.context.request.WebRequest; +import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler; +import realworld.document.exception.ResourceAlreadyExistsException; +import realworld.document.exception.ResourceNotFoundException; +import realworld.document.exception.UnauthorizedException; + +import java.io.IOException; +import java.util.List; + +@ControllerAdvice +public class RestExceptionHandler + extends ResponseEntityExceptionHandler { + + @ExceptionHandler(value + = {IOException.class}) + protected ResponseEntity handleIo( + RuntimeException ex, WebRequest request) { + return handleExceptionInternal(ex, new RestError(List.of("Connection Error with the Database")), + new HttpHeaders(), HttpStatus.INTERNAL_SERVER_ERROR, request); + } + + @ExceptionHandler(value + = {ResourceAlreadyExistsException.class}) + protected ResponseEntity handleConflict( + RuntimeException ex, WebRequest request) { + return handleExceptionInternal(ex, new RestError(List.of(ex.getLocalizedMessage())), + new HttpHeaders(), HttpStatus.CONFLICT, request); + } + + @ExceptionHandler(value + = {ResourceNotFoundException.class}) + protected ResponseEntity handleNotFound( + RuntimeException ex, WebRequest request) { + return handleExceptionInternal(ex, new RestError(List.of(ex.getLocalizedMessage())), + new HttpHeaders(), HttpStatus.NOT_FOUND, request); + } + + @ExceptionHandler(value + = {UnauthorizedException.class}) + protected ResponseEntity handleUnauthorized( + RuntimeException ex, WebRequest request) { + return handleExceptionInternal(ex, new RestError(List.of(ex.getLocalizedMessage())), + new HttpHeaders(), HttpStatus.UNAUTHORIZED, request); + } + + @ExceptionHandler(value + = {RuntimeException.class}) + protected ResponseEntity handleUnexpected( + RuntimeException ex, WebRequest request) { + return handleExceptionInternal(ex, new RestError(List.of(ex.getLocalizedMessage())), + new HttpHeaders(), HttpStatus.INTERNAL_SERVER_ERROR, request); + } +} diff --git a/examples/realworld-app/rw-server/build.gradle b/examples/realworld-app/rw-server/build.gradle new file mode 100644 index 000000000..42d7057b4 --- /dev/null +++ b/examples/realworld-app/rw-server/build.gradle @@ -0,0 +1,21 @@ +plugins { + id 'java' + id 'org.springframework.boot' version '3.2.1' + id 'io.spring.dependency-management' version '1.1.4' +} + +group = 'realworldapp' +version = '0.0.1-SNAPSHOT' + +java { + sourceCompatibility = '21' +} + +repositories { + mavenCentral() +} + +dependencies { + implementation('org.springframework.boot:spring-boot-starter:3.2.0') + implementation('realworldapp:rw-rest') +} diff --git a/examples/realworld-app/rw-server/src/main/java/realworld/SpringBootApp.java b/examples/realworld-app/rw-server/src/main/java/realworld/SpringBootApp.java new file mode 100644 index 000000000..16d03d352 --- /dev/null +++ b/examples/realworld-app/rw-server/src/main/java/realworld/SpringBootApp.java @@ -0,0 +1,34 @@ +/* + * 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. + */ + +package realworld; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import realworld.config.DefaultProperties; + +@SpringBootApplication +public class SpringBootApp { + + public static void main(String[] args) { + SpringApplication app = new SpringApplication(SpringBootApp.class); + app.setDefaultProperties(DefaultProperties.getDefaultProperties()); + app.run(args); + } +} diff --git a/examples/realworld-app/rw-server/src/main/java/realworld/config/DefaultProperties.java b/examples/realworld-app/rw-server/src/main/java/realworld/config/DefaultProperties.java new file mode 100644 index 000000000..a7b177a67 --- /dev/null +++ b/examples/realworld-app/rw-server/src/main/java/realworld/config/DefaultProperties.java @@ -0,0 +1,39 @@ +/* + * 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. + */ + +package realworld.config; + +import java.util.Properties; + +public class DefaultProperties { + + private DefaultProperties() { + } + + public static Properties getDefaultProperties() { + Properties p = new Properties(); + p.setProperty("server.address", "0.0.0.0"); + p.setProperty("server.port", "8080"); + p.setProperty("server.scheme", "http"); + p.setProperty("server.servlet.context-path", "/api"); + p.setProperty("spring.output.ansi.enabled", "ALWAYS"); + return p; + } + +} diff --git a/examples/realworld-app/rw-server/src/main/resources/application.properties b/examples/realworld-app/rw-server/src/main/resources/application.properties new file mode 100644 index 000000000..c4b6a564c --- /dev/null +++ b/examples/realworld-app/rw-server/src/main/resources/application.properties @@ -0,0 +1,13 @@ +### +# Application Settings +### +server.port=8080 +server.address=localhost +logging.level.org.springframework.web=DEBUG +jwt.signing.key=c3VjaGFteXN0ZXJ5b3Vyc3VwZXJzZWNyZXR3b3c= +### +# Elasticsearch Settings +### +elasticsearch.server.url=http://localhost:9200 +elasticsearch.api.key=VnVhQ2ZHY0JDZGJrU... + diff --git a/examples/realworld-app/settings.gradle b/examples/realworld-app/settings.gradle new file mode 100644 index 000000000..846924785 --- /dev/null +++ b/examples/realworld-app/settings.gradle @@ -0,0 +1,5 @@ +rootProject.name = "realworld-app" +includeBuild("rw-server") +includeBuild("rw-database") +includeBuild("rw-rest") + From f2f79a698a9c9ea9e9fa0ad7dc7f656aab066aff Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Wed, 7 Feb 2024 15:44:04 +0100 Subject: [PATCH 05/25] Make the code generation warning more visible --- .../ElasticsearchAsyncClient.java | 19 +++++++++++++++---- .../elasticsearch/ElasticsearchClient.java | 19 +++++++++++++++---- .../_types/AcknowledgedResponseBase.java | 19 +++++++++++++++---- .../elasticsearch/_types/BaseNode.java | 19 +++++++++++++++---- .../_types/BulkIndexByScrollFailure.java | 19 +++++++++++++++---- .../elasticsearch/_types/BulkStats.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Bytes.java | 19 +++++++++++++++---- .../_types/ClusterInfoTarget.java | 19 +++++++++++++++---- .../_types/ClusterStatistics.java | 19 +++++++++++++++---- .../elasticsearch/_types/CompletionStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/Conflicts.java | 19 +++++++++++++++---- .../elasticsearch/_types/CoordsGeoBounds.java | 19 +++++++++++++++---- .../_types/DFIIndependenceMeasure.java | 19 +++++++++++++++---- .../elasticsearch/_types/DFRAfterEffect.java | 19 +++++++++++++++---- .../elasticsearch/_types/DFRBasicModel.java | 19 +++++++++++++++---- .../elasticsearch/_types/DistanceUnit.java | 19 +++++++++++++++---- .../elasticsearch/_types/DocStats.java | 19 +++++++++++++++---- .../_types/ElasticsearchVersionInfo.java | 19 +++++++++++++++---- .../elasticsearch/_types/EmptyObject.java | 19 +++++++++++++++---- .../elasticsearch/_types/ErrorCause.java | 19 +++++++++++++++---- .../elasticsearch/_types/ErrorResponse.java | 19 +++++++++++++++---- .../elasticsearch/_types/ExpandWildcard.java | 19 +++++++++++++++---- .../_types/FieldMemoryUsage.java | 19 +++++++++++++++---- .../elasticsearch/_types/FieldSizeUsage.java | 19 +++++++++++++++---- .../elasticsearch/_types/FieldSort.java | 19 +++++++++++++++---- .../_types/FieldSortNumericType.java | 19 +++++++++++++++---- .../elasticsearch/_types/FielddataStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/FlushStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/GeoBounds.java | 19 +++++++++++++++---- .../_types/GeoBoundsBuilders.java | 19 +++++++++++++++---- .../elasticsearch/_types/GeoDistanceSort.java | 19 +++++++++++++++---- .../elasticsearch/_types/GeoDistanceType.java | 19 +++++++++++++++---- .../elasticsearch/_types/GeoHashLocation.java | 19 +++++++++++++++---- .../_types/GeoHashPrecision.java | 19 +++++++++++++++---- .../_types/GeoHashPrecisionBuilders.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/GeoLine.java | 19 +++++++++++++++---- .../elasticsearch/_types/GeoLocation.java | 19 +++++++++++++++---- .../_types/GeoLocationBuilders.java | 19 +++++++++++++++---- .../_types/GeoShapeRelation.java | 19 +++++++++++++++---- .../elasticsearch/_types/GetStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/HealthStatus.java | 19 +++++++++++++++---- .../elasticsearch/_types/IBDistribution.java | 19 +++++++++++++++---- .../elasticsearch/_types/IBLambda.java | 19 +++++++++++++++---- .../elasticsearch/_types/IndexingStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/IndicesOptions.java | 19 +++++++++++++++---- .../_types/IndicesResponseBase.java | 19 +++++++++++++++---- .../elasticsearch/_types/InlineGet.java | 19 +++++++++++++++---- .../elasticsearch/_types/InlineScript.java | 19 +++++++++++++++---- .../elasticsearch/_types/KnnQuery.java | 19 +++++++++++++++---- .../_types/LatLonGeoLocation.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Level.java | 19 +++++++++++++++---- .../_types/LifecycleOperationMode.java | 19 +++++++++++++++---- .../elasticsearch/_types/MergesStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/NestedSortValue.java | 19 +++++++++++++++---- .../elasticsearch/_types/NodeAttributes.java | 19 +++++++++++++++---- .../elasticsearch/_types/NodeRole.java | 19 +++++++++++++++---- .../elasticsearch/_types/NodeShard.java | 19 +++++++++++++++---- .../elasticsearch/_types/NodeStatistics.java | 19 +++++++++++++++---- .../elasticsearch/_types/Normalization.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/OpType.java | 19 +++++++++++++++---- .../elasticsearch/_types/PluginStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/QueryCacheStats.java | 19 +++++++++++++++---- .../_types/QueryVectorBuilder.java | 19 +++++++++++++++---- .../_types/QueryVectorBuilderBuilders.java | 19 +++++++++++++++---- .../_types/QueryVectorBuilderVariant.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Rank.java | 19 +++++++++++++++---- .../elasticsearch/_types/RankBase.java | 19 +++++++++++++++---- .../elasticsearch/_types/RankBuilders.java | 19 +++++++++++++++---- .../elasticsearch/_types/RankVariant.java | 19 +++++++++++++++---- .../elasticsearch/_types/RecoveryStats.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Refresh.java | 19 +++++++++++++++---- .../elasticsearch/_types/RefreshStats.java | 19 +++++++++++++++---- .../_types/RelocationFailureInfo.java | 19 +++++++++++++++---- .../elasticsearch/_types/RequestBase.java | 19 +++++++++++++++---- .../_types/RequestCacheStats.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Result.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Retries.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/RrfRank.java | 19 +++++++++++++++---- .../elasticsearch/_types/ScoreSort.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Script.java | 19 +++++++++++++++---- .../elasticsearch/_types/ScriptBase.java | 19 +++++++++++++++---- .../elasticsearch/_types/ScriptBuilders.java | 19 +++++++++++++++---- .../elasticsearch/_types/ScriptField.java | 19 +++++++++++++++---- .../elasticsearch/_types/ScriptLanguage.java | 19 +++++++++++++++---- .../elasticsearch/_types/ScriptSort.java | 19 +++++++++++++++---- .../elasticsearch/_types/ScriptSortType.java | 19 +++++++++++++++---- .../elasticsearch/_types/ScriptTransform.java | 19 +++++++++++++++---- .../elasticsearch/_types/SearchStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/SearchTransform.java | 19 +++++++++++++++---- .../elasticsearch/_types/SearchType.java | 19 +++++++++++++++---- .../elasticsearch/_types/SegmentsStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/ShardFailure.java | 19 +++++++++++++++---- .../elasticsearch/_types/ShardStatistics.java | 19 +++++++++++++++---- .../_types/ShardsOperationResponseBase.java | 19 +++++++++++++++---- .../elasticsearch/_types/SlicedScroll.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Slices.java | 19 +++++++++++++++---- .../elasticsearch/_types/SlicesBuilders.java | 19 +++++++++++++++---- .../_types/SlicesCalculation.java | 19 +++++++++++++++---- .../elasticsearch/_types/SortMode.java | 19 +++++++++++++++---- .../elasticsearch/_types/SortOptions.java | 19 +++++++++++++++---- .../_types/SortOptionsBuilders.java | 19 +++++++++++++++---- .../_types/SortOptionsVariant.java | 19 +++++++++++++++---- .../elasticsearch/_types/SortOrder.java | 19 +++++++++++++++---- .../elasticsearch/_types/StoreStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/StoredScript.java | 19 +++++++++++++++---- .../elasticsearch/_types/StoredScriptId.java | 19 +++++++++++++++---- .../elasticsearch/_types/SuggestMode.java | 19 +++++++++++++++---- .../elasticsearch/_types/TaskFailure.java | 19 +++++++++++++++---- .../elasticsearch/_types/TextEmbedding.java | 19 +++++++++++++++---- .../elasticsearch/_types/ThreadType.java | 19 +++++++++++++++---- .../clients/elasticsearch/_types/Time.java | 19 +++++++++++++++---- .../elasticsearch/_types/TimeBuilders.java | 19 +++++++++++++++---- .../elasticsearch/_types/TimeUnit.java | 19 +++++++++++++++---- .../_types/TopLeftBottomRightGeoBounds.java | 19 +++++++++++++++---- .../_types/TopRightBottomLeftGeoBounds.java | 19 +++++++++++++++---- .../elasticsearch/_types/Transform.java | 19 +++++++++++++++---- .../_types/TransformBuilders.java | 19 +++++++++++++++---- .../_types/TransformVariant.java | 19 +++++++++++++++---- .../elasticsearch/_types/TranslogStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/VersionType.java | 19 +++++++++++++++---- .../_types/WaitForActiveShardOptions.java | 19 +++++++++++++++---- .../_types/WaitForActiveShards.java | 19 +++++++++++++++---- .../_types/WaitForActiveShardsBuilders.java | 19 +++++++++++++++---- .../elasticsearch/_types/WaitForEvents.java | 19 +++++++++++++++---- .../elasticsearch/_types/WarmerStats.java | 19 +++++++++++++++---- .../elasticsearch/_types/WktGeoBounds.java | 19 +++++++++++++++---- .../_types/WriteResponseBase.java | 19 +++++++++++++++---- .../AdjacencyMatrixAggregate.java | 19 +++++++++++++++---- .../AdjacencyMatrixAggregation.java | 19 +++++++++++++++---- .../aggregations/AdjacencyMatrixBucket.java | 19 +++++++++++++++---- .../_types/aggregations/Aggregate.java | 19 +++++++++++++++---- .../_types/aggregations/AggregateBase.java | 19 +++++++++++++++---- .../aggregations/AggregateBuilders.java | 19 +++++++++++++++---- .../_types/aggregations/AggregateVariant.java | 19 +++++++++++++++---- .../_types/aggregations/Aggregation.java | 19 +++++++++++++++---- .../_types/aggregations/AggregationBase.java | 19 +++++++++++++++---- .../aggregations/AggregationBuilders.java | 19 +++++++++++++++---- .../_types/aggregations/AggregationRange.java | 19 +++++++++++++++---- .../aggregations/AggregationVariant.java | 19 +++++++++++++++---- .../aggregations/ArrayPercentilesItem.java | 19 +++++++++++++++---- .../AutoDateHistogramAggregate.java | 19 +++++++++++++++---- .../AutoDateHistogramAggregation.java | 19 +++++++++++++++---- .../aggregations/AverageAggregation.java | 19 +++++++++++++++---- .../AverageBucketAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/AvgAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/BoxPlotAggregate.java | 19 +++++++++++++++---- .../aggregations/BoxplotAggregation.java | 19 +++++++++++++++---- .../aggregations/BucketAggregationBase.java | 19 +++++++++++++++---- .../BucketCorrelationAggregation.java | 19 +++++++++++++++---- .../BucketCorrelationFunction.java | 19 +++++++++++++++---- ...etCorrelationFunctionCountCorrelation.java | 19 +++++++++++++++---- ...tionFunctionCountCorrelationIndicator.java | 19 +++++++++++++++---- .../aggregations/BucketKsAggregation.java | 19 +++++++++++++++---- .../BucketMetricValueAggregate.java | 19 +++++++++++++++---- .../aggregations/BucketPathAggregation.java | 19 +++++++++++++++---- .../aggregations/BucketScriptAggregation.java | 19 +++++++++++++++---- .../BucketSelectorAggregation.java | 19 +++++++++++++++---- .../aggregations/BucketSortAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/Buckets.java | 19 +++++++++++++++---- .../_types/aggregations/BucketsBuilders.java | 19 +++++++++++++++---- .../_types/aggregations/BucketsPath.java | 19 +++++++++++++++---- .../aggregations/BucketsPathBuilders.java | 19 +++++++++++++++---- .../_types/aggregations/CalendarInterval.java | 19 +++++++++++++++---- .../aggregations/CardinalityAggregate.java | 19 +++++++++++++++---- .../aggregations/CardinalityAggregation.java | 19 +++++++++++++++---- .../CardinalityExecutionMode.java | 19 +++++++++++++++---- .../CategorizeTextAggregation.java | 19 +++++++++++++++---- .../aggregations/CategorizeTextAnalyzer.java | 19 +++++++++++++++---- .../CategorizeTextAnalyzerBuilders.java | 19 +++++++++++++++---- .../aggregations/ChiSquareHeuristic.java | 19 +++++++++++++++---- .../aggregations/ChildrenAggregate.java | 19 +++++++++++++++---- .../aggregations/ChildrenAggregation.java | 19 +++++++++++++++---- .../aggregations/CompositeAggregate.java | 19 +++++++++++++++---- .../aggregations/CompositeAggregation.java | 19 +++++++++++++++---- .../CompositeAggregationBase.java | 19 +++++++++++++++---- .../CompositeAggregationSource.java | 19 +++++++++++++++---- .../_types/aggregations/CompositeBucket.java | 19 +++++++++++++++---- .../CompositeDateHistogramAggregation.java | 19 +++++++++++++++---- .../CompositeGeoTileGridAggregation.java | 19 +++++++++++++++---- .../CompositeHistogramAggregation.java | 19 +++++++++++++++---- .../CompositeTermsAggregation.java | 19 +++++++++++++++---- .../CumulativeCardinalityAggregate.java | 19 +++++++++++++++---- .../CumulativeCardinalityAggregation.java | 19 +++++++++++++++---- .../CumulativeSumAggregation.java | 19 +++++++++++++++---- .../CustomCategorizeTextAnalyzer.java | 19 +++++++++++++++---- .../aggregations/DateHistogramAggregate.java | 19 +++++++++++++++---- .../DateHistogramAggregation.java | 19 +++++++++++++++---- .../aggregations/DateHistogramBucket.java | 19 +++++++++++++++---- .../aggregations/DateRangeAggregate.java | 19 +++++++++++++++---- .../aggregations/DateRangeAggregation.java | 19 +++++++++++++++---- .../aggregations/DateRangeExpression.java | 19 +++++++++++++++---- .../aggregations/DerivativeAggregate.java | 19 +++++++++++++++---- .../aggregations/DerivativeAggregation.java | 19 +++++++++++++++---- .../DiversifiedSamplerAggregation.java | 19 +++++++++++++++---- .../aggregations/DoubleTermsAggregate.java | 19 +++++++++++++++---- .../aggregations/DoubleTermsBucket.java | 19 +++++++++++++++---- .../aggregations/EwmaModelSettings.java | 19 +++++++++++++++---- .../EwmaMovingAverageAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/ExtendedBounds.java | 19 +++++++++++++++---- .../aggregations/ExtendedStatsAggregate.java | 19 +++++++++++++++---- .../ExtendedStatsAggregation.java | 19 +++++++++++++++---- .../ExtendedStatsBucketAggregate.java | 19 +++++++++++++++---- .../ExtendedStatsBucketAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/FieldDateMath.java | 19 +++++++++++++++---- .../aggregations/FieldDateMathBuilders.java | 19 +++++++++++++++---- .../_types/aggregations/FilterAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/FiltersAggregate.java | 19 +++++++++++++++---- .../aggregations/FiltersAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/FiltersBucket.java | 19 +++++++++++++++---- .../FormatMetricAggregationBase.java | 19 +++++++++++++++---- .../FormattableMetricAggregation.java | 19 +++++++++++++++---- .../FrequentItemSetsAggregate.java | 19 +++++++++++++++---- .../FrequentItemSetsAggregation.java | 19 +++++++++++++++---- .../aggregations/FrequentItemSetsBucket.java | 19 +++++++++++++++---- .../aggregations/FrequentItemSetsField.java | 19 +++++++++++++++---- .../_types/aggregations/GapPolicy.java | 19 +++++++++++++++---- .../aggregations/GeoBoundsAggregate.java | 19 +++++++++++++++---- .../aggregations/GeoBoundsAggregation.java | 19 +++++++++++++++---- .../aggregations/GeoCentroidAggregate.java | 19 +++++++++++++++---- .../aggregations/GeoCentroidAggregation.java | 19 +++++++++++++++---- .../aggregations/GeoDistanceAggregate.java | 19 +++++++++++++++---- .../aggregations/GeoDistanceAggregation.java | 19 +++++++++++++++---- .../aggregations/GeoHashGridAggregate.java | 19 +++++++++++++++---- .../aggregations/GeoHashGridAggregation.java | 19 +++++++++++++++---- .../aggregations/GeoHashGridBucket.java | 19 +++++++++++++++---- .../aggregations/GeoHexGridAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/GeoHexGridBucket.java | 19 +++++++++++++++---- .../_types/aggregations/GeoLineAggregate.java | 19 +++++++++++++++---- .../aggregations/GeoLineAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/GeoLinePoint.java | 19 +++++++++++++++---- .../_types/aggregations/GeoLineSort.java | 19 +++++++++++++++---- .../aggregations/GeoTileGridAggregate.java | 19 +++++++++++++++---- .../aggregations/GeoTileGridAggregation.java | 19 +++++++++++++++---- .../aggregations/GeoTileGridBucket.java | 19 +++++++++++++++---- .../aggregations/GeohexGridAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/GlobalAggregate.java | 19 +++++++++++++++---- .../aggregations/GlobalAggregation.java | 19 +++++++++++++++---- .../GoogleNormalizedDistanceHeuristic.java | 19 +++++++++++++++---- .../_types/aggregations/HdrMethod.java | 19 +++++++++++++++---- .../HdrPercentileRanksAggregate.java | 19 +++++++++++++++---- .../aggregations/HdrPercentilesAggregate.java | 19 +++++++++++++++---- .../aggregations/HistogramAggregate.java | 19 +++++++++++++++---- .../aggregations/HistogramAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/HistogramBucket.java | 19 +++++++++++++++---- .../aggregations/HoltLinearModelSettings.java | 19 +++++++++++++++---- .../HoltMovingAverageAggregation.java | 19 +++++++++++++++---- .../HoltWintersModelSettings.java | 19 +++++++++++++++---- .../HoltWintersMovingAverageAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/HoltWintersType.java | 19 +++++++++++++++---- .../aggregations/InferenceAggregate.java | 19 +++++++++++++++---- .../aggregations/InferenceAggregation.java | 19 +++++++++++++++---- .../InferenceClassImportance.java | 19 +++++++++++++++---- .../_types/aggregations/InferenceConfig.java | 19 +++++++++++++++---- .../aggregations/InferenceConfigBuilders.java | 19 +++++++++++++++---- .../aggregations/InferenceConfigVariant.java | 19 +++++++++++++++---- .../InferenceFeatureImportance.java | 19 +++++++++++++++---- .../aggregations/InferenceTopClassEntry.java | 19 +++++++++++++++---- .../aggregations/IpPrefixAggregate.java | 19 +++++++++++++++---- .../aggregations/IpPrefixAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/IpPrefixBucket.java | 19 +++++++++++++++---- .../_types/aggregations/IpRangeAggregate.java | 19 +++++++++++++++---- .../aggregations/IpRangeAggregation.java | 19 +++++++++++++++---- .../aggregations/IpRangeAggregationRange.java | 19 +++++++++++++++---- .../_types/aggregations/IpRangeBucket.java | 19 +++++++++++++++---- .../LinearMovingAverageAggregation.java | 19 +++++++++++++++---- .../aggregations/LongRareTermsAggregate.java | 19 +++++++++++++++---- .../aggregations/LongRareTermsBucket.java | 19 +++++++++++++++---- .../aggregations/LongTermsAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/LongTermsBucket.java | 19 +++++++++++++++---- .../aggregations/MatrixAggregation.java | 19 +++++++++++++++---- .../aggregations/MatrixStatsAggregate.java | 19 +++++++++++++++---- .../aggregations/MatrixStatsAggregation.java | 19 +++++++++++++++---- .../aggregations/MatrixStatsFields.java | 19 +++++++++++++++---- .../_types/aggregations/MaxAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/MaxAggregation.java | 19 +++++++++++++++---- .../aggregations/MaxBucketAggregation.java | 19 +++++++++++++++---- .../MedianAbsoluteDeviationAggregate.java | 19 +++++++++++++++---- .../MedianAbsoluteDeviationAggregation.java | 19 +++++++++++++++---- .../aggregations/MetricAggregationBase.java | 19 +++++++++++++++---- .../_types/aggregations/MinAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/MinAggregation.java | 19 +++++++++++++++---- .../aggregations/MinBucketAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/MinimumInterval.java | 19 +++++++++++++++---- .../_types/aggregations/MissingAggregate.java | 19 +++++++++++++++---- .../aggregations/MissingAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/MissingOrder.java | 19 +++++++++++++++---- .../MovingAverageAggregation.java | 19 +++++++++++++++---- .../MovingAverageAggregationBase.java | 19 +++++++++++++++---- .../MovingAverageAggregationBuilders.java | 19 +++++++++++++++---- .../MovingAverageAggregationVariant.java | 19 +++++++++++++++---- .../MovingFunctionAggregation.java | 19 +++++++++++++++---- .../MovingPercentilesAggregation.java | 19 +++++++++++++++---- .../MultiBucketAggregateBase.java | 19 +++++++++++++++---- .../_types/aggregations/MultiBucketBase.java | 19 +++++++++++++++---- .../_types/aggregations/MultiTermLookup.java | 19 +++++++++++++++---- .../aggregations/MultiTermsAggregate.java | 19 +++++++++++++++---- .../aggregations/MultiTermsAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/MultiTermsBucket.java | 19 +++++++++++++++---- .../MutualInformationHeuristic.java | 19 +++++++++++++++---- .../_types/aggregations/NestedAggregate.java | 19 +++++++++++++++---- .../aggregations/NestedAggregation.java | 19 +++++++++++++++---- .../aggregations/NormalizeAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/NormalizeMethod.java | 19 +++++++++++++++---- .../_types/aggregations/ParentAggregate.java | 19 +++++++++++++++---- .../aggregations/ParentAggregation.java | 19 +++++++++++++++---- .../PercentageScoreHeuristic.java | 19 +++++++++++++++---- .../PercentileRanksAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/Percentiles.java | 19 +++++++++++++++---- .../PercentilesAggregateBase.java | 19 +++++++++++++++---- .../aggregations/PercentilesAggregation.java | 19 +++++++++++++++---- .../PercentilesBucketAggregate.java | 19 +++++++++++++++---- .../PercentilesBucketAggregation.java | 19 +++++++++++++++---- .../aggregations/PercentilesBuilders.java | 19 +++++++++++++++---- .../aggregations/PipelineAggregationBase.java | 19 +++++++++++++++---- .../_types/aggregations/RangeAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/RangeAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/RangeBucket.java | 19 +++++++++++++++---- .../aggregations/RareTermsAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/RateAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/RateAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/RateMode.java | 19 +++++++++++++++---- .../aggregations/ReverseNestedAggregate.java | 19 +++++++++++++++---- .../ReverseNestedAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/SamplerAggregate.java | 19 +++++++++++++++---- .../aggregations/SamplerAggregation.java | 19 +++++++++++++++---- .../SamplerAggregationExecutionHint.java | 19 +++++++++++++++---- .../aggregations/ScriptedHeuristic.java | 19 +++++++++++++++---- .../aggregations/ScriptedMetricAggregate.java | 19 +++++++++++++++---- .../ScriptedMetricAggregation.java | 19 +++++++++++++++---- .../SerialDifferencingAggregation.java | 19 +++++++++++++++---- .../SignificantLongTermsAggregate.java | 19 +++++++++++++++---- .../SignificantLongTermsBucket.java | 19 +++++++++++++++---- .../SignificantStringTermsAggregate.java | 19 +++++++++++++++---- .../SignificantStringTermsBucket.java | 19 +++++++++++++++---- .../SignificantTermsAggregateBase.java | 19 +++++++++++++++---- .../SignificantTermsAggregation.java | 19 +++++++++++++++---- .../SignificantTermsBucketBase.java | 19 +++++++++++++++---- .../SignificantTextAggregation.java | 19 +++++++++++++++---- .../SimpleMovingAverageAggregation.java | 19 +++++++++++++++---- .../aggregations/SimpleValueAggregate.java | 19 +++++++++++++++---- .../SingleBucketAggregateBase.java | 19 +++++++++++++++---- .../SingleMetricAggregateBase.java | 19 +++++++++++++++---- .../aggregations/StandardDeviationBounds.java | 19 +++++++++++++++---- .../StandardDeviationBoundsAsString.java | 19 +++++++++++++++---- .../_types/aggregations/StatsAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/StatsAggregation.java | 19 +++++++++++++++---- .../aggregations/StatsBucketAggregate.java | 19 +++++++++++++++---- .../aggregations/StatsBucketAggregation.java | 19 +++++++++++++++---- .../StringRareTermsAggregate.java | 19 +++++++++++++++---- .../aggregations/StringRareTermsBucket.java | 19 +++++++++++++++---- .../aggregations/StringStatsAggregate.java | 19 +++++++++++++++---- .../aggregations/StringStatsAggregation.java | 19 +++++++++++++++---- .../aggregations/StringTermsAggregate.java | 19 +++++++++++++++---- .../aggregations/StringTermsBucket.java | 19 +++++++++++++++---- .../_types/aggregations/SumAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/SumAggregation.java | 19 +++++++++++++++---- .../aggregations/SumBucketAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/TDigest.java | 19 +++++++++++++++---- .../TDigestPercentileRanksAggregate.java | 19 +++++++++++++++---- .../TDigestPercentilesAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/TTestAggregate.java | 19 +++++++++++++++---- .../_types/aggregations/TTestAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/TTestType.java | 19 +++++++++++++++---- .../aggregations/TermsAggregateBase.java | 19 +++++++++++++++---- .../_types/aggregations/TermsAggregation.java | 19 +++++++++++++++---- .../TermsAggregationCollectMode.java | 19 +++++++++++++++---- .../TermsAggregationExecutionHint.java | 19 +++++++++++++++---- .../_types/aggregations/TermsBucketBase.java | 19 +++++++++++++++---- .../_types/aggregations/TermsExclude.java | 19 +++++++++++++++---- .../aggregations/TermsExcludeBuilders.java | 19 +++++++++++++++---- .../_types/aggregations/TermsInclude.java | 19 +++++++++++++++---- .../aggregations/TermsIncludeBuilders.java | 19 +++++++++++++++---- .../_types/aggregations/TermsPartition.java | 19 +++++++++++++++---- .../_types/aggregations/TestPopulation.java | 19 +++++++++++++++---- .../_types/aggregations/TopHitsAggregate.java | 19 +++++++++++++++---- .../aggregations/TopHitsAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/TopMetrics.java | 19 +++++++++++++++---- .../aggregations/TopMetricsAggregate.java | 19 +++++++++++++++---- .../aggregations/TopMetricsAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/TopMetricsValue.java | 19 +++++++++++++++---- .../UnmappedRareTermsAggregate.java | 19 +++++++++++++++---- .../UnmappedSamplerAggregate.java | 19 +++++++++++++++---- .../UnmappedSignificantTermsAggregate.java | 19 +++++++++++++++---- .../aggregations/UnmappedTermsAggregate.java | 19 +++++++++++++++---- .../aggregations/ValueCountAggregate.java | 19 +++++++++++++++---- .../aggregations/ValueCountAggregation.java | 19 +++++++++++++++---- .../_types/aggregations/ValueType.java | 19 +++++++++++++++---- .../VariableWidthHistogramAggregate.java | 19 +++++++++++++++---- .../VariableWidthHistogramAggregation.java | 19 +++++++++++++++---- .../VariableWidthHistogramBucket.java | 19 +++++++++++++++---- .../WeightedAverageAggregation.java | 19 +++++++++++++++---- .../aggregations/WeightedAverageValue.java | 19 +++++++++++++++---- .../aggregations/WeightedAvgAggregate.java | 19 +++++++++++++++---- .../_types/analysis/Analyzer.java | 19 +++++++++++++++---- .../_types/analysis/AnalyzerBuilders.java | 19 +++++++++++++++---- .../_types/analysis/AnalyzerVariant.java | 19 +++++++++++++++---- .../analysis/AsciiFoldingTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/CharFilter.java | 19 +++++++++++++++---- .../_types/analysis/CharFilterBase.java | 19 +++++++++++++++---- .../_types/analysis/CharFilterBuilders.java | 19 +++++++++++++++---- .../_types/analysis/CharFilterDefinition.java | 19 +++++++++++++++---- .../CharFilterDefinitionBuilders.java | 19 +++++++++++++++---- .../analysis/CharFilterDefinitionVariant.java | 19 +++++++++++++++---- .../_types/analysis/CharGroupTokenizer.java | 19 +++++++++++++++---- .../analysis/CommonGramsTokenFilter.java | 19 +++++++++++++++---- .../analysis/CompoundWordTokenFilterBase.java | 19 +++++++++++++++---- .../_types/analysis/ConditionTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/CustomAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/CustomNormalizer.java | 19 +++++++++++++++---- .../analysis/DelimitedPayloadEncoding.java | 19 +++++++++++++++---- .../analysis/DelimitedPayloadTokenFilter.java | 19 +++++++++++++++---- .../DictionaryDecompounderTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/DutchAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/EdgeNGramSide.java | 19 +++++++++++++++---- .../_types/analysis/EdgeNGramTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/EdgeNGramTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/ElisionTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/FingerprintAnalyzer.java | 19 +++++++++++++++---- .../analysis/FingerprintTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/HtmlStripCharFilter.java | 19 +++++++++++++++---- .../_types/analysis/HunspellTokenFilter.java | 19 +++++++++++++++---- .../HyphenationDecompounderTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/IcuAnalyzer.java | 19 +++++++++++++++---- .../analysis/IcuCollationAlternate.java | 19 +++++++++++++++---- .../analysis/IcuCollationCaseFirst.java | 19 +++++++++++++++---- .../analysis/IcuCollationDecomposition.java | 19 +++++++++++++++---- .../_types/analysis/IcuCollationStrength.java | 19 +++++++++++++++---- .../analysis/IcuCollationTokenFilter.java | 19 +++++++++++++++---- .../analysis/IcuFoldingTokenFilter.java | 19 +++++++++++++++---- .../analysis/IcuNormalizationCharFilter.java | 19 +++++++++++++++---- .../_types/analysis/IcuNormalizationMode.java | 19 +++++++++++++++---- .../analysis/IcuNormalizationTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/IcuNormalizationType.java | 19 +++++++++++++++---- .../_types/analysis/IcuTokenizer.java | 19 +++++++++++++++---- .../analysis/IcuTransformDirection.java | 19 +++++++++++++++---- .../analysis/IcuTransformTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/KStemTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/KeepTypesMode.java | 19 +++++++++++++++---- .../_types/analysis/KeepTypesTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/KeepWordsTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/KeywordAnalyzer.java | 19 +++++++++++++++---- .../analysis/KeywordMarkerTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/KeywordTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/KuromojiAnalyzer.java | 19 +++++++++++++++---- .../KuromojiIterationMarkCharFilter.java | 19 +++++++++++++++---- .../KuromojiPartOfSpeechTokenFilter.java | 19 +++++++++++++++---- .../KuromojiReadingFormTokenFilter.java | 19 +++++++++++++++---- .../analysis/KuromojiStemmerTokenFilter.java | 19 +++++++++++++++---- .../analysis/KuromojiTokenizationMode.java | 19 +++++++++++++++---- .../_types/analysis/KuromojiTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/Language.java | 19 +++++++++++++++---- .../_types/analysis/LanguageAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/LengthTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/LetterTokenizer.java | 19 +++++++++++++++---- .../analysis/LimitTokenCountTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/LowercaseNormalizer.java | 19 +++++++++++++++---- .../_types/analysis/LowercaseTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/LowercaseTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/MappingCharFilter.java | 19 +++++++++++++++---- .../analysis/MultiplexerTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/NGramTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/NGramTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/NoriAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/NoriDecompoundMode.java | 19 +++++++++++++++---- .../analysis/NoriPartOfSpeechTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/NoriTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/Normalizer.java | 19 +++++++++++++++---- .../_types/analysis/NormalizerBuilders.java | 19 +++++++++++++++---- .../_types/analysis/NormalizerVariant.java | 19 +++++++++++++++---- .../analysis/PathHierarchyTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/PatternAnalyzer.java | 19 +++++++++++++++---- .../analysis/PatternCaptureTokenFilter.java | 19 +++++++++++++++---- .../analysis/PatternReplaceCharFilter.java | 19 +++++++++++++++---- .../analysis/PatternReplaceTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/PatternTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/PhoneticEncoder.java | 19 +++++++++++++++---- .../_types/analysis/PhoneticLanguage.java | 19 +++++++++++++++---- .../_types/analysis/PhoneticNameType.java | 19 +++++++++++++++---- .../_types/analysis/PhoneticRuleType.java | 19 +++++++++++++++---- .../_types/analysis/PhoneticTokenFilter.java | 19 +++++++++++++++---- .../analysis/PorterStemTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/PredicateTokenFilter.java | 19 +++++++++++++++---- .../analysis/RemoveDuplicatesTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/ReverseTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/ShingleTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/SimpleAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/SnowballAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/SnowballLanguage.java | 19 +++++++++++++++---- .../_types/analysis/SnowballTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/StandardAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/StandardTokenizer.java | 19 +++++++++++++++---- .../analysis/StemmerOverrideTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/StemmerTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/StopAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/StopTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/SynonymFormat.java | 19 +++++++++++++++---- .../analysis/SynonymGraphTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/SynonymTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/TokenChar.java | 19 +++++++++++++++---- .../_types/analysis/TokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/TokenFilterBase.java | 19 +++++++++++++++---- .../_types/analysis/TokenFilterBuilders.java | 19 +++++++++++++++---- .../analysis/TokenFilterDefinition.java | 19 +++++++++++++++---- .../TokenFilterDefinitionBuilders.java | 19 +++++++++++++++---- .../TokenFilterDefinitionVariant.java | 19 +++++++++++++++---- .../_types/analysis/Tokenizer.java | 19 +++++++++++++++---- .../_types/analysis/TokenizerBase.java | 19 +++++++++++++++---- .../_types/analysis/TokenizerBuilders.java | 19 +++++++++++++++---- .../_types/analysis/TokenizerDefinition.java | 19 +++++++++++++++---- .../analysis/TokenizerDefinitionBuilders.java | 19 +++++++++++++++---- .../analysis/TokenizerDefinitionVariant.java | 19 +++++++++++++++---- .../_types/analysis/TrimTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/TruncateTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/UaxEmailUrlTokenizer.java | 19 +++++++++++++++---- .../_types/analysis/UniqueTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/UppercaseTokenFilter.java | 19 +++++++++++++++---- .../_types/analysis/WhitespaceAnalyzer.java | 19 +++++++++++++++---- .../_types/analysis/WhitespaceTokenizer.java | 19 +++++++++++++++---- .../WordDelimiterGraphTokenFilter.java | 19 +++++++++++++++---- .../analysis/WordDelimiterTokenFilter.java | 19 +++++++++++++++---- .../AggregateMetricDoubleProperty.java | 19 +++++++++++++++---- .../_types/mapping/AllField.java | 19 +++++++++++++++---- .../_types/mapping/BinaryProperty.java | 19 +++++++++++++++---- .../_types/mapping/BooleanProperty.java | 19 +++++++++++++++---- .../_types/mapping/ByteNumberProperty.java | 19 +++++++++++++++---- .../_types/mapping/CompletionProperty.java | 19 +++++++++++++++---- .../mapping/ConstantKeywordProperty.java | 19 +++++++++++++++---- .../_types/mapping/CorePropertyBase.java | 19 +++++++++++++++---- .../_types/mapping/DataStreamTimestamp.java | 19 +++++++++++++++---- .../_types/mapping/DateNanosProperty.java | 19 +++++++++++++++---- .../_types/mapping/DateProperty.java | 19 +++++++++++++++---- .../_types/mapping/DateRangeProperty.java | 19 +++++++++++++++---- .../mapping/DenseVectorIndexOptions.java | 19 +++++++++++++++---- .../_types/mapping/DenseVectorProperty.java | 19 +++++++++++++++---- .../_types/mapping/DocValuesPropertyBase.java | 19 +++++++++++++++---- .../_types/mapping/DoubleNumberProperty.java | 19 +++++++++++++++---- .../_types/mapping/DoubleRangeProperty.java | 19 +++++++++++++++---- .../_types/mapping/DynamicMapping.java | 19 +++++++++++++++---- .../_types/mapping/DynamicProperty.java | 19 +++++++++++++++---- .../_types/mapping/DynamicTemplate.java | 19 +++++++++++++++---- .../_types/mapping/FieldAliasProperty.java | 19 +++++++++++++++---- .../_types/mapping/FieldMapping.java | 19 +++++++++++++++---- .../_types/mapping/FieldNamesField.java | 19 +++++++++++++++---- .../_types/mapping/FieldType.java | 19 +++++++++++++++---- .../_types/mapping/FlattenedProperty.java | 19 +++++++++++++++---- .../_types/mapping/FloatNumberProperty.java | 19 +++++++++++++++---- .../_types/mapping/FloatRangeProperty.java | 19 +++++++++++++++---- .../_types/mapping/GeoOrientation.java | 19 +++++++++++++++---- .../_types/mapping/GeoPointProperty.java | 19 +++++++++++++++---- .../_types/mapping/GeoShapeProperty.java | 19 +++++++++++++++---- .../_types/mapping/GeoStrategy.java | 19 +++++++++++++++---- .../mapping/HalfFloatNumberProperty.java | 19 +++++++++++++++---- .../_types/mapping/HistogramProperty.java | 19 +++++++++++++++---- .../_types/mapping/IndexField.java | 19 +++++++++++++++---- .../_types/mapping/IndexOptions.java | 19 +++++++++++++++---- .../_types/mapping/IntegerNumberProperty.java | 19 +++++++++++++++---- .../_types/mapping/IntegerRangeProperty.java | 19 +++++++++++++++---- .../_types/mapping/IpProperty.java | 19 +++++++++++++++---- .../_types/mapping/IpRangeProperty.java | 19 +++++++++++++++---- .../_types/mapping/JoinProperty.java | 19 +++++++++++++++---- .../_types/mapping/KeywordProperty.java | 19 +++++++++++++++---- .../_types/mapping/LongNumberProperty.java | 19 +++++++++++++++---- .../_types/mapping/LongRangeProperty.java | 19 +++++++++++++++---- .../_types/mapping/MatchOnlyTextProperty.java | 19 +++++++++++++++---- .../_types/mapping/MatchType.java | 19 +++++++++++++++---- .../_types/mapping/Murmur3HashProperty.java | 19 +++++++++++++++---- .../_types/mapping/NestedProperty.java | 19 +++++++++++++++---- .../_types/mapping/NumberPropertyBase.java | 19 +++++++++++++++---- .../_types/mapping/ObjectProperty.java | 19 +++++++++++++++---- .../_types/mapping/OnScriptError.java | 19 +++++++++++++++---- .../_types/mapping/PercolatorProperty.java | 19 +++++++++++++++---- .../_types/mapping/PointProperty.java | 19 +++++++++++++++---- .../_types/mapping/Property.java | 19 +++++++++++++++---- .../_types/mapping/PropertyBase.java | 19 +++++++++++++++---- .../_types/mapping/PropertyBuilders.java | 19 +++++++++++++++---- .../_types/mapping/PropertyVariant.java | 19 +++++++++++++++---- .../_types/mapping/RangePropertyBase.java | 19 +++++++++++++++---- .../_types/mapping/RankFeatureProperty.java | 19 +++++++++++++++---- .../_types/mapping/RankFeaturesProperty.java | 19 +++++++++++++++---- .../_types/mapping/RoutingField.java | 19 +++++++++++++++---- .../_types/mapping/RuntimeField.java | 19 +++++++++++++++---- .../mapping/RuntimeFieldFetchFields.java | 19 +++++++++++++++---- .../_types/mapping/RuntimeFieldType.java | 19 +++++++++++++++---- .../mapping/ScaledFloatNumberProperty.java | 19 +++++++++++++++---- .../mapping/SearchAsYouTypeProperty.java | 19 +++++++++++++++---- .../_types/mapping/ShapeProperty.java | 19 +++++++++++++++---- .../_types/mapping/ShortNumberProperty.java | 19 +++++++++++++++---- .../_types/mapping/SizeField.java | 19 +++++++++++++++---- .../_types/mapping/SourceField.java | 19 +++++++++++++++---- .../_types/mapping/SourceFieldMode.java | 19 +++++++++++++++---- .../_types/mapping/SuggestContext.java | 19 +++++++++++++++---- .../_types/mapping/TermVectorOption.java | 19 +++++++++++++++---- .../_types/mapping/TextIndexPrefixes.java | 19 +++++++++++++++---- .../_types/mapping/TextProperty.java | 19 +++++++++++++++---- .../_types/mapping/TimeSeriesMetricType.java | 19 +++++++++++++++---- .../_types/mapping/TokenCountProperty.java | 19 +++++++++++++++---- .../_types/mapping/TypeMapping.java | 19 +++++++++++++++---- .../mapping/UnsignedLongNumberProperty.java | 19 +++++++++++++++---- .../_types/mapping/VersionProperty.java | 19 +++++++++++++++---- .../_types/mapping/WildcardProperty.java | 19 +++++++++++++++---- .../_types/query_dsl/BoolQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/BoostingQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/ChildScoreMode.java | 19 +++++++++++++++---- .../query_dsl/CombinedFieldsOperator.java | 19 +++++++++++++++---- .../_types/query_dsl/CombinedFieldsQuery.java | 19 +++++++++++++++---- .../query_dsl/CombinedFieldsZeroTerms.java | 19 +++++++++++++++---- .../_types/query_dsl/CommonTermsQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/ConstantScoreQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/DecayFunction.java | 19 +++++++++++++++---- .../_types/query_dsl/DecayFunctionBase.java | 19 +++++++++++++++---- .../_types/query_dsl/DecayPlacement.java | 19 +++++++++++++++---- .../_types/query_dsl/DisMaxQuery.java | 19 +++++++++++++++---- .../query_dsl/DistanceFeatureQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/ExistsQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/FieldAndFormat.java | 19 +++++++++++++++---- .../_types/query_dsl/FieldLookup.java | 19 +++++++++++++++---- .../query_dsl/FieldValueFactorModifier.java | 19 +++++++++++++++---- .../FieldValueFactorScoreFunction.java | 19 +++++++++++++++---- .../_types/query_dsl/FunctionBoostMode.java | 19 +++++++++++++++---- .../_types/query_dsl/FunctionScore.java | 19 +++++++++++++++---- .../query_dsl/FunctionScoreBuilders.java | 19 +++++++++++++++---- .../_types/query_dsl/FunctionScoreMode.java | 19 +++++++++++++++---- .../_types/query_dsl/FunctionScoreQuery.java | 19 +++++++++++++++---- .../query_dsl/FunctionScoreVariant.java | 19 +++++++++++++++---- .../_types/query_dsl/FuzzyQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/GeoBoundingBoxQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/GeoDistanceQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/GeoExecution.java | 19 +++++++++++++++---- .../_types/query_dsl/GeoPolygonPoints.java | 19 +++++++++++++++---- .../_types/query_dsl/GeoPolygonQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/GeoShapeFieldQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/GeoShapeQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/GeoValidationMethod.java | 19 +++++++++++++++---- .../_types/query_dsl/HasChildQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/HasParentQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/IdsQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/Intervals.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsAllOf.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsAnyOf.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsBuilders.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsFilter.java | 19 +++++++++++++++---- .../query_dsl/IntervalsFilterBuilders.java | 19 +++++++++++++++---- .../query_dsl/IntervalsFilterVariant.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsFuzzy.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsMatch.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsPrefix.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsQuery.java | 19 +++++++++++++++---- .../query_dsl/IntervalsQueryBuilders.java | 19 +++++++++++++++---- .../query_dsl/IntervalsQueryVariant.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsVariant.java | 19 +++++++++++++++---- .../_types/query_dsl/IntervalsWildcard.java | 19 +++++++++++++++---- .../elasticsearch/_types/query_dsl/Like.java | 19 +++++++++++++++---- .../_types/query_dsl/LikeBuilders.java | 19 +++++++++++++++---- .../_types/query_dsl/LikeDocument.java | 19 +++++++++++++++---- .../_types/query_dsl/MatchAllQuery.java | 19 +++++++++++++++---- .../query_dsl/MatchBoolPrefixQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/MatchNoneQuery.java | 19 +++++++++++++++---- .../query_dsl/MatchPhrasePrefixQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/MatchPhraseQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/MatchQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/MoreLikeThisQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/MultiMatchQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/MultiValueMode.java | 19 +++++++++++++++---- .../_types/query_dsl/NestedQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/Operator.java | 19 +++++++++++++++---- .../_types/query_dsl/ParentIdQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/PercolateQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/PinnedDoc.java | 19 +++++++++++++++---- .../_types/query_dsl/PinnedQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/PinnedQueryBuilders.java | 19 +++++++++++++++---- .../_types/query_dsl/PinnedQueryVariant.java | 19 +++++++++++++++---- .../_types/query_dsl/PrefixQuery.java | 19 +++++++++++++++---- .../elasticsearch/_types/query_dsl/Query.java | 19 +++++++++++++++---- .../_types/query_dsl/QueryBase.java | 19 +++++++++++++++---- .../_types/query_dsl/QueryBuilders.java | 19 +++++++++++++++---- .../_types/query_dsl/QueryStringQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/QueryVariant.java | 19 +++++++++++++++---- .../_types/query_dsl/RandomScoreFunction.java | 19 +++++++++++++++---- .../_types/query_dsl/RangeQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/RangeQueryBase.java | 19 +++++++++++++++---- .../_types/query_dsl/RangeRelation.java | 19 +++++++++++++++---- .../_types/query_dsl/RankFeatureFunction.java | 19 +++++++++++++++---- .../query_dsl/RankFeatureFunctionLinear.java | 19 +++++++++++++++---- .../RankFeatureFunctionLogarithm.java | 19 +++++++++++++++---- .../RankFeatureFunctionSaturation.java | 19 +++++++++++++++---- .../query_dsl/RankFeatureFunctionSigmoid.java | 19 +++++++++++++++---- .../_types/query_dsl/RankFeatureQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/RegexpQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/RuleQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/ScriptQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/ScriptScoreFunction.java | 19 +++++++++++++++---- .../_types/query_dsl/ScriptScoreQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/ShapeFieldQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/ShapeQuery.java | 19 +++++++++++++++---- .../query_dsl/SimpleQueryStringFlag.java | 19 +++++++++++++++---- .../query_dsl/SimpleQueryStringQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanContainingQuery.java | 19 +++++++++++++++---- .../query_dsl/SpanFieldMaskingQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanFirstQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanMultiTermQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanNearQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanNotQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanOrQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanQueryBuilders.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanQueryVariant.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanTermQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/SpanWithinQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/TermQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/TermsLookup.java | 19 +++++++++++++++---- .../_types/query_dsl/TermsQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/TermsQueryField.java | 19 +++++++++++++++---- .../query_dsl/TermsQueryFieldBuilders.java | 19 +++++++++++++++---- .../_types/query_dsl/TermsSetQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/TextExpansionQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/TextQueryType.java | 19 +++++++++++++++---- .../_types/query_dsl/TypeQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/WildcardQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/WrapperQuery.java | 19 +++++++++++++++---- .../_types/query_dsl/ZeroTermsQuery.java | 19 +++++++++++++++---- .../async_search/AsyncSearch.java | 19 +++++++++++++++---- .../AsyncSearchDocumentResponseBase.java | 19 +++++++++++++++---- .../async_search/AsyncSearchResponseBase.java | 19 +++++++++++++++---- .../AsyncSearchStatusRequest.java | 19 +++++++++++++++---- .../AsyncSearchStatusResponse.java | 19 +++++++++++++++---- .../DeleteAsyncSearchRequest.java | 19 +++++++++++++++---- .../DeleteAsyncSearchResponse.java | 19 +++++++++++++++---- .../ElasticsearchAsyncSearchAsyncClient.java | 19 +++++++++++++++---- .../ElasticsearchAsyncSearchClient.java | 19 +++++++++++++++---- .../async_search/GetAsyncSearchRequest.java | 19 +++++++++++++++---- .../async_search/GetAsyncSearchResponse.java | 19 +++++++++++++++---- .../async_search/SubmitRequest.java | 19 +++++++++++++++---- .../async_search/SubmitResponse.java | 19 +++++++++++++++---- .../status/StatusResponseBase.java | 19 +++++++++++++++---- .../autoscaling/AutoscalingPolicy.java | 19 +++++++++++++++---- .../DeleteAutoscalingPolicyRequest.java | 19 +++++++++++++++---- .../DeleteAutoscalingPolicyResponse.java | 19 +++++++++++++++---- .../ElasticsearchAutoscalingAsyncClient.java | 19 +++++++++++++++---- .../ElasticsearchAutoscalingClient.java | 19 +++++++++++++++---- .../GetAutoscalingCapacityRequest.java | 19 +++++++++++++++---- .../GetAutoscalingCapacityResponse.java | 19 +++++++++++++++---- .../GetAutoscalingPolicyRequest.java | 19 +++++++++++++++---- .../GetAutoscalingPolicyResponse.java | 19 +++++++++++++++---- .../PutAutoscalingPolicyRequest.java | 19 +++++++++++++++---- .../PutAutoscalingPolicyResponse.java | 19 +++++++++++++++---- .../AutoscalingCapacity.java | 19 +++++++++++++++---- .../AutoscalingDecider.java | 19 +++++++++++++++---- .../AutoscalingDeciders.java | 19 +++++++++++++++---- .../AutoscalingNode.java | 19 +++++++++++++++---- .../AutoscalingResources.java | 19 +++++++++++++++---- .../elasticsearch/cat/AliasesRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/AliasesResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/AllocationRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/AllocationResponse.java | 19 +++++++++++++++---- .../cat/CatAnomalyDetectorColumn.java | 19 +++++++++++++++---- .../elasticsearch/cat/CatDatafeedColumn.java | 19 +++++++++++++++---- .../elasticsearch/cat/CatDfaColumn.java | 19 +++++++++++++++---- .../elasticsearch/cat/CatRequestBase.java | 19 +++++++++++++++---- .../cat/CatTrainedModelsColumn.java | 19 +++++++++++++++---- .../elasticsearch/cat/CatTransformColumn.java | 19 +++++++++++++++---- .../cat/ComponentTemplatesRequest.java | 19 +++++++++++++++---- .../cat/ComponentTemplatesResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/CountRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/CountResponse.java | 19 +++++++++++++++---- .../cat/ElasticsearchCatAsyncClient.java | 19 +++++++++++++++---- .../cat/ElasticsearchCatClient.java | 19 +++++++++++++++---- .../elasticsearch/cat/FielddataRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/FielddataResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/HealthRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/HealthResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/HelpRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/HelpResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/IndicesRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/IndicesResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/MasterRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/MasterResponse.java | 19 +++++++++++++++---- .../cat/MlDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../cat/MlDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/MlDatafeedsRequest.java | 19 +++++++++++++++---- .../cat/MlDatafeedsResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/MlJobsRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/MlJobsResponse.java | 19 +++++++++++++++---- .../cat/MlTrainedModelsRequest.java | 19 +++++++++++++++---- .../cat/MlTrainedModelsResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/NodeattrsRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/NodeattrsResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/NodesRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/NodesResponse.java | 19 +++++++++++++++---- .../cat/PendingTasksRequest.java | 19 +++++++++++++++---- .../cat/PendingTasksResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/PluginsRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/PluginsResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/RecoveryRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/RecoveryResponse.java | 19 +++++++++++++++---- .../cat/RepositoriesRequest.java | 19 +++++++++++++++---- .../cat/RepositoriesResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/SegmentsRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/SegmentsResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/ShardsRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/ShardsResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/SnapshotsRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/SnapshotsResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/TasksRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/TasksResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/TemplatesRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/TemplatesResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/ThreadPoolRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/ThreadPoolResponse.java | 19 +++++++++++++++---- .../elasticsearch/cat/TransformsRequest.java | 19 +++++++++++++++---- .../elasticsearch/cat/TransformsResponse.java | 19 +++++++++++++++---- .../cat/aliases/AliasesRecord.java | 19 +++++++++++++++---- .../cat/allocation/AllocationRecord.java | 19 +++++++++++++++---- .../ComponentTemplate.java | 19 +++++++++++++++---- .../elasticsearch/cat/count/CountRecord.java | 19 +++++++++++++++---- .../cat/fielddata/FielddataRecord.java | 19 +++++++++++++++---- .../cat/health/HealthRecord.java | 19 +++++++++++++++---- .../elasticsearch/cat/help/HelpRecord.java | 19 +++++++++++++++---- .../cat/indices/IndicesRecord.java | 19 +++++++++++++++---- .../cat/master/MasterRecord.java | 19 +++++++++++++++---- .../DataFrameAnalyticsRecord.java | 19 +++++++++++++++---- .../cat/ml_datafeeds/DatafeedsRecord.java | 19 +++++++++++++++---- .../elasticsearch/cat/ml_jobs/JobsRecord.java | 19 +++++++++++++++---- .../TrainedModelsRecord.java | 19 +++++++++++++++---- .../cat/nodeattrs/NodeAttributesRecord.java | 19 +++++++++++++++---- .../elasticsearch/cat/nodes/NodesRecord.java | 19 +++++++++++++++---- .../cat/pending_tasks/PendingTasksRecord.java | 19 +++++++++++++++---- .../cat/plugins/PluginsRecord.java | 19 +++++++++++++++---- .../cat/recovery/RecoveryRecord.java | 19 +++++++++++++++---- .../cat/repositories/RepositoriesRecord.java | 19 +++++++++++++++---- .../cat/segments/SegmentsRecord.java | 19 +++++++++++++++---- .../cat/shards/ShardsRecord.java | 19 +++++++++++++++---- .../cat/snapshots/SnapshotsRecord.java | 19 +++++++++++++++---- .../elasticsearch/cat/tasks/TasksRecord.java | 19 +++++++++++++++---- .../cat/templates/TemplatesRecord.java | 19 +++++++++++++++---- .../cat/thread_pool/ThreadPoolRecord.java | 19 +++++++++++++++---- .../cat/transforms/TransformsRecord.java | 19 +++++++++++++++---- .../elasticsearch/ccr/CcrStatsRequest.java | 19 +++++++++++++++---- .../elasticsearch/ccr/CcrStatsResponse.java | 19 +++++++++++++++---- .../ccr/DeleteAutoFollowPatternRequest.java | 19 +++++++++++++++---- .../ccr/DeleteAutoFollowPatternResponse.java | 19 +++++++++++++++---- .../ccr/ElasticsearchCcrAsyncClient.java | 19 +++++++++++++++---- .../ccr/ElasticsearchCcrClient.java | 19 +++++++++++++++---- .../elasticsearch/ccr/FollowIndexStats.java | 19 +++++++++++++++---- .../elasticsearch/ccr/FollowInfoRequest.java | 19 +++++++++++++++---- .../elasticsearch/ccr/FollowInfoResponse.java | 19 +++++++++++++++---- .../elasticsearch/ccr/FollowRequest.java | 19 +++++++++++++++---- .../elasticsearch/ccr/FollowResponse.java | 19 +++++++++++++++---- .../elasticsearch/ccr/FollowStatsRequest.java | 19 +++++++++++++++---- .../ccr/FollowStatsResponse.java | 19 +++++++++++++++---- .../ccr/ForgetFollowerRequest.java | 19 +++++++++++++++---- .../ccr/ForgetFollowerResponse.java | 19 +++++++++++++++---- .../ccr/GetAutoFollowPatternRequest.java | 19 +++++++++++++++---- .../ccr/GetAutoFollowPatternResponse.java | 19 +++++++++++++++---- .../ccr/PauseAutoFollowPatternRequest.java | 19 +++++++++++++++---- .../ccr/PauseAutoFollowPatternResponse.java | 19 +++++++++++++++---- .../elasticsearch/ccr/PauseFollowRequest.java | 19 +++++++++++++++---- .../ccr/PauseFollowResponse.java | 19 +++++++++++++++---- .../ccr/PutAutoFollowPatternRequest.java | 19 +++++++++++++++---- .../ccr/PutAutoFollowPatternResponse.java | 19 +++++++++++++++---- .../elasticsearch/ccr/ReadException.java | 19 +++++++++++++++---- .../ccr/ResumeAutoFollowPatternRequest.java | 19 +++++++++++++++---- .../ccr/ResumeAutoFollowPatternResponse.java | 19 +++++++++++++++---- .../ccr/ResumeFollowRequest.java | 19 +++++++++++++++---- .../ccr/ResumeFollowResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/ccr/ShardStats.java | 19 +++++++++++++++---- .../elasticsearch/ccr/UnfollowRequest.java | 19 +++++++++++++++---- .../elasticsearch/ccr/UnfollowResponse.java | 19 +++++++++++++++---- .../ccr/follow_info/FollowerIndex.java | 19 +++++++++++++++---- .../follow_info/FollowerIndexParameters.java | 19 +++++++++++++++---- .../ccr/follow_info/FollowerIndexStatus.java | 19 +++++++++++++++---- .../AutoFollowPattern.java | 19 +++++++++++++++---- .../AutoFollowPatternSummary.java | 19 +++++++++++++++---- .../ccr/stats/AutoFollowStats.java | 19 +++++++++++++++---- .../ccr/stats/AutoFollowedCluster.java | 19 +++++++++++++++---- .../elasticsearch/ccr/stats/FollowStats.java | 19 +++++++++++++++---- .../cluster/AllocationExplainRequest.java | 19 +++++++++++++++---- .../cluster/AllocationExplainResponse.java | 19 +++++++++++++++---- .../cluster/ClusterInfoRequest.java | 19 +++++++++++++++---- .../cluster/ClusterInfoResponse.java | 19 +++++++++++++++---- .../cluster/ClusterStatsRequest.java | 19 +++++++++++++++---- .../cluster/ClusterStatsResponse.java | 19 +++++++++++++++---- .../cluster/ComponentTemplate.java | 19 +++++++++++++++---- .../cluster/ComponentTemplateNode.java | 19 +++++++++++++++---- .../cluster/ComponentTemplateSummary.java | 19 +++++++++++++++---- .../DeleteComponentTemplateRequest.java | 19 +++++++++++++++---- .../DeleteComponentTemplateResponse.java | 19 +++++++++++++++---- .../DeleteVotingConfigExclusionsRequest.java | 19 +++++++++++++++---- .../ElasticsearchClusterAsyncClient.java | 19 +++++++++++++++---- .../cluster/ElasticsearchClusterClient.java | 19 +++++++++++++++---- .../ExistsComponentTemplateRequest.java | 19 +++++++++++++++---- .../cluster/GetClusterSettingsRequest.java | 19 +++++++++++++++---- .../cluster/GetClusterSettingsResponse.java | 19 +++++++++++++++---- .../cluster/GetComponentTemplateRequest.java | 19 +++++++++++++++---- .../cluster/GetComponentTemplateResponse.java | 19 +++++++++++++++---- .../elasticsearch/cluster/HealthRequest.java | 19 +++++++++++++++---- .../elasticsearch/cluster/HealthResponse.java | 19 +++++++++++++++---- .../cluster/PendingTasksRequest.java | 19 +++++++++++++++---- .../cluster/PendingTasksResponse.java | 19 +++++++++++++++---- .../PostVotingConfigExclusionsRequest.java | 19 +++++++++++++++---- .../cluster/PutClusterSettingsRequest.java | 19 +++++++++++++++---- .../cluster/PutClusterSettingsResponse.java | 19 +++++++++++++++---- .../cluster/PutComponentTemplateRequest.java | 19 +++++++++++++++---- .../cluster/PutComponentTemplateResponse.java | 19 +++++++++++++++---- .../cluster/RemoteInfoRequest.java | 19 +++++++++++++++---- .../cluster/RemoteInfoResponse.java | 19 +++++++++++++++---- .../elasticsearch/cluster/RerouteRequest.java | 19 +++++++++++++++---- .../cluster/RerouteResponse.java | 19 +++++++++++++++---- .../elasticsearch/cluster/StateRequest.java | 19 +++++++++++++++---- .../elasticsearch/cluster/StateResponse.java | 19 +++++++++++++++---- .../AllocationDecision.java | 19 +++++++++++++++---- .../AllocationExplainDecision.java | 19 +++++++++++++++---- .../allocation_explain/AllocationStore.java | 19 +++++++++++++++---- .../allocation_explain/ClusterInfo.java | 19 +++++++++++++++---- .../allocation_explain/CurrentNode.java | 19 +++++++++++++++---- .../cluster/allocation_explain/Decision.java | 19 +++++++++++++++---- .../cluster/allocation_explain/DiskUsage.java | 19 +++++++++++++++---- .../NodeAllocationExplanation.java | 19 +++++++++++++++---- .../allocation_explain/NodeDiskUsage.java | 19 +++++++++++++++---- .../allocation_explain/ReservedSize.java | 19 +++++++++++++++---- .../UnassignedInformation.java | 19 +++++++++++++++---- .../UnassignedInformationReason.java | 19 +++++++++++++++---- .../cluster/health/HealthResponseBody.java | 19 +++++++++++++++---- .../cluster/health/IndexHealthStats.java | 19 +++++++++++++++---- .../cluster/health/ShardHealthStats.java | 19 +++++++++++++++---- .../cluster/pending_tasks/PendingTask.java | 19 +++++++++++++++---- .../remote_info/ClusterRemoteInfo.java | 19 +++++++++++++++---- .../ClusterRemoteInfoBuilders.java | 19 +++++++++++++++---- .../remote_info/ClusterRemoteInfoVariant.java | 19 +++++++++++++++---- .../remote_info/ClusterRemoteProxyInfo.java | 19 +++++++++++++++---- .../remote_info/ClusterRemoteSniffInfo.java | 19 +++++++++++++++---- .../cluster/reroute/Command.java | 19 +++++++++++++++---- .../reroute/CommandAllocatePrimaryAction.java | 19 +++++++++++++++---- .../reroute/CommandAllocateReplicaAction.java | 19 +++++++++++++++---- .../cluster/reroute/CommandCancelAction.java | 19 +++++++++++++++---- .../cluster/reroute/CommandMoveAction.java | 19 +++++++++++++++---- .../cluster/reroute/RerouteDecision.java | 19 +++++++++++++++---- .../cluster/reroute/RerouteExplanation.java | 19 +++++++++++++++---- .../cluster/reroute/RerouteParameters.java | 19 +++++++++++++++---- .../cluster/stats/CharFilterTypes.java | 19 +++++++++++++++---- .../cluster/stats/ClusterFileSystem.java | 19 +++++++++++++++---- .../cluster/stats/ClusterIndices.java | 19 +++++++++++++++---- .../cluster/stats/ClusterIndicesShards.java | 19 +++++++++++++++---- .../stats/ClusterIndicesShardsIndex.java | 19 +++++++++++++++---- .../cluster/stats/ClusterIngest.java | 19 +++++++++++++++---- .../cluster/stats/ClusterJvm.java | 19 +++++++++++++++---- .../cluster/stats/ClusterJvmMemory.java | 19 +++++++++++++++---- .../cluster/stats/ClusterJvmVersion.java | 19 +++++++++++++++---- .../cluster/stats/ClusterNetworkTypes.java | 19 +++++++++++++++---- .../cluster/stats/ClusterNodeCount.java | 19 +++++++++++++++---- .../cluster/stats/ClusterNodes.java | 19 +++++++++++++++---- .../cluster/stats/ClusterOperatingSystem.java | 19 +++++++++++++++---- .../ClusterOperatingSystemArchitecture.java | 19 +++++++++++++++---- .../stats/ClusterOperatingSystemName.java | 19 +++++++++++++++---- .../ClusterOperatingSystemPrettyName.java | 19 +++++++++++++++---- .../cluster/stats/ClusterProcess.java | 19 +++++++++++++++---- .../cluster/stats/ClusterProcessCpu.java | 19 +++++++++++++++---- .../ClusterProcessOpenFileDescriptors.java | 19 +++++++++++++++---- .../cluster/stats/ClusterProcessor.java | 19 +++++++++++++++---- .../cluster/stats/ClusterShardMetrics.java | 19 +++++++++++++++---- .../cluster/stats/FieldTypes.java | 19 +++++++++++++++---- .../cluster/stats/FieldTypesMappings.java | 19 +++++++++++++++---- .../cluster/stats/IndexingPressure.java | 19 +++++++++++++++---- .../cluster/stats/IndexingPressureMemory.java | 19 +++++++++++++++---- .../stats/IndexingPressureMemorySummary.java | 19 +++++++++++++++---- .../cluster/stats/IndicesVersions.java | 19 +++++++++++++++---- .../cluster/stats/NodePackagingType.java | 19 +++++++++++++++---- .../stats/OperatingSystemMemoryInfo.java | 19 +++++++++++++++---- .../cluster/stats/RuntimeFieldTypes.java | 19 +++++++++++++++---- .../cluster/stats/StatsResponseBase.java | 19 +++++++++++++++---- .../elasticsearch/core/BulkRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/BulkResponse.java | 19 +++++++++++++++---- .../core/ClearScrollRequest.java | 19 +++++++++++++++---- .../core/ClearScrollResponse.java | 19 +++++++++++++++---- .../core/ClosePointInTimeRequest.java | 19 +++++++++++++++---- .../core/ClosePointInTimeResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/CountRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/CountResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/CreateRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/CreateResponse.java | 19 +++++++++++++++---- .../core/DeleteByQueryRequest.java | 19 +++++++++++++++---- .../core/DeleteByQueryResponse.java | 19 +++++++++++++++---- .../core/DeleteByQueryRethrottleRequest.java | 19 +++++++++++++++---- .../core/DeleteByQueryRethrottleResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/DeleteRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/DeleteResponse.java | 19 +++++++++++++++---- .../core/DeleteScriptRequest.java | 19 +++++++++++++++---- .../core/DeleteScriptResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/ExistsRequest.java | 19 +++++++++++++++---- .../core/ExistsSourceRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/ExplainRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/ExplainResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/FieldCapsRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/FieldCapsResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/GetRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/GetResponse.java | 19 +++++++++++++++---- .../core/GetScriptContextRequest.java | 19 +++++++++++++++---- .../core/GetScriptContextResponse.java | 19 +++++++++++++++---- .../core/GetScriptLanguagesRequest.java | 19 +++++++++++++++---- .../core/GetScriptLanguagesResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/GetScriptRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/GetScriptResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/GetSourceRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/GetSourceResponse.java | 19 +++++++++++++++---- .../core/HealthReportRequest.java | 19 +++++++++++++++---- .../core/HealthReportResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/IndexRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/IndexResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/InfoRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/InfoResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/KnnSearchRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/KnnSearchResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/MgetRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/MgetResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/MsearchRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/MsearchResponse.java | 19 +++++++++++++++---- .../core/MsearchTemplateRequest.java | 19 +++++++++++++++---- .../core/MsearchTemplateResponse.java | 19 +++++++++++++++---- .../core/MtermvectorsRequest.java | 19 +++++++++++++++---- .../core/MtermvectorsResponse.java | 19 +++++++++++++++---- .../core/OpenPointInTimeRequest.java | 19 +++++++++++++++---- .../core/OpenPointInTimeResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/PingRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/PutScriptRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/PutScriptResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/RankEvalRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/RankEvalResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/ReindexRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/ReindexResponse.java | 19 +++++++++++++++---- .../core/ReindexRethrottleRequest.java | 19 +++++++++++++++---- .../core/ReindexRethrottleResponse.java | 19 +++++++++++++++---- .../core/RenderSearchTemplateRequest.java | 19 +++++++++++++++---- .../core/RenderSearchTemplateResponse.java | 19 +++++++++++++++---- .../core/ScriptsPainlessExecuteRequest.java | 19 +++++++++++++++---- .../core/ScriptsPainlessExecuteResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/ScrollRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/ScrollResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/SearchMvtRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/SearchRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/SearchResponse.java | 19 +++++++++++++++---- .../core/SearchShardsRequest.java | 19 +++++++++++++++---- .../core/SearchShardsResponse.java | 19 +++++++++++++++---- .../core/SearchTemplateRequest.java | 19 +++++++++++++++---- .../core/SearchTemplateResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/TermsEnumRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/TermsEnumResponse.java | 19 +++++++++++++++---- .../core/TermvectorsRequest.java | 19 +++++++++++++++---- .../core/TermvectorsResponse.java | 19 +++++++++++++++---- .../core/UpdateByQueryRequest.java | 19 +++++++++++++++---- .../core/UpdateByQueryResponse.java | 19 +++++++++++++++---- .../core/UpdateByQueryRethrottleRequest.java | 19 +++++++++++++++---- .../core/UpdateByQueryRethrottleResponse.java | 19 +++++++++++++++---- .../elasticsearch/core/UpdateRequest.java | 19 +++++++++++++++---- .../elasticsearch/core/UpdateResponse.java | 19 +++++++++++++++---- .../core/bulk/BulkOperation.java | 19 +++++++++++++++---- .../core/bulk/BulkOperationBase.java | 19 +++++++++++++++---- .../core/bulk/BulkOperationBuilders.java | 19 +++++++++++++++---- .../core/bulk/BulkOperationVariant.java | 19 +++++++++++++++---- .../core/bulk/BulkResponseItem.java | 19 +++++++++++++++---- .../core/bulk/CreateOperation.java | 19 +++++++++++++++---- .../core/bulk/DeleteOperation.java | 19 +++++++++++++++---- .../core/bulk/IndexOperation.java | 19 +++++++++++++++---- .../core/bulk/OperationType.java | 19 +++++++++++++++---- .../elasticsearch/core/bulk/UpdateAction.java | 19 +++++++++++++++---- .../core/bulk/UpdateOperation.java | 19 +++++++++++++++---- .../core/bulk/WriteOperation.java | 19 +++++++++++++++---- .../core/explain/Explanation.java | 19 +++++++++++++++---- .../core/explain/ExplanationDetail.java | 19 +++++++++++++++---- .../core/field_caps/FieldCapability.java | 19 +++++++++++++++---- .../elasticsearch/core/get/GetResult.java | 19 +++++++++++++++---- .../core/get_script_context/Context.java | 19 +++++++++++++++---- .../get_script_context/ContextMethod.java | 19 +++++++++++++++---- .../ContextMethodParam.java | 19 +++++++++++++++---- .../get_script_languages/LanguageContext.java | 19 +++++++++++++++---- .../core/health_report/BaseIndicator.java | 19 +++++++++++++++---- .../core/health_report/Diagnosis.java | 19 +++++++++++++++---- .../DiagnosisAffectedResources.java | 19 +++++++++++++++---- .../core/health_report/DiskIndicator.java | 19 +++++++++++++++---- .../health_report/DiskIndicatorDetails.java | 19 +++++++++++++++---- .../core/health_report/IlmIndicator.java | 19 +++++++++++++++---- .../health_report/IlmIndicatorDetails.java | 19 +++++++++++++++---- .../core/health_report/Impact.java | 19 +++++++++++++++---- .../core/health_report/ImpactArea.java | 19 +++++++++++++++---- .../health_report/IndicatorHealthStatus.java | 19 +++++++++++++++---- .../core/health_report/IndicatorNode.java | 19 +++++++++++++++---- .../core/health_report/Indicators.java | 19 +++++++++++++++---- .../MasterIsStableIndicator.java | 19 +++++++++++++++---- ...IsStableIndicatorClusterFormationNode.java | 19 +++++++++++++++---- .../MasterIsStableIndicatorDetails.java | 19 +++++++++++++++---- ...ableIndicatorExceptionFetchingHistory.java | 19 +++++++++++++++---- .../RepositoryIntegrityIndicator.java | 19 +++++++++++++++---- .../RepositoryIntegrityIndicatorDetails.java | 19 +++++++++++++++---- .../ShardsAvailabilityIndicator.java | 19 +++++++++++++++---- .../ShardsAvailabilityIndicatorDetails.java | 19 +++++++++++++++---- .../ShardsCapacityIndicator.java | 19 +++++++++++++++---- .../ShardsCapacityIndicatorDetails.java | 19 +++++++++++++++---- .../ShardsCapacityIndicatorTierDetail.java | 19 +++++++++++++++---- .../core/health_report/SlmIndicator.java | 19 +++++++++++++++---- .../health_report/SlmIndicatorDetails.java | 19 +++++++++++++++---- .../SlmIndicatorUnhealthyPolicies.java | 19 +++++++++++++++---- .../core/knn_search/KnnSearchQuery.java | 19 +++++++++++++++---- .../core/mget/MultiGetError.java | 19 +++++++++++++++---- .../core/mget/MultiGetOperation.java | 19 +++++++++++++++---- .../core/mget/MultiGetResponseItem.java | 19 +++++++++++++++---- .../mget/MultiGetResponseItemBuilders.java | 19 +++++++++++++++---- .../core/msearch/MultiSearchItem.java | 19 +++++++++++++++---- .../core/msearch/MultiSearchResponseItem.java | 19 +++++++++++++++---- .../MultiSearchResponseItemBuilders.java | 19 +++++++++++++++---- .../core/msearch/MultiSearchResult.java | 19 +++++++++++++++---- .../core/msearch/MultisearchBody.java | 19 +++++++++++++++---- .../core/msearch/MultisearchHeader.java | 19 +++++++++++++++---- .../core/msearch/RequestItem.java | 19 +++++++++++++++---- .../core/msearch_template/RequestItem.java | 19 +++++++++++++++---- .../core/msearch_template/TemplateConfig.java | 19 +++++++++++++++---- .../MultiTermVectorsOperation.java | 19 +++++++++++++++---- .../mtermvectors/MultiTermVectorsResult.java | 19 +++++++++++++++---- .../core/rank_eval/DocumentRating.java | 19 +++++++++++++++---- .../core/rank_eval/RankEvalHit.java | 19 +++++++++++++++---- .../core/rank_eval/RankEvalHitItem.java | 19 +++++++++++++++---- .../core/rank_eval/RankEvalMetric.java | 19 +++++++++++++++---- .../core/rank_eval/RankEvalMetricBase.java | 19 +++++++++++++++---- .../core/rank_eval/RankEvalMetricDetail.java | 19 +++++++++++++++---- ...ankEvalMetricDiscountedCumulativeGain.java | 19 +++++++++++++++---- .../RankEvalMetricExpectedReciprocalRank.java | 19 +++++++++++++++---- .../RankEvalMetricMeanReciprocalRank.java | 19 +++++++++++++++---- .../rank_eval/RankEvalMetricPrecision.java | 19 +++++++++++++++---- .../RankEvalMetricRatingTreshold.java | 19 +++++++++++++++---- .../core/rank_eval/RankEvalMetricRecall.java | 19 +++++++++++++++---- .../core/rank_eval/RankEvalQuery.java | 19 +++++++++++++++---- .../core/rank_eval/RankEvalRequestItem.java | 19 +++++++++++++++---- .../core/rank_eval/UnratedDocument.java | 19 +++++++++++++++---- .../core/reindex/Destination.java | 19 +++++++++++++++---- .../core/reindex/RemoteSource.java | 19 +++++++++++++++---- .../elasticsearch/core/reindex/Source.java | 19 +++++++++++++++---- .../core/reindex_rethrottle/ReindexNode.java | 19 +++++++++++++++---- .../reindex_rethrottle/ReindexStatus.java | 19 +++++++++++++++---- .../core/reindex_rethrottle/ReindexTask.java | 19 +++++++++++++++---- .../PainlessContextSetup.java | 19 +++++++++++++++---- .../core/search/AggregationBreakdown.java | 19 +++++++++++++++---- .../core/search/AggregationProfile.java | 19 +++++++++++++++---- .../core/search/AggregationProfileDebug.java | 19 +++++++++++++++---- ...AggregationProfileDelegateDebugFilter.java | 19 +++++++++++++++---- .../core/search/BoundaryScanner.java | 19 +++++++++++++++---- .../elasticsearch/core/search/Collector.java | 19 +++++++++++++++---- .../core/search/CompletionContext.java | 19 +++++++++++++++---- .../core/search/CompletionSuggest.java | 19 +++++++++++++++---- .../core/search/CompletionSuggestOption.java | 19 +++++++++++++++---- .../core/search/CompletionSuggester.java | 19 +++++++++++++++---- .../elasticsearch/core/search/Context.java | 19 +++++++++++++++---- .../core/search/ContextBuilders.java | 19 +++++++++++++++---- .../core/search/DirectGenerator.java | 19 +++++++++++++++---- .../core/search/FetchProfile.java | 19 +++++++++++++++---- .../core/search/FetchProfileBreakdown.java | 19 +++++++++++++++---- .../core/search/FetchProfileDebug.java | 19 +++++++++++++++---- .../core/search/FieldCollapse.java | 19 +++++++++++++++---- .../core/search/FieldSuggester.java | 19 +++++++++++++++---- .../core/search/FieldSuggesterBuilders.java | 19 +++++++++++++++---- .../core/search/FieldSuggesterVariant.java | 19 +++++++++++++++---- .../elasticsearch/core/search/Highlight.java | 19 +++++++++++++++---- .../core/search/HighlightBase.java | 19 +++++++++++++++---- .../core/search/HighlightField.java | 19 +++++++++++++++---- .../core/search/HighlighterEncoder.java | 19 +++++++++++++++---- .../core/search/HighlighterFragmenter.java | 19 +++++++++++++++---- .../core/search/HighlighterOrder.java | 19 +++++++++++++++---- .../core/search/HighlighterTagsSchema.java | 19 +++++++++++++++---- .../core/search/HighlighterType.java | 19 +++++++++++++++---- .../elasticsearch/core/search/Hit.java | 19 +++++++++++++++---- .../core/search/HitsMetadata.java | 19 +++++++++++++++---- .../elasticsearch/core/search/InnerHits.java | 19 +++++++++++++++---- .../core/search/InnerHitsResult.java | 19 +++++++++++++++---- .../core/search/LaplaceSmoothingModel.java | 19 +++++++++++++++---- .../LinearInterpolationSmoothingModel.java | 19 +++++++++++++++---- .../core/search/NestedIdentity.java | 19 +++++++++++++++---- .../core/search/PhraseSuggest.java | 19 +++++++++++++++---- .../core/search/PhraseSuggestCollate.java | 19 +++++++++++++++---- .../search/PhraseSuggestCollateQuery.java | 19 +++++++++++++++---- .../core/search/PhraseSuggestHighlight.java | 19 +++++++++++++++---- .../core/search/PhraseSuggestOption.java | 19 +++++++++++++++---- .../core/search/PhraseSuggester.java | 19 +++++++++++++++---- .../core/search/PointInTimeReference.java | 19 +++++++++++++++---- .../elasticsearch/core/search/Profile.java | 19 +++++++++++++++---- .../core/search/QueryBreakdown.java | 19 +++++++++++++++---- .../core/search/QueryProfile.java | 19 +++++++++++++++---- .../core/search/RegexOptions.java | 19 +++++++++++++++---- .../elasticsearch/core/search/Rescore.java | 19 +++++++++++++++---- .../core/search/RescoreQuery.java | 19 +++++++++++++++---- .../core/search/ResponseBody.java | 19 +++++++++++++++---- .../elasticsearch/core/search/ScoreMode.java | 19 +++++++++++++++---- .../core/search/SearchProfile.java | 19 +++++++++++++++---- .../core/search/ShardProfile.java | 19 +++++++++++++++---- .../core/search/SmoothingModel.java | 19 +++++++++++++++---- .../core/search/SmoothingModelBuilders.java | 19 +++++++++++++++---- .../core/search/SmoothingModelVariant.java | 19 +++++++++++++++---- .../core/search/SourceConfig.java | 19 +++++++++++++++---- .../core/search/SourceConfigBuilders.java | 19 +++++++++++++++---- .../core/search/SourceConfigParam.java | 19 +++++++++++++++---- .../search/SourceConfigParamBuilders.java | 19 +++++++++++++++---- .../core/search/SourceFilter.java | 19 +++++++++++++++---- .../core/search/StringDistance.java | 19 +++++++++++++++---- .../search/StupidBackoffSmoothingModel.java | 19 +++++++++++++++---- .../core/search/SuggestBase.java | 19 +++++++++++++++---- .../core/search/SuggestFuzziness.java | 19 +++++++++++++++---- .../core/search/SuggestSort.java | 19 +++++++++++++++---- .../elasticsearch/core/search/Suggester.java | 19 +++++++++++++++---- .../core/search/SuggesterBase.java | 19 +++++++++++++++---- .../elasticsearch/core/search/Suggestion.java | 19 +++++++++++++++---- .../core/search/SuggestionBuilders.java | 19 +++++++++++++++---- .../core/search/SuggestionVariant.java | 19 +++++++++++++++---- .../core/search/TermSuggest.java | 19 +++++++++++++++---- .../core/search/TermSuggestOption.java | 19 +++++++++++++++---- .../core/search/TermSuggester.java | 19 +++++++++++++++---- .../elasticsearch/core/search/TotalHits.java | 19 +++++++++++++++---- .../core/search/TotalHitsRelation.java | 19 +++++++++++++++---- .../elasticsearch/core/search/TrackHits.java | 19 +++++++++++++++---- .../core/search/TrackHitsBuilders.java | 19 +++++++++++++++---- .../core/search_mvt/GridAggregationType.java | 19 +++++++++++++++---- .../core/search_mvt/GridType.java | 19 +++++++++++++++---- .../core/search_shards/ShardStoreIndex.java | 19 +++++++++++++++---- .../core/termvectors/FieldStatistics.java | 19 +++++++++++++++---- .../core/termvectors/Filter.java | 19 +++++++++++++++---- .../elasticsearch/core/termvectors/Term.java | 19 +++++++++++++++---- .../core/termvectors/TermVector.java | 19 +++++++++++++++---- .../elasticsearch/core/termvectors/Token.java | 19 +++++++++++++++---- .../core/update/UpdateWriteResponseBase.java | 19 +++++++++++++++---- .../UpdateByQueryRethrottleNode.java | 19 +++++++++++++++---- .../DeleteDanglingIndexRequest.java | 19 +++++++++++++++---- .../DeleteDanglingIndexResponse.java | 19 +++++++++++++++---- ...asticsearchDanglingIndicesAsyncClient.java | 19 +++++++++++++++---- .../ElasticsearchDanglingIndicesClient.java | 19 +++++++++++++++---- .../ImportDanglingIndexRequest.java | 19 +++++++++++++++---- .../ImportDanglingIndexResponse.java | 19 +++++++++++++++---- .../ListDanglingIndicesRequest.java | 19 +++++++++++++++---- .../ListDanglingIndicesResponse.java | 19 +++++++++++++++---- .../list_dangling_indices/DanglingIndex.java | 19 +++++++++++++++---- .../enrich/DeletePolicyRequest.java | 19 +++++++++++++++---- .../enrich/DeletePolicyResponse.java | 19 +++++++++++++++---- .../ElasticsearchEnrichAsyncClient.java | 19 +++++++++++++++---- .../enrich/ElasticsearchEnrichClient.java | 19 +++++++++++++++---- .../elasticsearch/enrich/EnrichPolicy.java | 19 +++++++++++++++---- .../enrich/EnrichPolicyType.java | 19 +++++++++++++++---- .../enrich/EnrichStatsRequest.java | 19 +++++++++++++++---- .../enrich/EnrichStatsResponse.java | 19 +++++++++++++++---- .../elasticsearch/enrich/EnrichSummary.java | 19 +++++++++++++++---- .../enrich/ExecutePolicyRequest.java | 19 +++++++++++++++---- .../enrich/ExecutePolicyResponse.java | 19 +++++++++++++++---- .../enrich/GetPolicyRequest.java | 19 +++++++++++++++---- .../enrich/GetPolicyResponse.java | 19 +++++++++++++++---- .../enrich/PutPolicyRequest.java | 19 +++++++++++++++---- .../enrich/PutPolicyResponse.java | 19 +++++++++++++++---- .../execute_policy/EnrichPolicyPhase.java | 19 +++++++++++++++---- .../ExecuteEnrichPolicyStatus.java | 19 +++++++++++++++---- .../enrich/stats/CacheStats.java | 19 +++++++++++++++---- .../enrich/stats/CoordinatorStats.java | 19 +++++++++++++++---- .../enrich/stats/ExecutingPolicy.java | 19 +++++++++++++++---- .../eql/ElasticsearchEqlAsyncClient.java | 19 +++++++++++++++---- .../eql/ElasticsearchEqlClient.java | 19 +++++++++++++++---- .../elasticsearch/eql/EqlDeleteRequest.java | 19 +++++++++++++++---- .../elasticsearch/eql/EqlDeleteResponse.java | 19 +++++++++++++++---- .../elasticsearch/eql/EqlGetRequest.java | 19 +++++++++++++++---- .../elasticsearch/eql/EqlGetResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/eql/EqlHits.java | 19 +++++++++++++++---- .../elasticsearch/eql/EqlSearchRequest.java | 19 +++++++++++++++---- .../elasticsearch/eql/EqlSearchResponse.java | 19 +++++++++++++++---- .../eql/EqlSearchResponseBase.java | 19 +++++++++++++++---- .../eql/GetEqlStatusRequest.java | 19 +++++++++++++++---- .../eql/GetEqlStatusResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/eql/HitsEvent.java | 19 +++++++++++++++---- .../elasticsearch/eql/HitsSequence.java | 19 +++++++++++++++---- .../eql/search/ResultPosition.java | 19 +++++++++++++++---- .../ElasticsearchFeaturesAsyncClient.java | 19 +++++++++++++++---- .../features/ElasticsearchFeaturesClient.java | 19 +++++++++++++++---- .../elasticsearch/features/Feature.java | 19 +++++++++++++++---- .../features/GetFeaturesRequest.java | 19 +++++++++++++++---- .../features/GetFeaturesResponse.java | 19 +++++++++++++++---- .../features/ResetFeaturesRequest.java | 19 +++++++++++++++---- .../features/ResetFeaturesResponse.java | 19 +++++++++++++++---- .../fleet/ElasticsearchFleetAsyncClient.java | 19 +++++++++++++++---- .../fleet/ElasticsearchFleetClient.java | 19 +++++++++++++++---- .../fleet/FleetSearchRequest.java | 19 +++++++++++++++---- .../fleet/FleetSearchResponse.java | 19 +++++++++++++++---- .../elasticsearch/graph/Connection.java | 19 +++++++++++++++---- .../graph/ElasticsearchGraphAsyncClient.java | 19 +++++++++++++++---- .../graph/ElasticsearchGraphClient.java | 19 +++++++++++++++---- .../elasticsearch/graph/ExploreControls.java | 19 +++++++++++++++---- .../elasticsearch/graph/ExploreRequest.java | 19 +++++++++++++++---- .../elasticsearch/graph/ExploreResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/graph/Hop.java | 19 +++++++++++++++---- .../elasticsearch/graph/SampleDiversity.java | 19 +++++++++++++++---- .../clients/elasticsearch/graph/Vertex.java | 19 +++++++++++++++---- .../elasticsearch/graph/VertexDefinition.java | 19 +++++++++++++++---- .../elasticsearch/graph/VertexInclude.java | 19 +++++++++++++++---- .../elasticsearch/ilm/Configurations.java | 19 +++++++++++++++---- .../ilm/DeleteLifecycleRequest.java | 19 +++++++++++++++---- .../ilm/DeleteLifecycleResponse.java | 19 +++++++++++++++---- .../ilm/ElasticsearchIlmAsyncClient.java | 19 +++++++++++++++---- .../ilm/ElasticsearchIlmClient.java | 19 +++++++++++++++---- .../ilm/ExplainLifecycleRequest.java | 19 +++++++++++++++---- .../ilm/ExplainLifecycleResponse.java | 19 +++++++++++++++---- .../ilm/ForceMergeConfiguration.java | 19 +++++++++++++++---- .../ilm/GetIlmStatusRequest.java | 19 +++++++++++++++---- .../ilm/GetIlmStatusResponse.java | 19 +++++++++++++++---- .../ilm/GetLifecycleRequest.java | 19 +++++++++++++++---- .../ilm/GetLifecycleResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/ilm/IlmPolicy.java | 19 +++++++++++++++---- .../ilm/MigrateToDataTiersRequest.java | 19 +++++++++++++++---- .../ilm/MigrateToDataTiersResponse.java | 19 +++++++++++++++---- .../elasticsearch/ilm/MoveToStepRequest.java | 19 +++++++++++++++---- .../elasticsearch/ilm/MoveToStepResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/ilm/Phase.java | 19 +++++++++++++++---- .../clients/elasticsearch/ilm/Phases.java | 19 +++++++++++++++---- .../ilm/PutLifecycleRequest.java | 19 +++++++++++++++---- .../ilm/PutLifecycleResponse.java | 19 +++++++++++++++---- .../ilm/RemovePolicyRequest.java | 19 +++++++++++++++---- .../ilm/RemovePolicyResponse.java | 19 +++++++++++++++---- .../elasticsearch/ilm/RetryRequest.java | 19 +++++++++++++++---- .../elasticsearch/ilm/RetryResponse.java | 19 +++++++++++++++---- .../ilm/ShrinkConfiguration.java | 19 +++++++++++++++---- .../elasticsearch/ilm/StartIlmRequest.java | 19 +++++++++++++++---- .../elasticsearch/ilm/StartIlmResponse.java | 19 +++++++++++++++---- .../elasticsearch/ilm/StopIlmRequest.java | 19 +++++++++++++++---- .../elasticsearch/ilm/StopIlmResponse.java | 19 +++++++++++++++---- .../explain_lifecycle/LifecycleExplain.java | 19 +++++++++++++++---- .../LifecycleExplainBuilders.java | 19 +++++++++++++++---- .../LifecycleExplainManaged.java | 19 +++++++++++++++---- .../LifecycleExplainPhaseExecution.java | 19 +++++++++++++++---- .../LifecycleExplainUnmanaged.java | 19 +++++++++++++++---- .../LifecycleExplainVariant.java | 19 +++++++++++++++---- .../ilm/get_lifecycle/Lifecycle.java | 19 +++++++++++++++---- .../ilm/move_to_step/StepKey.java | 19 +++++++++++++++---- .../indices/AddBlockRequest.java | 19 +++++++++++++++---- .../indices/AddBlockResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/indices/Alias.java | 19 +++++++++++++++---- .../indices/AliasDefinition.java | 19 +++++++++++++++---- .../elasticsearch/indices/AnalyzeRequest.java | 19 +++++++++++++++---- .../indices/AnalyzeResponse.java | 19 +++++++++++++++---- .../elasticsearch/indices/CacheQueries.java | 19 +++++++++++++++---- .../indices/ClearCacheRequest.java | 19 +++++++++++++++---- .../indices/ClearCacheResponse.java | 19 +++++++++++++++---- .../indices/CloneIndexRequest.java | 19 +++++++++++++++---- .../indices/CloneIndexResponse.java | 19 +++++++++++++++---- .../indices/CloseIndexRequest.java | 19 +++++++++++++++---- .../indices/CloseIndexResponse.java | 19 +++++++++++++++---- .../indices/CreateDataStreamRequest.java | 19 +++++++++++++++---- .../indices/CreateDataStreamResponse.java | 19 +++++++++++++++---- .../indices/CreateIndexRequest.java | 19 +++++++++++++++---- .../indices/CreateIndexResponse.java | 19 +++++++++++++++---- .../elasticsearch/indices/DataStream.java | 19 +++++++++++++++---- .../indices/DataStreamIndex.java | 19 +++++++++++++++---- .../indices/DataStreamLifecycle.java | 19 +++++++++++++++---- .../DataStreamLifecycleDownsampling.java | 19 +++++++++++++++---- ...DataStreamLifecycleRolloverConditions.java | 19 +++++++++++++++---- .../DataStreamLifecycleWithRollover.java | 19 +++++++++++++++---- .../indices/DataStreamTimestampField.java | 19 +++++++++++++++---- .../indices/DataStreamVisibility.java | 19 +++++++++++++++---- .../indices/DataStreamsStatsRequest.java | 19 +++++++++++++++---- .../indices/DataStreamsStatsResponse.java | 19 +++++++++++++++---- .../indices/DeleteAliasRequest.java | 19 +++++++++++++++---- .../indices/DeleteAliasResponse.java | 19 +++++++++++++++---- .../indices/DeleteDataLifecycleRequest.java | 19 +++++++++++++++---- .../indices/DeleteDataLifecycleResponse.java | 19 +++++++++++++++---- .../indices/DeleteDataStreamRequest.java | 19 +++++++++++++++---- .../indices/DeleteDataStreamResponse.java | 19 +++++++++++++++---- .../indices/DeleteIndexRequest.java | 19 +++++++++++++++---- .../indices/DeleteIndexResponse.java | 19 +++++++++++++++---- .../indices/DeleteIndexTemplateRequest.java | 19 +++++++++++++++---- .../indices/DeleteIndexTemplateResponse.java | 19 +++++++++++++++---- .../indices/DeleteTemplateRequest.java | 19 +++++++++++++++---- .../indices/DeleteTemplateResponse.java | 19 +++++++++++++++---- .../indices/DiskUsageRequest.java | 19 +++++++++++++++---- .../indices/DiskUsageResponse.java | 19 +++++++++++++++---- .../indices/DownsampleConfig.java | 19 +++++++++++++++---- .../indices/DownsampleRequest.java | 19 +++++++++++++++---- .../indices/DownsampleResponse.java | 19 +++++++++++++++---- .../indices/DownsamplingRound.java | 19 +++++++++++++++---- .../ElasticsearchIndicesAsyncClient.java | 19 +++++++++++++++---- .../indices/ElasticsearchIndicesClient.java | 19 +++++++++++++++---- .../indices/ExistsAliasRequest.java | 19 +++++++++++++++---- .../indices/ExistsIndexTemplateRequest.java | 19 +++++++++++++++---- .../elasticsearch/indices/ExistsRequest.java | 19 +++++++++++++++---- .../indices/ExistsTemplateRequest.java | 19 +++++++++++++++---- .../indices/ExplainDataLifecycleRequest.java | 19 +++++++++++++++---- .../indices/ExplainDataLifecycleResponse.java | 19 +++++++++++++++---- .../indices/FieldUsageStatsRequest.java | 19 +++++++++++++++---- .../indices/FieldUsageStatsResponse.java | 19 +++++++++++++++---- .../indices/FielddataFrequencyFilter.java | 19 +++++++++++++++---- .../elasticsearch/indices/FlushRequest.java | 19 +++++++++++++++---- .../elasticsearch/indices/FlushResponse.java | 19 +++++++++++++++---- .../indices/ForcemergeRequest.java | 19 +++++++++++++++---- .../indices/ForcemergeResponse.java | 19 +++++++++++++++---- .../indices/GetAliasRequest.java | 19 +++++++++++++++---- .../indices/GetAliasResponse.java | 19 +++++++++++++++---- .../indices/GetDataLifecycleRequest.java | 19 +++++++++++++++---- .../indices/GetDataLifecycleResponse.java | 19 +++++++++++++++---- .../indices/GetDataStreamRequest.java | 19 +++++++++++++++---- .../indices/GetDataStreamResponse.java | 19 +++++++++++++++---- .../indices/GetFieldMappingRequest.java | 19 +++++++++++++++---- .../indices/GetFieldMappingResponse.java | 19 +++++++++++++++---- .../indices/GetIndexRequest.java | 19 +++++++++++++++---- .../indices/GetIndexResponse.java | 19 +++++++++++++++---- .../indices/GetIndexTemplateRequest.java | 19 +++++++++++++++---- .../indices/GetIndexTemplateResponse.java | 19 +++++++++++++++---- .../indices/GetIndicesSettingsRequest.java | 19 +++++++++++++++---- .../indices/GetIndicesSettingsResponse.java | 19 +++++++++++++++---- .../indices/GetMappingRequest.java | 19 +++++++++++++++---- .../indices/GetMappingResponse.java | 19 +++++++++++++++---- .../indices/GetTemplateRequest.java | 19 +++++++++++++++---- .../indices/GetTemplateResponse.java | 19 +++++++++++++++---- .../indices/IndexCheckOnStartup.java | 19 +++++++++++++++---- .../elasticsearch/indices/IndexRouting.java | 19 +++++++++++++++---- .../indices/IndexRoutingAllocation.java | 19 +++++++++++++++---- .../indices/IndexRoutingAllocationDisk.java | 19 +++++++++++++++---- .../IndexRoutingAllocationInclude.java | 19 +++++++++++++++---- ...IndexRoutingAllocationInitialRecovery.java | 19 +++++++++++++++---- .../IndexRoutingAllocationOptions.java | 19 +++++++++++++++---- .../indices/IndexRoutingRebalance.java | 19 +++++++++++++++---- .../indices/IndexRoutingRebalanceOptions.java | 19 +++++++++++++++---- .../indices/IndexSegmentSort.java | 19 +++++++++++++++---- .../indices/IndexSettingBlocks.java | 19 +++++++++++++++---- .../elasticsearch/indices/IndexSettings.java | 19 +++++++++++++++---- .../indices/IndexSettingsAnalysis.java | 19 +++++++++++++++---- .../indices/IndexSettingsLifecycle.java | 19 +++++++++++++++---- .../indices/IndexSettingsLifecycleStep.java | 19 +++++++++++++++---- .../indices/IndexSettingsTimeSeries.java | 19 +++++++++++++++---- .../elasticsearch/indices/IndexState.java | 19 +++++++++++++++---- .../elasticsearch/indices/IndexTemplate.java | 19 +++++++++++++++---- .../IndexTemplateDataStreamConfiguration.java | 19 +++++++++++++++---- .../indices/IndexTemplateSummary.java | 19 +++++++++++++++---- .../indices/IndexVersioning.java | 19 +++++++++++++++---- .../indices/IndexingPressure.java | 19 +++++++++++++++---- .../indices/IndexingPressureMemory.java | 19 +++++++++++++++---- .../indices/IndexingSlowlogSettings.java | 19 +++++++++++++++---- .../indices/IndexingSlowlogTresholds.java | 19 +++++++++++++++---- .../indices/IndicesStatsRequest.java | 19 +++++++++++++++---- .../indices/IndicesStatsResponse.java | 19 +++++++++++++++---- .../indices/MappingLimitSettings.java | 19 +++++++++++++++---- .../indices/MappingLimitSettingsDepth.java | 19 +++++++++++++++---- .../MappingLimitSettingsDimensionFields.java | 19 +++++++++++++++---- .../MappingLimitSettingsFieldNameLength.java | 19 +++++++++++++++---- .../MappingLimitSettingsNestedFields.java | 19 +++++++++++++++---- .../MappingLimitSettingsNestedObjects.java | 19 +++++++++++++++---- .../MappingLimitSettingsTotalFields.java | 19 +++++++++++++++---- .../clients/elasticsearch/indices/Merge.java | 19 +++++++++++++++---- .../elasticsearch/indices/MergeScheduler.java | 19 +++++++++++++++---- .../indices/MigrateToDataStreamRequest.java | 19 +++++++++++++++---- .../indices/MigrateToDataStreamResponse.java | 19 +++++++++++++++---- .../indices/ModifyDataStreamRequest.java | 19 +++++++++++++++---- .../indices/ModifyDataStreamResponse.java | 19 +++++++++++++++---- .../indices/NumericFielddata.java | 19 +++++++++++++++---- .../indices/NumericFielddataFormat.java | 19 +++++++++++++++---- .../elasticsearch/indices/OpenRequest.java | 19 +++++++++++++++---- .../elasticsearch/indices/OpenResponse.java | 19 +++++++++++++++---- .../indices/PromoteDataStreamRequest.java | 19 +++++++++++++++---- .../indices/PromoteDataStreamResponse.java | 19 +++++++++++++++---- .../indices/PutAliasRequest.java | 19 +++++++++++++++---- .../indices/PutAliasResponse.java | 19 +++++++++++++++---- .../indices/PutDataLifecycleRequest.java | 19 +++++++++++++++---- .../indices/PutDataLifecycleResponse.java | 19 +++++++++++++++---- .../indices/PutIndexTemplateRequest.java | 19 +++++++++++++++---- .../indices/PutIndexTemplateResponse.java | 19 +++++++++++++++---- .../indices/PutIndicesSettingsRequest.java | 19 +++++++++++++++---- .../indices/PutIndicesSettingsResponse.java | 19 +++++++++++++++---- .../indices/PutMappingRequest.java | 19 +++++++++++++++---- .../indices/PutMappingResponse.java | 19 +++++++++++++++---- .../indices/PutTemplateRequest.java | 19 +++++++++++++++---- .../indices/PutTemplateResponse.java | 19 +++++++++++++++---- .../elasticsearch/indices/Queries.java | 19 +++++++++++++++---- .../indices/RecoveryRequest.java | 19 +++++++++++++++---- .../indices/RecoveryResponse.java | 19 +++++++++++++++---- .../elasticsearch/indices/RefreshRequest.java | 19 +++++++++++++++---- .../indices/RefreshResponse.java | 19 +++++++++++++++---- .../indices/ReloadSearchAnalyzersRequest.java | 19 +++++++++++++++---- .../ReloadSearchAnalyzersResponse.java | 19 +++++++++++++++---- .../indices/ResolveIndexRequest.java | 19 +++++++++++++++---- .../indices/ResolveIndexResponse.java | 19 +++++++++++++++---- .../elasticsearch/indices/RetentionLease.java | 19 +++++++++++++++---- .../indices/RolloverRequest.java | 19 +++++++++++++++---- .../indices/RolloverResponse.java | 19 +++++++++++++++---- .../elasticsearch/indices/SearchIdle.java | 19 +++++++++++++++---- .../indices/SegmentSortMissing.java | 19 +++++++++++++++---- .../indices/SegmentSortMode.java | 19 +++++++++++++++---- .../indices/SegmentSortOrder.java | 19 +++++++++++++++---- .../indices/SegmentsRequest.java | 19 +++++++++++++++---- .../indices/SegmentsResponse.java | 19 +++++++++++++++---- .../indices/SettingsAnalyze.java | 19 +++++++++++++++---- .../indices/SettingsHighlight.java | 19 +++++++++++++++---- .../indices/SettingsQueryString.java | 19 +++++++++++++++---- .../elasticsearch/indices/SettingsSearch.java | 19 +++++++++++++++---- .../indices/SettingsSimilarity.java | 19 +++++++++++++++---- .../indices/SettingsSimilarityBm25.java | 19 +++++++++++++++---- .../indices/SettingsSimilarityDfi.java | 19 +++++++++++++++---- .../indices/SettingsSimilarityDfr.java | 19 +++++++++++++++---- .../indices/SettingsSimilarityIb.java | 19 +++++++++++++++---- .../indices/SettingsSimilarityLmd.java | 19 +++++++++++++++---- .../indices/SettingsSimilarityLmj.java | 19 +++++++++++++++---- .../SettingsSimilarityScriptedTfidf.java | 19 +++++++++++++++---- .../indices/ShardStoresRequest.java | 19 +++++++++++++++---- .../indices/ShardStoresResponse.java | 19 +++++++++++++++---- .../elasticsearch/indices/ShrinkRequest.java | 19 +++++++++++++++---- .../elasticsearch/indices/ShrinkResponse.java | 19 +++++++++++++++---- .../indices/SimulateIndexTemplateRequest.java | 19 +++++++++++++++---- .../SimulateIndexTemplateResponse.java | 19 +++++++++++++++---- .../indices/SimulateTemplateRequest.java | 19 +++++++++++++++---- .../indices/SimulateTemplateResponse.java | 19 +++++++++++++++---- .../indices/SlowlogSettings.java | 19 +++++++++++++++---- .../indices/SlowlogTresholdLevels.java | 19 +++++++++++++++---- .../indices/SlowlogTresholds.java | 19 +++++++++++++++---- .../elasticsearch/indices/SoftDeletes.java | 19 +++++++++++++++---- .../elasticsearch/indices/SplitRequest.java | 19 +++++++++++++++---- .../elasticsearch/indices/SplitResponse.java | 19 +++++++++++++++---- .../elasticsearch/indices/Storage.java | 19 +++++++++++++++---- .../elasticsearch/indices/StorageType.java | 19 +++++++++++++++---- .../indices/TemplateMapping.java | 19 +++++++++++++++---- .../elasticsearch/indices/Translog.java | 19 +++++++++++++++---- .../indices/TranslogDurability.java | 19 +++++++++++++++---- .../indices/TranslogRetention.java | 19 +++++++++++++++---- .../indices/UnfreezeRequest.java | 19 +++++++++++++++---- .../indices/UnfreezeResponse.java | 19 +++++++++++++++---- .../indices/UpdateAliasesRequest.java | 19 +++++++++++++++---- .../indices/UpdateAliasesResponse.java | 19 +++++++++++++++---- .../indices/ValidateQueryRequest.java | 19 +++++++++++++++---- .../indices/ValidateQueryResponse.java | 19 +++++++++++++++---- .../add_block/IndicesBlockOptions.java | 19 +++++++++++++++---- .../indices/add_block/IndicesBlockStatus.java | 19 +++++++++++++++---- .../indices/analyze/AnalyzeDetail.java | 19 +++++++++++++++---- .../indices/analyze/AnalyzeToken.java | 19 +++++++++++++++---- .../indices/analyze/AnalyzerDetail.java | 19 +++++++++++++++---- .../indices/analyze/CharFilterDetail.java | 19 +++++++++++++++---- .../indices/analyze/ExplainAnalyzeToken.java | 19 +++++++++++++++---- .../indices/analyze/TokenDetail.java | 19 +++++++++++++++---- .../indices/close/CloseIndexResult.java | 19 +++++++++++++++---- .../indices/close/CloseShardResult.java | 19 +++++++++++++++---- .../DataStreamsStatsItem.java | 19 +++++++++++++++---- .../DataStreamLifecycleExplain.java | 19 +++++++++++++++---- .../field_usage_stats/FieldSummary.java | 19 +++++++++++++++---- .../field_usage_stats/FieldsUsageBody.java | 19 +++++++++++++++---- .../field_usage_stats/InvertedIndex.java | 19 +++++++++++++++---- .../field_usage_stats/ShardsStats.java | 19 +++++++++++++++---- .../field_usage_stats/UsageStatsIndex.java | 19 +++++++++++++++---- .../field_usage_stats/UsageStatsShards.java | 19 +++++++++++++++---- .../forcemerge/ForceMergeResponseBody.java | 19 +++++++++++++++---- .../elasticsearch/indices/get/Feature.java | 19 +++++++++++++++---- .../indices/get_alias/IndexAliases.java | 19 +++++++++++++++---- .../DataStreamWithLifecycle.java | 19 +++++++++++++++---- .../get_field_mapping/TypeFieldMappings.java | 19 +++++++++++++++---- .../get_index_template/IndexTemplateItem.java | 19 +++++++++++++++---- .../get_mapping/IndexMappingRecord.java | 19 +++++++++++++++---- .../indices/modify_data_stream/Action.java | 19 +++++++++++++++---- .../modify_data_stream/ActionBuilders.java | 19 +++++++++++++++---- .../modify_data_stream/ActionVariant.java | 19 +++++++++++++++---- .../IndexAndDataStreamAction.java | 19 +++++++++++++++---- .../IndexTemplateMapping.java | 19 +++++++++++++++---- .../indices/recovery/FileDetails.java | 19 +++++++++++++++---- .../indices/recovery/RecoveryBytes.java | 19 +++++++++++++++---- .../indices/recovery/RecoveryFiles.java | 19 +++++++++++++++---- .../indices/recovery/RecoveryIndexStatus.java | 19 +++++++++++++++---- .../indices/recovery/RecoveryOrigin.java | 19 +++++++++++++++---- .../indices/recovery/RecoveryStartStatus.java | 19 +++++++++++++++---- .../indices/recovery/RecoveryStatus.java | 19 +++++++++++++++---- .../indices/recovery/ShardRecovery.java | 19 +++++++++++++++---- .../indices/recovery/TranslogStatus.java | 19 +++++++++++++++---- .../indices/recovery/VerifyIndex.java | 19 +++++++++++++++---- .../ReloadDetails.java | 19 +++++++++++++++---- .../reload_search_analyzers/ReloadResult.java | 19 +++++++++++++++---- .../resolve_index/ResolveIndexAliasItem.java | 19 +++++++++++++++---- .../ResolveIndexDataStreamsItem.java | 19 +++++++++++++++---- .../resolve_index/ResolveIndexItem.java | 19 +++++++++++++++---- .../indices/rollover/RolloverConditions.java | 19 +++++++++++++++---- .../indices/segments/IndexSegment.java | 19 +++++++++++++++---- .../indices/segments/Segment.java | 19 +++++++++++++++---- .../indices/segments/ShardSegmentRouting.java | 19 +++++++++++++++---- .../indices/segments/ShardsSegment.java | 19 +++++++++++++++---- .../shard_stores/IndicesShardStores.java | 19 +++++++++++++++---- .../indices/shard_stores/ShardStore.java | 19 +++++++++++++++---- .../shard_stores/ShardStoreAllocation.java | 19 +++++++++++++++---- .../shard_stores/ShardStoreException.java | 19 +++++++++++++++---- .../indices/shard_stores/ShardStoreNode.java | 19 +++++++++++++++---- .../shard_stores/ShardStoreStatus.java | 19 +++++++++++++++---- .../shard_stores/ShardStoreWrapper.java | 19 +++++++++++++++---- .../simulate_template/Overlapping.java | 19 +++++++++++++++---- .../indices/simulate_template/Template.java | 19 +++++++++++++++---- .../indices/stats/IndexMetadataState.java | 19 +++++++++++++++---- .../indices/stats/IndexStats.java | 19 +++++++++++++++---- .../indices/stats/IndicesStats.java | 19 +++++++++++++++---- .../indices/stats/MappingStats.java | 19 +++++++++++++++---- .../indices/stats/ShardCommit.java | 19 +++++++++++++++---- .../indices/stats/ShardFileSizeInfo.java | 19 +++++++++++++++---- .../indices/stats/ShardLease.java | 19 +++++++++++++++---- .../indices/stats/ShardPath.java | 19 +++++++++++++++---- .../indices/stats/ShardQueryCache.java | 19 +++++++++++++++---- .../indices/stats/ShardRetentionLeases.java | 19 +++++++++++++++---- .../indices/stats/ShardRouting.java | 19 +++++++++++++++---- .../indices/stats/ShardRoutingState.java | 19 +++++++++++++++---- .../indices/stats/ShardSequenceNumber.java | 19 +++++++++++++++---- .../indices/stats/ShardStats.java | 19 +++++++++++++++---- .../indices/stats/ShardsTotalStats.java | 19 +++++++++++++++---- .../indices/update_aliases/Action.java | 19 +++++++++++++++---- .../update_aliases/ActionBuilders.java | 19 +++++++++++++++---- .../indices/update_aliases/ActionVariant.java | 19 +++++++++++++++---- .../indices/update_aliases/AddAction.java | 19 +++++++++++++++---- .../indices/update_aliases/RemoveAction.java | 19 +++++++++++++++---- .../update_aliases/RemoveIndexAction.java | 19 +++++++++++++++---- .../IndicesValidationExplanation.java | 19 +++++++++++++++---- .../elasticsearch/ingest/AppendProcessor.java | 19 +++++++++++++++---- .../ingest/AttachmentProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/BytesProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/CircleProcessor.java | 19 +++++++++++++++---- .../ingest/ConvertProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/ConvertType.java | 19 +++++++++++++++---- .../elasticsearch/ingest/CsvProcessor.java | 19 +++++++++++++++---- .../ingest/DateIndexNameProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/DateProcessor.java | 19 +++++++++++++++---- .../ingest/DeletePipelineRequest.java | 19 +++++++++++++++---- .../ingest/DeletePipelineResponse.java | 19 +++++++++++++++---- .../ingest/DissectProcessor.java | 19 +++++++++++++++---- .../ingest/DotExpanderProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/DropProcessor.java | 19 +++++++++++++++---- .../ElasticsearchIngestAsyncClient.java | 19 +++++++++++++++---- .../ingest/ElasticsearchIngestClient.java | 19 +++++++++++++++---- .../elasticsearch/ingest/EnrichProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/FailProcessor.java | 19 +++++++++++++++---- .../ingest/ForeachProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/GeoIpProcessor.java | 19 +++++++++++++++---- .../ingest/GeoIpStatsRequest.java | 19 +++++++++++++++---- .../ingest/GeoIpStatsResponse.java | 19 +++++++++++++++---- .../ingest/GetPipelineRequest.java | 19 +++++++++++++++---- .../ingest/GetPipelineResponse.java | 19 +++++++++++++++---- .../elasticsearch/ingest/GrokProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/GsubProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/InferenceConfig.java | 19 +++++++++++++++---- .../ingest/InferenceConfigBuilders.java | 19 +++++++++++++++---- .../ingest/InferenceConfigClassification.java | 19 +++++++++++++++---- .../ingest/InferenceConfigRegression.java | 19 +++++++++++++++---- .../ingest/InferenceConfigVariant.java | 19 +++++++++++++++---- .../ingest/InferenceProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/JoinProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/JsonProcessor.java | 19 +++++++++++++++---- .../ingest/JsonProcessorConflictStrategy.java | 19 +++++++++++++++---- .../ingest/KeyValueProcessor.java | 19 +++++++++++++++---- .../ingest/LowercaseProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/Pipeline.java | 19 +++++++++++++++---- .../ingest/PipelineProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/Processor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/ProcessorBase.java | 19 +++++++++++++++---- .../ingest/ProcessorBuilders.java | 19 +++++++++++++++---- .../ingest/ProcessorGrokRequest.java | 19 +++++++++++++++---- .../ingest/ProcessorGrokResponse.java | 19 +++++++++++++++---- .../ingest/ProcessorVariant.java | 19 +++++++++++++++---- .../ingest/PutPipelineRequest.java | 19 +++++++++++++++---- .../ingest/PutPipelineResponse.java | 19 +++++++++++++++---- .../elasticsearch/ingest/RemoveProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/RenameProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/SetProcessor.java | 19 +++++++++++++++---- .../ingest/SetSecurityUserProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/ShapeType.java | 19 +++++++++++++++---- .../elasticsearch/ingest/SimulateRequest.java | 19 +++++++++++++++---- .../ingest/SimulateResponse.java | 19 +++++++++++++++---- .../elasticsearch/ingest/SortProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/SplitProcessor.java | 19 +++++++++++++++---- .../elasticsearch/ingest/TrimProcessor.java | 19 +++++++++++++++---- .../ingest/UppercaseProcessor.java | 19 +++++++++++++++---- .../ingest/UrlDecodeProcessor.java | 19 +++++++++++++++---- .../ingest/UserAgentProcessor.java | 19 +++++++++++++++---- .../ingest/UserAgentProperty.java | 19 +++++++++++++++---- .../geo_ip_stats/GeoIpDownloadStatistics.java | 19 +++++++++++++++---- .../geo_ip_stats/GeoIpNodeDatabaseName.java | 19 +++++++++++++++---- .../geo_ip_stats/GeoIpNodeDatabases.java | 19 +++++++++++++++---- .../ingest/simulate/Document.java | 19 +++++++++++++++---- .../ingest/simulate/DocumentSimulation.java | 19 +++++++++++++++---- .../elasticsearch/ingest/simulate/Ingest.java | 19 +++++++++++++++---- .../ingest/simulate/PipelineSimulation.java | 19 +++++++++++++++---- .../license/DeleteLicenseRequest.java | 19 +++++++++++++++---- .../license/DeleteLicenseResponse.java | 19 +++++++++++++++---- .../ElasticsearchLicenseAsyncClient.java | 19 +++++++++++++++---- .../license/ElasticsearchLicenseClient.java | 19 +++++++++++++++---- .../license/GetBasicStatusRequest.java | 19 +++++++++++++++---- .../license/GetBasicStatusResponse.java | 19 +++++++++++++++---- .../license/GetLicenseRequest.java | 19 +++++++++++++++---- .../license/GetLicenseResponse.java | 19 +++++++++++++++---- .../license/GetTrialStatusRequest.java | 19 +++++++++++++++---- .../license/GetTrialStatusResponse.java | 19 +++++++++++++++---- .../elasticsearch/license/License.java | 19 +++++++++++++++---- .../elasticsearch/license/LicenseStatus.java | 19 +++++++++++++++---- .../elasticsearch/license/LicenseType.java | 19 +++++++++++++++---- .../elasticsearch/license/PostRequest.java | 19 +++++++++++++++---- .../elasticsearch/license/PostResponse.java | 19 +++++++++++++++---- .../license/PostStartBasicRequest.java | 19 +++++++++++++++---- .../license/PostStartBasicResponse.java | 19 +++++++++++++++---- .../license/PostStartTrialRequest.java | 19 +++++++++++++++---- .../license/PostStartTrialResponse.java | 19 +++++++++++++++---- .../license/get/LicenseInformation.java | 19 +++++++++++++++---- .../license/post/Acknowledgement.java | 19 +++++++++++++++---- .../logstash/DeletePipelineRequest.java | 19 +++++++++++++++---- .../ElasticsearchLogstashAsyncClient.java | 19 +++++++++++++++---- .../logstash/ElasticsearchLogstashClient.java | 19 +++++++++++++++---- .../logstash/GetPipelineRequest.java | 19 +++++++++++++++---- .../logstash/GetPipelineResponse.java | 19 +++++++++++++++---- .../elasticsearch/logstash/Pipeline.java | 19 +++++++++++++++---- .../logstash/PipelineMetadata.java | 19 +++++++++++++++---- .../logstash/PipelineSettings.java | 19 +++++++++++++++---- .../logstash/PutPipelineRequest.java | 19 +++++++++++++++---- .../migration/DeprecationsRequest.java | 19 +++++++++++++++---- .../migration/DeprecationsResponse.java | 19 +++++++++++++++---- .../ElasticsearchMigrationAsyncClient.java | 19 +++++++++++++++---- .../ElasticsearchMigrationClient.java | 19 +++++++++++++++---- .../GetFeatureUpgradeStatusRequest.java | 19 +++++++++++++++---- .../GetFeatureUpgradeStatusResponse.java | 19 +++++++++++++++---- .../migration/PostFeatureUpgradeRequest.java | 19 +++++++++++++++---- .../migration/PostFeatureUpgradeResponse.java | 19 +++++++++++++++---- .../migration/deprecations/Deprecation.java | 19 +++++++++++++++---- .../deprecations/DeprecationLevel.java | 19 +++++++++++++++---- .../MigrationFeature.java | 19 +++++++++++++++---- .../MigrationFeatureIndexInfo.java | 19 +++++++++++++++---- .../MigrationStatus.java | 19 +++++++++++++++---- .../MigrationFeature.java | 19 +++++++++++++++---- .../elasticsearch/ml/AnalysisConfig.java | 19 +++++++++++++++---- .../elasticsearch/ml/AnalysisConfigRead.java | 19 +++++++++++++++---- .../elasticsearch/ml/AnalysisLimits.java | 19 +++++++++++++++---- .../elasticsearch/ml/AnalysisMemoryLimit.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Anomaly.java | 19 +++++++++++++++---- .../elasticsearch/ml/AnomalyCause.java | 19 +++++++++++++++---- .../elasticsearch/ml/AnomalyExplanation.java | 19 +++++++++++++++---- .../elasticsearch/ml/ApiKeyAuthorization.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/AppliesTo.java | 19 +++++++++++++++---- .../elasticsearch/ml/BucketInfluencer.java | 19 +++++++++++++++---- .../elasticsearch/ml/BucketSummary.java | 19 +++++++++++++++---- .../elasticsearch/ml/CalendarEvent.java | 19 +++++++++++++++---- .../ml/CategorizationAnalyzer.java | 19 +++++++++++++++---- .../ml/CategorizationAnalyzerBuilders.java | 19 +++++++++++++++---- .../ml/CategorizationAnalyzerDefinition.java | 19 +++++++++++++++---- .../ml/CategorizationStatus.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Category.java | 19 +++++++++++++++---- .../elasticsearch/ml/ChunkingConfig.java | 19 +++++++++++++++---- .../elasticsearch/ml/ChunkingMode.java | 19 +++++++++++++++---- .../ml/ClassificationInferenceOptions.java | 19 +++++++++++++++---- ...earTrainedModelDeploymentCacheRequest.java | 19 +++++++++++++++---- ...arTrainedModelDeploymentCacheResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/CloseJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/CloseJobResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/ConditionOperator.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/DataCounts.java | 19 +++++++++++++++---- .../elasticsearch/ml/DataDescription.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Datafeed.java | 19 +++++++++++++++---- .../ml/DatafeedAuthorization.java | 19 +++++++++++++++---- .../elasticsearch/ml/DatafeedConfig.java | 19 +++++++++++++++---- .../ml/DatafeedRunningState.java | 19 +++++++++++++++---- .../elasticsearch/ml/DatafeedState.java | 19 +++++++++++++++---- .../elasticsearch/ml/DatafeedStats.java | 19 +++++++++++++++---- .../elasticsearch/ml/DatafeedTimingStats.java | 19 +++++++++++++++---- .../elasticsearch/ml/DataframeAnalysis.java | 19 +++++++++++++++---- .../ml/DataframeAnalysisAnalyzedFields.java | 19 +++++++++++++++---- .../ml/DataframeAnalysisBase.java | 19 +++++++++++++++---- .../ml/DataframeAnalysisBuilders.java | 19 +++++++++++++++---- .../ml/DataframeAnalysisClassification.java | 19 +++++++++++++++---- .../ml/DataframeAnalysisFeatureProcessor.java | 19 +++++++++++++++---- ...frameAnalysisFeatureProcessorBuilders.java | 19 +++++++++++++++---- ...ysisFeatureProcessorFrequencyEncoding.java | 19 +++++++++++++++---- ...AnalysisFeatureProcessorMultiEncoding.java | 19 +++++++++++++++---- ...AnalysisFeatureProcessorNGramEncoding.java | 19 +++++++++++++++---- ...nalysisFeatureProcessorOneHotEncoding.java | 19 +++++++++++++++---- ...sisFeatureProcessorTargetMeanEncoding.java | 19 +++++++++++++++---- ...aframeAnalysisFeatureProcessorVariant.java | 19 +++++++++++++++---- .../ml/DataframeAnalysisOutlierDetection.java | 19 +++++++++++++++---- .../ml/DataframeAnalysisRegression.java | 19 +++++++++++++++---- .../ml/DataframeAnalysisVariant.java | 19 +++++++++++++++---- .../elasticsearch/ml/DataframeAnalytics.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsAuthorization.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsDestination.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsFieldSelection.java | 19 +++++++++++++++---- .../DataframeAnalyticsMemoryEstimation.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsSource.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsStats.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsStatsBuilders.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsStatsDataCounts.java | 19 +++++++++++++++---- ...ataframeAnalyticsStatsHyperparameters.java | 19 +++++++++++++++---- .../DataframeAnalyticsStatsMemoryUsage.java | 19 +++++++++++++++---- ...taframeAnalyticsStatsOutlierDetection.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsStatsProgress.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsStatsVariant.java | 19 +++++++++++++++---- .../ml/DataframeAnalyticsSummary.java | 19 +++++++++++++++---- .../elasticsearch/ml/DataframeEvaluation.java | 19 +++++++++++++++---- .../ml/DataframeEvaluationBuilders.java | 19 +++++++++++++++---- .../ml/DataframeEvaluationClassification.java | 19 +++++++++++++++---- ...aframeEvaluationClassificationMetrics.java | 19 +++++++++++++++---- ...EvaluationClassificationMetricsAucRoc.java | 19 +++++++++++++++---- .../ml/DataframeEvaluationMetrics.java | 19 +++++++++++++++---- .../DataframeEvaluationOutlierDetection.java | 19 +++++++++++++++---- ...rameEvaluationOutlierDetectionMetrics.java | 19 +++++++++++++++---- .../ml/DataframeEvaluationRegression.java | 19 +++++++++++++++---- .../DataframeEvaluationRegressionMetrics.java | 19 +++++++++++++++---- ...frameEvaluationRegressionMetricsHuber.java | 19 +++++++++++++++---- ...aframeEvaluationRegressionMetricsMsle.java | 19 +++++++++++++++---- .../ml/DataframeEvaluationVariant.java | 19 +++++++++++++++---- .../elasticsearch/ml/DataframeState.java | 19 +++++++++++++++---- .../ml/DelayedDataCheckConfig.java | 19 +++++++++++++++---- .../ml/DeleteCalendarEventRequest.java | 19 +++++++++++++++---- .../ml/DeleteCalendarEventResponse.java | 19 +++++++++++++++---- .../ml/DeleteCalendarJobRequest.java | 19 +++++++++++++++---- .../ml/DeleteCalendarJobResponse.java | 19 +++++++++++++++---- .../ml/DeleteCalendarRequest.java | 19 +++++++++++++++---- .../ml/DeleteCalendarResponse.java | 19 +++++++++++++++---- .../ml/DeleteDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../ml/DeleteDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../ml/DeleteDatafeedRequest.java | 19 +++++++++++++++---- .../ml/DeleteDatafeedResponse.java | 19 +++++++++++++++---- .../ml/DeleteExpiredDataRequest.java | 19 +++++++++++++++---- .../ml/DeleteExpiredDataResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/DeleteFilterRequest.java | 19 +++++++++++++++---- .../ml/DeleteFilterResponse.java | 19 +++++++++++++++---- .../ml/DeleteForecastRequest.java | 19 +++++++++++++++---- .../ml/DeleteForecastResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/DeleteJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/DeleteJobResponse.java | 19 +++++++++++++++---- .../ml/DeleteModelSnapshotRequest.java | 19 +++++++++++++++---- .../ml/DeleteModelSnapshotResponse.java | 19 +++++++++++++++---- .../ml/DeleteTrainedModelAliasRequest.java | 19 +++++++++++++++---- .../ml/DeleteTrainedModelAliasResponse.java | 19 +++++++++++++++---- .../ml/DeleteTrainedModelRequest.java | 19 +++++++++++++++---- .../ml/DeleteTrainedModelResponse.java | 19 +++++++++++++++---- .../ml/DeploymentAllocationState.java | 19 +++++++++++++++---- .../ml/DeploymentAssignmentState.java | 19 +++++++++++++++---- .../elasticsearch/ml/DeploymentState.java | 19 +++++++++++++++---- .../elasticsearch/ml/DetectionRule.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Detector.java | 19 +++++++++++++++---- .../elasticsearch/ml/DetectorRead.java | 19 +++++++++++++++---- .../elasticsearch/ml/DiscoveryNode.java | 19 +++++++++++++++---- .../ml/ElasticsearchMlAsyncClient.java | 19 +++++++++++++++---- .../ml/ElasticsearchMlClient.java | 19 +++++++++++++++---- .../ml/EstimateModelMemoryRequest.java | 19 +++++++++++++++---- .../ml/EstimateModelMemoryResponse.java | 19 +++++++++++++++---- .../ml/EvaluateDataFrameRequest.java | 19 +++++++++++++++---- .../ml/EvaluateDataFrameResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/ExcludeFrequent.java | 19 +++++++++++++++---- .../ml/ExplainDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../ml/ExplainDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../ml/FillMaskInferenceOptions.java | 19 +++++++++++++++---- .../ml/FillMaskInferenceUpdateOptions.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Filter.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/FilterRef.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/FilterType.java | 19 +++++++++++++++---- .../elasticsearch/ml/FlushJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/FlushJobResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/ForecastRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/ForecastResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/GeoResults.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetBucketsRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetBucketsResponse.java | 19 +++++++++++++++---- .../ml/GetCalendarEventsRequest.java | 19 +++++++++++++++---- .../ml/GetCalendarEventsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetCalendarsRequest.java | 19 +++++++++++++++---- .../ml/GetCalendarsResponse.java | 19 +++++++++++++++---- .../ml/GetCategoriesRequest.java | 19 +++++++++++++++---- .../ml/GetCategoriesResponse.java | 19 +++++++++++++++---- .../ml/GetDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../ml/GetDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../ml/GetDataFrameAnalyticsStatsRequest.java | 19 +++++++++++++++---- .../GetDataFrameAnalyticsStatsResponse.java | 19 +++++++++++++++---- .../ml/GetDatafeedStatsRequest.java | 19 +++++++++++++++---- .../ml/GetDatafeedStatsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetDatafeedsRequest.java | 19 +++++++++++++++---- .../ml/GetDatafeedsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetFiltersRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetFiltersResponse.java | 19 +++++++++++++++---- .../ml/GetInfluencersRequest.java | 19 +++++++++++++++---- .../ml/GetInfluencersResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetJobStatsRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetJobStatsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetJobsRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetJobsResponse.java | 19 +++++++++++++++---- .../ml/GetMemoryStatsRequest.java | 19 +++++++++++++++---- .../ml/GetMemoryStatsResponse.java | 19 +++++++++++++++---- .../GetModelSnapshotUpgradeStatsRequest.java | 19 +++++++++++++++---- .../GetModelSnapshotUpgradeStatsResponse.java | 19 +++++++++++++++---- .../ml/GetModelSnapshotsRequest.java | 19 +++++++++++++++---- .../ml/GetModelSnapshotsResponse.java | 19 +++++++++++++++---- .../ml/GetOverallBucketsRequest.java | 19 +++++++++++++++---- .../ml/GetOverallBucketsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetRecordsRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/GetRecordsResponse.java | 19 +++++++++++++++---- .../ml/GetTrainedModelsRequest.java | 19 +++++++++++++++---- .../ml/GetTrainedModelsResponse.java | 19 +++++++++++++++---- .../ml/GetTrainedModelsStatsRequest.java | 19 +++++++++++++++---- .../ml/GetTrainedModelsStatsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/Hyperparameter.java | 19 +++++++++++++++---- .../elasticsearch/ml/Hyperparameters.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Include.java | 19 +++++++++++++++---- .../ml/InferTrainedModelRequest.java | 19 +++++++++++++++---- .../ml/InferTrainedModelResponse.java | 19 +++++++++++++++---- .../ml/InferenceConfigCreate.java | 19 +++++++++++++++---- .../ml/InferenceConfigCreateBuilders.java | 19 +++++++++++++++---- .../ml/InferenceConfigCreateVariant.java | 19 +++++++++++++++---- .../ml/InferenceConfigUpdate.java | 19 +++++++++++++++---- .../ml/InferenceConfigUpdateBuilders.java | 19 +++++++++++++++---- .../ml/InferenceConfigUpdateVariant.java | 19 +++++++++++++++---- .../ml/InferenceResponseResult.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Influence.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Influencer.java | 19 +++++++++++++++---- .../elastic/clients/elasticsearch/ml/Job.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/JobBlocked.java | 19 +++++++++++++++---- .../elasticsearch/ml/JobBlockedReason.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/JobConfig.java | 19 +++++++++++++++---- .../ml/JobForecastStatistics.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/JobState.java | 19 +++++++++++++++---- .../elasticsearch/ml/JobStatistics.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/JobStats.java | 19 +++++++++++++++---- .../elasticsearch/ml/JobTimingStats.java | 19 +++++++++++++++---- .../elasticsearch/ml/MemoryStatus.java | 19 +++++++++++++++---- .../elasticsearch/ml/MlInfoRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/MlInfoResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/ModelPlotConfig.java | 19 +++++++++++++++---- .../elasticsearch/ml/ModelSizeStats.java | 19 +++++++++++++++---- .../elasticsearch/ml/ModelSnapshot.java | 19 +++++++++++++++---- .../ml/ModelSnapshotUpgrade.java | 19 +++++++++++++++---- .../elasticsearch/ml/NerInferenceOptions.java | 19 +++++++++++++++---- .../ml/NerInferenceUpdateOptions.java | 19 +++++++++++++++---- .../ml/NlpBertTokenizationConfig.java | 19 +++++++++++++++---- .../ml/NlpRobertaTokenizationConfig.java | 19 +++++++++++++++---- .../ml/NlpTokenizationUpdateOptions.java | 19 +++++++++++++++---- .../elasticsearch/ml/OpenJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/OpenJobResponse.java | 19 +++++++++++++++---- .../ml/OutlierDetectionParameters.java | 19 +++++++++++++++---- .../elasticsearch/ml/OverallBucket.java | 19 +++++++++++++++---- .../elasticsearch/ml/OverallBucketJob.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Page.java | 19 +++++++++++++++---- .../ml/PassThroughInferenceOptions.java | 19 +++++++++++++++---- .../ml/PassThroughInferenceUpdateOptions.java | 19 +++++++++++++++---- .../ml/PerPartitionCategorization.java | 19 +++++++++++++++---- .../ml/PostCalendarEventsRequest.java | 19 +++++++++++++++---- .../ml/PostCalendarEventsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/PostDataRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/PostDataResponse.java | 19 +++++++++++++++---- .../ml/PreviewDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../ml/PreviewDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../ml/PreviewDatafeedRequest.java | 19 +++++++++++++++---- .../ml/PreviewDatafeedResponse.java | 19 +++++++++++++++---- .../ml/PutCalendarJobRequest.java | 19 +++++++++++++++---- .../ml/PutCalendarJobResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/PutCalendarRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/PutCalendarResponse.java | 19 +++++++++++++++---- .../ml/PutDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../ml/PutDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/PutDatafeedRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/PutDatafeedResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/PutFilterRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/PutFilterResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/PutJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/PutJobResponse.java | 19 +++++++++++++++---- .../ml/PutTrainedModelAliasRequest.java | 19 +++++++++++++++---- .../ml/PutTrainedModelAliasResponse.java | 19 +++++++++++++++---- .../PutTrainedModelDefinitionPartRequest.java | 19 +++++++++++++++---- ...PutTrainedModelDefinitionPartResponse.java | 19 +++++++++++++++---- .../ml/PutTrainedModelRequest.java | 19 +++++++++++++++---- .../ml/PutTrainedModelResponse.java | 19 +++++++++++++++---- .../ml/PutTrainedModelVocabularyRequest.java | 19 +++++++++++++++---- .../ml/PutTrainedModelVocabularyResponse.java | 19 +++++++++++++++---- .../ml/QuestionAnsweringInferenceOptions.java | 19 +++++++++++++++---- ...estionAnsweringInferenceUpdateOptions.java | 19 +++++++++++++++---- .../ml/RegressionInferenceOptions.java | 19 +++++++++++++++---- .../elasticsearch/ml/ResetJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/ResetJobResponse.java | 19 +++++++++++++++---- .../ml/RevertModelSnapshotRequest.java | 19 +++++++++++++++---- .../ml/RevertModelSnapshotResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/RoutingState.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/RuleAction.java | 19 +++++++++++++++---- .../elasticsearch/ml/RuleCondition.java | 19 +++++++++++++++---- .../ml/RunningStateSearchInterval.java | 19 +++++++++++++++---- .../ml/SetUpgradeModeRequest.java | 19 +++++++++++++++---- .../ml/SetUpgradeModeResponse.java | 19 +++++++++++++++---- .../ml/SnapshotUpgradeState.java | 19 +++++++++++++++---- .../ml/StartDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../ml/StartDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../ml/StartDatafeedRequest.java | 19 +++++++++++++++---- .../ml/StartDatafeedResponse.java | 19 +++++++++++++++---- .../StartTrainedModelDeploymentRequest.java | 19 +++++++++++++++---- .../StartTrainedModelDeploymentResponse.java | 19 +++++++++++++++---- .../ml/StopDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../ml/StopDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/StopDatafeedRequest.java | 19 +++++++++++++++---- .../ml/StopDatafeedResponse.java | 19 +++++++++++++++---- .../ml/StopTrainedModelDeploymentRequest.java | 19 +++++++++++++++---- .../StopTrainedModelDeploymentResponse.java | 19 +++++++++++++++---- .../TextClassificationInferenceOptions.java | 19 +++++++++++++++---- ...tClassificationInferenceUpdateOptions.java | 19 +++++++++++++++---- .../ml/TextEmbeddingInferenceOptions.java | 19 +++++++++++++++---- .../TextEmbeddingInferenceUpdateOptions.java | 19 +++++++++++++++---- .../ml/TextExpansionInferenceOptions.java | 19 +++++++++++++++---- .../TextExpansionInferenceUpdateOptions.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/TimingStats.java | 19 +++++++++++++++---- .../elasticsearch/ml/TokenizationConfig.java | 19 +++++++++++++++---- .../ml/TokenizationConfigBuilders.java | 19 +++++++++++++++---- .../ml/TokenizationConfigVariant.java | 19 +++++++++++++++---- .../ml/TokenizationTruncate.java | 19 +++++++++++++++---- .../elasticsearch/ml/TopClassEntry.java | 19 +++++++++++++++---- .../ml/TotalFeatureImportance.java | 19 +++++++++++++++---- .../ml/TotalFeatureImportanceClass.java | 19 +++++++++++++++---- .../ml/TotalFeatureImportanceStatistics.java | 19 +++++++++++++++---- .../ml/TrainedModelAssignment.java | 19 +++++++++++++++---- .../TrainedModelAssignmentRoutingTable.java | 19 +++++++++++++++---- .../TrainedModelAssignmentTaskParameters.java | 19 +++++++++++++++---- .../elasticsearch/ml/TrainedModelConfig.java | 19 +++++++++++++++---- .../ml/TrainedModelConfigInput.java | 19 +++++++++++++++---- .../ml/TrainedModelConfigMetadata.java | 19 +++++++++++++++---- ...rainedModelDeploymentAllocationStatus.java | 19 +++++++++++++++---- .../ml/TrainedModelDeploymentNodesStats.java | 19 +++++++++++++++---- .../ml/TrainedModelDeploymentStats.java | 19 +++++++++++++++---- .../ml/TrainedModelEntities.java | 19 +++++++++++++++---- .../TrainedModelInferenceClassImportance.java | 19 +++++++++++++++---- ...rainedModelInferenceFeatureImportance.java | 19 +++++++++++++++---- .../ml/TrainedModelInferenceStats.java | 19 +++++++++++++++---- .../ml/TrainedModelLocation.java | 19 +++++++++++++++---- .../ml/TrainedModelLocationIndex.java | 19 +++++++++++++++---- .../ml/TrainedModelSizeStats.java | 19 +++++++++++++++---- .../elasticsearch/ml/TrainedModelStats.java | 19 +++++++++++++++---- .../elasticsearch/ml/TrainedModelType.java | 19 +++++++++++++++---- .../elasticsearch/ml/TrainingPriority.java | 19 +++++++++++++++---- .../ml/TransformAuthorization.java | 19 +++++++++++++++---- .../ml/UpdateDataFrameAnalyticsRequest.java | 19 +++++++++++++++---- .../ml/UpdateDataFrameAnalyticsResponse.java | 19 +++++++++++++++---- .../ml/UpdateDatafeedRequest.java | 19 +++++++++++++++---- .../ml/UpdateDatafeedResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/UpdateFilterRequest.java | 19 +++++++++++++++---- .../ml/UpdateFilterResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/UpdateJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/UpdateJobResponse.java | 19 +++++++++++++++---- .../ml/UpdateModelSnapshotRequest.java | 19 +++++++++++++++---- .../ml/UpdateModelSnapshotResponse.java | 19 +++++++++++++++---- .../ml/UpgradeJobSnapshotRequest.java | 19 +++++++++++++++---- .../ml/UpgradeJobSnapshotResponse.java | 19 +++++++++++++++---- .../ml/ValidateDetectorRequest.java | 19 +++++++++++++++---- .../ml/ValidateDetectorResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/ValidateRequest.java | 19 +++++++++++++++---- .../elasticsearch/ml/ValidateResponse.java | 19 +++++++++++++++---- .../elasticsearch/ml/ValidationLoss.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/Vocabulary.java | 19 +++++++++++++++---- ...eroShotClassificationInferenceOptions.java | 19 +++++++++++++++---- ...tClassificationInferenceUpdateOptions.java | 19 +++++++++++++++---- .../ConfusionMatrixItem.java | 19 +++++++++++++++---- .../ConfusionMatrixPrediction.java | 19 +++++++++++++++---- .../ConfusionMatrixThreshold.java | 19 +++++++++++++++---- .../DataframeClassificationSummary.java | 19 +++++++++++++++---- ...ataframeClassificationSummaryAccuracy.java | 19 +++++++++++++++---- ...ationSummaryMulticlassConfusionMatrix.java | 19 +++++++++++++++---- ...taframeClassificationSummaryPrecision.java | 19 +++++++++++++++---- .../DataframeClassificationSummaryRecall.java | 19 +++++++++++++++---- .../DataframeEvaluationClass.java | 19 +++++++++++++++---- .../DataframeEvaluationSummaryAucRoc.java | 19 +++++++++++++++---- ...frameEvaluationSummaryAucRocCurveItem.java | 19 +++++++++++++++---- .../DataframeEvaluationValue.java | 19 +++++++++++++++---- .../DataframeOutlierDetectionSummary.java | 19 +++++++++++++++---- .../DataframeRegressionSummary.java | 19 +++++++++++++++---- .../ml/get_calendars/Calendar.java | 19 +++++++++++++++---- .../ml/get_memory_stats/JvmStats.java | 19 +++++++++++++++---- .../ml/get_memory_stats/MemMlStats.java | 19 +++++++++++++++---- .../ml/get_memory_stats/MemStats.java | 19 +++++++++++++++---- .../ml/get_memory_stats/Memory.java | 19 +++++++++++++++---- .../ml/info/AnomalyDetectors.java | 19 +++++++++++++++---- .../elasticsearch/ml/info/Datafeeds.java | 19 +++++++++++++++---- .../elasticsearch/ml/info/Defaults.java | 19 +++++++++++++++---- .../clients/elasticsearch/ml/info/Limits.java | 19 +++++++++++++++---- .../elasticsearch/ml/info/NativeCode.java | 19 +++++++++++++++---- .../DataframePreviewConfig.java | 19 +++++++++++++++---- .../ml/put_trained_model/AggregateOutput.java | 19 +++++++++++++++---- .../ml/put_trained_model/Definition.java | 19 +++++++++++++++---- .../ml/put_trained_model/Ensemble.java | 19 +++++++++++++++---- .../FrequencyEncodingPreprocessor.java | 19 +++++++++++++++---- .../ml/put_trained_model/Input.java | 19 +++++++++++++++---- .../OneHotEncodingPreprocessor.java | 19 +++++++++++++++---- .../ml/put_trained_model/Preprocessor.java | 19 +++++++++++++++---- .../PreprocessorBuilders.java | 19 +++++++++++++++---- .../PreprocessorVariant.java | 19 +++++++++++++++---- .../TargetMeanEncodingPreprocessor.java | 19 +++++++++++++++---- .../ml/put_trained_model/TrainedModel.java | 19 +++++++++++++++---- .../put_trained_model/TrainedModelTree.java | 19 +++++++++++++++---- .../TrainedModelTreeNode.java | 19 +++++++++++++++---- .../ml/put_trained_model/Weights.java | 19 +++++++++++++++---- .../elasticsearch/monitoring/BulkRequest.java | 19 +++++++++++++++---- .../monitoring/BulkResponse.java | 19 +++++++++++++++---- .../ElasticsearchMonitoringAsyncClient.java | 19 +++++++++++++++---- .../ElasticsearchMonitoringClient.java | 19 +++++++++++++++---- .../nodes/AdaptiveSelection.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Breaker.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Cgroup.java | 19 +++++++++++++++---- .../elasticsearch/nodes/CgroupCpu.java | 19 +++++++++++++++---- .../elasticsearch/nodes/CgroupCpuStat.java | 19 +++++++++++++++---- .../elasticsearch/nodes/CgroupMemory.java | 19 +++++++++++++++---- ...earRepositoriesMeteringArchiveRequest.java | 19 +++++++++++++++---- ...arRepositoriesMeteringArchiveResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Client.java | 19 +++++++++++++++---- .../nodes/ClusterAppliedStats.java | 19 +++++++++++++++---- .../nodes/ClusterStateQueue.java | 19 +++++++++++++++---- .../nodes/ClusterStateUpdate.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Context.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Cpu.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/CpuAcct.java | 19 +++++++++++++++---- .../elasticsearch/nodes/DataPathStats.java | 19 +++++++++++++++---- .../elasticsearch/nodes/Discovery.java | 19 +++++++++++++++---- .../nodes/ElasticsearchNodesAsyncClient.java | 19 +++++++++++++++---- .../nodes/ElasticsearchNodesClient.java | 19 +++++++++++++++---- .../nodes/ExtendedMemoryStats.java | 19 +++++++++++++++---- .../elasticsearch/nodes/FileSystem.java | 19 +++++++++++++++---- .../elasticsearch/nodes/FileSystemTotal.java | 19 +++++++++++++++---- .../elasticsearch/nodes/GarbageCollector.java | 19 +++++++++++++++---- .../nodes/GarbageCollectorTotal.java | 19 +++++++++++++++---- .../GetRepositoriesMeteringInfoRequest.java | 19 +++++++++++++++---- .../GetRepositoriesMeteringInfoResponse.java | 19 +++++++++++++++---- .../nodes/HotThreadsRequest.java | 19 +++++++++++++++---- .../nodes/HotThreadsResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Http.java | 19 +++++++++++++++---- .../elasticsearch/nodes/IndexingPressure.java | 19 +++++++++++++++---- .../nodes/IndexingPressureMemory.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Ingest.java | 19 +++++++++++++++---- .../elasticsearch/nodes/IngestTotal.java | 19 +++++++++++++++---- .../elasticsearch/nodes/IoStatDevice.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/IoStats.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Jvm.java | 19 +++++++++++++++---- .../elasticsearch/nodes/JvmClasses.java | 19 +++++++++++++++---- .../elasticsearch/nodes/JvmMemoryStats.java | 19 +++++++++++++++---- .../elasticsearch/nodes/JvmThreads.java | 19 +++++++++++++++---- .../elasticsearch/nodes/KeyedProcessor.java | 19 +++++++++++++++---- .../elasticsearch/nodes/MemoryStats.java | 19 +++++++++++++++---- .../elasticsearch/nodes/NodeBufferPool.java | 19 +++++++++++++++---- .../elasticsearch/nodes/NodeReloadError.java | 19 +++++++++++++++---- .../elasticsearch/nodes/NodeReloadResult.java | 19 +++++++++++++++---- .../nodes/NodeReloadResultBuilders.java | 19 +++++++++++++++---- .../elasticsearch/nodes/NodesInfoRequest.java | 19 +++++++++++++++---- .../nodes/NodesInfoResponse.java | 19 +++++++++++++++---- .../nodes/NodesResponseBase.java | 19 +++++++++++++++---- .../nodes/NodesStatsRequest.java | 19 +++++++++++++++---- .../nodes/NodesStatsResponse.java | 19 +++++++++++++++---- .../nodes/NodesUsageRequest.java | 19 +++++++++++++++---- .../nodes/NodesUsageResponse.java | 19 +++++++++++++++---- .../elasticsearch/nodes/OperatingSystem.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Pool.java | 19 +++++++++++++++---- .../elasticsearch/nodes/PressureMemory.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Process.java | 19 +++++++++++++++---- .../elasticsearch/nodes/Processor.java | 19 +++++++++++++++---- .../nodes/PublishedClusterStates.java | 19 +++++++++++++++---- .../elasticsearch/nodes/Recording.java | 19 +++++++++++++++---- .../nodes/ReloadSecureSettingsRequest.java | 19 +++++++++++++++---- .../nodes/ReloadSecureSettingsResponse.java | 19 +++++++++++++++---- .../nodes/RepositoryLocation.java | 19 +++++++++++++++---- .../nodes/RepositoryMeteringInformation.java | 19 +++++++++++++++---- .../elasticsearch/nodes/RequestCounts.java | 19 +++++++++++++++---- .../elasticsearch/nodes/ScriptCache.java | 19 +++++++++++++++---- .../elasticsearch/nodes/Scripting.java | 19 +++++++++++++++---- .../nodes/SerializedClusterState.java | 19 +++++++++++++++---- .../nodes/SerializedClusterStateDetail.java | 19 +++++++++++++++---- .../clients/elasticsearch/nodes/Stats.java | 19 +++++++++++++++---- .../elasticsearch/nodes/ThreadCount.java | 19 +++++++++++++++---- .../elasticsearch/nodes/Transport.java | 19 +++++++++++++++---- .../nodes/TransportHistogram.java | 19 +++++++++++++++---- .../ResponseBase.java | 19 +++++++++++++++---- .../ResponseBase.java | 19 +++++++++++++++---- .../nodes/hot_threads/HotThread.java | 19 +++++++++++++++---- .../nodes/info/DeprecationIndexing.java | 19 +++++++++++++++---- .../elasticsearch/nodes/info/NodeInfo.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoAction.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoAggregation.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoBootstrap.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoClient.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoDiscover.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoHttp.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoIngest.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoIngestDownloader.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoIngestInfo.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoIngestProcessor.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoJvmMemory.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoMemory.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoNetwork.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoNetworkInterface.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoOSCPU.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoPath.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoRepositories.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoRepositoriesUrl.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoScript.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSearch.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSearchRemote.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSettings.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSettingsCluster.java | 19 +++++++++++++++---- .../info/NodeInfoSettingsClusterElection.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSettingsHttp.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSettingsHttpType.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSettingsIngest.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSettingsNetwork.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSettingsNode.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoSettingsTransport.java | 19 +++++++++++++++---- .../NodeInfoSettingsTransportFeatures.java | 19 +++++++++++++++---- .../info/NodeInfoSettingsTransportType.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoTransport.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoXpack.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoXpackLicense.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoXpackLicenseType.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoXpackSecurity.java | 19 +++++++++++++++---- .../info/NodeInfoXpackSecurityAuthc.java | 19 +++++++++++++++---- .../NodeInfoXpackSecurityAuthcRealms.java | 19 +++++++++++++++---- ...odeInfoXpackSecurityAuthcRealmsStatus.java | 19 +++++++++++++++---- .../info/NodeInfoXpackSecurityAuthcToken.java | 19 +++++++++++++++---- .../nodes/info/NodeInfoXpackSecuritySsl.java | 19 +++++++++++++++---- .../elasticsearch/nodes/info/NodeJvmInfo.java | 19 +++++++++++++++---- .../nodes/info/NodeOperatingSystemInfo.java | 19 +++++++++++++++---- .../nodes/info/NodeProcessInfo.java | 19 +++++++++++++++---- .../nodes/info/NodeThreadPoolInfo.java | 19 +++++++++++++++---- .../nodes/info/ResponseBase.java | 19 +++++++++++++++---- .../reload_secure_settings/ResponseBase.java | 19 +++++++++++++++---- .../nodes/stats/ResponseBase.java | 19 +++++++++++++++---- .../elasticsearch/nodes/usage/NodeUsage.java | 19 +++++++++++++++---- .../nodes/usage/ResponseBase.java | 19 +++++++++++++++---- .../DeleteQueryRulesetRequest.java | 19 +++++++++++++++---- .../DeleteQueryRulesetResponse.java | 19 +++++++++++++++---- .../ElasticsearchQueryRulesetAsyncClient.java | 19 +++++++++++++++---- .../ElasticsearchQueryRulesetClient.java | 19 +++++++++++++++---- .../query_ruleset/GetQueryRulesetRequest.java | 19 +++++++++++++++---- .../GetQueryRulesetResponse.java | 19 +++++++++++++++---- .../query_ruleset/ListRequest.java | 19 +++++++++++++++---- .../query_ruleset/ListResponse.java | 19 +++++++++++++++---- .../query_ruleset/PutRequest.java | 19 +++++++++++++++---- .../query_ruleset/PutResponse.java | 19 +++++++++++++++---- .../query_ruleset/QueryRule.java | 19 +++++++++++++++---- .../query_ruleset/QueryRuleActions.java | 19 +++++++++++++++---- .../query_ruleset/QueryRuleCriteria.java | 19 +++++++++++++++---- .../query_ruleset/QueryRuleCriteriaType.java | 19 +++++++++++++++---- .../query_ruleset/QueryRuleType.java | 19 +++++++++++++++---- .../query_ruleset/QueryRuleset.java | 19 +++++++++++++++---- .../list/QueryRulesetListItem.java | 19 +++++++++++++++---- .../rollup/DateHistogramGrouping.java | 19 +++++++++++++++---- .../rollup/DeleteJobRequest.java | 19 +++++++++++++++---- .../rollup/DeleteJobResponse.java | 19 +++++++++++++++---- .../ElasticsearchRollupAsyncClient.java | 19 +++++++++++++++---- .../rollup/ElasticsearchRollupClient.java | 19 +++++++++++++++---- .../elasticsearch/rollup/FieldMetric.java | 19 +++++++++++++++---- .../elasticsearch/rollup/GetJobsRequest.java | 19 +++++++++++++++---- .../elasticsearch/rollup/GetJobsResponse.java | 19 +++++++++++++++---- .../rollup/GetRollupCapsRequest.java | 19 +++++++++++++++---- .../rollup/GetRollupCapsResponse.java | 19 +++++++++++++++---- .../rollup/GetRollupIndexCapsRequest.java | 19 +++++++++++++++---- .../rollup/GetRollupIndexCapsResponse.java | 19 +++++++++++++++---- .../elasticsearch/rollup/Groupings.java | 19 +++++++++++++++---- .../rollup/HistogramGrouping.java | 19 +++++++++++++++---- .../clients/elasticsearch/rollup/Metric.java | 19 +++++++++++++++---- .../elasticsearch/rollup/PutJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/rollup/PutJobResponse.java | 19 +++++++++++++++---- .../rollup/RollupSearchRequest.java | 19 +++++++++++++++---- .../rollup/RollupSearchResponse.java | 19 +++++++++++++++---- .../elasticsearch/rollup/StartJobRequest.java | 19 +++++++++++++++---- .../rollup/StartJobResponse.java | 19 +++++++++++++++---- .../elasticsearch/rollup/StopJobRequest.java | 19 +++++++++++++++---- .../elasticsearch/rollup/StopJobResponse.java | 19 +++++++++++++++---- .../elasticsearch/rollup/TermsGrouping.java | 19 +++++++++++++++---- .../rollup/get_jobs/IndexingJobState.java | 19 +++++++++++++++---- .../rollup/get_jobs/RollupJob.java | 19 +++++++++++++++---- .../get_jobs/RollupJobConfiguration.java | 19 +++++++++++++++---- .../rollup/get_jobs/RollupJobStats.java | 19 +++++++++++++++---- .../rollup/get_jobs/RollupJobStatus.java | 19 +++++++++++++++---- .../get_rollup_caps/RollupCapabilities.java | 19 +++++++++++++++---- .../RollupCapabilitySummary.java | 19 +++++++++++++++---- .../get_rollup_caps/RollupFieldSummary.java | 19 +++++++++++++++---- .../IndexCapabilities.java | 19 +++++++++++++++---- .../RollupJobSummary.java | 19 +++++++++++++++---- .../RollupJobSummaryField.java | 19 +++++++++++++++---- .../AnalyticsCollection.java | 19 +++++++++++++++---- .../DeleteBehavioralAnalyticsRequest.java | 19 +++++++++++++++---- .../DeleteBehavioralAnalyticsResponse.java | 19 +++++++++++++++---- .../DeleteSearchApplicationRequest.java | 19 +++++++++++++++---- .../DeleteSearchApplicationResponse.java | 19 +++++++++++++++---- ...ticsearchSearchApplicationAsyncClient.java | 19 +++++++++++++++---- .../ElasticsearchSearchApplicationClient.java | 19 +++++++++++++++---- .../search_application/EventDataStream.java | 19 +++++++++++++++---- .../GetBehavioralAnalyticsRequest.java | 19 +++++++++++++++---- .../GetBehavioralAnalyticsResponse.java | 19 +++++++++++++++---- .../GetSearchApplicationRequest.java | 19 +++++++++++++++---- .../GetSearchApplicationResponse.java | 19 +++++++++++++++---- .../search_application/ListRequest.java | 19 +++++++++++++++---- .../search_application/ListResponse.java | 19 +++++++++++++++---- .../PutBehavioralAnalyticsRequest.java | 19 +++++++++++++++---- .../PutBehavioralAnalyticsResponse.java | 19 +++++++++++++++---- .../search_application/PutRequest.java | 19 +++++++++++++++---- .../search_application/PutResponse.java | 19 +++++++++++++++---- .../search_application/SearchApplication.java | 19 +++++++++++++++---- .../SearchApplicationSearchRequest.java | 19 +++++++++++++++---- .../SearchApplicationSearchResponse.java | 19 +++++++++++++++---- .../SearchApplicationTemplate.java | 19 +++++++++++++++---- .../list/SearchApplicationListItem.java | 19 +++++++++++++++---- .../AnalyticsAcknowledgeResponseBase.java | 19 +++++++++++++++---- .../CacheStatsRequest.java | 19 +++++++++++++++---- .../CacheStatsResponse.java | 19 +++++++++++++++---- .../ClearCacheRequest.java | 19 +++++++++++++++---- .../ClearCacheResponse.java | 19 +++++++++++++++---- ...csearchSearchableSnapshotsAsyncClient.java | 19 +++++++++++++++---- ...lasticsearchSearchableSnapshotsClient.java | 19 +++++++++++++++---- .../searchable_snapshots/MountRequest.java | 19 +++++++++++++++---- .../searchable_snapshots/MountResponse.java | 19 +++++++++++++++---- .../SearchableSnapshotsStatsRequest.java | 19 +++++++++++++++---- .../SearchableSnapshotsStatsResponse.java | 19 +++++++++++++++---- .../searchable_snapshots/StatsLevel.java | 19 +++++++++++++++---- .../cache_stats/Node.java | 19 +++++++++++++++---- .../cache_stats/Shared.java | 19 +++++++++++++++---- .../mount/MountedSnapshot.java | 19 +++++++++++++++---- .../security/ActivateUserProfileRequest.java | 19 +++++++++++++++---- .../security/ActivateUserProfileResponse.java | 19 +++++++++++++++---- .../elasticsearch/security/ApiKey.java | 19 +++++++++++++++---- .../ApplicationGlobalUserPrivileges.java | 19 +++++++++++++++---- .../security/ApplicationPrivileges.java | 19 +++++++++++++++---- .../security/AuthenticateRequest.java | 19 +++++++++++++++---- .../security/AuthenticateResponse.java | 19 +++++++++++++++---- .../security/ChangePasswordRequest.java | 19 +++++++++++++++---- .../security/ChangePasswordResponse.java | 19 +++++++++++++++---- .../security/ClearApiKeyCacheRequest.java | 19 +++++++++++++++---- .../security/ClearApiKeyCacheResponse.java | 19 +++++++++++++++---- .../ClearCachedPrivilegesRequest.java | 19 +++++++++++++++---- .../ClearCachedPrivilegesResponse.java | 19 +++++++++++++++---- .../security/ClearCachedRealmsRequest.java | 19 +++++++++++++++---- .../security/ClearCachedRealmsResponse.java | 19 +++++++++++++++---- .../security/ClearCachedRolesRequest.java | 19 +++++++++++++++---- .../security/ClearCachedRolesResponse.java | 19 +++++++++++++++---- .../ClearCachedServiceTokensRequest.java | 19 +++++++++++++++---- .../ClearCachedServiceTokensResponse.java | 19 +++++++++++++++---- .../elasticsearch/security/ClusterNode.java | 19 +++++++++++++++---- .../security/ClusterPrivilege.java | 19 +++++++++++++++---- .../security/CreateApiKeyRequest.java | 19 +++++++++++++++---- .../security/CreateApiKeyResponse.java | 19 +++++++++++++++---- .../security/CreateServiceTokenRequest.java | 19 +++++++++++++++---- .../security/CreateServiceTokenResponse.java | 19 +++++++++++++++---- .../elasticsearch/security/CreatedStatus.java | 19 +++++++++++++++---- .../security/DeletePrivilegesRequest.java | 19 +++++++++++++++---- .../security/DeletePrivilegesResponse.java | 19 +++++++++++++++---- .../security/DeleteRoleMappingRequest.java | 19 +++++++++++++++---- .../security/DeleteRoleMappingResponse.java | 19 +++++++++++++++---- .../security/DeleteRoleRequest.java | 19 +++++++++++++++---- .../security/DeleteRoleResponse.java | 19 +++++++++++++++---- .../security/DeleteServiceTokenRequest.java | 19 +++++++++++++++---- .../security/DeleteServiceTokenResponse.java | 19 +++++++++++++++---- .../security/DeleteUserRequest.java | 19 +++++++++++++++---- .../security/DeleteUserResponse.java | 19 +++++++++++++++---- .../security/DisableUserProfileRequest.java | 19 +++++++++++++++---- .../security/DisableUserProfileResponse.java | 19 +++++++++++++++---- .../security/DisableUserRequest.java | 19 +++++++++++++++---- .../security/DisableUserResponse.java | 19 +++++++++++++++---- .../ElasticsearchSecurityAsyncClient.java | 19 +++++++++++++++---- .../security/ElasticsearchSecurityClient.java | 19 +++++++++++++++---- .../security/EnableUserProfileRequest.java | 19 +++++++++++++++---- .../security/EnableUserProfileResponse.java | 19 +++++++++++++++---- .../security/EnableUserRequest.java | 19 +++++++++++++++---- .../security/EnableUserResponse.java | 19 +++++++++++++++---- .../security/EnrollKibanaRequest.java | 19 +++++++++++++++---- .../security/EnrollKibanaResponse.java | 19 +++++++++++++++---- .../security/EnrollNodeRequest.java | 19 +++++++++++++++---- .../security/EnrollNodeResponse.java | 19 +++++++++++++++---- .../elasticsearch/security/FieldRule.java | 19 +++++++++++++++---- .../security/FieldRuleBuilders.java | 19 +++++++++++++++---- .../security/FieldRuleVariant.java | 19 +++++++++++++++---- .../elasticsearch/security/FieldSecurity.java | 19 +++++++++++++++---- .../security/GetApiKeyRequest.java | 19 +++++++++++++++---- .../security/GetApiKeyResponse.java | 19 +++++++++++++++---- .../security/GetBuiltinPrivilegesRequest.java | 19 +++++++++++++++---- .../GetBuiltinPrivilegesResponse.java | 19 +++++++++++++++---- .../security/GetPrivilegesRequest.java | 19 +++++++++++++++---- .../security/GetPrivilegesResponse.java | 19 +++++++++++++++---- .../security/GetRoleMappingRequest.java | 19 +++++++++++++++---- .../security/GetRoleMappingResponse.java | 19 +++++++++++++++---- .../security/GetRoleRequest.java | 19 +++++++++++++++---- .../security/GetRoleResponse.java | 19 +++++++++++++++---- .../security/GetServiceAccountsRequest.java | 19 +++++++++++++++---- .../security/GetServiceAccountsResponse.java | 19 +++++++++++++++---- .../GetServiceCredentialsRequest.java | 19 +++++++++++++++---- .../GetServiceCredentialsResponse.java | 19 +++++++++++++++---- .../security/GetTokenRequest.java | 19 +++++++++++++++---- .../security/GetTokenResponse.java | 19 +++++++++++++++---- .../security/GetUserPrivilegesRequest.java | 19 +++++++++++++++---- .../security/GetUserPrivilegesResponse.java | 19 +++++++++++++++---- .../security/GetUserProfileRequest.java | 19 +++++++++++++++---- .../security/GetUserProfileResponse.java | 19 +++++++++++++++---- .../security/GetUserRequest.java | 19 +++++++++++++++---- .../security/GetUserResponse.java | 19 +++++++++++++++---- .../security/GlobalPrivilege.java | 19 +++++++++++++++---- .../security/GrantApiKeyRequest.java | 19 +++++++++++++++---- .../security/GrantApiKeyResponse.java | 19 +++++++++++++++---- .../elasticsearch/security/GrantType.java | 19 +++++++++++++++---- .../security/HasPrivilegesRequest.java | 19 +++++++++++++++---- .../security/HasPrivilegesResponse.java | 19 +++++++++++++++---- .../HasPrivilegesUserProfileRequest.java | 19 +++++++++++++++---- .../HasPrivilegesUserProfileResponse.java | 19 +++++++++++++++---- .../security/IndexPrivilege.java | 19 +++++++++++++++---- .../security/IndicesPrivileges.java | 19 +++++++++++++++---- .../security/InvalidateApiKeyRequest.java | 19 +++++++++++++++---- .../security/InvalidateApiKeyResponse.java | 19 +++++++++++++++---- .../security/InvalidateTokenRequest.java | 19 +++++++++++++++---- .../security/InvalidateTokenResponse.java | 19 +++++++++++++++---- .../security/ManageUserPrivileges.java | 19 +++++++++++++++---- .../security/PutPrivilegesRequest.java | 19 +++++++++++++++---- .../security/PutPrivilegesResponse.java | 19 +++++++++++++++---- .../security/PutRoleMappingRequest.java | 19 +++++++++++++++---- .../security/PutRoleMappingResponse.java | 19 +++++++++++++++---- .../security/PutRoleRequest.java | 19 +++++++++++++++---- .../security/PutRoleResponse.java | 19 +++++++++++++++---- .../security/PutUserRequest.java | 19 +++++++++++++++---- .../security/PutUserResponse.java | 19 +++++++++++++++---- .../security/QueryApiKeysRequest.java | 19 +++++++++++++++---- .../security/QueryApiKeysResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/security/Realm.java | 19 +++++++++++++++---- .../elasticsearch/security/RealmInfo.java | 19 +++++++++++++++---- .../security/RoleDescriptor.java | 19 +++++++++++++++---- .../security/RoleDescriptorRead.java | 19 +++++++++++++++---- .../elasticsearch/security/RoleMapping.java | 19 +++++++++++++++---- .../security/RoleMappingRule.java | 19 +++++++++++++++---- .../security/RoleMappingRuleBuilders.java | 19 +++++++++++++++---- .../security/RoleMappingRuleVariant.java | 19 +++++++++++++++---- .../security/RoleTemplateInlineQuery.java | 19 +++++++++++++++---- .../RoleTemplateInlineQueryBuilders.java | 19 +++++++++++++++---- .../security/RoleTemplateInlineScript.java | 19 +++++++++++++++---- .../security/RoleTemplateScript.java | 19 +++++++++++++++---- .../security/RoleTemplateScriptBuilders.java | 19 +++++++++++++++---- .../security/SamlAuthenticateRequest.java | 19 +++++++++++++++---- .../security/SamlAuthenticateResponse.java | 19 +++++++++++++++---- .../security/SamlCompleteLogoutRequest.java | 19 +++++++++++++++---- .../security/SamlInvalidateRequest.java | 19 +++++++++++++++---- .../security/SamlInvalidateResponse.java | 19 +++++++++++++++---- .../security/SamlLogoutRequest.java | 19 +++++++++++++++---- .../security/SamlLogoutResponse.java | 19 +++++++++++++++---- .../SamlPrepareAuthenticationRequest.java | 19 +++++++++++++++---- .../SamlPrepareAuthenticationResponse.java | 19 +++++++++++++++---- .../SamlServiceProviderMetadataRequest.java | 19 +++++++++++++++---- .../SamlServiceProviderMetadataResponse.java | 19 +++++++++++++++---- .../security/SuggestUserProfilesRequest.java | 19 +++++++++++++++---- .../security/SuggestUserProfilesResponse.java | 19 +++++++++++++++---- .../security/TransientMetadataConfig.java | 19 +++++++++++++++---- .../security/UpdateApiKeyRequest.java | 19 +++++++++++++++---- .../security/UpdateApiKeyResponse.java | 19 +++++++++++++++---- .../UpdateUserProfileDataRequest.java | 19 +++++++++++++++---- .../UpdateUserProfileDataResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/security/User.java | 19 +++++++++++++++---- .../security/UserIndicesPrivileges.java | 19 +++++++++++++++---- .../elasticsearch/security/UserProfile.java | 19 +++++++++++++++---- .../security/UserProfileHitMetadata.java | 19 +++++++++++++++---- .../security/UserProfileUser.java | 19 +++++++++++++++---- .../security/UserProfileWithMetadata.java | 19 +++++++++++++++---- .../security/authenticate/ServiceToken.java | 19 +++++++++++++++---- .../security/create_service_token/Token.java | 19 +++++++++++++++---- .../delete_privileges/FoundStatus.java | 19 +++++++++++++++---- .../security/enroll_kibana/Token.java | 19 +++++++++++++++---- .../elasticsearch/security/get_role/Role.java | 19 +++++++++++++++---- .../security/get_role/RoleTemplate.java | 19 +++++++++++++++---- .../security/get_role/TemplateFormat.java | 19 +++++++++++++++---- .../RoleDescriptorWrapper.java | 19 +++++++++++++++---- .../NodesCredentials.java | 19 +++++++++++++++---- .../NodesCredentialsFileToken.java | 19 +++++++++++++++---- .../get_token/AccessTokenGrantType.java | 19 +++++++++++++++---- .../security/get_token/AuthenticatedUser.java | 19 +++++++++++++++---- .../get_token/AuthenticationProvider.java | 19 +++++++++++++++---- .../security/get_token/UserRealm.java | 19 +++++++++++++++---- .../GetUserProfileErrors.java | 19 +++++++++++++++---- .../grant_api_key/ApiKeyGrantType.java | 19 +++++++++++++++---- .../security/grant_api_key/GrantApiKey.java | 19 +++++++++++++++---- .../ApplicationPrivilegesCheck.java | 19 +++++++++++++++---- .../has_privileges/IndexPrivilegesCheck.java | 19 +++++++++++++++---- .../HasPrivilegesUserProfileErrors.java | 19 +++++++++++++++---- .../PrivilegesCheck.java | 19 +++++++++++++++---- .../security/put_privileges/Actions.java | 19 +++++++++++++++---- .../security/suggest_user_profiles/Hint.java | 19 +++++++++++++++---- .../TotalUserProfiles.java | 19 +++++++++++++++---- .../shutdown/DeleteNodeRequest.java | 19 +++++++++++++++---- .../shutdown/DeleteNodeResponse.java | 19 +++++++++++++++---- .../ElasticsearchShutdownAsyncClient.java | 19 +++++++++++++++---- .../shutdown/ElasticsearchShutdownClient.java | 19 +++++++++++++++---- .../shutdown/GetNodeRequest.java | 19 +++++++++++++++---- .../shutdown/GetNodeResponse.java | 19 +++++++++++++++---- .../shutdown/PutNodeRequest.java | 19 +++++++++++++++---- .../shutdown/PutNodeResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/shutdown/Type.java | 19 +++++++++++++++---- .../shutdown/get_node/NodeShutdownStatus.java | 19 +++++++++++++++---- .../get_node/PersistentTaskStatus.java | 19 +++++++++++++++---- .../shutdown/get_node/PluginsStatus.java | 19 +++++++++++++++---- .../get_node/ShardMigrationStatus.java | 19 +++++++++++++++---- .../shutdown/get_node/ShutdownStatus.java | 19 +++++++++++++++---- .../shutdown/get_node/ShutdownType.java | 19 +++++++++++++++---- .../slm/DeleteLifecycleRequest.java | 19 +++++++++++++++---- .../slm/DeleteLifecycleResponse.java | 19 +++++++++++++++---- .../slm/ElasticsearchSlmAsyncClient.java | 19 +++++++++++++++---- .../slm/ElasticsearchSlmClient.java | 19 +++++++++++++++---- .../slm/ExecuteLifecycleRequest.java | 19 +++++++++++++++---- .../slm/ExecuteLifecycleResponse.java | 19 +++++++++++++++---- .../slm/ExecuteRetentionRequest.java | 19 +++++++++++++++---- .../slm/ExecuteRetentionResponse.java | 19 +++++++++++++++---- .../slm/GetLifecycleRequest.java | 19 +++++++++++++++---- .../slm/GetLifecycleResponse.java | 19 +++++++++++++++---- .../slm/GetSlmStatusRequest.java | 19 +++++++++++++++---- .../slm/GetSlmStatusResponse.java | 19 +++++++++++++++---- .../elasticsearch/slm/GetStatsRequest.java | 19 +++++++++++++++---- .../elasticsearch/slm/GetStatsResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/slm/InProgress.java | 19 +++++++++++++++---- .../clients/elasticsearch/slm/Invocation.java | 19 +++++++++++++++---- .../slm/PutLifecycleRequest.java | 19 +++++++++++++++---- .../slm/PutLifecycleResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/slm/Retention.java | 19 +++++++++++++++---- .../elasticsearch/slm/SlmConfiguration.java | 19 +++++++++++++++---- .../clients/elasticsearch/slm/SlmPolicy.java | 19 +++++++++++++++---- .../elasticsearch/slm/SnapshotLifecycle.java | 19 +++++++++++++++---- .../elasticsearch/slm/StartSlmRequest.java | 19 +++++++++++++++---- .../elasticsearch/slm/StartSlmResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/slm/Statistics.java | 19 +++++++++++++++---- .../elasticsearch/slm/StopSlmRequest.java | 19 +++++++++++++++---- .../elasticsearch/slm/StopSlmResponse.java | 19 +++++++++++++++---- .../snapshot/CleanupRepositoryRequest.java | 19 +++++++++++++++---- .../snapshot/CleanupRepositoryResponse.java | 19 +++++++++++++++---- .../snapshot/CloneSnapshotRequest.java | 19 +++++++++++++++---- .../snapshot/CloneSnapshotResponse.java | 19 +++++++++++++++---- .../snapshot/CreateRepositoryRequest.java | 19 +++++++++++++++---- .../snapshot/CreateRepositoryResponse.java | 19 +++++++++++++++---- .../snapshot/CreateSnapshotRequest.java | 19 +++++++++++++++---- .../snapshot/CreateSnapshotResponse.java | 19 +++++++++++++++---- .../snapshot/DeleteRepositoryRequest.java | 19 +++++++++++++++---- .../snapshot/DeleteRepositoryResponse.java | 19 +++++++++++++++---- .../snapshot/DeleteSnapshotRequest.java | 19 +++++++++++++++---- .../snapshot/DeleteSnapshotResponse.java | 19 +++++++++++++++---- .../ElasticsearchSnapshotAsyncClient.java | 19 +++++++++++++++---- .../snapshot/ElasticsearchSnapshotClient.java | 19 +++++++++++++++---- .../snapshot/FileCountSnapshotStats.java | 19 +++++++++++++++---- .../snapshot/GetRepositoryRequest.java | 19 +++++++++++++++---- .../snapshot/GetRepositoryResponse.java | 19 +++++++++++++++---- .../snapshot/GetSnapshotRequest.java | 19 +++++++++++++++---- .../snapshot/GetSnapshotResponse.java | 19 +++++++++++++++---- .../elasticsearch/snapshot/IndexDetails.java | 19 +++++++++++++++---- .../snapshot/InfoFeatureState.java | 19 +++++++++++++++---- .../elasticsearch/snapshot/Repository.java | 19 +++++++++++++++---- .../snapshot/RepositorySettings.java | 19 +++++++++++++++---- .../snapshot/RestoreRequest.java | 19 +++++++++++++++---- .../snapshot/RestoreResponse.java | 19 +++++++++++++++---- .../elasticsearch/snapshot/ShardsStats.java | 19 +++++++++++++++---- .../snapshot/ShardsStatsStage.java | 19 +++++++++++++++---- .../snapshot/ShardsStatsSummary.java | 19 +++++++++++++++---- .../snapshot/ShardsStatsSummaryItem.java | 19 +++++++++++++++---- .../snapshot/SnapshotIndexStats.java | 19 +++++++++++++++---- .../elasticsearch/snapshot/SnapshotInfo.java | 19 +++++++++++++++---- .../snapshot/SnapshotShardFailure.java | 19 +++++++++++++++---- .../snapshot/SnapshotShardsStatus.java | 19 +++++++++++++++---- .../elasticsearch/snapshot/SnapshotSort.java | 19 +++++++++++++++---- .../elasticsearch/snapshot/SnapshotStats.java | 19 +++++++++++++++---- .../snapshot/SnapshotStatusRequest.java | 19 +++++++++++++++---- .../snapshot/SnapshotStatusResponse.java | 19 +++++++++++++++---- .../elasticsearch/snapshot/Status.java | 19 +++++++++++++++---- .../snapshot/VerifyRepositoryRequest.java | 19 +++++++++++++++---- .../snapshot/VerifyRepositoryResponse.java | 19 +++++++++++++++---- .../CleanupRepositoryResults.java | 19 +++++++++++++++---- .../snapshot/get/SnapshotResponseItem.java | 19 +++++++++++++++---- .../snapshot/restore/SnapshotRestore.java | 19 +++++++++++++++---- .../verify_repository/CompactNodeInfo.java | 19 +++++++++++++++---- .../elasticsearch/sql/ClearCursorRequest.java | 19 +++++++++++++++---- .../sql/ClearCursorResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/sql/Column.java | 19 +++++++++++++++---- .../elasticsearch/sql/DeleteAsyncRequest.java | 19 +++++++++++++++---- .../sql/DeleteAsyncResponse.java | 19 +++++++++++++++---- .../sql/ElasticsearchSqlAsyncClient.java | 19 +++++++++++++++---- .../sql/ElasticsearchSqlClient.java | 19 +++++++++++++++---- .../elasticsearch/sql/GetAsyncRequest.java | 19 +++++++++++++++---- .../elasticsearch/sql/GetAsyncResponse.java | 19 +++++++++++++++---- .../sql/GetAsyncStatusRequest.java | 19 +++++++++++++++---- .../sql/GetAsyncStatusResponse.java | 19 +++++++++++++++---- .../elasticsearch/sql/QueryRequest.java | 19 +++++++++++++++---- .../elasticsearch/sql/QueryResponse.java | 19 +++++++++++++++---- .../elasticsearch/sql/TranslateRequest.java | 19 +++++++++++++++---- .../elasticsearch/sql/TranslateResponse.java | 19 +++++++++++++++---- .../ssl/CertificatesRequest.java | 19 +++++++++++++++---- .../ssl/CertificatesResponse.java | 19 +++++++++++++++---- .../ssl/ElasticsearchSslAsyncClient.java | 19 +++++++++++++++---- .../ssl/ElasticsearchSslClient.java | 19 +++++++++++++++---- .../certificates/CertificateInformation.java | 19 +++++++++++++++---- .../synonyms/DeleteSynonymRequest.java | 19 +++++++++++++++---- .../synonyms/DeleteSynonymResponse.java | 19 +++++++++++++++---- .../synonyms/DeleteSynonymRuleRequest.java | 19 +++++++++++++++---- .../synonyms/DeleteSynonymRuleResponse.java | 19 +++++++++++++++---- .../ElasticsearchSynonymsAsyncClient.java | 19 +++++++++++++++---- .../synonyms/ElasticsearchSynonymsClient.java | 19 +++++++++++++++---- .../synonyms/GetSynonymRequest.java | 19 +++++++++++++++---- .../synonyms/GetSynonymResponse.java | 19 +++++++++++++++---- .../synonyms/GetSynonymRuleRequest.java | 19 +++++++++++++++---- .../synonyms/GetSynonymRuleResponse.java | 19 +++++++++++++++---- .../synonyms/GetSynonymsSetsRequest.java | 19 +++++++++++++++---- .../synonyms/GetSynonymsSetsResponse.java | 19 +++++++++++++++---- .../synonyms/PutSynonymRequest.java | 19 +++++++++++++++---- .../synonyms/PutSynonymResponse.java | 19 +++++++++++++++---- .../synonyms/PutSynonymRuleRequest.java | 19 +++++++++++++++---- .../synonyms/PutSynonymRuleResponse.java | 19 +++++++++++++++---- .../elasticsearch/synonyms/SynonymRule.java | 19 +++++++++++++++---- .../synonyms/SynonymRuleRead.java | 19 +++++++++++++++---- .../synonyms/SynonymsUpdateResult.java | 19 +++++++++++++++---- .../get_synonyms_sets/SynonymsSetItem.java | 19 +++++++++++++++---- .../elasticsearch/tasks/CancelRequest.java | 19 +++++++++++++++---- .../elasticsearch/tasks/CancelResponse.java | 19 +++++++++++++++---- .../tasks/ElasticsearchTasksAsyncClient.java | 19 +++++++++++++++---- .../tasks/ElasticsearchTasksClient.java | 19 +++++++++++++++---- .../elasticsearch/tasks/GetTasksRequest.java | 19 +++++++++++++++---- .../elasticsearch/tasks/GetTasksResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/tasks/GroupBy.java | 19 +++++++++++++++---- .../elasticsearch/tasks/ListRequest.java | 19 +++++++++++++++---- .../elasticsearch/tasks/ListResponse.java | 19 +++++++++++++++---- .../elasticsearch/tasks/NodeTasks.java | 19 +++++++++++++++---- .../elasticsearch/tasks/ParentTaskInfo.java | 19 +++++++++++++++---- .../clients/elasticsearch/tasks/TaskInfo.java | 19 +++++++++++++++---- .../elasticsearch/tasks/TaskInfos.java | 19 +++++++++++++++---- .../tasks/TaskInfosBuilders.java | 19 +++++++++++++++---- .../tasks/TaskListResponseBase.java | 19 +++++++++++++++---- .../transform/DeleteTransformRequest.java | 19 +++++++++++++++---- .../transform/DeleteTransformResponse.java | 19 +++++++++++++++---- .../elasticsearch/transform/Destination.java | 19 +++++++++++++++---- .../ElasticsearchTransformAsyncClient.java | 19 +++++++++++++++---- .../ElasticsearchTransformClient.java | 19 +++++++++++++++---- .../transform/GetTransformRequest.java | 19 +++++++++++++++---- .../transform/GetTransformResponse.java | 19 +++++++++++++++---- .../transform/GetTransformStatsRequest.java | 19 +++++++++++++++---- .../transform/GetTransformStatsResponse.java | 19 +++++++++++++++---- .../elasticsearch/transform/Latest.java | 19 +++++++++++++++---- .../elasticsearch/transform/Pivot.java | 19 +++++++++++++++---- .../elasticsearch/transform/PivotGroupBy.java | 19 +++++++++++++++---- .../transform/PivotGroupByBuilders.java | 19 +++++++++++++++---- .../transform/PivotGroupByVariant.java | 19 +++++++++++++++---- .../transform/PreviewTransformRequest.java | 19 +++++++++++++++---- .../transform/PreviewTransformResponse.java | 19 +++++++++++++++---- .../transform/PutTransformRequest.java | 19 +++++++++++++++---- .../transform/PutTransformResponse.java | 19 +++++++++++++++---- .../transform/ResetTransformRequest.java | 19 +++++++++++++++---- .../transform/ResetTransformResponse.java | 19 +++++++++++++++---- .../transform/RetentionPolicy.java | 19 +++++++++++++++---- .../transform/RetentionPolicyBuilders.java | 19 +++++++++++++++---- .../transform/RetentionPolicyVariant.java | 19 +++++++++++++++---- .../ScheduleNowTransformRequest.java | 19 +++++++++++++++---- .../ScheduleNowTransformResponse.java | 19 +++++++++++++++---- .../elasticsearch/transform/Settings.java | 19 +++++++++++++++---- .../elasticsearch/transform/Source.java | 19 +++++++++++++++---- .../transform/StartTransformRequest.java | 19 +++++++++++++++---- .../transform/StartTransformResponse.java | 19 +++++++++++++++---- .../transform/StopTransformRequest.java | 19 +++++++++++++++---- .../transform/StopTransformResponse.java | 19 +++++++++++++++---- .../clients/elasticsearch/transform/Sync.java | 19 +++++++++++++++---- .../elasticsearch/transform/SyncBuilders.java | 19 +++++++++++++++---- .../elasticsearch/transform/SyncVariant.java | 19 +++++++++++++++---- .../transform/TimeRetentionPolicy.java | 19 +++++++++++++++---- .../elasticsearch/transform/TimeSync.java | 19 +++++++++++++++---- .../transform/UpdateTransformRequest.java | 19 +++++++++++++++---- .../transform/UpdateTransformResponse.java | 19 +++++++++++++++---- .../transform/UpgradeTransformsRequest.java | 19 +++++++++++++++---- .../transform/UpgradeTransformsResponse.java | 19 +++++++++++++++---- .../get_transform/TransformSummary.java | 19 +++++++++++++++---- .../get_transform_stats/CheckpointStats.java | 19 +++++++++++++++---- .../get_transform_stats/Checkpointing.java | 19 +++++++++++++++---- .../TransformIndexerStats.java | 19 +++++++++++++++---- .../TransformProgress.java | 19 +++++++++++++++---- .../get_transform_stats/TransformStats.java | 19 +++++++++++++++---- .../TransformStatsHealth.java | 19 +++++++++++++++---- .../watcher/AckWatchRequest.java | 19 +++++++++++++++---- .../watcher/AckWatchResponse.java | 19 +++++++++++++++---- .../watcher/AcknowledgeState.java | 19 +++++++++++++++---- .../watcher/AcknowledgementOptions.java | 19 +++++++++++++++---- .../clients/elasticsearch/watcher/Action.java | 19 +++++++++++++++---- .../watcher/ActionExecutionMode.java | 19 +++++++++++++++---- .../elasticsearch/watcher/ActionStatus.java | 19 +++++++++++++++---- .../watcher/ActionStatusOptions.java | 19 +++++++++++++++---- .../elasticsearch/watcher/ActionType.java | 19 +++++++++++++++---- .../watcher/ActivateWatchRequest.java | 19 +++++++++++++++---- .../watcher/ActivateWatchResponse.java | 19 +++++++++++++++---- .../watcher/ActivationState.java | 19 +++++++++++++++---- .../watcher/ActivationStatus.java | 19 +++++++++++++++---- .../watcher/AlwaysCondition.java | 19 +++++++++++++++---- .../watcher/ArrayCompareCondition.java | 19 +++++++++++++++---- .../watcher/ArrayCompareOpParams.java | 19 +++++++++++++++---- .../elasticsearch/watcher/ChainInput.java | 19 +++++++++++++++---- .../elasticsearch/watcher/Condition.java | 19 +++++++++++++++---- .../watcher/ConditionBuilders.java | 19 +++++++++++++++---- .../elasticsearch/watcher/ConditionOp.java | 19 +++++++++++++++---- .../elasticsearch/watcher/ConditionType.java | 19 +++++++++++++++---- .../watcher/ConditionVariant.java | 19 +++++++++++++++---- .../watcher/ConnectionScheme.java | 19 +++++++++++++++---- .../elasticsearch/watcher/DailySchedule.java | 19 +++++++++++++++---- .../watcher/DataAttachmentFormat.java | 19 +++++++++++++++---- .../watcher/DataEmailAttachment.java | 19 +++++++++++++++---- .../clients/elasticsearch/watcher/Day.java | 19 +++++++++++++++---- .../watcher/DeactivateWatchRequest.java | 19 +++++++++++++++---- .../watcher/DeactivateWatchResponse.java | 19 +++++++++++++++---- .../watcher/DeleteWatchRequest.java | 19 +++++++++++++++---- .../watcher/DeleteWatchResponse.java | 19 +++++++++++++++---- .../ElasticsearchWatcherAsyncClient.java | 19 +++++++++++++++---- .../watcher/ElasticsearchWatcherClient.java | 19 +++++++++++++++---- .../clients/elasticsearch/watcher/Email.java | 19 +++++++++++++++---- .../elasticsearch/watcher/EmailAction.java | 19 +++++++++++++++---- .../watcher/EmailAttachment.java | 19 +++++++++++++++---- .../watcher/EmailAttachmentBuilders.java | 19 +++++++++++++++---- .../watcher/EmailAttachmentVariant.java | 19 +++++++++++++++---- .../elasticsearch/watcher/EmailBody.java | 19 +++++++++++++++---- .../elasticsearch/watcher/EmailPriority.java | 19 +++++++++++++++---- .../elasticsearch/watcher/EmailResult.java | 19 +++++++++++++++---- .../watcher/ExecuteWatchRequest.java | 19 +++++++++++++++---- .../watcher/ExecuteWatchResponse.java | 19 +++++++++++++++---- .../elasticsearch/watcher/ExecutionPhase.java | 19 +++++++++++++++---- .../watcher/ExecutionResult.java | 19 +++++++++++++++---- .../watcher/ExecutionResultAction.java | 19 +++++++++++++++---- .../watcher/ExecutionResultCondition.java | 19 +++++++++++++++---- .../watcher/ExecutionResultInput.java | 19 +++++++++++++++---- .../elasticsearch/watcher/ExecutionState.java | 19 +++++++++++++++---- .../watcher/ExecutionStatus.java | 19 +++++++++++++++---- .../watcher/ExecutionThreadPool.java | 19 +++++++++++++++---- .../watcher/GetWatchRequest.java | 19 +++++++++++++++---- .../watcher/GetWatchResponse.java | 19 +++++++++++++++---- .../elasticsearch/watcher/HourAndMinute.java | 19 +++++++++++++++---- .../elasticsearch/watcher/HourlySchedule.java | 19 +++++++++++++++---- .../watcher/HttpEmailAttachment.java | 19 +++++++++++++++---- .../elasticsearch/watcher/HttpInput.java | 19 +++++++++++++++---- .../watcher/HttpInputAuthentication.java | 19 +++++++++++++++---- .../watcher/HttpInputBasicAuthentication.java | 19 +++++++++++++++---- .../watcher/HttpInputMethod.java | 19 +++++++++++++++---- .../elasticsearch/watcher/HttpInputProxy.java | 19 +++++++++++++++---- .../watcher/HttpInputRequestDefinition.java | 19 +++++++++++++++---- .../watcher/HttpInputRequestResult.java | 19 +++++++++++++++---- .../watcher/HttpInputResponseResult.java | 19 +++++++++++++++---- .../elasticsearch/watcher/IndexAction.java | 19 +++++++++++++++---- .../elasticsearch/watcher/IndexResult.java | 19 +++++++++++++++---- .../watcher/IndexResultSummary.java | 19 +++++++++++++++---- .../clients/elasticsearch/watcher/Input.java | 19 +++++++++++++++---- .../elasticsearch/watcher/InputBuilders.java | 19 +++++++++++++++---- .../elasticsearch/watcher/InputType.java | 19 +++++++++++++++---- .../elasticsearch/watcher/InputVariant.java | 19 +++++++++++++++---- .../elasticsearch/watcher/LoggingAction.java | 19 +++++++++++++++---- .../elasticsearch/watcher/LoggingResult.java | 19 +++++++++++++++---- .../clients/elasticsearch/watcher/Month.java | 19 +++++++++++++++---- .../elasticsearch/watcher/NeverCondition.java | 19 +++++++++++++++---- .../watcher/PagerDutyAction.java | 19 +++++++++++++++---- .../watcher/PagerDutyContext.java | 19 +++++++++++++++---- .../watcher/PagerDutyContextType.java | 19 +++++++++++++++---- .../elasticsearch/watcher/PagerDutyEvent.java | 19 +++++++++++++++---- .../watcher/PagerDutyEventProxy.java | 19 +++++++++++++++---- .../watcher/PagerDutyEventType.java | 19 +++++++++++++++---- .../watcher/PagerDutyResult.java | 19 +++++++++++++++---- .../watcher/PutWatchRequest.java | 19 +++++++++++++++---- .../watcher/PutWatchResponse.java | 19 +++++++++++++++---- .../elasticsearch/watcher/Quantifier.java | 19 +++++++++++++++---- .../elasticsearch/watcher/QueryWatch.java | 19 +++++++++++++++---- .../watcher/QueryWatchesRequest.java | 19 +++++++++++++++---- .../watcher/QueryWatchesResponse.java | 19 +++++++++++++++---- .../watcher/ReportingEmailAttachment.java | 19 +++++++++++++++---- .../watcher/ResponseContentType.java | 19 +++++++++++++++---- .../elasticsearch/watcher/Schedule.java | 19 +++++++++++++++---- .../watcher/ScheduleBuilders.java | 19 +++++++++++++++---- .../watcher/ScheduleTimeOfDay.java | 19 +++++++++++++++---- .../watcher/ScheduleTimeOfDayBuilders.java | 19 +++++++++++++++---- .../watcher/ScheduleTriggerEvent.java | 19 +++++++++++++++---- .../watcher/ScheduleVariant.java | 19 +++++++++++++++---- .../watcher/ScriptCondition.java | 19 +++++++++++++++---- .../elasticsearch/watcher/SearchInput.java | 19 +++++++++++++++---- .../watcher/SearchInputRequestBody.java | 19 +++++++++++++++---- .../watcher/SearchInputRequestDefinition.java | 19 +++++++++++++++---- .../watcher/SearchTemplateRequestBody.java | 19 +++++++++++++++---- .../watcher/SimulatedActions.java | 19 +++++++++++++++---- .../elasticsearch/watcher/SlackAction.java | 19 +++++++++++++++---- .../watcher/SlackAttachment.java | 19 +++++++++++++++---- .../watcher/SlackAttachmentField.java | 19 +++++++++++++++---- .../watcher/SlackDynamicAttachment.java | 19 +++++++++++++++---- .../elasticsearch/watcher/SlackMessage.java | 19 +++++++++++++++---- .../elasticsearch/watcher/SlackResult.java | 19 +++++++++++++++---- .../watcher/StartWatcherRequest.java | 19 +++++++++++++++---- .../watcher/StartWatcherResponse.java | 19 +++++++++++++++---- .../watcher/StopWatcherRequest.java | 19 +++++++++++++++---- .../watcher/StopWatcherResponse.java | 19 +++++++++++++++---- .../elasticsearch/watcher/ThrottleState.java | 19 +++++++++++++++---- .../elasticsearch/watcher/TimeOfMonth.java | 19 +++++++++++++++---- .../elasticsearch/watcher/TimeOfWeek.java | 19 +++++++++++++++---- .../elasticsearch/watcher/TimeOfYear.java | 19 +++++++++++++++---- .../elasticsearch/watcher/Trigger.java | 19 +++++++++++++++---- .../watcher/TriggerBuilders.java | 19 +++++++++++++++---- .../elasticsearch/watcher/TriggerEvent.java | 19 +++++++++++++++---- .../watcher/TriggerEventBuilders.java | 19 +++++++++++++++---- .../watcher/TriggerEventResult.java | 19 +++++++++++++++---- .../watcher/TriggerEventVariant.java | 19 +++++++++++++++---- .../elasticsearch/watcher/TriggerVariant.java | 19 +++++++++++++++---- .../clients/elasticsearch/watcher/Watch.java | 19 +++++++++++++++---- .../elasticsearch/watcher/WatchStatus.java | 19 +++++++++++++++---- .../watcher/WatcherStatsRequest.java | 19 +++++++++++++++---- .../watcher/WatcherStatsResponse.java | 19 +++++++++++++++---- .../elasticsearch/watcher/WebhookAction.java | 19 +++++++++++++++---- .../elasticsearch/watcher/WebhookResult.java | 19 +++++++++++++++---- .../watcher/execute_watch/WatchRecord.java | 19 +++++++++++++++---- .../watcher/stats/WatchRecordQueuedStats.java | 19 +++++++++++++++---- .../watcher/stats/WatchRecordStats.java | 19 +++++++++++++++---- .../watcher/stats/WatcherMetric.java | 19 +++++++++++++++---- .../watcher/stats/WatcherNodeStats.java | 19 +++++++++++++++---- .../watcher/stats/WatcherState.java | 19 +++++++++++++++---- .../xpack/ElasticsearchXpackAsyncClient.java | 19 +++++++++++++++---- .../xpack/ElasticsearchXpackClient.java | 19 +++++++++++++++---- .../elasticsearch/xpack/XpackInfoRequest.java | 19 +++++++++++++++---- .../xpack/XpackInfoResponse.java | 19 +++++++++++++++---- .../xpack/XpackUsageRequest.java | 19 +++++++++++++++---- .../xpack/XpackUsageResponse.java | 19 +++++++++++++++---- .../xpack/info/BuildInformation.java | 19 +++++++++++++++---- .../elasticsearch/xpack/info/Feature.java | 19 +++++++++++++++---- .../elasticsearch/xpack/info/Features.java | 19 +++++++++++++++---- .../xpack/info/MinimalLicenseInformation.java | 19 +++++++++++++++---- .../xpack/info/NativeCodeInformation.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Analytics.java | 19 +++++++++++++++---- .../xpack/usage/AnalyticsStatistics.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Archive.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Audit.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Base.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Ccr.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Counter.java | 19 +++++++++++++++---- .../xpack/usage/DataStreams.java | 19 +++++++++++++++---- .../xpack/usage/DataTierPhaseStatistics.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/DataTiers.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Datafeed.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Eql.java | 19 +++++++++++++++---- .../xpack/usage/EqlFeatures.java | 19 +++++++++++++++---- .../xpack/usage/EqlFeaturesJoin.java | 19 +++++++++++++++---- .../xpack/usage/EqlFeaturesKeys.java | 19 +++++++++++++++---- .../xpack/usage/EqlFeaturesPipes.java | 19 +++++++++++++++---- .../xpack/usage/EqlFeaturesSequences.java | 19 +++++++++++++++---- .../xpack/usage/FeatureToggle.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Flattened.java | 19 +++++++++++++++---- .../xpack/usage/FrozenIndices.java | 19 +++++++++++++++---- .../xpack/usage/HealthStatistics.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Ilm.java | 19 +++++++++++++++---- .../xpack/usage/IlmPolicyStatistics.java | 19 +++++++++++++++---- .../xpack/usage/Invocations.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/IpFilter.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/JobUsage.java | 19 +++++++++++++++---- .../xpack/usage/MachineLearning.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/MlCounter.java | 19 +++++++++++++++---- .../xpack/usage/MlDataFrameAnalyticsJobs.java | 19 +++++++++++++++---- .../MlDataFrameAnalyticsJobsAnalysis.java | 19 +++++++++++++++---- .../usage/MlDataFrameAnalyticsJobsCount.java | 19 +++++++++++++++---- .../usage/MlDataFrameAnalyticsJobsMemory.java | 19 +++++++++++++++---- .../xpack/usage/MlInference.java | 19 +++++++++++++++---- .../xpack/usage/MlInferenceDeployments.java | 19 +++++++++++++++---- .../usage/MlInferenceDeploymentsTimeMs.java | 19 +++++++++++++++---- .../usage/MlInferenceIngestProcessor.java | 19 +++++++++++++++---- .../MlInferenceIngestProcessorCount.java | 19 +++++++++++++++---- .../xpack/usage/MlInferenceTrainedModels.java | 19 +++++++++++++++---- .../usage/MlInferenceTrainedModelsCount.java | 19 +++++++++++++++---- .../xpack/usage/MlJobForecasts.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Monitoring.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Realm.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/RealmCache.java | 19 +++++++++++++++---- .../xpack/usage/RoleMapping.java | 19 +++++++++++++++---- .../xpack/usage/RuntimeFieldTypes.java | 19 +++++++++++++++---- .../xpack/usage/RuntimeFieldsType.java | 19 +++++++++++++++---- .../xpack/usage/SearchableSnapshots.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Security.java | 19 +++++++++++++++---- .../xpack/usage/SecurityRoles.java | 19 +++++++++++++++---- .../xpack/usage/SecurityRolesDls.java | 19 +++++++++++++++---- .../usage/SecurityRolesDlsBitSetCache.java | 19 +++++++++++++++---- .../xpack/usage/SecurityRolesFile.java | 19 +++++++++++++++---- .../xpack/usage/SecurityRolesNative.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Slm.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Sql.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Ssl.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Vector.java | 19 +++++++++++++++---- .../elasticsearch/xpack/usage/Watcher.java | 19 +++++++++++++++---- .../xpack/usage/WatcherActionTotals.java | 19 +++++++++++++++---- .../xpack/usage/WatcherActions.java | 19 +++++++++++++++---- .../xpack/usage/WatcherWatch.java | 19 +++++++++++++++---- .../xpack/usage/WatcherWatchTrigger.java | 19 +++++++++++++++---- .../usage/WatcherWatchTriggerSchedule.java | 19 +++++++++++++++---- .../xpack/usage/XpackUsageQuery.java | 19 +++++++++++++++---- 2855 files changed, 42825 insertions(+), 11420 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 29d19856b..88b3e5ef5 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch; import co.elastic.clients.ApiClient; @@ -158,6 +154,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the namespace. */ 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 037e79ee3..72f80fa2a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch; import co.elastic.clients.ApiClient; @@ -159,6 +155,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the namespace. */ 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 447ea4f25..13cb50641 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.lang.Boolean; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.AcknowledgedResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BaseNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BaseNode.java index 8b8177cd9..4e9000e9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BaseNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BaseNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _spec_utils.BaseNode /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java index 3d6412daa..90dfec471 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.BulkIndexByScrollFailure /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java index f3a749168..3e097c960 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.BulkStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Bytes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Bytes.java index 3a06aafa6..86c5b4c26 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Bytes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Bytes.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java index 490c4f1c5..586d2ca64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java index 7c730fdfd..b02464bd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ClusterStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java index ea29c548c..6e2b3f925 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.CompletionStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Conflicts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Conflicts.java index 610e03f00..2e580abea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Conflicts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Conflicts.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java index a20fd4ea1..031fab42e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.CoordsGeoBounds /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFIIndependenceMeasure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFIIndependenceMeasure.java index 66c93bed6..71bc959d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFIIndependenceMeasure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFIIndependenceMeasure.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFRAfterEffect.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFRAfterEffect.java index 6cd3ce876..b5004f87b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFRAfterEffect.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFRAfterEffect.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFRBasicModel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFRBasicModel.java index 9f6e732ee..83d456825 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFRBasicModel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DFRBasicModel.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java index 5f443dcff..a6b908b9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java index c043db567..f46a2ccb2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.DocStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java index d5d1a0d98..ac2c58313 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ElasticsearchVersionInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java index 38470a72f..c0b97a9a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -30,6 +26,21 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * For empty Class assignments * 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 1dbe92c22..4a9156c7d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ErrorCause /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java index 947137910..aa9bdfcbc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ErrorResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java index decf357a9..29e214ce6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java index ae6a22f6f..fc26973af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.FieldMemoryUsage /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java index 2e34ec3f4..d46dbef90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.FieldSizeUsage /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java index 66d427725..a0b377a02 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch._types.mapping.FieldType; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.FieldSort /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java index 1cb572300..a1117ce30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java index ecc0c33f5..8f46f3449 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.FielddataStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java index 24462f0c9..e76bc2d75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.FlushStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java index 552e336c6..514b2f8b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoBounds /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBoundsBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBoundsBuilders.java index 8a57ea128..c1b3f2e30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBoundsBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBoundsBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link GeoBounds} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java index 21504e4ec..d9cd9b786 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoDistanceSort /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java index 1a7de8d2e..7bae7004c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java index a42647a35..262704160 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoHashLocation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java index de2957117..a0661a79d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoHashPrecision /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecisionBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecisionBuilders.java index abffd65dc..cb2a78226 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecisionBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecisionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link GeoHashPrecision} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java index ef58346ea..9c5f892ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoLine /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java index 1022ff213..5b59638a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoLocation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocationBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocationBuilders.java index fad7f71e1..2a6abee76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocationBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocationBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.lang.Double; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link GeoLocation} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java index c779ac81b..4e43da4a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java index 80d027dfb..81bda0c82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GetStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/HealthStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/HealthStatus.java index aaa804eab..60b09e818 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/HealthStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/HealthStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IBDistribution.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IBDistribution.java index 728e1831d..e8c0f5283 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IBDistribution.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IBDistribution.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IBLambda.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IBLambda.java index 321f0be62..1ed99e56e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IBLambda.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IBLambda.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java index 8cdc4f3a7..34caf2b2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.IndexingStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java index 13857ec39..1bb5d1a6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.IndicesOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesResponseBase.java index de3ccc81d..3ab0d7365 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.IndicesResponseBase /** 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 dedba1ba1..429f25552 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonData; @@ -47,6 +43,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.InlineGet /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java index a468589e4..a5218423b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.InlineScript /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java index da8fbe0cf..84167e32e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.KnnQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LatLonGeoLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LatLonGeoLocation.java index f18133b26..a291a5622 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LatLonGeoLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LatLonGeoLocation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.LatLonGeoLocation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Level.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Level.java index 7df2a50a2..13e151ccf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Level.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Level.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LifecycleOperationMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LifecycleOperationMode.java index a6d635323..9e5b343fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LifecycleOperationMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LifecycleOperationMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MergesStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MergesStats.java index c16f6b86d..cf5079ceb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MergesStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MergesStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.MergesStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NestedSortValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NestedSortValue.java index d76658461..32c09c21a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NestedSortValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NestedSortValue.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.NestedSortValue /** 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 513e1579e..9eb15c026 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.NodeAttributes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeRole.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeRole.java index b3db7c17d..d63a1135e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeRole.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeRole.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeShard.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeShard.java index 6afc01f53..0c4b4df9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeShard.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeShard.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch.cluster.allocation_explain.UnassignedInformation; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.NodeShard /** 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 81ddd2a58..aed78d552 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.NodeStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Normalization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Normalization.java index fbcd9a982..9531b9b02 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Normalization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Normalization.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/OpType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/OpType.java index 5d56f5e2a..563769454 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/OpType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/OpType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PluginStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PluginStats.java index 486ec84b7..827e03719 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PluginStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PluginStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.PluginStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java index d7bcb2357..8f4a3238e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.QueryCacheStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilder.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilder.java index bb8be5122..808b04c57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilder.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilder.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.QueryVectorBuilder /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java index 79ef8372e..521debc0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link QueryVectorBuilder} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java index b56403be9..ac17ab51e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link QueryVectorBuilder} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java index 43d26d43e..b1dbca7c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RankContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java index 89e7bc8f8..53880c72a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import jakarta.json.stream.JsonGenerator; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RankBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java index 1ec42a03c..6e2200c4b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Rank} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java index 9c3fcd31b..296815a42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Rank} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RecoveryStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RecoveryStats.java index abab93ac2..f3c999603 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RecoveryStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RecoveryStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RecoveryStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Refresh.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Refresh.java index 99dccc0fc..3543cfa5e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Refresh.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Refresh.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -29,6 +25,21 @@ import co.elastic.clients.json.JsonpMapper; import jakarta.json.stream.JsonGenerator; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RefreshStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RefreshStats.java index 42f66791e..7b5542a76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RefreshStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RefreshStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RefreshStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RelocationFailureInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RelocationFailureInfo.java index d26c3b22c..b511abe07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RelocationFailureInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RelocationFailureInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RelocationFailureInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java index c1469bfd2..81ae1f3f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RequestBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestCacheStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestCacheStats.java index d46f8a739..b264c0523 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestCacheStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestCacheStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RequestCacheStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Result.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Result.java index 9cdfc3c0b..04a2b6c32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Result.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Result.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java index c0c711b40..d81d2dc77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.Retries /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java index 01bfbfb6b..bd0153929 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RrfRank /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java index 4e1853727..d5f8567b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScoreSort /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java index 1f2130c06..2a48a2ea6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.Script /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java index ec217ce6b..e72dc07a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScriptBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBuilders.java index 90a5b1286..00bb95e6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Script} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java index 6fbb7c2a7..5473d38b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScriptField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java index a8252dafa..3f98cd4dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java index 1f0e990e8..a83149ef2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScriptSort /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSortType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSortType.java index 09996bdc4..99780e810 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSortType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSortType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptTransform.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptTransform.java index 739e1126a..ac7373554 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptTransform.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptTransform.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScriptTransform /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchStats.java index 112017902..f648a20e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.SearchStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchTransform.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchTransform.java index 81a60952e..0e357d847 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchTransform.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchTransform.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch.watcher.SearchInputRequestDefinition; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.SearchTransform /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchType.java index 0cb2db29e..071091064 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java index 20be23811..cd6af3ada 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch.indices.stats.ShardFileSizeInfo; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.SegmentsStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java index 3543d2965..a021940fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ShardFailure /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java index f7edf4971..41eb3c418 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ShardStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardsOperationResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardsOperationResponseBase.java index 85d3647d4..a2064e050 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardsOperationResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardsOperationResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ShardsOperationResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java index 704f9b75b..3bc77e302 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.SlicedScroll /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Slices.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Slices.java index e56355c30..d50266a07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Slices.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Slices.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.Slices /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesBuilders.java index acfc50b48..c91027e04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Slices} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesCalculation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesCalculation.java index 70b42b0a8..ac2e5c270 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesCalculation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesCalculation.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortMode.java index c9b03c4b4..3152cf3e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java index d1f8467f0..a1f6724f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.SortOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsBuilders.java index facd47a2c..70bdbda8a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link SortOptions} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsVariant.java index 5ca5fcda5..367f576f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link SortOptions} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java index b88600b35..857ddc57d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java index 305b4323e..080b49416 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.StoreStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java index 2d6c3d88b..e4bb2de82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.StoredScript /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java index 7332d826e..6b9573148 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.StoredScriptId /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SuggestMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SuggestMode.java index 4aa95324e..8ff3106a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SuggestMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SuggestMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TaskFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TaskFailure.java index 3eb4e9f44..e3f117f97 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TaskFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TaskFailure.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TaskFailure /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java index 949a1641d..35a269181 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TextEmbedding /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ThreadType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ThreadType.java index c8a43ac42..8bebef17c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ThreadType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ThreadType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Time.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Time.java index ae97518e2..e4bcef500 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Time.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Time.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.Duration /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TimeBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TimeBuilders.java index 651971913..29448e249 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TimeBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TimeBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Time} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TimeUnit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TimeUnit.java index 51fa1772b..6050083e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TimeUnit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TimeUnit.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java index 1dad66a0f..ebbd8e63b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TopLeftBottomRightGeoBounds /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java index 4ccb6019e..60c2463c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TopRightBottomLeftGeoBounds /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Transform.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Transform.java index 8bd4b2b0b..630ce96f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Transform.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Transform.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TransformContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TransformBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TransformBuilders.java index 2f5e51345..6c6e5e09e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TransformBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TransformBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Transform} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TransformVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TransformVariant.java index 7db5cb5a9..9abdb7125 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TransformVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TransformVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Transform} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TranslogStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TranslogStats.java index 62b564c84..1fd5dc2c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TranslogStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TranslogStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TranslogStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/VersionType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/VersionType.java index c7261fff8..ca05b9a43 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/VersionType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/VersionType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForActiveShardOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForActiveShardOptions.java index ae9c348a8..583027d70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForActiveShardOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForActiveShardOptions.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForEvents.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForEvents.java index d7746577d..4dd0005e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForEvents.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForEvents.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WarmerStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WarmerStats.java index 365758ab7..ce4c9fcb0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WarmerStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WarmerStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.WarmerStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java index e837cc92c..7992ed706 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.WktGeoBounds /** 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 dfc77148f..c179f9dc1 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.WriteResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java index 8f781f990..75c73a4e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AdjacencyMatrixAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java index 3eaa567a1..fc0f53c8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AdjacencyMatrixAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java index 5ca8afa51..0a95047d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AdjacencyMatrixBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java index 4da91d505..f2bf9ae81 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.ExternallyTaggedUnion; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.Aggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBase.java index e45a2d326..19f88a630 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AggregateBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java index 58cec4c99..a0aa76d87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Aggregate} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateVariant.java index c3dcd54ba..d9bcbac23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Aggregate} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java index e96d32a20..7a52d03b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AggregationContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java index 2db11117e..5320a33e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.Aggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java index 4e0fd80b8..f35032bf6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Aggregation} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java index 6a0c88104..d7826ed49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AggregationRange /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationVariant.java index 6ea6f22f9..a412e8dd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Aggregation} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java index 35352e11a..e8f1106b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ArrayPercentilesItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java index e2935db16..3d9e1bf02 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Time; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AutoDateHistogramAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java index a7acfd64f..0c35472c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AutoDateHistogramAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java index c43ac5cd4..4c122cb80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AverageAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java index b506beff4..f03ecb6ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AverageBucketAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java index 255057c51..90c2b9470 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AvgAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java index 2f5d5524e..d4959d043 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BoxPlotAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java index 9ffa2ab3f..06573f746 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BoxplotAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java index f75350c05..46043eda6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import jakarta.json.stream.JsonGenerator; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketAggregationBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java index 568c72b43..656e63e80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketCorrelationAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java index aa2449928..63914d982 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketCorrelationFunction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java index 757110ccb..e01217af7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketCorrelationFunctionCountCorrelation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java index 87ce14dcf..72e632784 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketCorrelationFunctionCountCorrelationIndicator /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java index 2eaff70a6..5b2d3d29d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketKsAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketMetricValueAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketMetricValueAggregate.java index 693afda75..c2c855f38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketMetricValueAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketMetricValueAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketMetricValueAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java index ceb42b140..db624a98d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketPathAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java index 1781f11a8..82ece1fa0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketScriptAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java index 642f07424..9b2896be1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketSelectorAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java index b24043943..7e39b692a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.SortOptions; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketSortAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Buckets.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Buckets.java index 04d76ab30..9d28c6db9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Buckets.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Buckets.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.Buckets /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsBuilders.java index 59a4456af..4d2c16455 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Buckets} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPath.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPath.java index 4185ad060..a55d5bd11 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPath.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPath.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketsPath /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPathBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPathBuilders.java index 5d4b7d360..5ae0da8e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPathBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPathBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link BucketsPath} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CalendarInterval.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CalendarInterval.java index d5806df82..199d6ccd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CalendarInterval.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CalendarInterval.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java index 2b56755b5..74b1635bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ChiSquareHeuristic /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java index ade01b678..14d18b02b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ChildrenAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java index bdbeb3b20..9c7fd0152 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ChildrenAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java index a4186c33c..c7bff08d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java index 7643281a6..6d37f9eb8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java index f18ac814d..5600a528f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeAggregationBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java index 6916d1718..f3e7dc6c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeAggregationSource /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java index d0a4af090..3b3ff8fea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java index 9baf2bb00..cae91fc5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Time; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeDateHistogramAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java index 53ded69f6..42f507e59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.GeoBounds; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeGeoTileGridAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java index 8fb5ca271..676a502c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeHistogramAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java index af5130627..d198f7636 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeTermsAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java index 86704d3b9..49009d1e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CumulativeCardinalityAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java index 1666b2ff5..3bbfa9360 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CumulativeCardinalityAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java index 189eeee1b..9dada9a72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CumulativeSumAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java index ffa0d9aed..d8f4ef9eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CustomCategorizeTextAnalyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java index 435ab9362..8a6401a0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateHistogramAggregate /** 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 d45361554..dcc79c260 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateHistogramAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java index f5db7fb49..eb925d7c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateHistogramBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java index 1a41558fc..539c1e932 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateRangeAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java index e0a47460a..3eeeee615 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateRangeAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java index af40b3541..f6e6a8235 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateRangeExpression /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java index 065619569..168f4dff5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DerivativeAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregation.java index d3fcb5d7b..fa5ff0a1d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DerivativeAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java index 4ac3262dc..21d3957e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DiversifiedSamplerAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java index 39d1aa757..ad5ed709e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DoubleTermsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java index 0a96a5e43..7e343bf7c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DoubleTermsBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java index 108da3649..b8be5e5da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.EwmaModelSettings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java index ff32272ee..5350f8f8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.EwmaMovingAverageAggregation /** 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 cb1739631..d008aacd8 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedBounds /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregate.java index a0e22135e..bf0f89543 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedStatsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java index 4bcdd0bea..a3e957afb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedStatsAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java index 6020c33d0..9e2f75ece 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedStatsBucketAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java index 3a6a15ec4..6257c90af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedStatsBucketAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMath.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMath.java index 897859ac2..b1b6f2bde 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMath.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMath.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FieldDateMath /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMathBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMathBuilders.java index 48ed39dd7..d7b8c2fdc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMathBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMathBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link FieldDateMath} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java index bec520510..9b8e65a29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FilterAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java index 5a51c2c6c..b5cd960c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FiltersAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java index cc55fda88..72b0cd4a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FiltersAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java index b3133248b..7d4d92e89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FiltersBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormatMetricAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormatMetricAggregationBase.java index fe10f7f95..0f330e398 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormatMetricAggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormatMetricAggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FormatMetricAggregationBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormattableMetricAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormattableMetricAggregation.java index a26217e69..72c4b6aae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormattableMetricAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormattableMetricAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FormattableMetricAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java index 511baf251..2d72276ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FrequentItemSetsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java index e9d9e2d1f..d44302a5f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FrequentItemSetsAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java index 2bb435b06..ce1e1fd85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FrequentItemSetsBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java index 3439f164f..c443113a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FrequentItemSetsField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GapPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GapPolicy.java index 419a42026..4bf935738 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GapPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GapPolicy.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java index ba0bd3d20..41c37f834 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.PipelineAggregationBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java index 72de34efd..72ee7748c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RangeAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java index b1f2a8a59..ae98f4715 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RangeAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java index 67accb316..36d36113b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RangeBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java index dd2f7f4ea..6aa5dea0b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RareTermsAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java index 760a7eed2..bae249f9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RateAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java index 7746a7aeb..45c0d609d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RateAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateMode.java index 56950e404..1254f1634 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java index 6a38449cf..6df35fae6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ReverseNestedAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java index 06fda3ce2..30399376d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ReverseNestedAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregate.java index 9af3a9754..d8af6f596 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SamplerAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java index 790c34827..f93a9b838 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SamplerAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java index 86937b045..ff947a03b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsInclude.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsInclude.java index b9f13febc..fac69560f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsInclude.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsInclude.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TermsInclude /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsIncludeBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsIncludeBuilders.java index e034dc70c..613875b04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsIncludeBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsIncludeBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TermsInclude} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsPartition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsPartition.java index e691a3207..15929d139 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsPartition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsPartition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TermsPartition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java index 34a1991f3..3fb4ceefc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TestPopulation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java index aff4809ed..0a86676b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch.core.search.HitsMetadata; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopHitsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java index 40a7e457d..f07d1ae5d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.ScriptField; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopHitsAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java index daa20e982..ee4ab8858 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopMetrics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java index 37ce0bfdc..4c76b8958 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopMetricsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java index 138eb84c5..e83c3c05c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.SortOptions; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopMetricsAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java index a63e963cd..31ab70f10 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopMetricsValue /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java index 282f18ffd..221f09193 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.UnmappedRareTermsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java index deab7ff26..4ab95e382 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.UnmappedSamplerAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java index 538054895..6bded6bc0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.UnmappedSignificantTermsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java index 411826800..005f3ebec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.UnmappedTermsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java index fe3c035fb..dfc389349 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ValueCountAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java index cc2e1b79a..dc95726b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ValueCountAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueType.java index 6d762e60c..97ade1815 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinition.java index e2d49ab99..0a07e43bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CharFilterDefinition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionBuilders.java index 8cd7b7963..97d9bc821 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link CharFilterDefinition} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionVariant.java index 319d77bfb..4935ffc2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link CharFilterDefinition} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java index b10684ffc..0c44bd1ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CharGroupTokenizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java index eb32dfa35..059445d40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CommonGramsTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CompoundWordTokenFilterBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CompoundWordTokenFilterBase.java index e6e73bfd5..68cf0afe3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CompoundWordTokenFilterBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CompoundWordTokenFilterBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CompoundWordTokenFilterBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java index 1bded00de..725eaeaa1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.elasticsearch._types.Script; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.ConditionTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java index 4df704c2b..c92cfdf6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CustomAnalyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java index 4f9588168..ba2b6c4fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CustomNormalizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadEncoding.java index 869115c31..dd8d7b596 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadEncoding.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LanguageAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LanguageAnalyzer.java index 148e53414..af4a4aced 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LanguageAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LanguageAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LanguageAnalyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java index 0d6f69e13..8b4f51409 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LengthTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java index fc4ee32f2..6169a79d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LetterTokenizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java index e035c944d..eb0e0468e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LimitTokenCountTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java index 5720801a6..fa1128603 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LowercaseNormalizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java index 139725bd0..c77f9797c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LowercaseTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java index 9e62554b8..cd0560506 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LowercaseTokenizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java index ea69ce323..8b622f27a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.MappingCharFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java index 8a221a22d..3cb4fbc0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.MultiplexerTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java index a499fd734..57809563b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.NGramTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java index 77061085b..d7b874c81 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.NGramTokenizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java index a0c6b6562..4e4c0f6a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.NoriAnalyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriDecompoundMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriDecompoundMode.java index 69432113a..cd38d998a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriDecompoundMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriDecompoundMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilter.java index ad378e8e6..3f1be7568 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBase.java index b245883a7..b7e20e60e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenFilterBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBuilders.java index 5dbb700f9..36876a3cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TokenFilter} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java index 47f16358a..0c4bfdd57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenFilterDefinition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java index 2729b8e69..3219daec5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TokenFilterDefinition} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionVariant.java index 300b3d7cd..b52c6c4a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link TokenFilterDefinition} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Tokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Tokenizer.java index 551ea6818..028e3e600 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Tokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Tokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.Tokenizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBase.java index b4ae6313e..8f5a47d94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenizerBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBuilders.java index 5cad6c035..983680fc2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Tokenizer} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinition.java index 270dd798f..6c1c9e4cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenizerDefinition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionBuilders.java index 40ea87537..3861c49c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TokenizerDefinition} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionVariant.java index d858803dc..57868aa86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link TokenizerDefinition} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java index 2f473ecb9..71cc22738 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TrimTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java index c297f59f1..e3d783a77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TruncateTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java index 7b27a100c..3781e52e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.UaxEmailUrlTokenizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java index b3ebaf560..95ea4e631 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.UniqueTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java index 397c6e2d9..7e64d0ba7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.UppercaseTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java index 6618f2993..4cab1b870 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.WhitespaceAnalyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java index 47d91b8d4..997a15eee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.WhitespaceTokenizer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java index 895538835..e6b92b46e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.WordDelimiterGraphTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java index 0d6c11a5a..fb98273e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.WordDelimiterTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java index 1e096fd88..6dbbca3a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.AggregateMetricDoubleProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java index 062331a74..66c901f75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.AllField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java index 98c37842a..e8f26b4b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.BinaryProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java index 847298073..06967d0e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch.indices.NumericFielddata; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.BooleanProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ByteNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ByteNumberProperty.java index 0e68ee36e..107a56fef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ByteNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ByteNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.ByteNumberProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java index d2740f681..9519b6f68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.CompletionProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java index cb8a3cbaa..10aa443e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonData; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.ConstantKeywordProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CorePropertyBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CorePropertyBase.java index c72887473..fef280357 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CorePropertyBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CorePropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.CorePropertyBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java index f5663bbaf..05e315db7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DataStreamTimestamp /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java index ebf45d55d..75e8993e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DateNanosProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateProperty.java index a0aba2e12..200dd9202 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch.indices.NumericFielddata; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DateProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateRangeProperty.java index e128a89b5..bafeed5dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DateRangeProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java index 623af03dd..b25057df5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DenseVectorIndexOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java index 2d2ee7345..13ca8b819 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DenseVectorProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DocValuesPropertyBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DocValuesPropertyBase.java index abe737d3d..e4951f0c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DocValuesPropertyBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DocValuesPropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DocValuesPropertyBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java index 208e96189..ec3c92e18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DoubleNumberProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java index 0731bcee5..0f6c63040 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DoubleRangeProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicMapping.java index fbbd17d2f..8ad82f3bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicMapping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; @@ -29,6 +25,21 @@ import co.elastic.clients.json.JsonpMapper; import jakarta.json.stream.JsonGenerator; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java index 65c31e308..d3e5d2024 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.FlattenedProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java index 8c4fa0a74..5834ff284 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.FloatNumberProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java index 9478c0c76..750247656 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.FloatRangeProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoOrientation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoOrientation.java index d9e493141..769276ffc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoOrientation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoOrientation.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HalfFloatNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HalfFloatNumberProperty.java index b3103bc8f..f64684660 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HalfFloatNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HalfFloatNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.HalfFloatNumberProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java index 7f816c50f..f20c76f04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.HistogramProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexField.java index 8d3e59727..3bcae0b83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IndexField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexOptions.java index 5b1d71fc3..3431165bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexOptions.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java index 5906b6629..2d038d824 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IntegerNumberProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java index 050481bdf..d98b7b117 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IntegerRangeProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java index 2edb1727b..264101c82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch._types.Script; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IpProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpRangeProperty.java index 35ade3ea1..c9b074aa6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IpRangeProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java index 973573482..24a820e72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.JoinProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java index 299b1757b..1442a3279 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.KeywordProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongNumberProperty.java index 87c2bfe4f..f53cb87a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.LongNumberProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java index ff289b4fc..72566225c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.LongRangeProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java index 4e26080fb..e74c6c88e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.MatchOnlyTextProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchType.java index 4f50aaa6b..465e1b6eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java index 3bcf85241..4fa64a614 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.Murmur3HashProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java index a9204cbf5..203b4395a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.NestedProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NumberPropertyBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NumberPropertyBase.java index add816ebc..474f3aef8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NumberPropertyBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NumberPropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch._types.Script; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.NumberPropertyBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java index 3540d329b..4d281df08 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.ObjectProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/OnScriptError.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/OnScriptError.java index 42a1b12a3..0e6776083 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/OnScriptError.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/OnScriptError.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java index f5373269a..bd3625e41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.PercolatorProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java index 2a6a679ed..844e66ce8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.PointProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java index 38551035e..133c0960d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.Property /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBase.java index 8164f9b66..bb366a817 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.PropertyBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java index 6c8ad3a6f..2d7612b93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Property} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyVariant.java index 133475261..485c6af6f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Property} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RangePropertyBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RangePropertyBase.java index 8a9d37afa..74b06609b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RangePropertyBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RangePropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RangePropertyBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeatureProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeatureProperty.java index dba48d6fa..79803e323 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeatureProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeatureProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RankFeatureProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java index fe6e5e3e6..bc6e90116 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RankFeaturesProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java index d94709311..750a6ad37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RoutingField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java index fb2a8a1b4..27c57ea8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch._types.Script; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RuntimeField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java index d2cde31ce..f7f37a43d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RuntimeFieldFetchFields /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java index 693a98c35..d483387ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java index bf6c52eab..a2869693b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.VersionType; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.LikeDocument /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java index 6e71ae50d..6f7e3bf13 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchAllQuery /** 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 index 663313730..e905e67e2 100644 --- 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchBoolPrefixQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java index a0206a3e7..312b66b1f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchNoneQuery /** 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 index 561818081..af98edf8b 100644 --- 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchPhrasePrefixQuery /** 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 index 44fe630d4..ee3340645 100644 --- 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchPhraseQuery /** 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 index 172c36fb5..1bd44d100 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchQuery /** 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 812e6df80..d7a107e34 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.VersionType; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MoreLikeThisQuery /** 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 dc1df0b8f..243b4ecbf 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MultiMatchQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java index 8d6344c4b..df1a630e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java @@ -17,16 +17,27 @@ * 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.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java index 3e08a410c..2d09f63fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.ParentIdQuery /** 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 623989d37..2f2506eb2 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 @@ -17,10 +17,6 @@ * 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.JsonData; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.PercolateQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java index bafb52e4e..5e3850517 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.PinnedDoc /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java index 1a79631da..844a4723a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java @@ -17,10 +17,6 @@ * 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.JsonEnum; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.PinnedQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryBuilders.java index 77998b8d2..5aa9adb4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link PinnedQuery} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryVariant.java index c36df488b..39e4cbc6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link PinnedQuery} variants. */ 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 index 402711b7b..c175451ea 100644 --- 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.PrefixQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index 8c47419fb..39f97355a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.aggregations.Aggregation; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.QueryContainer /** 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 08a644b63..329c0274a 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.QueryBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java index 3159ed383..347f8328e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Query} variants. */ 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 a52a74059..b18899695 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.QueryStringQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryVariant.java index 3acd0322a..ee3c15ce1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Query} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java index 9eba95bbb..688e8782f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.RandomScoreFunction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java index de209a9d9..162b789a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java @@ -17,10 +17,6 @@ * 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.JsonData; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.RangeQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java index c92100207..07b4adb69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.RangeQueryBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java index 37ded879c..b892d0c63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java @@ -17,16 +17,27 @@ * 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.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see 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 index c15a5cb29..5d4895db3 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.Script; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.TermsSetQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java index f47f05b29..1e7956f76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.TextExpansionQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextQueryType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextQueryType.java index 8b6fee9fc..3c9c4fbe6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextQueryType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextQueryType.java @@ -17,16 +17,27 @@ * 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.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatDfaColumn.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatDfaColumn.java index 982307058..118a105d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatDfaColumn.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatDfaColumn.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatRequestBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatRequestBase.java index 14948ca5d..d02546520 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatRequestBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatRequestBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.RequestBase; @@ -33,6 +29,21 @@ import jakarta.json.stream.JsonGenerator; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat._types.CatRequestBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatTrainedModelsColumn.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatTrainedModelsColumn.java index f85001ca1..1c36d2129 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatTrainedModelsColumn.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatTrainedModelsColumn.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java index 56f1f6de9..4ef3071fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.component_templates.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesResponse.java index d168f628e..15114b523 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.component_templates.ComponentTemplate; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.component_templates.Response /** 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 ab705c297..52bf74d58 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.count.Request /** 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 af802ef7a..78cfd4557 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.count.CountRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.count.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java index 4f6d6bbd2..7ad0f01af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the cat namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java index 615dcff9a..dfe709fc3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the cat namespace. */ 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 3698de1da..ca611a8dd 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -43,6 +39,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.fielddata.Request /** 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 ed390a9ab..887a350fe 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.fielddata.FielddataRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.fielddata.Response /** 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 5696e8fc6..14e470a02 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.health.Request /** 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 732433dbe..447083fda 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.health.HealthRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.health.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java index 8a29eac44..31ba6cd91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -37,6 +33,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.help.Request /** 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 aa28b4005..0edc100ee 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.help.HelpRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.help.Response /** 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 43bc9771d..d6850e2cc 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.indices.Request /** 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 17d4316a9..f0e2558ec 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.indices.IndicesRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.indices.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java index b3646eb18..a09b64c8c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -37,6 +33,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.master.Request /** 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 19f69eb63..fdc80bdc7 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.master.MasterRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.master.Response /** 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 index e1906df5c..dd8b956b4 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_data_frame_analytics.Request /** 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 index 81332ff25..b547f32f9 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_data_frame_analytics.Response /** 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 index 28c9c5b15..965c5f017 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_datafeeds.Request /** 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 index 7e89a3b54..1d35967b1 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_datafeeds.Response /** 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 index e012626ce..9060217ce 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_jobs.Request /** 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 index 05db9235d..7a1de8ca0 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_jobs.Response /** 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 index 627354866..c6979c9e6 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_trained_models.Request /** 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 index f64e68c20..3856ece04 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_trained_models.Response /** 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 index 1fc9c8506..ff67cd5ba 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -37,6 +33,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.nodeattrs.Request /** 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 index f7fd40d38..12654ecb1 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.nodeattrs.Response /** 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 8f9cdbeab..eda8fcae2 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.nodes.Request /** 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 b0831cd90..cefb8023a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.nodes.NodesRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.nodes.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java index c98cd94e9..7095174f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -37,6 +33,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.pending_tasks.Request /** 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 663a3099f..c1ff28284 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.pending_tasks.PendingTasksRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.pending_tasks.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java index 9a269c258..ffd877211 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -37,6 +33,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.plugins.Request /** 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 d90796f4b..8b08cd3d1 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.plugins.PluginsRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.plugins.Response /** 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 494566743..db204aefc 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.recovery.Request /** 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 0a23458f1..208931bdc 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.recovery.RecoveryRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.recovery.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java index dc6074e6e..28e9bc101 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -37,6 +33,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.repositories.Request /** 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 6b6c53bdd..2a3948b95 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.repositories.RepositoriesRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.repositories.Response /** 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 69757c181..a6f59451c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -43,6 +39,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.segments.Request /** 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 07b66471d..0a0ee88dd 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.segments.SegmentsRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.segments.Response /** 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 72e73aabd..06a51f901 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -43,6 +39,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.shards.Request /** 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 207a8cd07..c52d1ca80 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.shards.ShardsRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.shards.Response /** 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 9e97811ea..a9754e6ff 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.snapshots.Request /** 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 8cf55bd43..bad795aa6 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.snapshots.SnapshotsRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.snapshots.Response /** 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 d171332c8..e55ebc5f5 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.tasks.Request /** 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 b487dc9e2..9d5fca36c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.tasks.TasksRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.tasks.Response /** 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 5fd596da4..1267256b7 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.templates.Request /** 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 9c3771680..b06a6138d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.templates.TemplatesRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.templates.Response /** 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 a74cca0d4..d7637ab97 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.thread_pool.Request /** 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 85e5044d9..0034b760b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.thread_pool.ThreadPoolRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.thread_pool.Response /** 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 aa26799fc..57f5590ae 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.transforms.Request /** 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 7cd36718e..64572a96a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.transforms.TransformsRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.transforms.Response /** 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 b64855b6d..31ca2eb7a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.aliases; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.aliases.AliasesRecord /** 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 fa764c859..5424dfa69 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.allocation; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.allocation.AllocationRecord /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java index dbd3c72bd..153c8374d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.component_templates; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.component_templates.ComponentTemplate /** 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 8d71e1f70..0064ae52a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.count; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.count.CountRecord /** 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 f164fe6c7..9e3a98656 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.fielddata; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.fielddata.FielddataRecord /** 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 a68833de5..a24ada313 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.health; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.health.HealthRecord /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/help/HelpRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/help/HelpRecord.java index caabffaa7..5c193bb45 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/help/HelpRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/help/HelpRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.help; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.help.HelpRecord /** 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 86f24d762..82fac33f4 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.indices.IndicesRecord /** 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 2bb23f9f0..91efee95d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.master; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.master.MasterRecord /** 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 index 213fe29fb..9b5047c63 100644 --- 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_data_frame_analytics.DataFrameAnalyticsRecord /** 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 index ef262d424..2e46bcda7 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.ml_datafeeds; import co.elastic.clients.elasticsearch.ml.DatafeedState; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_datafeeds.DatafeedsRecord /** 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 index b3094fd46..28bdab4dc 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.ml_jobs; import co.elastic.clients.elasticsearch.ml.CategorizationStatus; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_jobs.JobsRecord /** 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 index 59bcf7112..299e075f2 100644 --- 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 @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_trained_models.TrainedModelsRecord /** 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 index 080c32175..5f44f5add 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.nodeattrs; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.nodeattrs.NodeAttributesRecord /** 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 630756924..01f9d1c6b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.nodes.NodesRecord /** 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 bdd5d7ee2..72559339f 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.pending_tasks; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.pending_tasks.PendingTasksRecord /** 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 0cf05faf4..5d528ce1b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.plugins; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.plugins.PluginsRecord /** 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 13929e44c..e027d09e4 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.recovery; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.recovery.RecoveryRecord /** 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 49cd10680..27dc42463 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.repositories; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.repositories.RepositoriesRecord /** 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 7bc5e256c..24dae88f3 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.segments; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.segments.SegmentsRecord /** 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 3e55821a1..c24333415 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.shards; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.shards.ShardsRecord /** 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 f8855c030..9226255fc 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.snapshots; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.snapshots.SnapshotsRecord /** 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 8c0ba174e..2b07ea27d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.tasks; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.tasks.TasksRecord /** 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 f9945e20e..e9ddfaba5 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.templates; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.templates.TemplatesRecord /** 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 8054d0446..896bf00eb 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.thread_pool; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.thread_pool.ThreadPoolRecord /** 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 02d49daf1..ea0f436fb 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.transforms; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.transforms.TransformsRecord /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java index 26999c5a5..76bca7dc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsResponse.java index 820a7dc0d..836da08d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch.ccr.stats.AutoFollowStats; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.stats.Response /** 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 24d91d91a..342fbf5a7 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.delete_auto_follow_pattern.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternResponse.java index 35928e438..fd15f5d19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternResponse.java @@ -17,10 +17,6 @@ * 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; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.delete_auto_follow_pattern.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java index 9606a118f..8b1852817 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ccr namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java index e33f4c553..97c8e0c42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ccr namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowIndexStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowIndexStats.java index e3a4448e7..747e44042 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowIndexStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowIndexStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr._types.FollowIndexStats /** 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 24358c82f..7fcf2db5b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.follow_info.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoResponse.java index dc27b3436..c8dcecc70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch.ccr.follow_info.FollowerIndex; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.follow_info.Response /** 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 index 7c641026b..00c09ef9b 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.follow.Request /** 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 index 7cf1c0882..be42edc00 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.follow.Response /** 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 index 233def2c8..9311a92fb 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.follow_stats.Request /** 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 index d25e99779..50ffd0d7d 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.follow_stats.Response /** 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 index 89300b1b5..4f61622ed 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.forget_follower.Request /** 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 index 3890a2b7f..8cc576dc6 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.forget_follower.Response /** 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 80e71113c..8703d5b66 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.get_auto_follow_pattern.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternResponse.java index e1e38fa65..59ebdc210 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch.ccr.get_auto_follow_pattern.AutoFollowPattern; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.get_auto_follow_pattern.Response /** 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 cd56942f3..1773672eb 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.pause_auto_follow_pattern.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternResponse.java index f92c21eb4..046371566 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternResponse.java @@ -17,10 +17,6 @@ * 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; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.pause_auto_follow_pattern.Response /** 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 index 0313f07ad..6b288baf1 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.pause_follow.Request /** 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 index f865024a8..376b8689f 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.pause_follow.Response /** 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 db94d4bbd..69e13c60f 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.put_auto_follow_pattern.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternResponse.java index 7779b5c4e..4a5daeee0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternResponse.java @@ -17,10 +17,6 @@ * 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; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.put_auto_follow_pattern.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ReadException.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ReadException.java index 5bd51d582..322df0668 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ReadException.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ReadException.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr._types.ReadException /** 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 5bd47b266..3ebcb2bef 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.resume_auto_follow_pattern.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternResponse.java index d8643396f..99e537b7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternResponse.java @@ -17,10 +17,6 @@ * 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; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.resume_auto_follow_pattern.Response /** 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 index 13ccecf9a..44594ad40 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.resume_follow.Request /** 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 index 727ddb6b7..9bc995b0a 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.resume_follow.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ShardStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ShardStats.java index 77935d2b1..57a7c7151 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ShardStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ShardStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr._types.ShardStats /** 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 index f97957fd5..7ce510c12 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.unfollow.Request /** 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 index 40d878a66..f4e851f7c 100644 --- 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 @@ -17,10 +17,6 @@ * 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; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.unfollow.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndex.java index 13fe9a69a..e76d3844e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr.follow_info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.follow_info.FollowerIndex /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexParameters.java index 76e345d61..cd9fc3ed2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexParameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr.follow_info; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ccr.follow_info.FollowerIndexParameters /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexStatus.java index f4ea0a03b..7e47b7710 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ccr.follow_info; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java index feb73b4d7..ce0fa4347 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.elasticsearch._types.Script; @@ -43,6 +39,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.UpdateAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java index 425f9757d..0becb3367 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.UpdateOperation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java index 00e98102f..edb954583 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.WriteOperation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java index 95bb4ebb9..ed2d596bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.explain; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.explain.Explanation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java index a6610fac3..ca36bbd04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.explain; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.explain.ExplanationDetail /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java index b5875ff0a..63ab64800 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.field_caps; import co.elastic.clients.elasticsearch._types.mapping.TimeSeriesMetricType; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.field_caps.FieldCapability /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get/GetResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get/GetResult.java index 8b62ea098..43bbc8e8b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get/GetResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get/GetResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.get; import co.elastic.clients.json.JsonData; @@ -46,6 +42,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get.GetResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/Context.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/Context.java index 8067c848a..eb7ca93cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/Context.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/Context.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.get_script_context; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get_script_context.Context /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethod.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethod.java index ae38a99e2..68a64e83a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethod.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethod.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.get_script_context; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get_script_context.ContextMethod /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethodParam.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethodParam.java index c46dc6a7f..afed703a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethodParam.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethodParam.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.get_script_context; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get_script_context.ContextMethodParam /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_languages/LanguageContext.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_languages/LanguageContext.java index e94c88de5..4533ef76c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_languages/LanguageContext.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_languages/LanguageContext.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.get_script_languages; import co.elastic.clients.elasticsearch._types.ScriptLanguage; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get_script_languages.LanguageContext /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/BaseIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/BaseIndicator.java index 2dee6ac43..c41e0cb37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/BaseIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/BaseIndicator.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.health_report.BaseIndicator /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java index 3336a48f8..05383c41f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.health_report.Diagnosis /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java index 7f868a315..2e7bb3d14 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.health_report.DiagnosisAffectedResources /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java index 1001d0bf9..e4ee1ca55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.json.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.health_report.DiskIndicator /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java index a3c42028e..e516080b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.health_report.DiskIndicatorDetails /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java index 779a2a0f7..98483a089 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.json.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.health_report.IlmIndicator /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java index 2d0c55509..36395e4dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.elasticsearch._types.LifecycleOperationMode; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.health_report.IlmIndicatorDetails /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java index bba896b32..caf263087 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.health_report.Impact /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ImpactArea.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ImpactArea.java index 43444b866..b1b96a73c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ImpactArea.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ImpactArea.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.health_report; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java index 6e0fa785a..577090650 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.elasticsearch._types.SuggestMode; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.DirectGenerator /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java index 5566038b5..5d3d96187 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FetchProfile /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java index ae5f261f9..5536fbed6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FetchProfileBreakdown /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java index 18c974557..000dafda0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FetchProfileDebug /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java index 9ac16f73c..074b875be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FieldCollapse /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggester.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggester.java index ab7139545..769fd4573 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggester.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggester.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonData; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FieldSuggester /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterBuilders.java index 3edf3c006..df4d38627 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link FieldSuggester} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterVariant.java index 89b4bbdd7..a498d1282 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link FieldSuggester} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java index ea4b2c6d0..ece294b7f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.Highlight /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java index 2326f41b2..7b9a6e3ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.HighlightBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java index 08c5ec75c..42c469861 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.elasticsearch._types.analysis.Analyzer; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.HighlightField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterEncoder.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterEncoder.java index c2479191e..b4268ce53 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterEncoder.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterEncoder.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParam.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParam.java index c9b2d7b9e..591e49035 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParam.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParam.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.SourceConfigParam /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParamBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParamBuilders.java index bdb4b8ed9..ae49ea9bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParamBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParamBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link SourceConfigParam} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java index 401ee8c77..fedb88c1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.SourceFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/StringDistance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/StringDistance.java index 8009d1acd..bb5b6d8e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/StringDistance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/StringDistance.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_mvt/GridAggregationType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_mvt/GridAggregationType.java index 2f9bc4b9c..a347b28f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_mvt/GridAggregationType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_mvt/GridAggregationType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search_mvt; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java index 60bb42209..83e037115 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java index 09ef900dc..5bb010144 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch.enrich.stats.CacheStats; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java index cb22ecebc..d87db06e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich._types.Summary /** 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 541ac4f7f..1623ad63c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.execute_policy.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java index f7d54009c..92a390c65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch.enrich.execute_policy.ExecuteEnrichPolicyStatus; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.execute_policy.Response /** 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 67c7de99f..11d5ce276 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.get_policy.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyResponse.java index 87ff700c0..1f87d2cc0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.get_policy.Response /** 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 d66b72551..6f7d87a50 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.put_policy.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyResponse.java index 4f336ce29..dc1f57db4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.put_policy.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/EnrichPolicyPhase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/EnrichPolicyPhase.java index 47f012902..afe15042b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/EnrichPolicyPhase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/EnrichPolicyPhase.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich.execute_policy; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesAsyncClient.java index 7a09efaa4..1c8e84d32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.features; import co.elastic.clients.ApiClient; @@ -33,6 +29,21 @@ import java.util.concurrent.CompletableFuture; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the features namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesClient.java index 4b7ba303a..966d0072f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.features; import co.elastic.clients.ApiClient; @@ -34,6 +30,21 @@ import java.io.IOException; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the features namespace. */ 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 index b84fb0268..ea3c37094 100644 --- 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.features; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: features._types.Feature /** 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 54bf8a2ce..605b769ee 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.features; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: features.get_features.Request /** 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 815cce52d..3b20057dc 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.features; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: features.get_features.Response /** 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 36fa758f5..970689148 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.features; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: features.reset_features.Request /** 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 4cc037780..1ef1eff89 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.features; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: features.reset_features.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetAsyncClient.java index 348aa27ea..bc6fbd675 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.fleet; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the fleet namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetClient.java index 9391100e8..ef8e107e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.fleet; import co.elastic.clients.ApiClient; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the fleet namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java index cc9b133f1..02cc64618 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.fleet; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -69,6 +65,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: fleet.search.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchResponse.java index b8dbfb329..88d207d01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.fleet; import co.elastic.clients.elasticsearch._types.ClusterStatistics; @@ -55,6 +51,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: fleet.search.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java index 057ba01ac..91c1fda17 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.Connection /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java index 98e991014..4ec0027ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the graph namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java index e80a0ae3a..e4ac20955 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the graph namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java index 771eae23b..80534cc9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.ExploreControls /** 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 cfb0047d6..601f88927 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph.explore.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreResponse.java index 1c6e18253..0631b2350 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.elasticsearch._types.ShardFailure; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph.explore.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java index 8bd2128df..8429c193a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.Hop /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java index 0cc1cbe7d..f4f61e711 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.SampleDiversity /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java index d1a50125f..6322fcd31 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.Vertex /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java index ccc9ac717..f06ac89af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.VertexDefinition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java index 4437ef96f..04c7203c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.VertexInclude /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Configurations.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Configurations.java index e50405269..7110d45ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Configurations.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Configurations.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch.indices.rollover.RolloverConditions; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm._types.Configurations /** 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 b3b6c1525..ddc52159a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.delete_lifecycle.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleResponse.java index 7f179dd3b..31198a4e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.delete_lifecycle.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java index a5f320635..d574df141 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ilm namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java index 2c22b4ecd..b8d8d5bf7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ilm namespace. */ 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 9c4e5cde9..1f0884e87 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.explain_lifecycle.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleResponse.java index ec1a8d7fb..cdb44b915 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch.ilm.explain_lifecycle.LifecycleExplain; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.explain_lifecycle.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ForceMergeConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ForceMergeConfiguration.java index 7aea99f2f..6fd3dd6ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ForceMergeConfiguration.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ForceMergeConfiguration.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm._types.ForceMergeConfiguration /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusRequest.java index 55e5dd66f..656d6d1e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.get_status.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusResponse.java index 5b151c9f3..4320b80bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetIlmStatusResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.LifecycleOperationMode; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.get_status.Response /** 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 31f477077..7affc2ee2 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.get_lifecycle.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleResponse.java index e19b33a33..14dc31646 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch.ilm.get_lifecycle.Lifecycle; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.get_lifecycle.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/IlmPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/IlmPolicy.java index 8889022f6..f0c8ce473 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/IlmPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/IlmPolicy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm._types.Policy /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java index 6f1057961..9dc3bdf94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.migrate_to_data_tiers.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersResponse.java index 07e5c7e46..c1c1b5f4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.migrate_to_data_tiers.Response /** 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 0d02debb2..c178272d7 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.move_to_step.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepResponse.java index 010635f0f..c95d1d47c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.move_to_step.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phase.java index 86ab60b8c..a3d93a9b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.Time; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm._types.Phase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phases.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phases.java index 45fa54c35..7cf352694 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phases.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phases.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm._types.Phases /** 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 75a0a8d25..5766c5f74 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.put_lifecycle.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleResponse.java index 59da5a058..59aab2bc9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.put_lifecycle.Response /** 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 efa1d2c85..317d01f54 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.remove_policy.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyResponse.java index 07b3d3e54..65bd8e54f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.remove_policy.Response /** 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 7b1335c1a..0c261f62a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.retry.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryResponse.java index 6c81616c7..36c5f2b66 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.retry.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ShrinkConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ShrinkConfiguration.java index b59f41839..acff9f3fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ShrinkConfiguration.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ShrinkConfiguration.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm._types.ShrinkConfiguration /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java index eb8ce80a8..69488af3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.start.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmResponse.java index f569c3038..92cb9f8c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.start.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java index d23df9c59..91dbc8e13 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.stop.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmResponse.java index b1fde396d..f4ab3caf5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.stop.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplain.java index 44c296c83..61c58518a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplain.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplain.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm.explain_lifecycle; import co.elastic.clients.json.JsonEnum; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.explain_lifecycle.LifecycleExplain /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainBuilders.java index 437bcff8a..2a2b3a826 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm.explain_lifecycle; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link LifecycleExplain} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainManaged.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainManaged.java index ecf5ccdb0..c6d11c438 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainManaged.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainManaged.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm.explain_lifecycle; import co.elastic.clients.elasticsearch._types.Time; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.explain_lifecycle.LifecycleExplainManaged /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainPhaseExecution.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainPhaseExecution.java index 21e05e3df..181025ee1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainPhaseExecution.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainPhaseExecution.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm.explain_lifecycle; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.explain_lifecycle.LifecycleExplainPhaseExecution /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainUnmanaged.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainUnmanaged.java index 3d72f48b3..b792e452c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainUnmanaged.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainUnmanaged.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm.explain_lifecycle; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.explain_lifecycle.LifecycleExplainUnmanaged /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainVariant.java index 5ce5d487b..9f543117e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm.explain_lifecycle; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link LifecycleExplain} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/get_lifecycle/Lifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/get_lifecycle/Lifecycle.java index d38b1ae8b..e59504d86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/get_lifecycle/Lifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/get_lifecycle/Lifecycle.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm.get_lifecycle; import co.elastic.clients.elasticsearch.ilm.IlmPolicy; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.get_lifecycle.Lifecycle /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/move_to_step/StepKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/move_to_step/StepKey.java index ccd72ebc7..2ab46ab63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/move_to_step/StepKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/move_to_step/StepKey.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ilm.move_to_step; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ilm.move_to_step.StepKey /** 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 1a06ec1fa..0ed0fb241 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.add_block.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockResponse.java index 79dc5a497..c25c87be1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.add_block.Response /** 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 ea3cc1caf..8c0790e01 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.Alias /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java index 619b808d8..85365490e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.AliasDefinition /** 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 aadb9a1f7..a53cc84ad 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeResponse.java index 4d4a5ecf9..dc61d9e70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.analyze.AnalyzeDetail; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java index 4f56739c2..e8e882782 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.CacheQueries /** 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 6cd9eb820..86e774c2b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.clear_cache.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheResponse.java index 7decb3056..f664d4d9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ShardsOperationResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.clear_cache.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java index 9ea351431..78c58675a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.clone.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexResponse.java index ad16c39e5..fed896fbb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.clone.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java index 8f4df6b98..cf7fc3538 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.close.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexResponse.java index 8c9664ada..c4496e90f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.close.Response /** 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 05c23df8d..79ae44f41 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.create_data_stream.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamResponse.java index 91eb66afd..9b5e2b043 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.create_data_stream.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java index e6089255a..8f227b173 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.create.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexResponse.java index 808311ca1..1eb6fe168 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.create.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java index fd84a51a7..eeafd3aed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.HealthStatus; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStream /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java index 97ef044ba..b0868fc50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamIndex /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycle.java index 9e271ed27..d3d6f4040 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycle.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamLifecycle /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java index fa06490dc..b1f5696c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamLifecycleDownsampling /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java index 42e1ec3f5..96605215d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamLifecycleRolloverConditions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java index aaa5b76b8..d1eb39b7f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamLifecycleWithRollover /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java index f1a1e2c40..ae0ea8287 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamTimestampField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java index 67c9a6b4c..9f562c19d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamVisibility /** 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 678a91d9b..4c4295eda 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.data_streams_stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java index 1ac433188..021fbc31b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.data_streams_stats.Response /** 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 4c9857640..379766b9e 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_alias.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasResponse.java index 56a56443b..1255191ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_alias.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java index 4ab9bbc36..8da922024 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_data_lifecycle.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java index 86ab655f3..e1f782794 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_data_lifecycle.Response /** 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 1e5f101b3..a8cb9e4f4 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_data_stream.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamResponse.java index 5429591b1..a31ed5d30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_data_stream.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java index 6247195db..a82af788c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexResponse.java index 3370b1d56..9a982fd93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.IndicesResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete.Response /** 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 6c3516d64..7533511ef 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_index_template.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateResponse.java index fada7580b..521988450 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_index_template.Response /** 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 20971b748..0a796dac6 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_template.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateResponse.java index 4a5dbdb5f..1e7e2e120 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_template.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java index c1ba4255c..eebe6a7ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.disk_usage.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageResponse.java index 15e884ebb..48101c974 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.disk_usage.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java index 3c42636eb..0b9f04da8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DownsampleConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java index 3732c2628..3434cb100 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.downsample.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleResponse.java index de6c8c60d..a531ff63f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.downsample.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java index 924cb327f..047b3a94c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DownsamplingRound /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index 01d9d4879..73949abd1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the indices namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java index 3ad23718c..3baaab018 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the indices namespace. */ 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 f7da54657..63a5accac 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.exists_alias.Request /** 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 c8600fd8d..f204a6986 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.exists_index_template.Request /** 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 e49e82a04..351959e8c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.exists.Request /** 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 380c4ebde..0920bcc0d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.exists_template.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java index c9117b4e4..0de719315 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.explain_data_lifecycle.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java index 422f772a8..e8b06c9de 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.explain_data_lifecycle.DataStreamLifecycleExplain; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.explain_data_lifecycle.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java index a559e3c7d..27cd7608f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.field_usage_stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsResponse.java index 555df8b0e..36bdac02d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.field_usage_stats.FieldsUsageBody; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.field_usage_stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java index 0e783a701..f197b6bf0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.FielddataFrequencyFilter /** 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 ff8a34d3b..cc937d327 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.flush.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushResponse.java index 41f8c57a4..304581b8c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ShardsOperationResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.flush.Response /** 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 598569ae7..2eb961c31 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.forcemerge.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeResponse.java index 7a5a382b4..05968dea3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.forcemerge.ForceMergeResponseBody; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.forcemerge.Response /** 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 d8b7b1f82..6a93c4c30 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_alias.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java index e4516e3ff..07a00f9c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_alias.IndexAliases; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_alias.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java index e76db1480..1c05dd329 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_lifecycle.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java index bd87eaa4b..b770acbe5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_data_lifecycle.DataStreamWithLifecycle; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_lifecycle.Response /** 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 1ba10dce6..ebf90196a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_stream.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamResponse.java index d52549e5e..3c7fa5d83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_stream.Response /** 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 294260e42..8e12878f8 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_field_mapping.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingResponse.java index e907fe5e4..9c1dfb382 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_field_mapping.TypeFieldMappings; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_field_mapping.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java index a664fdc1c..8cafaeecb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java index 1e313eded..0eb9e9f14 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get.Response /** 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 68a2e269f..310aa2053 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_index_template.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateResponse.java index 080b73319..a098f2ba7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_index_template.IndexTemplateItem; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_index_template.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java index c07d5e8a3..3272fe22a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_settings.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java index ba5c5682f..4bbe6b441 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_settings.Response /** 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 e25b1d52a..26f6866f8 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_mapping.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java index 997c89694..5d88a4fed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_mapping.IndexMappingRecord; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_mapping.Response /** 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 85ef8c5c5..2bd84c87f 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_template.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateResponse.java index 71d677396..60927ea63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_template.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexCheckOnStartup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexCheckOnStartup.java index 79ee0cdb6..f26073eec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexCheckOnStartup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexCheckOnStartup.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortOrder.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortOrder.java index d140c205b..565f50904 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortOrder.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortOrder.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API 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 9d2d3e4da..4f980c067 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.segments.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsResponse.java index f5a73e45d..aed9e5765 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.segments.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java index bf5c279f7..eb547c319 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsAnalyze /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java index ea4a0b236..5148f36e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsHighlight /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java index 6809169c3..4251c53c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsQueryString /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java index ab9651dc8..94ab24661 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSearch /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java index 52c7e9ef9..7f3110357 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarity /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java index b585f302a..e9cf76fb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityBm25 /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java index 3c9367797..400b33b01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.DFIIndependenceMeasure; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityDfi /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java index f853ca001..74f0f44ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.DFRAfterEffect; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityDfr /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java index 185bb5e3b..f866dbfad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.IBDistribution; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityIb /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmd.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmd.java index 4475b395f..aeb12910f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmd.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmd.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityLmd /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java index b3890b127..ffdeadf2a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityLmj /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScriptedTfidf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScriptedTfidf.java index ff59778c4..7b9b31a63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScriptedTfidf.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScriptedTfidf.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Script; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityScriptedTfidf /** 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 f3ef353dc..04e059dd7 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.shard_stores.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresResponse.java index bc563d570..c68661cf7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.shard_stores.IndicesShardStores; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.shard_stores.Response /** 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 5b8aef73e..7614e021c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.shrink.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkResponse.java index 6e779f31d..80817cff2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.shrink.Response /** 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 ef4aedff7..4d080dcc3 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -50,6 +46,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_index_template.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java index 9c85fdf06..ddc66e621 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -31,6 +27,21 @@ import jakarta.json.stream.JsonGenerator; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_index_template.Response /** 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 4bafcbf29..c23ccef78 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_template.Request /** 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 8cc600a1a..d3411d785 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.simulate_template.Overlapping; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_template.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java index d9ab7000a..d191134f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SlowlogSettings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java index 3493285c9..16e3e513f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SlowlogTresholdLevels /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java index 9d9efa393..4354d448a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SlowlogTresholds /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java index dfc72fddc..13aa7f0d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SoftDeletes /** 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 a7c3fcf18..1cf7e7758 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.split.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitResponse.java index 5e09c0bef..1a89d3760 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.split.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java index c76beb368..f1a8c63f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.Storage /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java index e42d85ab3..10510c714 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TemplateMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TemplateMapping.java index 775659f7b..f2ee208ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TemplateMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TemplateMapping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.TemplateMapping /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java index 16ab9c863..5f42a6e05 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.Translog /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogDurability.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogDurability.java index c529ba186..c56acd4ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogDurability.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogDurability.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java index e1860e24a..23ab2d267 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_alias; import co.elastic.clients.elasticsearch.indices.AliasDefinition; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_alias.IndexAliases /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java index f60a3b633..c0f1c5612 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_data_lifecycle; import co.elastic.clients.elasticsearch.indices.DataStreamLifecycle; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_lifecycle.DataStreamWithLifecycle /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_field_mapping/TypeFieldMappings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_field_mapping/TypeFieldMappings.java index 95dadf988..3715507cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_field_mapping/TypeFieldMappings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_field_mapping/TypeFieldMappings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_field_mapping; import co.elastic.clients.elasticsearch._types.mapping.FieldMapping; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_field_mapping.TypeFieldMappings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java index 98ea0a405..83a4abfd7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_index_template; import co.elastic.clients.elasticsearch.indices.IndexTemplate; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_index_template.IndexTemplateItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java index dc23f5661..5a7ae2e65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_mapping; import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_mapping.IndexMappingRecord /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/Action.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/Action.java index fda3a8ce2..6fe324d84 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/Action.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/Action.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.modify_data_stream; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.modify_data_stream.Action /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionBuilders.java index d980702aa..966068fba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.modify_data_stream; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Action} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionVariant.java index 14f80097d..88a044748 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.modify_data_stream; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Action} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java index e6e889e9c..79d42882d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.modify_data_stream; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.modify_data_stream.IndexAndDataStreamAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java index 334b0ca4d..b22923919 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.put_index_template; import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_index_template.IndexTemplateMapping /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/FileDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/FileDetails.java index 1ac97731d..e840f66bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/FileDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/FileDetails.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.FileDetails /** 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 2dd6af743..730264249 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.RecoveryBytes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryFiles.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryFiles.java index 9a930aa5f..8f50ca7c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryFiles.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryFiles.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.RecoveryFiles /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryIndexStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryIndexStatus.java index 64eb185e9..99bc4b0ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryIndexStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryIndexStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.RecoveryIndexStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryOrigin.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryOrigin.java index 14478adb9..a4e028574 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryOrigin.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryOrigin.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.RecoveryOrigin /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStartStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStartStatus.java index b279c8c6e..96d52bd1e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStartStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStartStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.RecoveryStartStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStatus.java index 60c517500..ef97a864e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.RecoveryStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java index 7d19ca69a..7f126dfcf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.elasticsearch._types.Time; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.ShardRecovery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/TranslogStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/TranslogStatus.java index b4b4e0726..b0fe3d445 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/TranslogStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/TranslogStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.TranslogStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/VerifyIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/VerifyIndex.java index d6d829042..1c25fa867 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/VerifyIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/VerifyIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.recovery; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.recovery.VerifyIndex /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java index 7ad011b01..982e693ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.reload_search_analyzers; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.reload_search_analyzers.ReloadDetails /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java index 568f6a43f..481c3957c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.reload_search_analyzers; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.reload_search_analyzers.ReloadResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java index 99cca4d6d..fb78dbddd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.resolve_index; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.resolve_index.ResolveIndexAliasItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java index 5cb3e31e4..0640f7330 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.resolve_index; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.resolve_index.ResolveIndexDataStreamsItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java index 58e0008d2..ec702bb65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.resolve_index; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.resolve_index.ResolveIndexItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java index 1e65279a7..b50f0ef8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.rollover; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.rollover.RolloverConditions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/IndexSegment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/IndexSegment.java index 86bfbeb90..f0073db90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/IndexSegment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/IndexSegment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.segments; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.segments.IndexSegment /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/Segment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/Segment.java index b5b1836e0..d5a1ec061 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/Segment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/Segment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.segments; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.segments.Segment /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java index 38906c2c3..f1df6c8bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.segments; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.segments.ShardSegmentRouting /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardsSegment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardsSegment.java index 5ac897013..8ef8d446b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardsSegment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardsSegment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.segments; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.segments.ShardsSegment /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/IndicesShardStores.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/IndicesShardStores.java index 55c4fd078..9c5d625d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/IndicesShardStores.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/IndicesShardStores.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.shard_stores; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.shard_stores.IndicesShardStores /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java index 8bd521853..a93584781 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.shard_stores; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.shard_stores.ShardStore /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreAllocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreAllocation.java index 71be112e7..83bfccd21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreAllocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreAllocation.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.shard_stores; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java index 3c63277c0..ff63037bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonData; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.CsvProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java index 282eedca9..05bd9d96e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DateIndexNameProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java index 0f416e61f..00e807ebd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DateProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java index 4f8be9e46..651038e09 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.delete_pipeline.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineResponse.java index 3923fb398..0a09423ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.delete_pipeline.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java index 4fdfb44a3..71429590c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DissectProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java index be448b9bb..8768dba42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DotExpanderProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java index 66900aadf..8702d5a44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DropProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java index af440b251..00b333d17 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ingest namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java index b039afe3f..62bcabee4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ingest namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java index 638d0cf03..ae531af70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.GeoShapeRelation; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.EnrichProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java index 24a193bfd..ee2b2610a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.FailProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java index 38e47a8a1..f3288f114 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.ForeachProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java index a9ac669fa..3051a3ca6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.GeoIpProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java index a41ed4847..7c7ae6425 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.geo_ip_stats.Request /** 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 0b9b5f164..c5dcf96a5 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch.ingest.geo_ip_stats.GeoIpDownloadStatistics; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.geo_ip_stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java index 77d366805..244fdd148 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.get_pipeline.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java index e255f5137..36675cfe9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.get_pipeline.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java index 7a8219279..e3ce15c28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.GrokProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java index 0b80436b5..6e2dc231c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.GsubProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfig.java index cc116528f..05b741a59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.InferenceConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigBuilders.java index 8a76e62fc..2da392e63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link InferenceConfig} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java index 6f5383048..20dff8ef6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.InferenceConfigClassification /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java index 5e3e7dcb3..2eb41ccde 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.InferenceConfigRegression /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigVariant.java index c99b3dc5c..8752f6f16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link InferenceConfig} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java index eb202638a..34bf10c54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonData; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.InferenceProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java index c596490b5..daa5b40ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.JoinProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java index c5bc16d6c..44bb83674 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.JsonProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessorConflictStrategy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessorConflictStrategy.java index e79170270..c44bd5dd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessorConflictStrategy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessorConflictStrategy.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java index 89c4eb653..6ee2e9b3b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java index f76bc209f..1f55ab6dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch.ingest.simulate.PipelineSimulation; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java index e18f716a8..b34159078 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.SortOrder; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.SortProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java index 0ba04466e..db198998a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.SplitProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java index 2929330e3..a5431a812 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.TrimProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java index 8c0adeab2..4c6d5cc64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.UppercaseProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java index f83d15a77..72d614c33 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.UrlDecodeProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java index 997207ee9..d1ea73a5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.UserAgentProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProperty.java index 57e4ea47e..6a8d21d24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProperty.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API 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 f9058b0bc..b0d8dbbf4 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.geo_ip_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.geo_ip_stats.GeoIpDownloadStatistics /** 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 9f4f58795..2ea1843a3 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.geo_ip_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.geo_ip_stats.GeoIpNodeDatabaseName /** 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 5b1df94bd..ff467214c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.geo_ip_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.geo_ip_stats.GeoIpNodeDatabases /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java index 07d8e28d7..ee2f3c910 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.simulate; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.Document /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java index 528af0840..fed25a774 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.simulate; import co.elastic.clients.elasticsearch._types.VersionType; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.DocumentSimulation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java index b9388a54b..6b115d4c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.simulate; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.Ingest /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java index 5f85fa7d2..c1ff93a39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.simulate; import co.elastic.clients.elasticsearch.watcher.ActionStatusOptions; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.PipelineSimulation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java index 8b7e16e61..1ad0663e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.delete.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseResponse.java index 734f00c7e..7367c82f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.delete.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java index 71414d812..2b340a2cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the license namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java index 4e90262ed..d1ccd6155 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the license namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusRequest.java index 0ff846e85..8d6761900 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.get_basic_status.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusResponse.java index 36ddefa17..8fa561f82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetBasicStatusResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.get_basic_status.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java index c9435eacc..2ab4a4bd9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.get.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseResponse.java index af0a4d5cf..d33e6bfce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch.license.get.LicenseInformation; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.get.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusRequest.java index 7cc79b78d..86b5476f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.get_trial_status.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusResponse.java index 57ae38364..5e267daab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetTrialStatusResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.get_trial_status.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/License.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/License.java index 860dbaf04..4f2760760 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/License.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/License.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license._types.License /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/LicenseStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/LicenseStatus.java index 8fecfc367..d3e28c530 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/LicenseStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/LicenseStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/LicenseType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/LicenseType.java index 3afa28e92..590119110 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/LicenseType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/LicenseType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java index 4d443b1c9..669883385 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.post.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostResponse.java index 5cbfc9816..c305e4dc4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.post.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java index 216f2efd6..1db385d95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.post_start_basic.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicResponse.java index 173352d33..7a3ea6349 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.post_start_basic.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java index fdeb8ccb7..05783ca55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.post_start_trial.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialResponse.java index 1b5a1e9aa..8051fce6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.post_start_trial.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java index 8e6c855ee..ddcbb3853 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license.get; import co.elastic.clients.elasticsearch.license.LicenseStatus; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.get.LicenseInformation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/post/Acknowledgement.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/post/Acknowledgement.java index 0d4ba186c..a47162db5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/post/Acknowledgement.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/post/Acknowledgement.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.license.post; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: license.post.Acknowledgement /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java index ef677f17e..ffa231af7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash.delete_pipeline.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java index 89c065c14..933ca1a7e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the logstash namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java index 4503ba4bb..226ce0313 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the logstash namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java index 2f19bfd8c..953b6a522 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash.get_pipeline.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java index 03926c3e1..1e87c8204 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash.get_pipeline.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java index ba1b1b674..069e7da6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash._types.Pipeline /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java index a0ce92750..5c42ae580 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash._types.PipelineMetadata /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java index 4db7c0c6d..73957d11b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash._types.PipelineSettings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java index c91287d86..103acb380 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash.put_pipeline.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java index 542d21304..852165c22 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: migration.deprecations.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsResponse.java index e8e0d7cd3..5345e5275 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration; import co.elastic.clients.elasticsearch.migration.deprecations.Deprecation; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: migration.deprecations.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationAsyncClient.java index 1f8ff6428..a897b8d56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the migration namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationClient.java index 14e066939..0ec1c3ffd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the migration namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java index 35cd11e08..27411dc69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: migration.get_feature_upgrade_status.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusResponse.java index 1e4452aad..3628a5a59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration; import co.elastic.clients.elasticsearch.migration.get_feature_upgrade_status.MigrationFeature; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: migration.get_feature_upgrade_status.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java index c08097b72..c016b79f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: migration.post_feature_upgrade.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeResponse.java index b80a33760..d5b8ab537 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration; import co.elastic.clients.elasticsearch.migration.post_feature_upgrade.MigrationFeature; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: migration.post_feature_upgrade.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java index 983feb751..5e7cb2144 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration.deprecations; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: migration.deprecations.Deprecation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/DeprecationLevel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/DeprecationLevel.java index 9b6a510ca..f69d8f5bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/DeprecationLevel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/DeprecationLevel.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.migration.deprecations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API 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 5c7e2fdfa..f4a89dc25 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.BucketInfluencer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketSummary.java index 467741743..9623abb5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.BucketSummary /** 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 e57b4fb2a..ebea147de 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.CalendarEvent /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzer.java index f55b4fa3f..dea1d837d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.CategorizationAnalyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerBuilders.java index 09d9d906c..305835edb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link CategorizationAnalyzer} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java index 663a77eac..7f7460f26 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.analysis.CharFilter; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.CategorizationAnalyzerDefinition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationStatus.java index e5f46e03a..5cc460a3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API 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 02c4f1b53..82f4342a3 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Category /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java index d093c0b29..a54db291b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ChunkingConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingMode.java index 5c732b0f8..1f94d9394 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java index 68bebe887..adbee3b38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.aggregations.InferenceConfig; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ClassificationInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java index ed58711d3..4871c1b51 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.clear_trained_model_deployment_cache.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheResponse.java index 3aa656502..5254745d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.clear_trained_model_deployment_cache.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java index 0f61f2f21..1fe12d0ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.close_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobResponse.java index 9c00d49bd..5bde95c06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.close_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ConditionOperator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ConditionOperator.java index ceb2f2644..c2187ac4f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ConditionOperator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ConditionOperator.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java index 810fedc0f..7315aa1a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataCounts /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java index d513bfb8e..fb037c7a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataDescription /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java index 82e06f1e5..62244a9f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Datafeed /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java index 318d94d10..2ee14cb63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedAuthorization /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java index 0dc6b8cc7..1e3b8d4d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java index db0cea9ce..2ebc26ea2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedRunningState /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedState.java index b3ee8b72e..02670dd75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java index 5319706dd..8b2eec816 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java index da424e457..6dab24784 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedTimingStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java index 0f2da52c7..8bef24040 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java index cd147d7d9..64e7e93a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisAnalyzedFields /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBase.java index 1815018a4..2c2f17c5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysis /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBuilders.java index ea2a956a6..0cfaed5d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link DataframeAnalysis} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java index 535aa2779..257784525 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisClassification /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessor.java index c6facea67..df306c142 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorBuilders.java index b5fc8d491..c79a9c364 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link DataframeAnalysisFeatureProcessor} variants. */ 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 bea47313b..37dc9a1db 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorFrequencyEncoding /** 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 665f564fb..67f5acc85 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorMultiEncoding /** 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 d8a656fdc..ff1bbf45f 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorNGramEncoding /** 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 175e6cbe5..6e3ba3e05 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorOneHotEncoding /** 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 bf15b20dd..4eac0caf3 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorTargetMeanEncoding /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorVariant.java index 8571d1f14..783c54109 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link DataframeAnalysisFeatureProcessor} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java index a36ba0fb3..ad20ba737 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisOutlierDetection /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java index d82750ae4..1923c55eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisRegression /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisVariant.java index 8fa52485f..d336d3f3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link DataframeAnalysis} variants. */ 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 d44cd2e9a..ff11a25a5 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.NodeAttributes; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalytics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java index 5ff367757..eeed69d0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsAuthorization /** 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 f850d2c9b..728b9a0d9 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsDestination /** 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 75a420a11..cac922852 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsFieldSelection /** 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 2da515d81..62f97c3a2 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsMemoryEstimation /** 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 0c54adc40..b35e1696d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.mapping.RuntimeField; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsSource /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStats.java index 5d74d7054..513e4e0be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsBuilders.java index a2a3f436c..79e279294 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link DataframeAnalyticsStats} variants. */ 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 ca04025ab..fa58ea350 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsDataCounts /** 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 bdc605d92..8bad53619 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsHyperparameters /** 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 45dfbd519..2b0f49f3b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsMemoryUsage /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java index 8e0ec680a..966c52f05 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsOutlierDetection /** 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 15e92f6ac..68fdfac76 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsProgress /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsVariant.java index 3ba6a10d5..2ec7d3e74 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link DataframeAnalyticsStats} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java index 94b2c9b25..8fd400e24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsSummary /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluation.java index 832bdf632..80e81a1a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationBuilders.java index 18ab5e816..23583cd0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link DataframeEvaluation} variants. */ 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 5b0b2f04a..cc3248853 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationClassification /** 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 70d6dc0f1..a9f63955d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationClassificationMetrics /** 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 cb3f281cf..175f91bea 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationClassificationMetricsAucRoc /** 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 7f9d6bd7b..7ba49bf82 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationMetrics /** 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 a98eb3cc4..626f3675b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationOutlierDetection /** 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 98edb4762..7dad7c5e0 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationOutlierDetectionMetrics /** 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 3506ece3d..0477e33ea 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationRegression /** 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 4e3811b9f..c03f009d1 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationRegressionMetrics /** 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 89c325e17..750080c2c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationRegressionMetricsHuber /** 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 2ac5d714a..a8d69f847 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationRegressionMetricsMsle /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationVariant.java index e7f2ff3b9..ae92462a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link DataframeEvaluation} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeState.java index a6b9100be..691d3b0a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java index 6b53e40d6..12218f335 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DelayedDataCheckConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java index c5e1aca28..b8c9eff75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar_event.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventResponse.java index a3e2759b6..06b4d0d57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar_event.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java index 62fffa7a3..75d602b9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobResponse.java index 0045cfeef..f0b1e80fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java index ed34ebe87..999db65fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarResponse.java index 3d450bbb0..ff56f6e2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java index 6a7553822..3bebfc2a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_data_frame_analytics.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsResponse.java index 34bc0bec2..52c44ba91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_data_frame_analytics.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java index 42a2c6eec..b514864b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_datafeed.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedResponse.java index d0304e9e3..475a6f92c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_datafeed.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java index 035603dcf..8c3645fd3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_expired_data.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataResponse.java index ae64700d1..5d7752a66 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_expired_data.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java index 60fed8a2c..233573963 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_filter.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterResponse.java index 2f7ccb1d0..88dabe50a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_filter.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java index 1a5e66fe3..c4be7b4e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_forecast.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastResponse.java index 2815d255e..4ceeae6f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_forecast.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java index ca1786d55..ce6b3c26a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobResponse.java index 337916197..ee3048ba2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java index ba98ef6e8..e5e2354d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_model_snapshot.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotResponse.java index 6d0939bfa..0f03aefca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_model_snapshot.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java index 8064542b0..59e6c4d3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_trained_model_alias.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasResponse.java index aa2dc0fa6..d86233941 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_trained_model_alias.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java index eb9ef1b77..86e3d9f63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_trained_model.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelResponse.java index a292f970b..462114d85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_trained_model.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeploymentAllocationState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeploymentAllocationState.java index 0f1146841..72bd58f75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeploymentAllocationState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeploymentAllocationState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java index aacbdab8c..0ca53f6b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DetectionRule /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java index 3aee3f0bc..2e1bbe6fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Detector /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java index ea5dd6c4d..8b0f36d16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DetectorRead /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNode.java index 56bc9c909..b48216889 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DiscoveryNode /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java index 65ba9d897..0bfd251bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ml namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java index 760ccf95f..6ee820417 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.ApiClient; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ml namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java index 61219b96e..1b126a9d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.estimate_model_memory.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryResponse.java index fd84000d8..3cab24eee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.estimate_model_memory.Response /** 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 b10266148..529e09874 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameResponse.java index e0dce30ea..2a15847dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch.ml.evaluate_data_frame.DataframeClassificationSummary; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExcludeFrequent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExcludeFrequent.java index 48aedf3c6..fc3ab3a6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExcludeFrequent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExcludeFrequent.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API 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 8b16e4415..63edb6de4 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.explain_data_frame_analytics.Request /** 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 cb94eca5c..04f771d85 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.explain_data_frame_analytics.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java index 3e890e2fa..f62697910 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.FillMaskInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java index bb8a2832d..5a13f6bea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.FillMaskInferenceUpdateOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java index f6acee868..c6733ad8c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Filter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java index 6fec951a1..509885f1f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.FilterRef /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterType.java index 089c18177..91714eb53 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java index 12ff8c216..8c36c7ccb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.flush_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobResponse.java index 4e94a2d2a..01e02586b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.flush_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java index e506b8095..7c83b1a41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.forecast.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastResponse.java index 07655c23f..ca1670582 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.forecast.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GeoResults.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GeoResults.java index 5d8ff873e..4572ac41f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GeoResults.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GeoResults.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.GeoResults /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java index 43dbfda72..3011873bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_buckets.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsResponse.java index 721872acb..0c50d5941 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_buckets.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java index 351d28a69..502335144 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendar_events.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsResponse.java index 1bb20118d..b9d987709 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendar_events.Response /** 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 1ced7cd12..77d997fb9 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendars.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsResponse.java index 6737caeac..e954ec441 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch.ml.get_calendars.Calendar; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendars.Response /** 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 ca619aec8..38ed72fa2 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_categories.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesResponse.java index d885cc00a..01d52c462 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_categories.Response /** 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 d938e0c15..f90d2bf6f 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_data_frame_analytics.Request /** 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 d9e7baacb..263af9542 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_data_frame_analytics.Response /** 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 7759f6b40..8dac370bd 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_data_frame_analytics_stats.Request /** 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 a34614a32..48e7d7274 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_data_frame_analytics_stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java index 6c130972b..77b2dd2c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_datafeed_stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsResponse.java index 7dbc8ae18..47f97c6e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_datafeed_stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java index f98aa3f52..2c3464dcd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_datafeeds.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsResponse.java index 926b71f35..dbdeadf76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_datafeeds.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java index c06c6696e..d7b2388cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_filters.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersResponse.java index 4ad63febb..54d0a5c1d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_filters.Response /** 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 150f00118..1fb350c05 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_influencers.Request /** 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 1cd5edbfc..6c8b07c82 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_influencers.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java index c1db35a63..5fe10de5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_job_stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsResponse.java index 1edd0d26d..1f97b5511 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_job_stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java index c2dc94b5e..f42898708 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_jobs.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsResponse.java index 7ac246804..9a8f40317 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_jobs.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java index 0d38c308c..01ad57654 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_memory_stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsResponse.java index 0bfae6f43..f95864c39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.NodeStatistics; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_memory_stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java index 7bc519570..f7815f1ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_model_snapshot_upgrade_stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsResponse.java index 8e624d6bc..015651d4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_model_snapshot_upgrade_stats.Response /** 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 e4acac23c..cc1796be7 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_model_snapshots.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsResponse.java index 29173e5b4..559528b88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_model_snapshots.Response /** 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 3b120fcfe..0e0639ff8 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_overall_buckets.Request /** 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 98b05cee0..e644cd442 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_overall_buckets.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java index 50af47362..e20bb4681 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_records.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsResponse.java index 357cc6a34..eb1f6b162 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_records.Response /** 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 97d445206..2f9d243c7 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_trained_models.Request /** 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 e79d26ed4..b7d7fedf8 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_trained_models.Response /** 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 e5a763456..2d53ddc0b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_trained_models_stats.Request /** 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 431b5502c..bf48b7de1 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_trained_models_stats.Response /** 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 4230e45ce..0dec9fa70 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Hyperparameter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java index f9722a643..1eb7e0c98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Hyperparameters /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Include.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Include.java index 88b3751c0..92e953def 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Include.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Include.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java index a4ca08ce2..e4f670aac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.infer_trained_model.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelResponse.java index 1ebff6968..14c13026d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.infer_trained_model.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreate.java index 414044ab3..b8215f27d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.InferenceConfigCreateContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java index cd99927a6..417fc1fb9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link InferenceConfigCreate} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateVariant.java index 91a7a2eea..7e53c5a4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link InferenceConfigCreate} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java index 4581477ca..1c767b93f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.InferenceConfigUpdateContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java index 79936ef1b..b3b902483 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link InferenceConfigUpdate} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateVariant.java index 6cdcfd4a0..e8429fc6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link InferenceConfigUpdate} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java index 60c09eb19..63b857ce1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.InferenceResponseResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influence.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influence.java index f855bc0de..d59fc7e65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influence.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influence.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Influence /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influencer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influencer.java index 1688b5b5f..de9d7615d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influencer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influencer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Influencer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java index 33b4cc6e2..11f682f5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Job /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java index 613f5815f..f3792e34f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobBlocked /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlockedReason.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlockedReason.java index 749fa8a8c..c1a16fa65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlockedReason.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlockedReason.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java index 47255d477..301ebebc2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java index b763ee3dd..678ad7a94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobForecastStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java index 5e5593864..d731d8d4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java index 90bddac95..9ce9921d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java index 54f134396..5c2e622c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java index 54d62447c..553c0abb8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobTimingStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MemoryStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MemoryStatus.java index ff0910075..b53390311 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MemoryStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MemoryStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java index 77c97f954..ae1c18471 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.info.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoResponse.java index 6609267ea..9008997af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch.ml.info.Defaults; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.info.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java index dbce142f5..7c0795d34 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ModelPlotConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java index a5d1aa339..06e4bee89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ModelSizeStats /** 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 34b762bb1..3d07c1da2 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ModelSnapshot /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshotUpgrade.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshotUpgrade.java index 9512751a8..e1b056ef5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshotUpgrade.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshotUpgrade.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ModelSnapshotUpgrade /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java index 272fdc9e2..f52e12133 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NerInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java index c5314419c..300a737cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NerInferenceUpdateOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java index b7b516249..0eb6efaa2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NlpBertTokenizationConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java index 9c40f7a79..e877c4f54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NlpRobertaTokenizationConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java index 25de6d1dd..87d9fa55f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NlpTokenizationUpdateOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java index ad701401d..53f3fe3f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.open_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java index 2e859d931..9cc4a206a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.open_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java index 1113471de..1c5f655a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.OutlierDetectionParameters /** 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 eb7190867..7b8a68683 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.OverallBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java index 213f868da..a964a3ded 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.OverallBucketJob /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java index 301993485..8c227bf88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Page /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java index 95278e16c..e559a979a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.PassThroughInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java index e471c3c61..e75641622 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.PassThroughInferenceUpdateOptions /** 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 a5e26b025..259e07662 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.PerPartitionCategorization /** 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 2d31c7a29..1466adc61 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.post_calendar_events.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsResponse.java index fb22e8d4e..9abe735be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.post_calendar_events.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java index 751ed3097..68cff85d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -50,6 +46,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.post_data.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataResponse.java index aae776822..9547d9da5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.post_data.Response /** 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 774d5bad6..5925cbd97 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_data_frame_analytics.Request /** 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 14a5085d5..dfb06b35b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_data_frame_analytics.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java index 989897f6d..695097c5f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_datafeed.Request /** 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 7d3741c04..34a97d94a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_datafeed.Response /** 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 b9f07a0af..ecbf088cc 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_calendar_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobResponse.java index 94fc87d8e..fa7dfe6f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_calendar_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java index 139e8db3f..931c1285f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_calendar.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarResponse.java index 734f365a3..21cef2a05 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_calendar.Response /** 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 d87ae33d2..b592f2e29 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_data_frame_analytics.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsResponse.java index a4b17a618..54b7fb42a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_data_frame_analytics.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java index efbef6de4..1f2a23d37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -54,6 +50,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_datafeed.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedResponse.java index 3b00d3404..e4f387f2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_datafeed.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java index 394d7583c..410124696 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_filter.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterResponse.java index f01b46f9e..5b592cad4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_filter.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java index 56634f7a9..4fd5a9f50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobResponse.java index 842d8149e..39fcdd62a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_job.Response /** 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 fb698b6a4..d5cf42412 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_alias.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasResponse.java index e3880e0ce..5429c0c80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_alias.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java index 30b451df0..cf1884af4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_definition_part.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartResponse.java index a4e3632e8..faf2b6130 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_definition_part.Response /** 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 392cb7db9..7424f0532 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelResponse.java index f5bd2f4f0..f1f0b9489 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java index 437abb717..8c9fc72ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_vocabulary.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyResponse.java index acf7bf7d4..4cfe87743 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_vocabulary.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java index c7a8847bc..cc9c83e5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.QuestionAnsweringInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java index 89e85374e..b59d39c70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.QuestionAnsweringInferenceUpdateOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java index 565e3b221..61999e627 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.aggregations.InferenceConfig; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.RegressionInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java index e99774ddb..6e8a6bf9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.reset_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java index 259e4a641..b34cda485 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.reset_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java index 1878d07c1..4fec7e80f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.revert_model_snapshot.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotResponse.java index 30d5e1be5..fe1a2eae8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.revert_model_snapshot.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RoutingState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RoutingState.java index c9cec6f90..843137937 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RoutingState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RoutingState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleAction.java index b3d740d0d..f318a2b23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleAction.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java index 1d6821a07..f4108aaec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.RuleCondition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java index fbf2bc325..7edd0fd0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.RunningStateSearchInterval /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java index 787fdb5e3..9b61071d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.set_upgrade_mode.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeResponse.java index c1ce5fa98..e4a9ea646 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.set_upgrade_mode.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SnapshotUpgradeState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SnapshotUpgradeState.java index e6b73fa45..d1cb7b9c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SnapshotUpgradeState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SnapshotUpgradeState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API 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 e9b1a237e..af88160e1 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_data_frame_analytics.Request /** 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 93f4afdd9..b87d7ab19 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_data_frame_analytics.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java index 047155d0f..9e5f06e5f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_datafeed.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java index 21ea526e2..184cf0c44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_datafeed.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java index fea7d41ac..695b6ea56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_trained_model_deployment.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentResponse.java index 20642e219..743fd01b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_trained_model_deployment.Response /** 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 738f4acce..8c7f2c679 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_data_frame_analytics.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsResponse.java index 6c7537e07..73dcfba56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_data_frame_analytics.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java index 347d3de4d..08d8d12db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_datafeed.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedResponse.java index 569a69b4c..f90ee4b34 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_datafeed.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java index e0e8d4cc0..2d5c8d8a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_trained_model_deployment.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentResponse.java index d9935109d..f09652454 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_trained_model_deployment.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java index e7eb1bb01..9da7b60f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextClassificationInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java index 1f606a9e0..f0dc9658a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextClassificationInferenceUpdateOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java index 5c9a8e3af..4c852b865 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextEmbeddingInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java index 8c50fbedd..88f396517 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextEmbeddingInferenceUpdateOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java index 45b003dd6..bb434cefd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextExpansionInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java index ed90cedda..0ff324161 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextExpansionInferenceUpdateOptions /** 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 6336f13b1..f3194e196 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TimingStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfig.java index 82e7ee30f..3307d59fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TokenizationConfigContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigBuilders.java index 7b3d3971a..b9259153e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TokenizationConfig} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigVariant.java index 2371b534f..21d911da3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link TokenizationConfig} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationTruncate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationTruncate.java index c13ae00d8..1070a0cd9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationTruncate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationTruncate.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java index ef99fbaa9..d35e322f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TopClassEntry /** 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 55581485f..0b7e48fa6 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TotalFeatureImportance /** 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 c04c317cf..2c6bb2aa8 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TotalFeatureImportanceClass /** 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 b59f318d6..253045d62 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TotalFeatureImportanceStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java index b9e5f01d9..3d2416596 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelAssignment /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java index 932b42fe7..9baf48b0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelAssignmentRoutingTable /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java index 2f95def06..7d6adc82b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelAssignmentTaskParameters /** 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 62d0e233a..3f4d746c5 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelConfig /** 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 8fddbab57..40e6c2f24 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelConfigInput /** 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 6de65a487..55ea95b0d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelConfigMetadata /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java index fa96b9923..6535c46ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelDeploymentAllocationStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java index 21477e273..75b18cdbf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelDeploymentNodesStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java index e1cd4e5e5..8207c697f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelDeploymentStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java index 92e2850f5..5165125d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelEntities /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java index fcc2af780..6d969b401 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelInferenceClassImportance /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java index af1ee9810..e09756fe1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelInferenceFeatureImportance /** 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 aa94cb2ef..f22ba270c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelInferenceStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java index 3e22703ea..5dbdbff22 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelLocation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java index 3f8af1113..9214ecb32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelLocationIndex /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java index 1ad403725..12fe840d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelSizeStats /** 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 5f2dcc2a6..85ed8ee8c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelType.java index e30678e2d..8d2a18a3b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainingPriority.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainingPriority.java index b5c89899d..6e6de1b6f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainingPriority.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainingPriority.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java index d3d1bed49..8ec2b8be5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TransformAuthorization /** 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 a3e2238bd..85657f097 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_data_frame_analytics.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsResponse.java index 9a92be92a..e34d017d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_data_frame_analytics.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java index 2c4268a2b..219244e61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -54,6 +50,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_datafeed.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java index bfcded5ee..e955b3da2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_datafeed.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java index dc989c388..a8817b7ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_filter.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterResponse.java index b807cfb8d..099000d3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_filter.Response /** 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 d43d3848d..b68496da0 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobResponse.java index 15052b024..b75257453 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java index 06ce5b071..678cd99e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_model_snapshot.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotResponse.java index c854697c4..692a3f1b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_model_snapshot.Response /** 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 f1764e56e..f0d2c3192 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.upgrade_job_snapshot.Request /** 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 788889474..c53617b61 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.upgrade_job_snapshot.Response /** 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 391dbaa3d..bb3e5f3b5 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.validate_detector.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorResponse.java index 413b855c9..dd59764e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.validate_detector.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java index 29d735a18..410afa447 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.validate.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateResponse.java index a0139b0ff..45afde449 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.validate.Response /** 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 6d2aeb9d2..9b7084a3a 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ValidationLoss /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java index 1ff5f0a7c..76aee6327 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Vocabulary /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java index e3d3ea07d..79ca36b71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ZeroShotClassificationInferenceOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java index 265297ef2..e21b182d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ZeroShotClassificationInferenceUpdateOptions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java index 66f657f1e..79e952be5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.ConfusionMatrixItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java index 7c146acdb..556899ef0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.ConfusionMatrixPrediction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java index c404d5df5..8d06e4b7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.ConfusionMatrixThreshold /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java index cebab9de4..0ecf205b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummary /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java index e0f85fbce..d5aafca77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummaryAccuracy /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java index 3dca5234c..cd54dc9c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummaryMulticlassConfusionMatrix /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java index bac6a274a..562ea748c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummaryPrecision /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java index 798619893..9da724eca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummaryRecall /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java index c4503129c..48608a34b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeEvaluationClass /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java index 7a2f65b10..53909445b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeEvaluationSummaryAucRoc /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java index 7d728f280..a9ba62d45 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeEvaluationSummaryAucRocCurveItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationValue.java index 4d545296d..05bfe8138 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationValue.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeEvaluationValue /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java index 8866d2f99..9253b4def 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeOutlierDetectionSummary /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java index f8cbb1d25..2e3f4c6da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeRegressionSummary /** 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 d36562620..79163e429 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.get_calendars; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendars.Calendar /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/JvmStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/JvmStats.java index de4a13860..879b2b7d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/JvmStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/JvmStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.get_memory_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_memory_stats.JvmStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemMlStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemMlStats.java index e075438fb..14dd79e18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemMlStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemMlStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.get_memory_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_memory_stats.MemMlStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemStats.java index 9355affda..dc1e339f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.get_memory_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_memory_stats.MemStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/Memory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/Memory.java index dd0d741f2..418eed4ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/Memory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/Memory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.get_memory_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_memory_stats.Memory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/AnomalyDetectors.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/AnomalyDetectors.java index aab7ec004..1286d49b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/AnomalyDetectors.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/AnomalyDetectors.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.info; import co.elastic.clients.elasticsearch.ml.CategorizationAnalyzer; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.info.AnomalyDetectors /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Datafeeds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Datafeeds.java index 23adee26c..cfaae903e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Datafeeds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Datafeeds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.info.Datafeeds /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Defaults.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Defaults.java index 7305dc17a..a5388e0a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Defaults.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Defaults.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.info.Defaults /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Limits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Limits.java index 4d4d1478e..882dc9ade 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Limits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Limits.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.info.Limits /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/NativeCode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/NativeCode.java index 7d9811d71..0a9d5784d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/NativeCode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/NativeCode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.info.NativeCode /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java index 7ccf9e69b..ec3b271b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.preview_data_frame_analytics; import co.elastic.clients.elasticsearch.ml.DataframeAnalysis; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_data_frame_analytics.DataframePreviewConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java index 62aea7107..69a0dd035 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.AggregateOutput /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java index 9182e1fbd..3e37cf014 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Definition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java index f2a645cb3..63c51ca49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Ensemble /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java index 0f773bede..c8d94e911 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.FrequencyEncodingPreprocessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java index e8dcc7966..53fe224c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Input /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java index dc4d97f67..163710abd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.OneHotEncodingPreprocessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java index ed04222ed..399397f95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Preprocessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorBuilders.java index 99d7d02cd..d7306780e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Preprocessor} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorVariant.java index bfd8c22d9..5a9afd297 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Preprocessor} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java index 5a4c4b61f..963dbbdb6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.TargetMeanEncodingPreprocessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java index fd89c83f9..48a08b506 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.TrainedModel /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java index db3b3acec..3a8759dc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.TrainedModelTree /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java index ea525a80c..900b47237 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.TrainedModelTreeNode /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java index 03332a908..1f5edbac2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Weights /** 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 c2f2e29df..768360106 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.monitoring; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: monitoring.bulk.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkResponse.java index 0fe6c9ded..a45ec8108 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.monitoring; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: monitoring.bulk.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringAsyncClient.java index fbd602b23..aad05d73a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.monitoring; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the monitoring namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringClient.java index d83b732ad..0c0fb8752 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.monitoring; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the monitoring namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/AdaptiveSelection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/AdaptiveSelection.java index 3104a7feb..fd089eef8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/AdaptiveSelection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/AdaptiveSelection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.AdaptiveSelection /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Breaker.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Breaker.java index 0cde34d4d..0d0eaf513 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Breaker.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Breaker.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Breaker /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cgroup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cgroup.java index 2fac8ea95..a0f13652b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cgroup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cgroup.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Cgroup /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpu.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpu.java index 8db88766d..7f2bf54cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpu.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpu.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.CgroupCpu /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpuStat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpuStat.java index d94d5726b..a965167bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpuStat.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpuStat.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.CgroupCpuStat /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupMemory.java index 605b6a1d9..e5e3abf6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupMemory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.CgroupMemory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java index c1645c560..24a760458 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.clear_repositories_metering_archive.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveResponse.java index 66f6d38e0..e10abfa61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch.nodes.clear_repositories_metering_archive.ResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.clear_repositories_metering_archive.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java index 2b44c5842..0543f85d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Client /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterAppliedStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterAppliedStats.java index af2e3c0ac..11ea9d995 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterAppliedStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterAppliedStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.ClusterAppliedStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateQueue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateQueue.java index 3aa789c67..ba45a086c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateQueue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateQueue.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.ClusterStateQueue /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateUpdate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateUpdate.java index fd6ba9a88..4dd319afe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateUpdate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateUpdate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.ClusterStateUpdate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java index c659dac01..642347928 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Context /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cpu.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cpu.java index 0c4d967d9..dc1e3a53c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cpu.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cpu.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.Time; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Cpu /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CpuAcct.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CpuAcct.java index 1874720ad..a2387ae7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CpuAcct.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CpuAcct.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.CpuAcct /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/DataPathStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/DataPathStats.java index 2d2e1d740..5ba102336 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/DataPathStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/DataPathStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.DataPathStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Discovery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Discovery.java index f80922e3d..02b94ebb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Discovery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Discovery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Discovery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java index 0cec7873b..d08c79d72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the nodes namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java index fe4e6be39..84db36838 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the nodes namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ExtendedMemoryStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ExtendedMemoryStats.java index 56029c1ab..2ef3de80d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ExtendedMemoryStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ExtendedMemoryStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.ExtendedMemoryStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystem.java index 18ec58f35..457236547 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.FileSystem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystemTotal.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystemTotal.java index f3bb8c3e0..efabe8958 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystemTotal.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystemTotal.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.FileSystemTotal /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollector.java index 08959fe44..698b21acb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollector.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.GarbageCollector /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollectorTotal.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollectorTotal.java index 94df31686..80907907e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollectorTotal.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollectorTotal.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.GarbageCollectorTotal /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java index fd2c6ba69..73977ee82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.get_repositories_metering_info.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoResponse.java index db71b6ba9..3de96892e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch.nodes.get_repositories_metering_info.ResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.get_repositories_metering_info.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java index 9d4635a21..f73e22cf0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.hot_threads.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsResponse.java index 1f26ae51f..3285685c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch.nodes.hot_threads.HotThread; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.hot_threads.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java index 0fc520076..928a716a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Http /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressure.java index 53f3dd050..82d22c4ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressure.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.IndexingPressure /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressureMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressureMemory.java index 133d5865e..a1b1bf3ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressureMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressureMemory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.IndexingPressureMemory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java index ed6991166..db31b0a80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Ingest /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java index 922b7a8dc..9b71c5892 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.IngestTotal /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStatDevice.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStatDevice.java index 636145bc8..a9be3139d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStatDevice.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStatDevice.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.IoStatDevice /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStats.java index fe7bf451c..512040484 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.IoStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Jvm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Jvm.java index c28e4a482..4a0306de9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Jvm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Jvm.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Jvm /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmClasses.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmClasses.java index 8e899f09d..b06426fd2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmClasses.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmClasses.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.JvmClasses /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmMemoryStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmMemoryStats.java index 877f6783f..2b2bb583e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmMemoryStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmMemoryStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.JvmMemoryStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmThreads.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmThreads.java index 1bf655b0a..53319a3e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmThreads.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmThreads.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.JvmThreads /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java index 9ecdf5db3..c4b886800 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.KeyedProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/MemoryStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/MemoryStats.java index ffea17313..584157a12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/MemoryStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/MemoryStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.MemoryStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeBufferPool.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeBufferPool.java index e0fa2658b..e1fc3f386 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeBufferPool.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeBufferPool.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.NodeBufferPool /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadError.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadError.java index 92be5d91b..e897db3b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadError.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadError.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.NodeReloadError /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java index ae603c4ec..737e17819 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.NodeReloadResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResultBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResultBuilders.java index 01c7783ad..7939de78e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResultBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResultBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link NodeReloadResult} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java index b74823ad2..c703eafdc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoResponse.java index 546f14cec..c96568829 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch.nodes.info.ResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.Response /** 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 7b825a9d9..f6bac0008 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.NodeStatistics; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.NodesResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java index 7a42ca782..810133836 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsResponse.java index 07194e935..6f51698dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch.nodes.stats.ResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java index 54c3a800c..e422d85f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.usage.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageResponse.java index c454b84f1..be7e9097d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch.nodes.usage.ResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.usage.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/OperatingSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/OperatingSystem.java index 5a8a412e7..e567ef0af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/OperatingSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/OperatingSystem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.OperatingSystem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Pool.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Pool.java index 7698ce839..33aba06f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Pool.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Pool.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Pool /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PressureMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PressureMemory.java index 606791b9b..4eb059a1e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PressureMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PressureMemory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.PressureMemory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Process.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Process.java index ec023bf45..bfb9cc075 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Process.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Process.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Process /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java index 99795cf80..a9b3af1d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Processor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PublishedClusterStates.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PublishedClusterStates.java index c257da016..dccab7a23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PublishedClusterStates.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PublishedClusterStates.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.PublishedClusterStates /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Recording.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Recording.java index 364457b53..175b2c419 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Recording.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Recording.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Recording /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java index 23f64edf1..b7cfd67fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.reload_secure_settings.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsResponse.java index 2d5669a99..1e66db94a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch.nodes.reload_secure_settings.ResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.reload_secure_settings.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryLocation.java index 8e26381b6..5c93ac83a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryLocation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.RepositoryLocation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryMeteringInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryMeteringInformation.java index 5d7c1b986..5421e3032 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryMeteringInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryMeteringInformation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.RepositoryMeteringInformation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RequestCounts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RequestCounts.java index 878a72548..282dd7d9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RequestCounts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RequestCounts.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.RequestCounts /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ScriptCache.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ScriptCache.java index c38a26d8f..2c6410223 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ScriptCache.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ScriptCache.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.ScriptCache /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java index 98e437300..14d1fe840 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Scripting /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterState.java index 9cf118e3c..a8b647f5e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterState.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.SerializedClusterState /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterStateDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterStateDetail.java index 66bf182a8..aefa9d912 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterStateDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterStateDetail.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.SerializedClusterStateDetail /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java index b6ae419ba..6c3546eda 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.elasticsearch._types.NodeRole; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Stats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java index 47e64e200..4cf3d2321 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.ThreadCount /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Transport.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Transport.java index 111e18c30..21b288fb5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Transport.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Transport.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Transport /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TransportHistogram.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TransportHistogram.java index eb688d79c..20c05a970 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TransportHistogram.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TransportHistogram.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.TransportHistogram /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/clear_repositories_metering_archive/ResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/clear_repositories_metering_archive/ResponseBase.java index afef47313..d532440f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/clear_repositories_metering_archive/ResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/clear_repositories_metering_archive/ResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.clear_repositories_metering_archive; import co.elastic.clients.elasticsearch.nodes.NodesResponseBase; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.clear_repositories_metering_archive.ResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/get_repositories_metering_info/ResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/get_repositories_metering_info/ResponseBase.java index 14d29c86f..de9b2870c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/get_repositories_metering_info/ResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/get_repositories_metering_info/ResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.get_repositories_metering_info; import co.elastic.clients.elasticsearch.nodes.NodesResponseBase; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.get_repositories_metering_info.ResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/hot_threads/HotThread.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/hot_threads/HotThread.java index 37f398698..72d45d424 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/hot_threads/HotThread.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/hot_threads/HotThread.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.hot_threads; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.hot_threads.HotThread /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/DeprecationIndexing.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/DeprecationIndexing.java index f8fd5510e..be391d67b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/DeprecationIndexing.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/DeprecationIndexing.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.DeprecationIndexing /** 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 229be15ee..4f9d3b6b4 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.elasticsearch._types.NodeRole; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAction.java index e7d1a81f1..6c00d9d0d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAggregation.java index bac772ed7..3d5da2ea3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoBootstrap.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoBootstrap.java index da327b9a6..b0373372f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoBootstrap.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoBootstrap.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoBootstrap /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoClient.java index 31054bb58..23df2b849 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoClient /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoDiscover.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoDiscover.java index d451c2628..6c8ee6b99 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoDiscover.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoDiscover.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoDiscover /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoHttp.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoHttp.java index 92f1d36fc..58658cf59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoHttp.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoHttp.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoHttp /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngest.java index a6f8de567..9c362d62a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoIngest /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestDownloader.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestDownloader.java index 3be497527..e6767efb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestDownloader.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestDownloader.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoIngestDownloader /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestInfo.java index ca9dc7d45..73d0b0848 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoIngestInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestProcessor.java index 7ba152a7c..b7b72e8ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoIngestProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoJvmMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoJvmMemory.java index 4c3d40bfe..8dd5017a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoJvmMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoJvmMemory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoJvmMemory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoMemory.java index af30fc676..a4c0b00cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoMemory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoMemory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoNetwork.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoNetwork.java index 06e2515ca..d63119ef1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoNetwork.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoNetwork.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoNetwork /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoNetworkInterface.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoNetworkInterface.java index 641f934fb..08c9d22b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoNetworkInterface.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoNetworkInterface.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoNetworkInterface /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoOSCPU.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoOSCPU.java index 08959921a..ee421ecb7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoOSCPU.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoOSCPU.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoOSCPU /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java index 208b1a61f..1074b0778 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoPath /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositories.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositories.java index 6b635b2da..231927c9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositories.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositories.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoRepositories /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositoriesUrl.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositoriesUrl.java index 6e2492d4b..f0e72f456 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositoriesUrl.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositoriesUrl.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoRepositoriesUrl /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoScript.java index 43bd253f9..f34b5f2da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoScript /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearch.java index cb2087374..a2c5730f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearch.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSearch /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearchRemote.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearchRemote.java index 946cb231d..33602fb21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearchRemote.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearchRemote.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSearchRemote /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java index 02b600636..de50a5480 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java index 414ff1aca..fa83093b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.elasticsearch.indices.IndexRouting; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsCluster /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsClusterElection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsClusterElection.java index d5cb74f4e..290519d01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsClusterElection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsClusterElection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsClusterElection /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttp.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttp.java index e8ba50aaa..98377c3a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttp.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttp.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsHttp /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttpType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttpType.java index c2c652670..44a1d37c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttpType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttpType.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsHttpType /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsIngest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsIngest.java index 2d61a8ce7..c301843ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsIngest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsIngest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsIngest /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNetwork.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNetwork.java index 469c003e0..a57a5bc80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNetwork.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNetwork.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsNetwork /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNode.java index 493dd34c1..1daa03814 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsNode /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransport.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransport.java index 537fafc47..81e3b1fdc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransport.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransport.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsTransport /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportFeatures.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportFeatures.java index 28d4e12a0..883690645 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportFeatures.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportFeatures.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsTransportFeatures /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportType.java index 84f4f76bb..ed1557c04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportType.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoSettingsTransportType /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoTransport.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoTransport.java index a0b85a536..798fe3022 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoTransport.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoTransport.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoTransport /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpack.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpack.java index 738dac46c..0f1b6a7a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpack.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpack.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpack /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicense.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicense.java index 4fdc642fe..d13eabaea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicense.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicense.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpackLicense /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicenseType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicenseType.java index 78be9fc21..130404ec6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicenseType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicenseType.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpackLicenseType /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java index 8cd49568f..d8fc7be1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpackSecurity /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthc.java index ba3ec7881..cc6c76557 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthc.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpackSecurityAuthc /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealms.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealms.java index cbecf5143..bc4bac84c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealms.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealms.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpackSecurityAuthcRealms /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealmsStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealmsStatus.java index 5c241444d..9897f54a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealmsStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealmsStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpackSecurityAuthcRealmsStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcToken.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcToken.java index e26cd3451..d3cbb6508 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcToken.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcToken.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpackSecurityAuthcToken /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecuritySsl.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecuritySsl.java index 74af6f26a..2e77952b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecuritySsl.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecuritySsl.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeInfoXpackSecuritySsl /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeJvmInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeJvmInfo.java index e8ba06c40..ab8fc19d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeJvmInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeJvmInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeJvmInfo /** 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 40405a611..f8ed6d38d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeOperatingSystemInfo /** 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 21d3b1445..dfc8609ec 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeProcessInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeThreadPoolInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeThreadPoolInfo.java index 1b158a5a2..2dc9ee51d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeThreadPoolInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeThreadPoolInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.NodeThreadPoolInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/ResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/ResponseBase.java index 9746f25bc..87a9c780c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/ResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/ResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.info; import co.elastic.clients.elasticsearch.nodes.NodesResponseBase; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.info.ResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/reload_secure_settings/ResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/reload_secure_settings/ResponseBase.java index d8acdfcc4..fcd10b5d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/reload_secure_settings/ResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/reload_secure_settings/ResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.reload_secure_settings; import co.elastic.clients.elasticsearch.nodes.NodeReloadResult; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.reload_secure_settings.ResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/stats/ResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/stats/ResponseBase.java index 980eef9d5..accd9f633 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/stats/ResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/stats/ResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.stats; import co.elastic.clients.elasticsearch.nodes.NodesResponseBase; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.stats.ResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodeUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodeUsage.java index 57bf78876..70ae3df0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodeUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodeUsage.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.usage; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.usage.NodeUsage /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/ResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/ResponseBase.java index 1a4c5c18a..99f590643 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/ResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/ResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes.usage; import co.elastic.clients.elasticsearch.nodes.NodesResponseBase; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes.usage.ResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java index 7670af893..fde2635cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.delete.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java index 0022d42eb..6ecd1d19c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.delete.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java index b111451f0..8d249f4fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the query_ruleset namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java index 8517f3f93..05b95f685 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the query_ruleset namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java index b510f576d..f465ab6d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.get.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java index 4163d4a95..51d068136 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.get.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java index f7a555a96..00861b672 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.list.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java index eb6582cc6..0053e9ed1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch.query_ruleset.list.QueryRulesetListItem; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.list.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java index 9925d24b2..9d2035f34 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.put.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java index c54f7b1de..9f45c5dd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.Result; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.put.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java index 8a3168036..962bc86bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset._types.QueryRule /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java index a084ec7e5..77abb7a8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.query_dsl.PinnedDoc; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset._types.QueryRuleActions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java index 5a48c1611..830147759 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset._types.QueryRuleCriteria /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java index 31ba6a87b..2a8155eb3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java index 26e25502b..f556d0ce9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup.put_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobResponse.java index 76e21eb92..84862b9eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup.put_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java index 7b01f5874..0eab9af1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup.rollup_search.Request /** 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 ee5f429fb..8eeff1d26 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -49,6 +45,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup.rollup_search.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java index ffbe7cf2a..dc63e9189 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup.start_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobResponse.java index f35f4fb23..2a37361f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup.start_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java index 93e6200f3..08eb7d861 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup.stop_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobResponse.java index 1481e5b53..cf0b4be72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup.stop_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/TermsGrouping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/TermsGrouping.java index 8ee393eef..cfa84542a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/TermsGrouping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/TermsGrouping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: rollup._types.TermsGrouping /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/IndexingJobState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/IndexingJobState.java index e1a9af0ac..c6ce7f0e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/IndexingJobState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/IndexingJobState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup.get_jobs; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRuleVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRuleVariant.java index 460304fa3..71bccc93e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRuleVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRuleVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link FieldRule} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java index 4f74e84e0..9d77f2d3c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.FieldSecurity /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java index 56e60e2d4..10d1f1df5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_api_key.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyResponse.java index 2124e0f88..40a0be76d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_api_key.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesRequest.java index 57799108a..5489ec422 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_builtin_privileges.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesResponse.java index e54f5d5b7..916160081 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetBuiltinPrivilegesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_builtin_privileges.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java index 0fbd3ee90..8124ab49f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_privileges.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesResponse.java index 45e288b57..e3f314244 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.put_privileges.Actions; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_privileges.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java index 7ff0ae9f0..ca0bacf24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_role_mapping.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingResponse.java index 5e999c75a..4acfbea4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_role_mapping.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java index e94a4dad0..30fb124c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_role.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleResponse.java index b08a9fe0e..757570976 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.get_role.Role; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_role.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java index 5ccf14f1e..ee3296530 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_service_accounts.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsResponse.java index b36c886c3..4c81972b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.get_service_accounts.RoleDescriptorWrapper; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_service_accounts.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java index 1e672e81a..c6ba0bca5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_service_credentials.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsResponse.java index 6c090b197..6a4ba2130 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.get_service_credentials.NodesCredentials; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_service_credentials.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java index cc36998a6..f2916572c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_token.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenResponse.java index a7a268eff..dd3c2e35a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.get_token.AuthenticatedUser; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_token.Response /** 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 f6de89f65..14e30351b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_user_privileges.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesResponse.java index 0058da5d8..fc8c24d95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_user_privileges.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java index 0d898b72d..d9de3be35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_user_profile.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileResponse.java index 07520542f..5368b9cd8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.get_user_profile.GetUserProfileErrors; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_user_profile.Response /** 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 9fde87b2e..3fb19f45c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_user.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserResponse.java index 8a008c2d7..e60820466 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_user.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java index bd64f4de4..3e641701c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.GlobalPrivilege /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java index 7604f224b..d412ddf6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.grant_api_key.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyResponse.java index 162b809a0..72dd16e01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.grant_api_key.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantType.java index fce68cce5..ca918cf7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java index 3c84c04c3..68cbfd667 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.has_privileges.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesResponse.java index 59ced0920..c84b9d9bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.has_privileges.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java index f905f71ec..0fe5fa138 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.has_privileges_user_profile.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileResponse.java index b16cf83b8..181618028 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.has_privileges_user_profile.HasPrivilegesUserProfileErrors; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.has_privileges_user_profile.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndexPrivilege.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndexPrivilege.java index af36fae51..4394e1bd7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndexPrivilege.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndexPrivilege.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java index d58a2ddcc..01324a6f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.IndicesPrivileges /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java index 10de48a67..9b1dabac4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.invalidate_api_key.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyResponse.java index 30388e682..b34dd5c07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.invalidate_api_key.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java index af7351cf8..9f5443643 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.invalidate_token.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenResponse.java index bd08deedd..eaf74a67c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.invalidate_token.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java index 1d4649c6a..512a55fc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.ManageUserPrivileges /** 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 09babc723..b189946e3 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.put_privileges.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesResponse.java index 0e7bb1b1e..14dda7b71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.put_privileges.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java index 290277e03..c3ecab999 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.put_role_mapping.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingResponse.java index e50b72e3f..6f14a0fdf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.put_role_mapping.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java index 8be0eac01..c0dd257f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.put_role.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleResponse.java index 6e10ee369..27a68cbae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.put_role.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java index 3781bae56..46aa7966d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.put_user.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserResponse.java index f8a0dd1b6..9065f75e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.put_user.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java index 9fa998210..f526fc835 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.query_api_keys.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java index 19ded4c67..264a0df97 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.query_api_keys.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java index f92c9662d..43165f689 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.Realm /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java index 0eac72cf0..ed951f5ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RealmInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java index 8a83dc4aa..f0c812683 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleDescriptor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java index cf27e9664..0f7a231c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleDescriptorRead /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java index 2d08419e6..943f61b6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.get_role.RoleTemplate; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleMapping /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRule.java index 3ad99f889..dbfc9c188 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonEnum; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleMappingRule /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRuleBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRuleBuilders.java index 38829ccd3..43559a31a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRuleBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRuleBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link RoleMappingRule} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRuleVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRuleVariant.java index 4b27456be..89c8e7c4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRuleVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMappingRuleVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link RoleMappingRule} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineQuery.java index 1af5366d7..ededdb818 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineQuery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleTemplateInlineQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineQueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineQueryBuilders.java index 3101bd2a0..e1a3ec936 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineQueryBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineQueryBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.query_dsl.Query; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link RoleTemplateInlineQuery} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineScript.java index 7279e2428..6984132cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ScriptBase; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleTemplateInlineScript /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java index 049a4ae0e..6b07ec241 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.StoredScriptId; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleTemplateScript /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScriptBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScriptBuilders.java index ff2cc7195..55f8f5224 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScriptBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScriptBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.StoredScriptId; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link RoleTemplateScript} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java index fec9195b6..77e887782 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_authenticate.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateResponse.java index 79bda3658..13f096aae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_authenticate.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java index e22704c16..ca4af24b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_complete_logout.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java index 0b16ae226..3696211aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_invalidate.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateResponse.java index 1eafe60f0..94512fbd3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_invalidate.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java index d81dea4b1..f7419a44b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_logout.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutResponse.java index 2ab8bed20..83cb7ab2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_logout.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java index 369cc30dc..4609f7093 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_prepare_authentication.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationResponse.java index eb11fcd72..dd9fc6104 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_prepare_authentication.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java index 9642a1e38..fe0e9443d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_service_provider_metadata.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataResponse.java index 502ce055e..41681fed7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.saml_service_provider_metadata.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java index 1b09e3cfc..2ecc820ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.suggest_user_profiles.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesResponse.java index 7fecab750..7d39c6b7e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.suggest_user_profiles.TotalUserProfiles; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.suggest_user_profiles.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java index beb1066cf..8387f6083 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.TransientMetadataConfig /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java index c3dd49510..621267e6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.update_api_key.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java index fd30a2241..0be1faa89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.update_api_key.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java index db6a5ef57..1c95a1aa5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.update_user_profile_data.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataResponse.java index 9ffe8df34..c8c64c2da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.update_user_profile_data.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/User.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/User.java index 187df3f94..e09a93231 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/User.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/User.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.User /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserIndicesPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserIndicesPrivileges.java index a7a60b55d..a98f1689a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserIndicesPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserIndicesPrivileges.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.UserIndicesPrivileges /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfile.java index f315e7d77..aeb03fa9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfile.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.UserProfile /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileHitMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileHitMetadata.java index f7cdc2681..1d58273d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileHitMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileHitMetadata.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.UserProfileHitMetadata /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileUser.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileUser.java index 2c617383e..4bd16a5ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileUser.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileUser.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.UserProfileUser /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileWithMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileWithMetadata.java index 22e3f6453..a788f90bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileWithMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileWithMetadata.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.UserProfileWithMetadata /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java index 06a563552..25218b7e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.authenticate; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.authenticate.Token /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/create_service_token/Token.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/create_service_token/Token.java index 930022123..02a843e0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/create_service_token/Token.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/create_service_token/Token.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.create_service_token; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.create_service_token.Token /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delete_privileges/FoundStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delete_privileges/FoundStatus.java index 2661069cc..9317792dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delete_privileges/FoundStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delete_privileges/FoundStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.delete_privileges; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.delete_privileges.FoundStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/enroll_kibana/Token.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/enroll_kibana/Token.java index 4ca9d9682..bb2a54246 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/enroll_kibana/Token.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/enroll_kibana/Token.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.enroll_kibana; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.enroll_kibana.Token /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java index 16fbdf06a..b67b3b16d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.get_role; import co.elastic.clients.elasticsearch.security.ApplicationPrivileges; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_role.Role /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/RoleTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/RoleTemplate.java index 1e616c0c5..b74c2225f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/RoleTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/RoleTemplate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.get_role; import co.elastic.clients.elasticsearch._types.Script; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_role.RoleTemplate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/TemplateFormat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/TemplateFormat.java index 21e76f879..e9db04577 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/TemplateFormat.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/TemplateFormat.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.get_role; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java index 3fbd4358e..c4f77af50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown.get_node; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: shutdown.get_node.NodeShutdownStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java index 69170e02b..f2cbe23ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown.get_node; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: shutdown.get_node.PersistentTaskStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java index 27ad8ce73..88495fac7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown.get_node; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: shutdown.get_node.PluginsStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java index 13807ad87..3ebc75d1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown.get_node; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: shutdown.get_node.ShardMigrationStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShutdownStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShutdownStatus.java index 644f176e0..d69024980 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShutdownStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShutdownStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown.get_node; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStats.java index 35823b654..b1bd05d29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot._types.SnapshotStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java index a43bc3148..c9da0634a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot.status.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusResponse.java index 18e0326c9..0765e727a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot.status.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Status.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Status.java index bfd78ecb2..30edb95d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Status.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Status.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot._types.Status /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java index be1c65044..fffc7bc18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot.verify_repository.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryResponse.java index 6bae19431..04334c04b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot; import co.elastic.clients.elasticsearch.snapshot.verify_repository.CompactNodeInfo; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot.verify_repository.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/cleanup_repository/CleanupRepositoryResults.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/cleanup_repository/CleanupRepositoryResults.java index e7d7d754e..5c2ebb3a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/cleanup_repository/CleanupRepositoryResults.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/cleanup_repository/CleanupRepositoryResults.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot.cleanup_repository; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot.cleanup_repository.CleanupRepositoryResults /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/get/SnapshotResponseItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/get/SnapshotResponseItem.java index 94a1c3c8d..00cdfb9f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/get/SnapshotResponseItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/get/SnapshotResponseItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot.get; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot.get.SnapshotResponseItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/restore/SnapshotRestore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/restore/SnapshotRestore.java index 4793660ae..951f3dd5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/restore/SnapshotRestore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/restore/SnapshotRestore.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot.restore; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot.restore.SnapshotRestore /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/verify_repository/CompactNodeInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/verify_repository/CompactNodeInfo.java index 64c3f8ee6..d4b4f4902 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/verify_repository/CompactNodeInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/verify_repository/CompactNodeInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot.verify_repository; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: snapshot.verify_repository.CompactNodeInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java index 4063ceeb5..237741864 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.clear_cursor.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorResponse.java index 208a8811e..2abf6e9db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.clear_cursor.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java index fcfe6826c..0e295d155 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.Column /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java index 44ed8cfcb..80ac5e499 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.delete_async.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncResponse.java index d706b3820..1557c1dd8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.delete_async.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java index 38fdfb9d1..fed7550c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the sql namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java index 07ca181bc..cc52ab771 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the sql namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java index c77995ef4..cb83acdd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.get_async.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncResponse.java index 013b27fe0..808307d36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.get_async.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java index 751783f75..70223bb9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.get_async_status.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusResponse.java index bd7e351f1..5a569cb8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.get_async_status.Response /** 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 72e567ebe..e301687b9 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -50,6 +46,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.query.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryResponse.java index 025190c69..dd8121407 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.query.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java index 23d1c0d17..577558214 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.translate.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateResponse.java index c88c8bbf2..198e39b30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.elasticsearch._types.SortOptions; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: sql.translate.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java index 5986027dc..2d635b689 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ssl; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ssl.certificates.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesResponse.java index e3fdae8ff..1335d3f2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ssl; import co.elastic.clients.elasticsearch.ssl.certificates.CertificateInformation; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ssl.certificates.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/ElasticsearchSslAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/ElasticsearchSslAsyncClient.java index 169ffff2d..ba2a85955 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/ElasticsearchSslAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/ElasticsearchSslAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ssl; import co.elastic.clients.ApiClient; @@ -33,6 +29,21 @@ import java.util.concurrent.CompletableFuture; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ssl namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/ElasticsearchSslClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/ElasticsearchSslClient.java index 8c659b7d9..a2b597d3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/ElasticsearchSslClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/ElasticsearchSslClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ssl; import co.elastic.clients.ApiClient; @@ -34,6 +30,21 @@ import java.io.IOException; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ssl namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java index 88444c68d..c496ab023 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ssl.certificates; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ssl.certificates.CertificateInformation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java index 2b708693d..8573eb849 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.delete_synonym.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java index 0db18ccb5..735909c83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.delete_synonym.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java index 37137c86e..1ed23fb74 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.delete_synonym_rule.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java index 8aef72699..f3562290d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.delete_synonym_rule.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java index cfdec96f6..738a41a91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the synonyms namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java index e3b9491f5..d999cf000 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the synonyms namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java index a6ce5de5b..19b1c69cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonym.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java index ed287c090..f0c8964dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonym.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java index 476888f09..4e7a72b62 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonym_rule.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java index cb12fb6d6..5c07f3051 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonym_rule.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java index 9bf9b2fe5..cf6db2290 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonyms_sets.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java index 2095ab0a7..42f04cc17 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch.synonyms.get_synonyms_sets.SynonymsSetItem; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonyms_sets.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java index b03200b5a..2e528f779 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.put_synonym.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java index e95aa7299..4283ac056 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.Result; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.put_synonym.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java index 279192a2d..3a18ea662 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.put_synonym_rule.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java index 3ccfe320c..ae61eb8ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.put_synonym_rule.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java index dd45a5ede..4c183e02e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms._types.SynonymRule /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java index def90b689..b9267ccf9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms._types.SynonymRuleRead /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java index ff281e36f..2ce927bda 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.Result; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms._types.SynonymsUpdateResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java index b52e58954..3e81a0679 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms.get_synonyms_sets; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonyms_sets.SynonymsSetItem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java index 007779343..91aa2393b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks.cancel.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelResponse.java index 3e1cc67c0..258133d4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks.cancel.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java index 46eebf71d..a917a44f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the tasks namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java index c6501da38..6c0f8dd4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the tasks namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java index 11c0556f0..92ac73a70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks.get.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksResponse.java index 5046d5053..264893fb9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks.get.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GroupBy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GroupBy.java index 66d7a85b1..6eddcc3a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GroupBy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GroupBy.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java index 11a8aaf93..1a2544985 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks.list.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListResponse.java index 895755f2b..0b72da0ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks.list.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/NodeTasks.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/NodeTasks.java index e703e4ea8..c763ca843 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/NodeTasks.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/NodeTasks.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks._types.NodeTasks /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ParentTaskInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ParentTaskInfo.java index 3e1afedc7..2a5c5568b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ParentTaskInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ParentTaskInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks._types.ParentTaskInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfo.java index d44219cd6..646858885 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.elasticsearch._types.Time; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks._types.TaskInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfos.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfos.java index dc70e3a51..320065ab5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfos.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfos.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks._types.TaskInfos /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfosBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfosBuilders.java index 7541759fc..47018d2ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfosBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfosBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TaskInfos} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskListResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskListResponseBase.java index 0ff6bd648..f11470172 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskListResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskListResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks._types.TaskListResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java index 5ce014a31..577d3b989 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.delete_transform.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformResponse.java index 5634f5c51..0080c8d0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.delete_transform.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java index 73dc98431..ab68b4eb5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Destination /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java index 7ef0889cf..17d25bcf0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the transform namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java index 3504184cb..076ebb0ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.ApiClient; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the transform namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java index 80c9d173b..35a8d62aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformResponse.java index de00727a9..11dd5b1ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch.transform.get_transform.TransformSummary; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java index 6a50ce899..ac3be6670 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsResponse.java index 8c52d691e..2b0caff19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch.transform.get_transform_stats.TransformStats; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.Response /** 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 b601f6fee..7a76fde6c 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Latest /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java index e524cbb52..98dbc2fbb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.aggregations.Aggregation; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Pivot /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupBy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupBy.java index f0d5a1267..ce733a064 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupBy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupBy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.aggregations.DateHistogramAggregation; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.PivotGroupByContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByBuilders.java index 901bbea0c..9a991f047 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByBuilders.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.aggregations.DateHistogramAggregation; @@ -30,6 +26,21 @@ import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link PivotGroupBy} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByVariant.java index 99638ab96..28313dff9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link PivotGroupBy} variants. */ 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 8cf7f5c07..e0613a13d 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.preview_transform.Request /** 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 e10f4b588..d9f3e440b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch.indices.IndexState; @@ -43,6 +39,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.preview_transform.Response /** 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 e17867d59..970953ec6 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.put_transform.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformResponse.java index 8762a18c9..b86b2ee7a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.put_transform.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java index e38b01b40..513d0b781 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.reset_transform.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformResponse.java index 329180d86..7872d41b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.reset_transform.Response /** 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 91dbc8363..fa990054b 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.RetentionPolicyContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyBuilders.java index 4b641a60a..90b985b40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link RetentionPolicy} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyVariant.java index 4d48484f5..b4e9bbc8b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link RetentionPolicy} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java index f49ba9d6e..c881bbef7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.schedule_now_transform.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java index cd7e7f4b9..b39e9f979 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.schedule_now_transform.Response /** 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 16a9d7b0b..1be72a0fd 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Settings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java index 0d7a9156f..77861d74c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.mapping.RuntimeField; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Source /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java index 5fcaaac1b..1b59c6a83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.start_transform.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformResponse.java index f05a9bd39..515bf747f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.start_transform.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java index 507cb6676..3c60d2738 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.stop_transform.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformResponse.java index 0b4490113..951697f6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.stop_transform.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Sync.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Sync.java index 43a41fcb2..c9de8fb00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Sync.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Sync.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.SyncContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SyncBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SyncBuilders.java index ebab2ee54..6edd77b9e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SyncBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SyncBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Sync} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SyncVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SyncVariant.java index f158cd32d..b072ad029 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SyncVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SyncVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Sync} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java index b32e75b99..9b6394add 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.RetentionPolicy /** 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 c0eadd5ac..33a700025 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.TimeSync /** 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 46bf96597..8860b021f 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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.update_transform.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformResponse.java index 63986b7b9..a9f23e097 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.Time; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.update_transform.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java index 8b24d66b3..7b351249c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.upgrade_transforms.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsResponse.java index 51e4a05e9..f9995d6af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.upgrade_transforms.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java index ac8736000..305d07e5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform; import co.elastic.clients.elasticsearch._types.Time; @@ -51,6 +47,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform.TransformSummary /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java index 1b9817d4c..81f9e00db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.CheckpointStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java index d1d146869..f3a5eb90b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.Checkpointing /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java index 374ad9a54..f4d91ad46 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.TransformIndexerStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java index 7f4531e3a..e33d79f50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.TransformProgress /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java index a4cf28cd9..b7b63eb74 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.elasticsearch._types.NodeAttributes; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.TransformStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java index 7002d30c9..d3fd23b2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.elasticsearch._types.HealthStatus; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.TransformStatsHealth /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java index 02895825f..ac998913b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.ack_watch.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchResponse.java index 0361e2b7e..fb2e69676 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.ack_watch.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgeState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgeState.java index 430494521..83c9f1c4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgeState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgeState.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.AcknowledgeState /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgementOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgementOptions.java index ee9c724e6..29b5c35a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgementOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgementOptions.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java index 3f30042fd..17f91830b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.activate_watch.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchResponse.java index a44d10b17..511f99a3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.activate_watch.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationState.java index 501b29cd6..5814939e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationState.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ActivationState /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationStatus.java index 7067f6983..2e2895542 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ActivationStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AlwaysCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AlwaysCondition.java index b0d58c72a..cb70c5559 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AlwaysCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AlwaysCondition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -30,6 +26,21 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareCondition.java index 89782a09d..d48c496b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareCondition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ArrayCompareCondition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareOpParams.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareOpParams.java index e23d3f26d..c98610e89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareOpParams.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareOpParams.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ArrayCompareOpParams /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ChainInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ChainInput.java index 694786636..3b1d712b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ChainInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ChainInput.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ChainInput /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Condition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Condition.java index 3c4c14340..8288eca19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Condition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Condition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ConditionContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionBuilders.java index 8283ba671..7689cdc8a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Condition} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionOp.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionOp.java index 8c58c49ea..19b5e0f35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionOp.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionOp.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionType.java index 70b848c13..a08093fe7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionVariant.java index d7eccd2e9..d7bd3f703 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConditionVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Condition} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConnectionScheme.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConnectionScheme.java index cdf2a442b..17ebcd488 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConnectionScheme.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ConnectionScheme.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DailySchedule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DailySchedule.java index 9af05773a..d8dda6668 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DailySchedule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DailySchedule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.DailySchedule /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DataAttachmentFormat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DataAttachmentFormat.java index f711bcac1..898b110a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DataAttachmentFormat.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DataAttachmentFormat.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java index 69e3a2d2a..6181ca080 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.deactivate_watch.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchResponse.java index 8f1b5443f..bc920995f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.deactivate_watch.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java index 2e4eae757..a4a79459e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.delete_watch.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchResponse.java index d0c1d19fe..1b6eb09f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.delete_watch.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherAsyncClient.java index a5b49e161..b51e54f35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the watcher namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherClient.java index cc90ff356..7753f5705 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the watcher namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Email.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Email.java index 4447c079e..a9c09bb21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Email.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Email.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.Email /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAction.java index f7945170b..65125ba14 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.EmailAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachment.java index 2e14cf897..0a8390c37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.EmailAttachmentContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachmentBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachmentBuilders.java index 7c12cf7ed..85fe43a5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachmentBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachmentBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link EmailAttachment} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachmentVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachmentVariant.java index 62c58607f..33e85fd7a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachmentVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAttachmentVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link EmailAttachment} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailBody.java index 239167bce..21d6b2627 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailBody.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.EmailBody /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailPriority.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailPriority.java index 5ba5831f7..016d98e9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailPriority.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailPriority.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailResult.java index ba0953ca5..6ac5c4112 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.EmailResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java index 1a2a71843..abaa69831 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.execute_watch.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchResponse.java index 130d6bf87..538954f42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch.watcher.execute_watch.WatchRecord; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.execute_watch.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionPhase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionPhase.java index 0827accee..7f433cc23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionPhase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionPhase.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResult.java index c4bf2b5cd..59bce0a7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ExecutionResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultAction.java index c96838208..1ba5f5971 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ExecutionResultAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultCondition.java index 146ed20b4..4caed9354 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultCondition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ExecutionResultCondition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultInput.java index 5a1102c75..cc67eb6db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultInput.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ExecutionResultInput /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionState.java index c936d3b92..6a80ae8bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionState.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ExecutionState /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionStatus.java index c2e05c0a7..1ed71829f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionThreadPool.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionThreadPool.java index c407f074b..2d3c4219c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionThreadPool.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionThreadPool.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ExecutionThreadPool /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java index d54689f7c..e5d78074f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.get_watch.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchResponse.java index 7eee155c8..5623e9f4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.get_watch.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourAndMinute.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourAndMinute.java index 19e4f8a1c..b9dc6e4e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourAndMinute.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourAndMinute.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HourAndMinute /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourlySchedule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourlySchedule.java index f1500741b..e2eb601eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourlySchedule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourlySchedule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HourlySchedule /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpEmailAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpEmailAttachment.java index 21feaded0..784ea1499 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpEmailAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpEmailAttachment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HttpEmailAttachment /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInput.java index 68237c60d..7db9ad6dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInput.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HttpInput /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputAuthentication.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputAuthentication.java index 204fda6c8..8a486eec2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputAuthentication.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputAuthentication.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HttpInputAuthentication /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputBasicAuthentication.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputBasicAuthentication.java index f66f8e9cd..87904ea95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputBasicAuthentication.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputBasicAuthentication.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HttpInputBasicAuthentication /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputMethod.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputMethod.java index 5c43efa81..0254b18e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputMethod.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputMethod.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputProxy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputProxy.java index 05ed7aa87..d7e4ecb70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputProxy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputProxy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HttpInputProxy /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestDefinition.java index a50dfb671..eedf4d01e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.Time; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HttpInputRequestDefinition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestResult.java index 9fcc41851..cc490f171 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HttpInputRequestResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputResponseResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputResponseResult.java index d9e6bccd0..0df0db65c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputResponseResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputResponseResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.HttpInputResponseResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexAction.java index d2ca30066..0d5628149 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.OpType; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.IndexAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResult.java index b1946ee15..e513bfb57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.IndexResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResultSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResultSummary.java index 37b426e4e..04dae7b8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResultSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResultSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.Result; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.IndexResultSummary /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Input.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Input.java index 460d90235..a3165e53e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Input.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Input.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonData; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.InputContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputBuilders.java index 554965f63..17861cf0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Input} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputType.java index e2156010f..68c55c9c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputVariant.java index 4e9f6de2e..555491a6f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/InputVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Input} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingAction.java index dbe07acc2..2c1650368 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.LoggingAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingResult.java index 93a91211f..cc76f74c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.LoggingResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Month.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Month.java index 9d1793b97..e2956e622 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Month.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Month.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/NeverCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/NeverCondition.java index 214879312..076016816 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/NeverCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/NeverCondition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -30,6 +26,21 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyAction.java index 38000ecab..c86a2a505 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.PagerDutyAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContext.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContext.java index 2b9e88ec9..f857c94d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContext.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContext.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.PagerDutyContext /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContextType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContextType.java index 843027c9b..6f55691f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContextType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContextType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java index ec087a202..060c066ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.QueryWatch /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java index f21b74140..21fbb0a57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.query_watches.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesResponse.java index 45434c6cb..69d42d122 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.query_watches.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ReportingEmailAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ReportingEmailAttachment.java index 9389279fc..432d133e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ReportingEmailAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ReportingEmailAttachment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.Time; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ReportingEmailAttachment /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ResponseContentType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ResponseContentType.java index b0a100070..d74ec2d75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ResponseContentType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ResponseContentType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTimeOfDay.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTimeOfDay.java index 9726dfd35..6b390ad7a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTimeOfDay.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTimeOfDay.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ScheduleTimeOfDay /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTimeOfDayBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTimeOfDayBuilders.java index ca2b7a0c9..5e684dcf2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTimeOfDayBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTimeOfDayBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link ScheduleTimeOfDay} variants. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTriggerEvent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTriggerEvent.java index 43e753d90..1bd73f261 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTriggerEvent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTriggerEvent.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ScheduleTriggerEvent /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleVariant.java index 502f67693..2a4c73405 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Schedule} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScriptCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScriptCondition.java index d1ee1e9d7..48eda42ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScriptCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScriptCondition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ScriptCondition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInput.java index a0b3233de..bf62a6da8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInput.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SearchInput /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestBody.java index a0f5b210e..53403008d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestBody.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SearchInputRequestBody /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestDefinition.java index a5ae29224..31a8cd9b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SearchInputRequestDefinition /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchTemplateRequestBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchTemplateRequestBody.java index 262fa0730..b311d6b88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchTemplateRequestBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchTemplateRequestBody.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SearchTemplateRequestBody /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SimulatedActions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SimulatedActions.java index 52433486a..75383a41c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SimulatedActions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SimulatedActions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SimulatedActions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAction.java index f57493ecb..8ca8e2469 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SlackAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachment.java index 9e8a7ac8e..4df81b70c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SlackAttachment /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachmentField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachmentField.java index a74e2168d..5b0786161 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachmentField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachmentField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SlackAttachmentField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackDynamicAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackDynamicAttachment.java index 802d03597..417a4bd0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackDynamicAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackDynamicAttachment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SlackDynamicAttachment /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackMessage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackMessage.java index 138d3dded..7e541394d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackMessage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackMessage.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SlackMessage /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackResult.java index 7cd9b8a61..99082b56e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.SlackResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java index c0a21390d..cedaadac6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.start.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherResponse.java index 07d8ffd97..026306d77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.start.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java index 97d936a07..2458b25c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.stop.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherResponse.java index 53fa11d7b..545ee3d29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.stop.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ThrottleState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ThrottleState.java index 57070d5bf..9c832f9f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ThrottleState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ThrottleState.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.ThrottleState /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfMonth.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfMonth.java index eb92e44de..5adc228af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfMonth.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfMonth.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.TimeOfMonth /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfWeek.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfWeek.java index e71366bf5..0839b63d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfWeek.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfWeek.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.TimeOfWeek /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfYear.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfYear.java index cbcb66259..a2cda820f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfYear.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfYear.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.TimeOfYear /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Trigger.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Trigger.java index 49e2bd280..e4c9e88ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Trigger.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Trigger.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.TriggerContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerBuilders.java index 0bce31295..5b3b5326e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Trigger} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEvent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEvent.java index ce7a0554c..da83f96b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEvent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEvent.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.TriggerEventContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventBuilders.java index a0ba5603b..0dcf5b3b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TriggerEvent} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventResult.java index f4a6b1aee..edfc141b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.TriggerEventResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventVariant.java index 9398d417d..df025101c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link TriggerEvent} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerVariant.java index 05871ff8b..0318986fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Trigger} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Watch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Watch.java index f38e06b44..382cffa0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Watch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Watch.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.Time; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.Watch /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatchStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatchStatus.java index 0ba9db64a..f0500ec91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatchStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatchStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.WatchStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java index 87f547439..0c7fccd37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsResponse.java index 819942fa8..8f9360d9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.elasticsearch._types.NodeStatistics; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookAction.java index 259e897ec..a64772718 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.WebhookAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookResult.java index 8230a4856..b0fa77925 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher._types.WebhookResult /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/execute_watch/WatchRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/execute_watch/WatchRecord.java index aab216360..d3be794f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/execute_watch/WatchRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/execute_watch/WatchRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher.execute_watch; import co.elastic.clients.elasticsearch.watcher.Condition; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.execute_watch.WatchRecord /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordQueuedStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordQueuedStats.java index fe9eb2393..ad2173f96 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordQueuedStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordQueuedStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher.stats; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.stats.WatchRecordQueuedStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordStats.java index 64d1db0e4..dee84d071 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher.stats; import co.elastic.clients.elasticsearch.watcher.ExecutionPhase; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.stats.WatchRecordStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherMetric.java index 5a231996f..7ab5cc7d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherMetric.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherMetric.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher.stats; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherNodeStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherNodeStats.java index 0574b8078..c569c948a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherNodeStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherNodeStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher.stats; import co.elastic.clients.elasticsearch.watcher.ExecutionThreadPool; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: watcher.stats.WatcherNodeStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherState.java index 330428c9f..7a37471e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher.stats; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackAsyncClient.java index d34967a95..389433384 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the xpack namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackClient.java index a42f5b04a..abb1eb02f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the xpack namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java index 7e78fe803..5f83e92e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.info.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoResponse.java index 10f0bdeab..325c01ce9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack; import co.elastic.clients.elasticsearch.xpack.info.BuildInformation; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.info.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java index a3462d719..4d44ca92f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageResponse.java index 75358cc73..3ce8375c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack; import co.elastic.clients.elasticsearch.xpack.usage.Analytics; @@ -58,6 +54,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/BuildInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/BuildInformation.java index a36132e32..aaceb54fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/BuildInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/BuildInformation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.info.BuildInformation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Feature.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Feature.java index cc4387f40..4a363e178 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Feature.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Feature.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.info; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.info.Feature /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Features.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Features.java index 4e33cb418..002902434 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Features.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Features.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.info; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.info.Features /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/MinimalLicenseInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/MinimalLicenseInformation.java index 0be1e815c..afc2ee76d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/MinimalLicenseInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/MinimalLicenseInformation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.info; import co.elastic.clients.elasticsearch.license.LicenseStatus; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.info.MinimalLicenseInformation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/NativeCodeInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/NativeCodeInformation.java index a20e7be6c..4b3d63c59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/NativeCodeInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/NativeCodeInformation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.info; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.info.NativeCodeInformation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Analytics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Analytics.java index 2f17e4593..d3c82d7d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Analytics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Analytics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Analytics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/AnalyticsStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/AnalyticsStatistics.java index cba40e0fc..3c0c1d2c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/AnalyticsStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/AnalyticsStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.AnalyticsStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Archive.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Archive.java index 38e2d2f70..305b65f66 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Archive.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Archive.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Archive /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Audit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Audit.java index 4bebebd7e..eb180d1ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Audit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Audit.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Audit /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Base.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Base.java index 17dfb56fa..4cbc96713 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Base.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Base.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Base /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ccr.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ccr.java index 48aba9579..3a7731b05 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ccr.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ccr.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Ccr /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Counter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Counter.java index b4221ad25..1f74d7fea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Counter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Counter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Counter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataStreams.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataStreams.java index 31fd2c8d4..e1137d5b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataStreams.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataStreams.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.DataStreams /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTierPhaseStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTierPhaseStatistics.java index bfa255f70..7eb547d29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTierPhaseStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTierPhaseStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.DataTierPhaseStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTiers.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTiers.java index 6c2dc757d..3147b23f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTiers.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTiers.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.DataTiers /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Datafeed.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Datafeed.java index 382974309..07dfc0d24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Datafeed.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Datafeed.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Datafeed /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Eql.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Eql.java index c3e78435d..c26345f63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Eql.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Eql.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Eql /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeatures.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeatures.java index 018292922..979abcc6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeatures.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeatures.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.EqlFeatures /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesJoin.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesJoin.java index 3caf9b0f5..2163da1bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesJoin.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesJoin.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.EqlFeaturesJoin /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesKeys.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesKeys.java index a364b4486..c58fa37e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesKeys.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesKeys.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.EqlFeaturesKeys /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesPipes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesPipes.java index 93a8fcf26..f5258d228 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesPipes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesPipes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.EqlFeaturesPipes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesSequences.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesSequences.java index d20ba4dd7..2cc15656d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesSequences.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesSequences.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.EqlFeaturesSequences /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/FeatureToggle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/FeatureToggle.java index 3389b6ef5..11f326b16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/FeatureToggle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/FeatureToggle.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.FeatureToggle /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Flattened.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Flattened.java index a86544dc3..cd1ea96c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Flattened.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Flattened.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Flattened /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/FrozenIndices.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/FrozenIndices.java index fb41be783..594549892 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/FrozenIndices.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/FrozenIndices.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.FrozenIndices /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/HealthStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/HealthStatistics.java index 997448975..a83662814 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/HealthStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/HealthStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.HealthStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ilm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ilm.java index cedd3162e..4bfb0617b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ilm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ilm.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Ilm /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IlmPolicyStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IlmPolicyStatistics.java index f7dd58ce7..2a6805730 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IlmPolicyStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IlmPolicyStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.elasticsearch.ilm.Phases; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.IlmPolicyStatistics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Invocations.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Invocations.java index ab4113134..14c020956 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Invocations.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Invocations.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Invocations /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IpFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IpFilter.java index 4a99d1468..5dd38d94d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IpFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IpFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.IpFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/JobUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/JobUsage.java index 43dad84d3..cb0f78de0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/JobUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/JobUsage.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.elasticsearch.ml.JobStatistics; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.JobUsage /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MachineLearning.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MachineLearning.java index 18d8103e4..a3a14e497 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MachineLearning.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MachineLearning.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MachineLearning /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlCounter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlCounter.java index 5b7f55907..854ec65b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlCounter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlCounter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlCounter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobs.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobs.java index 433d626de..a9d2ca173 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobs.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobs.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlDataFrameAnalyticsJobs /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsAnalysis.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsAnalysis.java index 158c3eb2a..6c7a2f4f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsAnalysis.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsAnalysis.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlDataFrameAnalyticsJobsAnalysis /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsCount.java index 2b293cdb8..c0d5b3c1d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsCount.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlDataFrameAnalyticsJobsCount /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsMemory.java index 5a2076d15..78d490998 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsMemory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.elasticsearch.ml.JobStatistics; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlDataFrameAnalyticsJobsMemory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInference.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInference.java index fa9cd5ae5..2d8f17846 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInference.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInference.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlInference /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeployments.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeployments.java index 16f39ba40..0e1b19719 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeployments.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeployments.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.elasticsearch.ml.JobStatistics; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlInferenceDeployments /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeploymentsTimeMs.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeploymentsTimeMs.java index 0fe2a8d7e..b953331f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeploymentsTimeMs.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeploymentsTimeMs.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlInferenceDeploymentsTimeMs /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessor.java index 0090f7b3c..de1a5c8c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlInferenceIngestProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessorCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessorCount.java index 6a80e9222..194a762b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessorCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessorCount.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlInferenceIngestProcessorCount /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModels.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModels.java index e283d90b4..4dead3fc5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModels.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModels.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.elasticsearch.ml.JobStatistics; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlInferenceTrainedModels /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModelsCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModelsCount.java index ed30085c5..b8abcc37c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModelsCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModelsCount.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlInferenceTrainedModelsCount /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlJobForecasts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlJobForecasts.java index 724187060..a68d59e6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlJobForecasts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlJobForecasts.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.MlJobForecasts /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Monitoring.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Monitoring.java index 2a5e7d480..79793d063 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Monitoring.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Monitoring.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Monitoring /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Realm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Realm.java index 30db1e543..53b2ddaa1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Realm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Realm.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Realm /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RealmCache.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RealmCache.java index 491d4ed05..1fb39c0b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RealmCache.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RealmCache.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.RealmCache /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RoleMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RoleMapping.java index b9324b94b..9825e06da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RoleMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RoleMapping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.RoleMapping /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldTypes.java index 64dea4ab0..bd31a30d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldTypes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.RuntimeFieldTypes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldsType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldsType.java index a837eb997..cf8381e2d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldsType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldsType.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.RuntimeFieldsType /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SearchableSnapshots.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SearchableSnapshots.java index 1484c47b0..9bdad3179 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SearchableSnapshots.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SearchableSnapshots.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.SearchableSnapshots /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Security.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Security.java index 90851014c..ef7962519 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Security.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Security.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Security /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRoles.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRoles.java index 9512ec6a1..a4afe87fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRoles.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRoles.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.SecurityRoles /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDls.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDls.java index 18d0fdd0f..f1d1701ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDls.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDls.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.SecurityRolesDls /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDlsBitSetCache.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDlsBitSetCache.java index 8fe2b0792..cc59bf219 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDlsBitSetCache.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDlsBitSetCache.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.SecurityRolesDlsBitSetCache /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesFile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesFile.java index e5736be16..1771deacd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesFile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesFile.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.SecurityRolesFile /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesNative.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesNative.java index 74b30784b..cccce7876 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesNative.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesNative.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.SecurityRolesNative /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Slm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Slm.java index 9ec8f2ff1..eeb4e3b1a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Slm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Slm.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.elasticsearch.slm.Statistics; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Slm /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Sql.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Sql.java index 48180dc8e..4f6d3fc60 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Sql.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Sql.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Sql /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ssl.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ssl.java index 6824a4eae..b4efd845c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ssl.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ssl.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Ssl /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Vector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Vector.java index a3ac65ed9..91ab8e0a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Vector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Vector.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Vector /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Watcher.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Watcher.java index 2d673fa98..247e9b56c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Watcher.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Watcher.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Watcher /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActionTotals.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActionTotals.java index a6b83d1d0..41fb2966f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActionTotals.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActionTotals.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.WatcherActionTotals /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActions.java index 4e01cb748..3d2d2016c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.WatcherActions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatch.java index 44d989f08..b8b31bd86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatch.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.WatcherWatch /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTrigger.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTrigger.java index 7db177273..ff565b353 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTrigger.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTrigger.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.WatcherWatchTrigger /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTriggerSchedule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTriggerSchedule.java index 5cc6b22d3..a476b40f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTriggerSchedule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTriggerSchedule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.WatcherWatchTriggerSchedule /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/XpackUsageQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/XpackUsageQuery.java index 66637da8b..037d1bb94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/XpackUsageQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/XpackUsageQuery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.xpack.usage; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: xpack.usage.Query /** From d78feca1695513c74e3fbfcc6c4be187bee2e38c Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Fri, 9 Feb 2024 18:41:27 +0100 Subject: [PATCH 06/25] [codegen] Update to latest API spec --- .../ElasticsearchAsyncClient.java | 15 + .../elasticsearch/ElasticsearchClient.java | 15 + .../elasticsearch/_types/ClusterDetails.java | 322 ++++++++ .../_types/ClusterSearchStatus.java | 72 ++ .../_types/ClusterStatistics.java | 130 ++++ .../elasticsearch/_types/KnnQuery.java | 33 + .../aggregations/FrequentItemSetsField.java | 71 +- .../_types/aggregations/MultiTermsBucket.java | 61 ++ .../SignificantTextAggregation.java | 35 +- .../_types/aggregations/TopMetrics.java | 61 ++ .../analysis/PathHierarchyTokenizer.java | 99 ++- .../_types/mapping/FieldType.java | 2 + .../_types/mapping/Property.java | 31 + .../_types/mapping/PropertyBuilders.java | 19 + .../_types/mapping/SparseVectorProperty.java | 124 +++ .../_types/query_dsl/GeoDistanceQuery.java | 38 + .../elasticsearch/_types/query_dsl/Query.java | 32 + .../_types/query_dsl/QueryBuilders.java | 18 + .../query_dsl/SimpleQueryStringFlags.java | 192 ----- .../SimpleQueryStringFlagsBuilders.java | 41 - .../_types/query_dsl/TextExpansionQuery.java | 43 ++ .../_types/query_dsl/TokenPruningConfig.java | 240 ++++++ .../_types/query_dsl/WeightedTokensQuery.java | 247 ++++++ .../async_search/AsyncSearchResponseBase.java | 65 ++ .../async_search/SubmitRequest.java | 61 ++ .../status/StatusResponseBase.java | 46 ++ .../elasticsearch/core/BulkRequest.java | 109 +-- .../core/ClearScrollRequest.java | 8 +- .../core/ClosePointInTimeRequest.java | 10 +- .../elasticsearch/core/CountRequest.java | 142 ++-- .../elasticsearch/core/CreateRequest.java | 100 +-- .../core/DeleteByQueryRequest.java | 260 ++++--- .../core/DeleteByQueryRethrottleRequest.java | 10 +- .../elasticsearch/core/DeleteRequest.java | 84 +-- .../core/DeleteScriptRequest.java | 24 +- .../elasticsearch/core/ExistsRequest.java | 80 +- .../core/ExistsSourceRequest.java | 68 +- .../elasticsearch/core/ExplainRequest.java | 95 +-- .../elasticsearch/core/GetRequest.java | 16 +- .../elasticsearch/core/GetScriptRequest.java | 6 +- .../elasticsearch/core/IndexRequest.java | 125 ++-- .../core/MsearchTemplateRequest.java | 32 +- .../core/MtermvectorsRequest.java | 111 ++- .../core/OpenPointInTimeRequest.java | 50 +- .../elasticsearch/core/PutScriptRequest.java | 47 +- .../core/ReindexRethrottleRequest.java | 12 +- .../core/RenderSearchTemplateRequest.java | 27 +- .../core/ScriptsPainlessExecuteRequest.java | 18 +- .../elasticsearch/core/SearchRequest.java | 73 ++ .../core/SearchShardsRequest.java | 82 +- .../core/SearchTemplateRequest.java | 95 ++- .../core/TermvectorsRequest.java | 93 ++- .../core/UpdateByQueryRequest.java | 286 ++++--- .../core/UpdateByQueryRethrottleRequest.java | 10 +- .../core/bulk/BulkOperationBase.java | 12 + .../core/bulk/BulkResponseItem.java | 63 +- .../core/bulk/UpdateOperation.java | 4 + .../core/bulk/WriteOperation.java | 34 + .../core/msearch/MultisearchBody.java | 61 ++ .../core/msearch_template/TemplateConfig.java | 19 + .../MultiTermVectorsOperation.java | 73 +- .../reindex_rethrottle/ReindexStatus.java | 116 ++- .../PainlessContextSetup.java | 34 +- .../elasticsearch/core/search/Hit.java | 61 ++ .../core/termvectors/Filter.java | 32 + .../elasticsearch/doc-files/api-spec.html | 703 +++++++++--------- .../elasticsearch/enrich/EnrichPolicy.java | 20 +- .../eql/ElasticsearchEqlAsyncClient.java | 42 +- .../eql/ElasticsearchEqlClient.java | 42 +- .../esql/ElasticsearchEsqlAsyncClient.java | 101 +++ .../esql/ElasticsearchEsqlClient.java | 102 +++ .../elasticsearch/esql/QueryRequest.java | 441 +++++++++++ .../fleet/FleetSearchRequest.java | 61 ++ .../elasticsearch/indices/DataLifecycle.java | 156 ---- .../indices/DataLifecycleWithRollover.java | 233 ------ .../elasticsearch/indices/DataStream.java | 60 ++ .../indices/DataStreamIndex.java | 93 +++ .../indices/DlmRolloverConditions.java | 420 ----------- .../ElasticsearchIndicesAsyncClient.java | 46 +- .../indices/ElasticsearchIndicesClient.java | 46 +- .../elasticsearch/indices/IndexSettings.java | 29 - .../elasticsearch/indices/ManagedBy.java | 68 ++ .../MappingLimitSettingsDimensionFields.java | 12 +- .../DataLifecycleExplain.java | 406 ---------- .../DataStreamLifecycle.java | 183 ----- .../inference/DeleteModelRequest.java | 212 ++++++ .../inference/DeleteModelResponse.java | 107 +++ .../ElasticsearchInferenceAsyncClient.java | 202 +++++ .../ElasticsearchInferenceClient.java | 201 +++++ .../inference/GetModelRequest.java | 210 ++++++ .../inference/GetModelResponse.java | 182 +++++ .../inference/InferenceRequest.java | 325 ++++++++ .../inference/InferenceResponse.java | 155 ++++ .../inference/InferenceResult.java | 278 +++++++ .../inference/InferenceResultBuilders.java | 52 ++ .../inference/InferenceResultVariant.java | 48 ++ .../elasticsearch/inference/ModelConfig.java | 223 ++++++ .../inference/ModelConfigContainer.java | 182 +++++ .../inference/PutModelRequest.java | 265 +++++++ .../inference/PutModelResponse.java | 106 +++ .../inference/SparseEmbeddingResult.java | 180 +++++ .../elasticsearch/inference/TaskType.java | 65 ++ .../inference/TextEmbeddingByteResult.java | 180 +++++ .../TextEmbeddingResult.java} | 92 ++- .../elasticsearch/ingest/Pipeline.java | 55 ++ .../elasticsearch/ingest/Processor.java | 42 +- .../ingest/ProcessorBuilders.java | 33 +- .../ingest/RerouteProcessor.java | 326 ++++++++ .../elasticsearch/ingest/ScriptProcessor.java | 281 +++++++ .../ElasticsearchLogstashAsyncClient.java | 13 + .../logstash/ElasticsearchLogstashClient.java | 13 + .../logstash/GetPipelineRequest.java | 15 +- .../ml/PutTrainedModelRequest.java | 49 ++ .../ml/PutTrainedModelVocabularyRequest.java | 51 ++ .../StartTrainedModelDeploymentRequest.java | 30 + .../elasticsearch/ml/TrainedModelConfig.java | 37 + .../ml/TrainedModelPrefixStrings.java | 189 +++++ .../query_ruleset/PutRequest.java | 99 ++- .../query_ruleset/QueryRuleset.java | 40 +- .../AnalyticsCollection.java | 6 +- ...ticsearchSearchApplicationAsyncClient.java | 4 +- .../ElasticsearchSearchApplicationClient.java | 4 +- .../search_application/ListRequest.java | 12 +- .../PutBehavioralAnalyticsRequest.java | 6 +- .../search_application/PutRequest.java | 12 +- .../search_application/SearchApplication.java | 24 +- .../SearchApplicationSearchRequest.java | 15 +- .../SearchApplicationTemplate.java | 12 +- .../elasticsearch/security/ApiKey.java | 61 ++ .../elasticsearch/security/FieldRule.java | 98 +-- .../security/FieldRuleBuilders.java | 22 +- .../security/GetApiKeyRequest.java | 40 + .../security/PutRoleMappingRequest.java | 54 ++ .../security/QueryApiKeysRequest.java | 69 ++ .../elasticsearch/security/RoleMapping.java | 1 - .../security/{get_role => }/RoleTemplate.java | 7 +- .../{get_role => }/TemplateFormat.java | 5 +- .../security/UpdateApiKeyRequest.java | 43 ++ .../elasticsearch/security/get_role/Role.java | 1 + .../elasticsearch/sql/ClearCursorRequest.java | 8 +- .../elasticsearch/sql/DeleteAsyncRequest.java | 4 +- .../elasticsearch/sql/GetAsyncRequest.java | 4 +- .../sql/GetAsyncStatusRequest.java | 4 +- .../elasticsearch/sql/QueryRequest.java | 28 +- .../elasticsearch/sql/TranslateRequest.java | 22 +- .../synonyms/PutSynonymRuleRequest.java | 40 +- .../elasticsearch/tasks/CancelRequest.java | 34 +- .../elasticsearch/tasks/GetTasksRequest.java | 17 +- .../elasticsearch/tasks/TaskStatus.java | 600 --------------- ...ElasticsearchTextStructureAsyncClient.java | 103 +++ .../ElasticsearchTextStructureClient.java | 106 +++ .../TestGrokPatternRequest.java | 276 +++++++ .../TestGrokPatternResponse.java | 187 +++++ .../test_grok_pattern/MatchedField.java | 203 +++++ .../test_grok_pattern/MatchedText.java | 211 ++++++ .../transform/DeleteTransformRequest.java | 32 + .../watcher/QueryWatchesRequest.java | 69 ++ .../elasticsearch/model/UnionTests.java | 15 - 158 files changed, 10951 insertions(+), 4005 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.java delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlags.java delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlagsBuilders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TokenPruningConfig.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycle.java delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DlmRolloverConditions.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ManagedBy.java delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataLifecycleExplain.java delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultVariant.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfig.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfigContainer.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java rename java-client/src/main/java/co/elastic/clients/elasticsearch/{security/Realm.java => inference/TextEmbeddingResult.java} (59%) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java rename java-client/src/main/java/co/elastic/clients/elasticsearch/security/{get_role => }/RoleTemplate.java (96%) rename java-client/src/main/java/co/elastic/clients/elasticsearch/security/{get_role => }/TemplateFormat.java (92%) delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskStatus.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedField.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedText.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 88b3e5ef5..5d036bb98 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 @@ -113,11 +113,13 @@ import co.elastic.clients.elasticsearch.dangling_indices.ElasticsearchDanglingIndicesAsyncClient; import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichAsyncClient; import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlAsyncClient; +import co.elastic.clients.elasticsearch.esql.ElasticsearchEsqlAsyncClient; import co.elastic.clients.elasticsearch.features.ElasticsearchFeaturesAsyncClient; import co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetAsyncClient; import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphAsyncClient; import co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmAsyncClient; import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesAsyncClient; +import co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceAsyncClient; import co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestAsyncClient; import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseAsyncClient; import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashAsyncClient; @@ -137,6 +139,7 @@ import co.elastic.clients.elasticsearch.ssl.ElasticsearchSslAsyncClient; import co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsAsyncClient; import co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksAsyncClient; +import co.elastic.clients.elasticsearch.text_structure.ElasticsearchTextStructureAsyncClient; import co.elastic.clients.elasticsearch.transform.ElasticsearchTransformAsyncClient; import co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherAsyncClient; import co.elastic.clients.elasticsearch.xpack.ElasticsearchXpackAsyncClient; @@ -221,6 +224,10 @@ public ElasticsearchEqlAsyncClient eql() { return new ElasticsearchEqlAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchEsqlAsyncClient esql() { + return new ElasticsearchEsqlAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchFeaturesAsyncClient features() { return new ElasticsearchFeaturesAsyncClient(this.transport, this.transportOptions); } @@ -241,6 +248,10 @@ public ElasticsearchIndicesAsyncClient indices() { return new ElasticsearchIndicesAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchInferenceAsyncClient inference() { + return new ElasticsearchInferenceAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchIngestAsyncClient ingest() { return new ElasticsearchIngestAsyncClient(this.transport, this.transportOptions); } @@ -317,6 +328,10 @@ public ElasticsearchTasksAsyncClient tasks() { return new ElasticsearchTasksAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchTextStructureAsyncClient textStructure() { + return new ElasticsearchTextStructureAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchTransformAsyncClient transform() { return new ElasticsearchTransformAsyncClient(this.transport, this.transportOptions); } 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 72f80fa2a..10e55792c 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 @@ -114,11 +114,13 @@ import co.elastic.clients.elasticsearch.dangling_indices.ElasticsearchDanglingIndicesClient; import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichClient; import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlClient; +import co.elastic.clients.elasticsearch.esql.ElasticsearchEsqlClient; import co.elastic.clients.elasticsearch.features.ElasticsearchFeaturesClient; import co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetClient; import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphClient; import co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmClient; import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient; +import co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceClient; import co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestClient; import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseClient; import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashClient; @@ -138,6 +140,7 @@ import co.elastic.clients.elasticsearch.ssl.ElasticsearchSslClient; import co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsClient; import co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksClient; +import co.elastic.clients.elasticsearch.text_structure.ElasticsearchTextStructureClient; import co.elastic.clients.elasticsearch.transform.ElasticsearchTransformClient; import co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherClient; import co.elastic.clients.elasticsearch.xpack.ElasticsearchXpackClient; @@ -222,6 +225,10 @@ public ElasticsearchEqlClient eql() { return new ElasticsearchEqlClient(this.transport, this.transportOptions); } + public ElasticsearchEsqlClient esql() { + return new ElasticsearchEsqlClient(this.transport, this.transportOptions); + } + public ElasticsearchFeaturesClient features() { return new ElasticsearchFeaturesClient(this.transport, this.transportOptions); } @@ -242,6 +249,10 @@ public ElasticsearchIndicesClient indices() { return new ElasticsearchIndicesClient(this.transport, this.transportOptions); } + public ElasticsearchInferenceClient inference() { + return new ElasticsearchInferenceClient(this.transport, this.transportOptions); + } + public ElasticsearchIngestClient ingest() { return new ElasticsearchIngestClient(this.transport, this.transportOptions); } @@ -318,6 +329,10 @@ public ElasticsearchTasksClient tasks() { return new ElasticsearchTasksClient(this.transport, this.transportOptions); } + public ElasticsearchTextStructureClient textStructure() { + return new ElasticsearchTextStructureClient(this.transport, this.transportOptions); + } + public ElasticsearchTransformClient transform() { return new ElasticsearchTransformClient(this.transport, this.transportOptions); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java new file mode 100644 index 000000000..d7991c598 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java @@ -0,0 +1,322 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.ClusterDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ClusterDetails implements JsonpSerializable { + private final ClusterSearchStatus status; + + private final String indices; + + @Nullable + private final Long took; + + private final boolean timedOut; + + @Nullable + private final ShardStatistics shards; + + private final List failures; + + // --------------------------------------------------------------------------------------------- + + private ClusterDetails(Builder builder) { + + this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); + this.indices = ApiTypeHelper.requireNonNull(builder.indices, this, "indices"); + this.took = builder.took; + this.timedOut = ApiTypeHelper.requireNonNull(builder.timedOut, this, "timedOut"); + this.shards = builder.shards; + this.failures = ApiTypeHelper.unmodifiable(builder.failures); + + } + + public static ClusterDetails of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code status} + */ + public final ClusterSearchStatus status() { + return this.status; + } + + /** + * Required - API name: {@code indices} + */ + public final String indices() { + return this.indices; + } + + /** + * API name: {@code took} + */ + @Nullable + public final Long took() { + return this.took; + } + + /** + * Required - API name: {@code timed_out} + */ + public final boolean timedOut() { + return this.timedOut; + } + + /** + * API name: {@code _shards} + */ + @Nullable + public final ShardStatistics shards() { + return this.shards; + } + + /** + * API name: {@code failures} + */ + public final List failures() { + return this.failures; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("status"); + this.status.serialize(generator, mapper); + generator.writeKey("indices"); + generator.write(this.indices); + + if (this.took != null) { + generator.writeKey("took"); + generator.write(this.took); + + } + generator.writeKey("timed_out"); + generator.write(this.timedOut); + + if (this.shards != null) { + generator.writeKey("_shards"); + this.shards.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.failures)) { + generator.writeKey("failures"); + generator.writeStartArray(); + for (ShardFailure item0 : this.failures) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ClusterDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private ClusterSearchStatus status; + + private String indices; + + @Nullable + private Long took; + + private Boolean timedOut; + + @Nullable + private ShardStatistics shards; + + @Nullable + private List failures; + + /** + * Required - API name: {@code status} + */ + public final Builder status(ClusterSearchStatus value) { + this.status = value; + return this; + } + + /** + * Required - API name: {@code indices} + */ + public final Builder indices(String value) { + this.indices = value; + return this; + } + + /** + * API name: {@code took} + */ + public final Builder took(@Nullable Long value) { + this.took = value; + return this; + } + + /** + * Required - API name: {@code timed_out} + */ + public final Builder timedOut(boolean value) { + this.timedOut = value; + return this; + } + + /** + * API name: {@code _shards} + */ + public final Builder shards(@Nullable ShardStatistics value) { + this.shards = value; + return this; + } + + /** + * API name: {@code _shards} + */ + public final Builder shards(Function> fn) { + return this.shards(fn.apply(new ShardStatistics.Builder()).build()); + } + + /** + * API name: {@code failures} + *

+ * Adds all elements of list to failures. + */ + public final Builder failures(List list) { + this.failures = _listAddAll(this.failures, list); + return this; + } + + /** + * API name: {@code failures} + *

+ * Adds one or more values to failures. + */ + public final Builder failures(ShardFailure value, ShardFailure... values) { + this.failures = _listAdd(this.failures, value, values); + return this; + } + + /** + * API name: {@code failures} + *

+ * Adds a value to failures using a builder lambda. + */ + public final Builder failures(Function> fn) { + return failures(fn.apply(new ShardFailure.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ClusterDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ClusterDetails build() { + _checkSingleUse(); + + return new ClusterDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ClusterDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ClusterDetails::setupClusterDetailsDeserializer); + + protected static void setupClusterDetailsDeserializer(ObjectDeserializer op) { + + op.add(Builder::status, ClusterSearchStatus._DESERIALIZER, "status"); + op.add(Builder::indices, JsonpDeserializer.stringDeserializer(), "indices"); + op.add(Builder::took, JsonpDeserializer.longDeserializer(), "took"); + op.add(Builder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); + op.add(Builder::shards, ShardStatistics._DESERIALIZER, "_shards"); + op.add(Builder::failures, JsonpDeserializer.arrayDeserializer(ShardFailure._DESERIALIZER), "failures"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java new file mode 100644 index 000000000..2ba0d100d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.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. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum ClusterSearchStatus implements JsonEnum { + Running("running"), + + Successful("successful"), + + Partial("partial"), + + Skipped("skipped"), + + Failed("failed"), + + ; + + private final String jsonValue; + + ClusterSearchStatus(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ClusterSearchStatus.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java index b02464bd6..40c028dcf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java @@ -31,8 +31,11 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.lang.String; +import java.util.Map; import java.util.Objects; import java.util.function.Function; +import javax.annotation.Nullable; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -64,6 +67,14 @@ public class ClusterStatistics implements JsonpSerializable { private final int total; + private final int running; + + private final int partial; + + private final int failed; + + private final Map details; + // --------------------------------------------------------------------------------------------- private ClusterStatistics(Builder builder) { @@ -71,6 +82,10 @@ private ClusterStatistics(Builder builder) { this.skipped = ApiTypeHelper.requireNonNull(builder.skipped, this, "skipped"); this.successful = ApiTypeHelper.requireNonNull(builder.successful, this, "successful"); this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); + this.running = ApiTypeHelper.requireNonNull(builder.running, this, "running"); + this.partial = ApiTypeHelper.requireNonNull(builder.partial, this, "partial"); + this.failed = ApiTypeHelper.requireNonNull(builder.failed, this, "failed"); + this.details = ApiTypeHelper.unmodifiable(builder.details); } @@ -99,6 +114,34 @@ public final int total() { return this.total; } + /** + * Required - API name: {@code running} + */ + public final int running() { + return this.running; + } + + /** + * Required - API name: {@code partial} + */ + public final int partial() { + return this.partial; + } + + /** + * Required - API name: {@code failed} + */ + public final int failed() { + return this.failed; + } + + /** + * API name: {@code details} + */ + public final Map details() { + return this.details; + } + /** * Serialize this object to JSON. */ @@ -119,6 +162,27 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("total"); generator.write(this.total); + generator.writeKey("running"); + generator.write(this.running); + + generator.writeKey("partial"); + generator.write(this.partial); + + generator.writeKey("failed"); + generator.write(this.failed); + + if (ApiTypeHelper.isDefined(this.details)) { + generator.writeKey("details"); + generator.writeStartObject(); + for (Map.Entry item0 : this.details.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + } @Override @@ -139,6 +203,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer total; + private Integer running; + + private Integer partial; + + private Integer failed; + + @Nullable + private Map details; + /** * Required - API name: {@code skipped} */ @@ -163,6 +236,59 @@ public final Builder total(int value) { return this; } + /** + * Required - API name: {@code running} + */ + public final Builder running(int value) { + this.running = value; + return this; + } + + /** + * Required - API name: {@code partial} + */ + public final Builder partial(int value) { + this.partial = value; + return this; + } + + /** + * Required - API name: {@code failed} + */ + public final Builder failed(int value) { + this.failed = value; + return this; + } + + /** + * API name: {@code details} + *

+ * Adds all entries of map to details. + */ + public final Builder details(Map map) { + this.details = _mapPutAll(this.details, map); + return this; + } + + /** + * API name: {@code details} + *

+ * Adds an entry to details. + */ + public final Builder details(String key, ClusterDetails value) { + this.details = _mapPut(this.details, key, value); + return this; + } + + /** + * API name: {@code details} + *

+ * Adds an entry to details using a builder lambda. + */ + public final Builder details(String key, Function> fn) { + return details(key, fn.apply(new ClusterDetails.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -194,6 +320,10 @@ protected static void setupClusterStatisticsDeserializer(ObjectDeserializer filter; + @Nullable + private final Float similarity; + // --------------------------------------------------------------------------------------------- private KnnQuery(Builder builder) { @@ -90,6 +93,7 @@ private KnnQuery(Builder builder) { this.numCandidates = ApiTypeHelper.requireNonNull(builder.numCandidates, this, "numCandidates"); this.boost = builder.boost; this.filter = ApiTypeHelper.unmodifiable(builder.filter); + this.similarity = builder.similarity; } @@ -163,6 +167,16 @@ public final List filter() { return this.filter; } + /** + * The minimum similarity for a vector to be considered a match + *

+ * API name: {@code similarity} + */ + @Nullable + public final Float similarity() { + return this.similarity; + } + /** * Serialize this object to JSON. */ @@ -213,6 +227,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } + if (this.similarity != null) { + generator.writeKey("similarity"); + generator.write(this.similarity); + + } } @@ -246,6 +265,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List filter; + @Nullable + private Float similarity; + /** * Required - The name of the vector field to search against *

@@ -367,6 +389,16 @@ public final Builder filter(Function> fn) { return filter(fn.apply(new Query.Builder()).build()); } + /** + * The minimum similarity for a vector to be considered a match + *

+ * API name: {@code similarity} + */ + public final Builder similarity(@Nullable Float value) { + this.similarity = value; + return this; + } + @Override protected Builder self() { return this; @@ -403,6 +435,7 @@ protected static void setupKnnQueryDeserializer(ObjectDeserializer exclude; + @Nullable + private final TermsExclude exclude; - private final List include; + @Nullable + private final TermsInclude include; // --------------------------------------------------------------------------------------------- private FrequentItemSetsField(Builder builder) { this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); - this.exclude = ApiTypeHelper.unmodifiable(builder.exclude); - this.include = ApiTypeHelper.unmodifiable(builder.include); + this.exclude = builder.exclude; + this.include = builder.include; } @@ -94,7 +95,8 @@ public final String field() { *

* API name: {@code exclude} */ - public final List exclude() { + @Nullable + public final TermsExclude exclude() { return this.exclude; } @@ -104,7 +106,8 @@ public final List exclude() { *

* API name: {@code include} */ - public final List include() { + @Nullable + public final TermsInclude include() { return this.include; } @@ -122,24 +125,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("field"); generator.write(this.field); - if (ApiTypeHelper.isDefined(this.exclude)) { + if (this.exclude != null) { generator.writeKey("exclude"); - generator.writeStartArray(); - for (String item0 : this.exclude) { - generator.write(item0); - - } - generator.writeEnd(); + this.exclude.serialize(generator, mapper); } - if (ApiTypeHelper.isDefined(this.include)) { + if (this.include != null) { generator.writeKey("include"); - generator.writeStartArray(); - for (String item0 : this.include) { - generator.write(item0); - - } - generator.writeEnd(); + this.include.serialize(generator, mapper); } @@ -162,10 +155,10 @@ public static class Builder extends WithJsonObjectBuilderBase private String field; @Nullable - private List exclude; + private TermsExclude exclude; @Nullable - private List include; + private TermsInclude include; /** * Required - API name: {@code field} @@ -180,11 +173,9 @@ public final Builder field(String value) { * exact terms. *

* API name: {@code exclude} - *

- * Adds all elements of list to exclude. */ - public final Builder exclude(List list) { - this.exclude = _listAddAll(this.exclude, list); + public final Builder exclude(@Nullable TermsExclude value) { + this.exclude = value; return this; } @@ -193,12 +184,9 @@ public final Builder exclude(List list) { * exact terms. *

* API name: {@code exclude} - *

- * Adds one or more values to exclude. */ - public final Builder exclude(String value, String... values) { - this.exclude = _listAdd(this.exclude, value, values); - return this; + public final Builder exclude(Function> fn) { + return this.exclude(fn.apply(new TermsExclude.Builder()).build()); } /** @@ -206,11 +194,9 @@ public final Builder exclude(String value, String... values) { * exact terms. *

* API name: {@code include} - *

- * Adds all elements of list to include. */ - public final Builder include(List list) { - this.include = _listAddAll(this.include, list); + public final Builder include(@Nullable TermsInclude value) { + this.include = value; return this; } @@ -219,12 +205,9 @@ public final Builder include(List list) { * exact terms. *

* API name: {@code include} - *

- * Adds one or more values to include. */ - public final Builder include(String value, String... values) { - this.include = _listAdd(this.include, value, values); - return this; + public final Builder include(Function> fn) { + return this.include(fn.apply(new TermsInclude.Builder()).build()); } @Override @@ -256,10 +239,8 @@ public FrequentItemSetsField build() { protected static void setupFrequentItemSetsFieldDeserializer(ObjectDeserializer op) { op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); - op.add(Builder::exclude, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "exclude"); - op.add(Builder::include, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "include"); + op.add(Builder::exclude, TermsExclude._DESERIALIZER, "exclude"); + op.add(Builder::include, TermsInclude._DESERIALIZER, "include"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java index 0177588c8..8ae2d967f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java @@ -30,6 +30,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Function; @@ -169,6 +170,66 @@ public final Builder key(FieldValue value, FieldValue... values) { return this; } + /** + * Required - API name: {@code key} + *

+ * Adds all passed values to key. + */ + public final Builder key(String value, String... values) { + this.key = _listAdd(this.key, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.key = _listAddAll(this.key, fieldValues); + return this; + } + + /** + * Required - API name: {@code key} + *

+ * Adds all passed values to key. + */ + public final Builder key(long value, long... values) { + this.key = _listAdd(this.key, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.key = _listAddAll(this.key, fieldValues); + return this; + } + + /** + * Required - API name: {@code key} + *

+ * Adds all passed values to key. + */ + public final Builder key(double value, double... values) { + this.key = _listAdd(this.key, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.key = _listAddAll(this.key, fieldValues); + return this; + } + + /** + * Required - API name: {@code key} + *

+ * Adds all passed values to key. + */ + public final Builder key(boolean value, boolean... values) { + this.key = _listAdd(this.key, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.key = _listAddAll(this.key, fieldValues); + return this; + } + /** * Required - API name: {@code key} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTextAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTextAggregation.java index 472828d62..aee184b30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTextAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTextAggregation.java @@ -84,7 +84,8 @@ public class SignificantTextAggregation extends BucketAggregationBase implements @Nullable private final GoogleNormalizedDistanceHeuristic gnd; - private final List include; + @Nullable + private final TermsInclude include; @Nullable private final EmptyObject jlh; @@ -124,7 +125,7 @@ private SignificantTextAggregation(Builder builder) { this.field = builder.field; this.filterDuplicateText = builder.filterDuplicateText; this.gnd = builder.gnd; - this.include = ApiTypeHelper.unmodifiable(builder.include); + this.include = builder.include; this.jlh = builder.jlh; this.minDocCount = builder.minDocCount; this.mutualInformation = builder.mutualInformation; @@ -228,7 +229,8 @@ public final GoogleNormalizedDistanceHeuristic gnd() { *

* API name: {@code include} */ - public final List include() { + @Nullable + public final TermsInclude include() { return this.include; } @@ -367,14 +369,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.gnd.serialize(generator, mapper); } - if (ApiTypeHelper.isDefined(this.include)) { + if (this.include != null) { generator.writeKey("include"); - generator.writeStartArray(); - for (String item0 : this.include) { - generator.write(item0); - - } - generator.writeEnd(); + this.include.serialize(generator, mapper); } if (this.jlh != null) { @@ -461,7 +458,7 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder include; + private TermsInclude include; @Nullable private EmptyObject jlh; @@ -608,11 +605,9 @@ public final Builder gnd( * Values to include. *

* API name: {@code include} - *

- * Adds all elements of list to include. */ - public final Builder include(List list) { - this.include = _listAddAll(this.include, list); + public final Builder include(@Nullable TermsInclude value) { + this.include = value; return this; } @@ -620,12 +615,9 @@ public final Builder include(List list) { * Values to include. *

* API name: {@code include} - *

- * Adds one or more values to include. */ - public final Builder include(String value, String... values) { - this.include = _listAdd(this.include, value, values); - return this; + public final Builder include(Function> fn) { + return this.include(fn.apply(new TermsInclude.Builder()).build()); } /** @@ -818,8 +810,7 @@ protected static void setupSignificantTextAggregationDeserializer( op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::filterDuplicateText, JsonpDeserializer.booleanDeserializer(), "filter_duplicate_text"); op.add(Builder::gnd, GoogleNormalizedDistanceHeuristic._DESERIALIZER, "gnd"); - op.add(Builder::include, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "include"); + op.add(Builder::include, TermsInclude._DESERIALIZER, "include"); op.add(Builder::jlh, EmptyObject._DESERIALIZER, "jlh"); op.add(Builder::minDocCount, JsonpDeserializer.longDeserializer(), "min_doc_count"); op.add(Builder::mutualInformation, MutualInformationHeuristic._DESERIALIZER, "mutual_information"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java index ee4ab8858..0b768b3ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java @@ -32,6 +32,7 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; @@ -165,6 +166,66 @@ public final Builder sort(FieldValue value, FieldValue... values) { return this; } + /** + * Required - API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(String value, String... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * Required - API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(long value, long... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * Required - API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(double value, double... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * Required - API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(boolean value, boolean... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + /** * Required - API name: {@code sort} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PathHierarchyTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PathHierarchyTokenizer.java index 6c7067bfc..d6df934e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PathHierarchyTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PathHierarchyTokenizer.java @@ -24,7 +24,6 @@ import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; @@ -59,26 +58,31 @@ */ @JsonpDeserializable public class PathHierarchyTokenizer extends TokenizerBase implements TokenizerDefinitionVariant { - private final int bufferSize; + @Nullable + private final Integer bufferSize; + @Nullable private final String delimiter; + @Nullable private final String replacement; - private final boolean reverse; + @Nullable + private final Boolean reverse; - private final int skip; + @Nullable + private final Integer skip; // --------------------------------------------------------------------------------------------- private PathHierarchyTokenizer(Builder builder) { super(builder); - this.bufferSize = ApiTypeHelper.requireNonNull(builder.bufferSize, this, "bufferSize"); - this.delimiter = ApiTypeHelper.requireNonNull(builder.delimiter, this, "delimiter"); - this.replacement = ApiTypeHelper.requireNonNull(builder.replacement, this, "replacement"); - this.reverse = ApiTypeHelper.requireNonNull(builder.reverse, this, "reverse"); - this.skip = ApiTypeHelper.requireNonNull(builder.skip, this, "skip"); + this.bufferSize = builder.bufferSize; + this.delimiter = builder.delimiter; + this.replacement = builder.replacement; + this.reverse = builder.reverse; + this.skip = builder.skip; } @@ -95,37 +99,42 @@ public TokenizerDefinition.Kind _tokenizerDefinitionKind() { } /** - * Required - API name: {@code buffer_size} + * API name: {@code buffer_size} */ - public final int bufferSize() { + @Nullable + public final Integer bufferSize() { return this.bufferSize; } /** - * Required - API name: {@code delimiter} + * API name: {@code delimiter} */ + @Nullable public final String delimiter() { return this.delimiter; } /** - * Required - API name: {@code replacement} + * API name: {@code replacement} */ + @Nullable public final String replacement() { return this.replacement; } /** - * Required - API name: {@code reverse} + * API name: {@code reverse} */ - public final boolean reverse() { + @Nullable + public final Boolean reverse() { return this.reverse; } /** - * Required - API name: {@code skip} + * API name: {@code skip} */ - public final int skip() { + @Nullable + public final Integer skip() { return this.skip; } @@ -133,20 +142,31 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "path_hierarchy"); super.serializeInternal(generator, mapper); - generator.writeKey("buffer_size"); - generator.write(this.bufferSize); + if (this.bufferSize != null) { + generator.writeKey("buffer_size"); + generator.write(this.bufferSize); - generator.writeKey("delimiter"); - generator.write(this.delimiter); + } + if (this.delimiter != null) { + generator.writeKey("delimiter"); + generator.write(this.delimiter); + + } + if (this.replacement != null) { + generator.writeKey("replacement"); + generator.write(this.replacement); - generator.writeKey("replacement"); - generator.write(this.replacement); + } + if (this.reverse != null) { + generator.writeKey("reverse"); + generator.write(this.reverse); - generator.writeKey("reverse"); - generator.write(this.reverse); + } + if (this.skip != null) { + generator.writeKey("skip"); + generator.write(this.skip); - generator.writeKey("skip"); - generator.write(this.skip); + } } @@ -159,52 +179,57 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenizerBase.AbstractBuilder implements ObjectBuilder { + @Nullable private Integer bufferSize; + @Nullable private String delimiter; + @Nullable private String replacement; + @Nullable private Boolean reverse; + @Nullable private Integer skip; /** - * Required - API name: {@code buffer_size} + * API name: {@code buffer_size} */ - public final Builder bufferSize(int value) { + public final Builder bufferSize(@Nullable Integer value) { this.bufferSize = value; return this; } /** - * Required - API name: {@code delimiter} + * API name: {@code delimiter} */ - public final Builder delimiter(String value) { + public final Builder delimiter(@Nullable String value) { this.delimiter = value; return this; } /** - * Required - API name: {@code replacement} + * API name: {@code replacement} */ - public final Builder replacement(String value) { + public final Builder replacement(@Nullable String value) { this.replacement = value; return this; } /** - * Required - API name: {@code reverse} + * API name: {@code reverse} */ - public final Builder reverse(boolean value) { + public final Builder reverse(@Nullable Boolean value) { this.reverse = value; return this; } /** - * Required - API name: {@code skip} + * API name: {@code skip} */ - public final Builder skip(int value) { + public final Builder skip(@Nullable Integer value) { this.skip = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldType.java index 136f08c3a..6a42418aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldType.java @@ -127,6 +127,8 @@ public enum FieldType implements JsonEnum { DenseVector("dense_vector"), + SparseVector("sparse_vector"), + MatchOnlyText("match_only_text"), ; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java index 133c0960d..327e9fad0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java @@ -154,6 +154,8 @@ public enum Kind implements JsonEnum { Short("short"), + SparseVector("sparse_vector"), + Text("text"), TokenCount("token_count"), @@ -926,6 +928,23 @@ public ShortNumberProperty short_() { return TaggedUnionUtils.get(this, Kind.Short); } + /** + * Is this variant instance of kind {@code sparse_vector}? + */ + public boolean isSparseVector() { + return _kind == Kind.SparseVector; + } + + /** + * Get the {@code sparse_vector} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code sparse_vector} kind. + */ + public SparseVectorProperty sparseVector() { + return TaggedUnionUtils.get(this, Kind.SparseVector); + } + /** * Is this variant instance of kind {@code text}? */ @@ -1501,6 +1520,17 @@ public ObjectBuilder short_( return this.short_(fn.apply(new ShortNumberProperty.Builder()).build()); } + public ObjectBuilder sparseVector(SparseVectorProperty v) { + this._kind = Kind.SparseVector; + this._value = v; + return this; + } + + public ObjectBuilder sparseVector( + Function> fn) { + return this.sparseVector(fn.apply(new SparseVectorProperty.Builder()).build()); + } + public ObjectBuilder text(TextProperty v) { this._kind = Kind.Text; this._value = v; @@ -1620,6 +1650,7 @@ protected static void setupPropertyDeserializer(ObjectDeserializer op) op.add(Builder::searchAsYouType, SearchAsYouTypeProperty._DESERIALIZER, "search_as_you_type"); op.add(Builder::shape, ShapeProperty._DESERIALIZER, "shape"); op.add(Builder::short_, ShortNumberProperty._DESERIALIZER, "short"); + op.add(Builder::sparseVector, SparseVectorProperty._DESERIALIZER, "sparse_vector"); op.add(Builder::text, TextProperty._DESERIALIZER, "text"); op.add(Builder::tokenCount, TokenCountProperty._DESERIALIZER, "token_count"); op.add(Builder::unsignedLong, UnsignedLongNumberProperty._DESERIALIZER, "unsigned_long"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java index 2d7612b93..0c2a12553 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java @@ -784,6 +784,25 @@ public static Property short_(Function> fn) { + Property.Builder builder = new Property.Builder(); + builder.sparseVector(fn.apply(new SparseVectorProperty.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link TextProperty text} {@code Property} variant. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.java new file mode 100644 index 000000000..e26496882 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.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. + */ + +package co.elastic.clients.elasticsearch._types.mapping; + +import co.elastic.clients.json.JsonpDeserializable; +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.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.mapping.SparseVectorProperty + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SparseVectorProperty extends PropertyBase implements PropertyVariant { + // --------------------------------------------------------------------------------------------- + + private SparseVectorProperty(Builder builder) { + super(builder); + + } + + public static SparseVectorProperty of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Property variant kind. + */ + @Override + public Property.Kind _propertyKind() { + return Property.Kind.SparseVector; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "sparse_vector"); + super.serializeInternal(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SparseVectorProperty}. + */ + + public static class Builder extends PropertyBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SparseVectorProperty}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SparseVectorProperty build() { + _checkSingleUse(); + + return new SparseVectorProperty(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SparseVectorProperty} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SparseVectorProperty::setupSparseVectorPropertyDeserializer); + + protected static void setupSparseVectorPropertyDeserializer(ObjectDeserializer op) { + PropertyBase.setupPropertyBaseDeserializer(op); + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java index 28bf62bb7..535684ce6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java @@ -29,6 +29,7 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; import java.lang.String; import java.util.Objects; import java.util.function.Function; @@ -71,6 +72,9 @@ public class GeoDistanceQuery extends QueryBase implements QueryVariant { @Nullable private final GeoValidationMethod validationMethod; + @Nullable + private final Boolean ignoreUnmapped; + // --------------------------------------------------------------------------------------------- private GeoDistanceQuery(Builder builder) { @@ -81,6 +85,7 @@ private GeoDistanceQuery(Builder builder) { this.distance = ApiTypeHelper.requireNonNull(builder.distance, this, "distance"); this.distanceType = builder.distanceType; this.validationMethod = builder.validationMethod; + this.ignoreUnmapped = builder.ignoreUnmapped; } @@ -143,6 +148,18 @@ public final GeoValidationMethod validationMethod() { return this.validationMethod; } + /** + * Set to true to ignore an unmapped field and not match any + * documents for this query. Set to false to throw an exception if + * the field is not mapped. + *

+ * API name: {@code ignore_unmapped} + */ + @Nullable + public final Boolean ignoreUnmapped() { + return this.ignoreUnmapped; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey(this.field); this.location.serialize(generator, mapper); @@ -159,6 +176,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("validation_method"); this.validationMethod.serialize(generator, mapper); } + if (this.ignoreUnmapped != null) { + generator.writeKey("ignore_unmapped"); + generator.write(this.ignoreUnmapped); + + } } @@ -204,6 +226,9 @@ public final Builder location(Functiontrue to ignore an unmapped field and not match any + * documents for this query. Set to false to throw an exception if + * the field is not mapped. + *

+ * API name: {@code ignore_unmapped} + */ + public final Builder ignoreUnmapped(@Nullable Boolean value) { + this.ignoreUnmapped = value; + return this; + } + @Override protected Builder self() { return this; @@ -269,6 +306,7 @@ protected static void setupGeoDistanceQueryDeserializer(ObjectDeserializer { builder.field(name); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index 39f97355a..0da95a9ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java @@ -185,6 +185,8 @@ public enum Kind implements JsonEnum { TextExpansion("text_expansion"), + WeightedTokens("weighted_tokens"), + Wildcard("wildcard"), Wrapper("wrapper"), @@ -1158,6 +1160,24 @@ public TextExpansionQuery textExpansion() { return TaggedUnionUtils.get(this, Kind.TextExpansion); } + /** + * Is this variant instance of kind {@code weighted_tokens}? + */ + public boolean isWeightedTokens() { + return _kind == Kind.WeightedTokens; + } + + /** + * Get the {@code weighted_tokens} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code weighted_tokens} + * kind. + */ + public WeightedTokensQuery weightedTokens() { + return TaggedUnionUtils.get(this, Kind.WeightedTokens); + } + /** * Is this variant instance of kind {@code wildcard}? */ @@ -1815,6 +1835,17 @@ public ObjectBuilder textExpansion( return this.textExpansion(fn.apply(new TextExpansionQuery.Builder()).build()); } + public ObjectBuilder weightedTokens(WeightedTokensQuery v) { + this._kind = Kind.WeightedTokens; + this._value = v; + return this; + } + + public ObjectBuilder weightedTokens( + Function> fn) { + return this.weightedTokens(fn.apply(new WeightedTokensQuery.Builder()).build()); + } + public ObjectBuilder wildcard(WildcardQuery v) { this._kind = Kind.Wildcard; this._value = v; @@ -1923,6 +1954,7 @@ protected static void setupQueryDeserializer(ObjectDeserializer op) { op.add(Builder::terms, TermsQuery._DESERIALIZER, "terms"); op.add(Builder::termsSet, TermsSetQuery._DESERIALIZER, "terms_set"); op.add(Builder::textExpansion, TextExpansionQuery._DESERIALIZER, "text_expansion"); + op.add(Builder::weightedTokens, WeightedTokensQuery._DESERIALIZER, "weighted_tokens"); op.add(Builder::wildcard, WildcardQuery._DESERIALIZER, "wildcard"); op.add(Builder::wrapper, WrapperQuery._DESERIALIZER, "wrapper"); op.add(Builder::type, TypeQuery._DESERIALIZER, "type"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java index 347f8328e..473535e20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java @@ -959,6 +959,24 @@ public static Query textExpansion(Function> fn) { + Query.Builder builder = new Query.Builder(); + builder.weightedTokens(fn.apply(new WeightedTokensQuery.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link WildcardQuery wildcard} {@code Query} * variant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlags.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlags.java deleted file mode 100644 index c28ca93b2..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlags.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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.JsonpDeserializable; -import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; -import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.UnionDeserializer; -import co.elastic.clients.util.ApiTypeHelper; -import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.ObjectBuilderBase; -import co.elastic.clients.util.TaggedUnion; -import co.elastic.clients.util.TaggedUnionUtils; -import jakarta.json.stream.JsonGenerator; -import java.lang.Object; -import java.lang.String; -import java.util.Objects; -import java.util.function.Function; -import javax.annotation.Nullable; - -// typedef: _types.query_dsl.SimpleQueryStringFlags - -/** - * Query flags can be either a single flag or a combination of flags, e.g. - * OR|AND|PREFIX - * - * @see Documentation - * on elastic.co - * @see API - * specification - */ -@JsonpDeserializable -public class SimpleQueryStringFlags implements TaggedUnion, JsonpSerializable { - - public enum Kind { - Single, Multiple - - } - - private final Kind _kind; - private final Object _value; - - @Override - public final Kind _kind() { - return _kind; - } - - @Override - public final Object _get() { - return _value; - } - - private SimpleQueryStringFlags(Kind kind, Object value) { - this._kind = kind; - this._value = value; - } - - public String _toJsonString() { - switch (_kind) { - case Single : - return this.single().jsonValue(); - case Multiple : - return this.multiple(); - - default : - throw new IllegalStateException("Unknown kind " + _kind); - } - } - - private SimpleQueryStringFlags(Builder builder) { - - this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); - this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); - - } - - public static SimpleQueryStringFlags of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * Is this variant instance of kind {@code single}? - */ - public boolean isSingle() { - return _kind == Kind.Single; - } - - /** - * Get the {@code single} variant value. - * - * @throws IllegalStateException - * if the current variant is not of the {@code single} kind. - */ - public SimpleQueryStringFlag single() { - return TaggedUnionUtils.get(this, Kind.Single); - } - - /** - * Is this variant instance of kind {@code multiple}? - */ - public boolean isMultiple() { - return _kind == Kind.Multiple; - } - - /** - * Get the {@code multiple} variant value. - * - * @throws IllegalStateException - * if the current variant is not of the {@code multiple} kind. - */ - public String multiple() { - return TaggedUnionUtils.get(this, Kind.Multiple); - } - - @Override - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - if (_value instanceof JsonpSerializable) { - ((JsonpSerializable) _value).serialize(generator, mapper); - } else { - switch (_kind) { - case Multiple : - generator.write(((String) this._value)); - - break; - } - } - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - public static class Builder extends ObjectBuilderBase implements ObjectBuilder { - private Kind _kind; - private Object _value; - - public ObjectBuilder single(SimpleQueryStringFlag v) { - this._kind = Kind.Single; - this._value = v; - return this; - } - - public ObjectBuilder multiple(String v) { - this._kind = Kind.Multiple; - this._value = v; - return this; - } - - public SimpleQueryStringFlags build() { - _checkSingleUse(); - return new SimpleQueryStringFlags(this); - } - - } - - private static JsonpDeserializer buildSimpleQueryStringFlagsDeserializer() { - return new UnionDeserializer.Builder(SimpleQueryStringFlags::new, true) - .addMember(Kind.Single, SimpleQueryStringFlag._DESERIALIZER) - .addMember(Kind.Multiple, JsonpDeserializer.stringDeserializer()).build(); - } - - public static final JsonpDeserializer _DESERIALIZER = JsonpDeserializer - .lazy(SimpleQueryStringFlags::buildSimpleQueryStringFlagsDeserializer); -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlagsBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlagsBuilders.java deleted file mode 100644 index 00ae85425..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlagsBuilders.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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.util.ObjectBuilder; -import java.util.function.Function; - -/** - * Builders for {@link SimpleQueryStringFlags} variants. - *

- * Variants single, multiple are not available here as - * they don't have a dedicated class. Use {@link SimpleQueryStringFlags}'s - * builder for these. - * - */ -public class SimpleQueryStringFlagsBuilders { - private SimpleQueryStringFlagsBuilders() { - } - -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java index 1e7956f76..3131f9a2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java @@ -64,6 +64,9 @@ public class TextExpansionQuery extends QueryBase implements QueryVariant { private final String modelText; + @Nullable + private final TokenPruningConfig pruningConfig; + // --------------------------------------------------------------------------------------------- private TextExpansionQuery(Builder builder) { @@ -72,6 +75,7 @@ private TextExpansionQuery(Builder builder) { this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); this.modelText = ApiTypeHelper.requireNonNull(builder.modelText, this, "modelText"); + this.pruningConfig = builder.pruningConfig; } @@ -112,6 +116,16 @@ public final String modelText() { return this.modelText; } + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + @Nullable + public final TokenPruningConfig pruningConfig() { + return this.pruningConfig; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeStartObject(this.field); @@ -122,6 +136,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("model_text"); generator.write(this.modelText); + if (this.pruningConfig != null) { + generator.writeKey("pruning_config"); + this.pruningConfig.serialize(generator, mapper); + + } + generator.writeEnd(); } @@ -149,6 +169,9 @@ public final Builder field(String value) { private String modelText; + @Nullable + private TokenPruningConfig pruningConfig; + /** * Required - The text expansion NLP model to use *

@@ -169,6 +192,25 @@ public final Builder modelText(String value) { return this; } + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + public final Builder pruningConfig(@Nullable TokenPruningConfig value) { + this.pruningConfig = value; + return this; + } + + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + public final Builder pruningConfig(Function> fn) { + return this.pruningConfig(fn.apply(new TokenPruningConfig.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -199,6 +241,7 @@ protected static void setupTextExpansionQueryDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class TokenPruningConfig implements JsonpSerializable { + @Nullable + private final Integer tokensFreqRatioThreshold; + + @Nullable + private final Float tokensWeightThreshold; + + @Nullable + private final Boolean onlyScorePrunedTokens; + + // --------------------------------------------------------------------------------------------- + + private TokenPruningConfig(Builder builder) { + + this.tokensFreqRatioThreshold = builder.tokensFreqRatioThreshold; + this.tokensWeightThreshold = builder.tokensWeightThreshold; + this.onlyScorePrunedTokens = builder.onlyScorePrunedTokens; + + } + + public static TokenPruningConfig of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Tokens whose frequency is more than this threshold times the average + * frequency of all tokens in the specified field are considered outliers and + * pruned. + *

+ * API name: {@code tokens_freq_ratio_threshold} + */ + @Nullable + public final Integer tokensFreqRatioThreshold() { + return this.tokensFreqRatioThreshold; + } + + /** + * Tokens whose weight is less than this threshold are considered nonsignificant + * and pruned. + *

+ * API name: {@code tokens_weight_threshold} + */ + @Nullable + public final Float tokensWeightThreshold() { + return this.tokensWeightThreshold; + } + + /** + * Whether to only score pruned tokens, vs only scoring kept tokens. + *

+ * API name: {@code only_score_pruned_tokens} + */ + @Nullable + public final Boolean onlyScorePrunedTokens() { + return this.onlyScorePrunedTokens; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.tokensFreqRatioThreshold != null) { + generator.writeKey("tokens_freq_ratio_threshold"); + generator.write(this.tokensFreqRatioThreshold); + + } + if (this.tokensWeightThreshold != null) { + generator.writeKey("tokens_weight_threshold"); + generator.write(this.tokensWeightThreshold); + + } + if (this.onlyScorePrunedTokens != null) { + generator.writeKey("only_score_pruned_tokens"); + generator.write(this.onlyScorePrunedTokens); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TokenPruningConfig}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private Integer tokensFreqRatioThreshold; + + @Nullable + private Float tokensWeightThreshold; + + @Nullable + private Boolean onlyScorePrunedTokens; + + /** + * Tokens whose frequency is more than this threshold times the average + * frequency of all tokens in the specified field are considered outliers and + * pruned. + *

+ * API name: {@code tokens_freq_ratio_threshold} + */ + public final Builder tokensFreqRatioThreshold(@Nullable Integer value) { + this.tokensFreqRatioThreshold = value; + return this; + } + + /** + * Tokens whose weight is less than this threshold are considered nonsignificant + * and pruned. + *

+ * API name: {@code tokens_weight_threshold} + */ + public final Builder tokensWeightThreshold(@Nullable Float value) { + this.tokensWeightThreshold = value; + return this; + } + + /** + * Whether to only score pruned tokens, vs only scoring kept tokens. + *

+ * API name: {@code only_score_pruned_tokens} + */ + public final Builder onlyScorePrunedTokens(@Nullable Boolean value) { + this.onlyScorePrunedTokens = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TokenPruningConfig}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TokenPruningConfig build() { + _checkSingleUse(); + + return new TokenPruningConfig(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TokenPruningConfig} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TokenPruningConfig::setupTokenPruningConfigDeserializer); + + protected static void setupTokenPruningConfigDeserializer(ObjectDeserializer op) { + + op.add(Builder::tokensFreqRatioThreshold, JsonpDeserializer.integerDeserializer(), + "tokens_freq_ratio_threshold"); + op.add(Builder::tokensWeightThreshold, JsonpDeserializer.floatDeserializer(), "tokens_weight_threshold"); + op.add(Builder::onlyScorePrunedTokens, JsonpDeserializer.booleanDeserializer(), "only_score_pruned_tokens"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java new file mode 100644 index 000000000..926cdfa2e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java @@ -0,0 +1,247 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Float; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.query_dsl.WeightedTokensQuery + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class WeightedTokensQuery extends QueryBase implements QueryVariant { + // Single key dictionary + private final String field; + + private final Map tokens; + + @Nullable + private final TokenPruningConfig pruningConfig; + + // --------------------------------------------------------------------------------------------- + + private WeightedTokensQuery(Builder builder) { + super(builder); + this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); + + this.tokens = ApiTypeHelper.unmodifiableRequired(builder.tokens, this, "tokens"); + this.pruningConfig = builder.pruningConfig; + + } + + public static WeightedTokensQuery of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Query variant kind. + */ + @Override + public Query.Kind _queryKind() { + return Query.Kind.WeightedTokens; + } + + /** + * Required - The target field + */ + public final String field() { + return this.field; + } + + /** + * Required - The tokens representing this query + *

+ * API name: {@code tokens} + */ + public final Map tokens() { + return this.tokens; + } + + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + @Nullable + public final TokenPruningConfig pruningConfig() { + return this.pruningConfig; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(this.field); + + super.serializeInternal(generator, mapper); + if (ApiTypeHelper.isDefined(this.tokens)) { + generator.writeKey("tokens"); + generator.writeStartObject(); + for (Map.Entry item0 : this.tokens.entrySet()) { + generator.writeKey(item0.getKey()); + generator.write(item0.getValue()); + + } + generator.writeEnd(); + + } + if (this.pruningConfig != null) { + generator.writeKey("pruning_config"); + this.pruningConfig.serialize(generator, mapper); + + } + + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link WeightedTokensQuery}. + */ + + public static class Builder extends QueryBase.AbstractBuilder + implements + ObjectBuilder { + private String field; + + /** + * Required - The target field + */ + public final Builder field(String value) { + this.field = value; + return this; + } + + private Map tokens; + + @Nullable + private TokenPruningConfig pruningConfig; + + /** + * Required - The tokens representing this query + *

+ * API name: {@code tokens} + *

+ * Adds all entries of map to tokens. + */ + public final Builder tokens(Map map) { + this.tokens = _mapPutAll(this.tokens, map); + return this; + } + + /** + * Required - The tokens representing this query + *

+ * API name: {@code tokens} + *

+ * Adds an entry to tokens. + */ + public final Builder tokens(String key, Float value) { + this.tokens = _mapPut(this.tokens, key, value); + return this; + } + + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + public final Builder pruningConfig(@Nullable TokenPruningConfig value) { + this.pruningConfig = value; + return this; + } + + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + public final Builder pruningConfig(Function> fn) { + return this.pruningConfig(fn.apply(new TokenPruningConfig.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link WeightedTokensQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public WeightedTokensQuery build() { + _checkSingleUse(); + + return new WeightedTokensQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link WeightedTokensQuery} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, WeightedTokensQuery::setupWeightedTokensQueryDeserializer); + + protected static void setupWeightedTokensQueryDeserializer(ObjectDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::tokens, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.floatDeserializer()), + "tokens"); + op.add(Builder::pruningConfig, TokenPruningConfig._DESERIALIZER, "pruning_config"); + + op.setKey(Builder::field, JsonpDeserializer.stringDeserializer()); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchResponseBase.java index 62e6baf9c..42ce2cca4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchResponseBase.java @@ -79,6 +79,12 @@ public abstract class AsyncSearchResponseBase implements JsonpSerializable { private final long startTimeInMillis; + @Nullable + private final DateTime completionTime; + + @Nullable + private final Long completionTimeInMillis; + // --------------------------------------------------------------------------------------------- protected AsyncSearchResponseBase(AbstractBuilder builder) { @@ -91,6 +97,8 @@ protected AsyncSearchResponseBase(AbstractBuilder builder) { "expirationTimeInMillis"); this.startTime = builder.startTime; this.startTimeInMillis = ApiTypeHelper.requireNonNull(builder.startTimeInMillis, this, "startTimeInMillis"); + this.completionTime = builder.completionTime; + this.completionTimeInMillis = builder.completionTimeInMillis; } @@ -158,6 +166,25 @@ public final long startTimeInMillis() { return this.startTimeInMillis; } + /** + * Indicates when the async search completed. Only present when the search has + * completed. + *

+ * API name: {@code completion_time} + */ + @Nullable + public final DateTime completionTime() { + return this.completionTime; + } + + /** + * API name: {@code completion_time_in_millis} + */ + @Nullable + public final Long completionTimeInMillis() { + return this.completionTimeInMillis; + } + /** * Serialize this object to JSON. */ @@ -194,6 +221,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("start_time_in_millis"); generator.write(this.startTimeInMillis); + if (this.completionTime != null) { + generator.writeKey("completion_time"); + this.completionTime.serialize(generator, mapper); + } + if (this.completionTimeInMillis != null) { + generator.writeKey("completion_time_in_millis"); + generator.write(this.completionTimeInMillis); + + } + } @Override @@ -221,6 +258,12 @@ public abstract static class AbstractBuilder + * API name: {@code completion_time} + */ + public final BuilderT completionTime(@Nullable DateTime value) { + this.completionTime = value; + return self(); + } + + /** + * API name: {@code completion_time_in_millis} + */ + public final BuilderT completionTimeInMillis(@Nullable Long value) { + this.completionTimeInMillis = value; + return self(); + } + protected abstract BuilderT self(); } @@ -305,6 +367,9 @@ protected static > void setupAsyncSea "expiration_time_in_millis"); op.add(AbstractBuilder::startTime, DateTime._DESERIALIZER, "start_time"); op.add(AbstractBuilder::startTimeInMillis, JsonpDeserializer.longDeserializer(), "start_time_in_millis"); + op.add(AbstractBuilder::completionTime, DateTime._DESERIALIZER, "completion_time"); + op.add(AbstractBuilder::completionTimeInMillis, JsonpDeserializer.longDeserializer(), + "completion_time_in_millis"); } 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 710b397de..4b6ddf5ff 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 @@ -58,6 +58,7 @@ import java.lang.Integer; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -2085,6 +2086,66 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * API name: {@code search_after} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java index 8e334e888..839aa6767 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch.async_search.status; +import co.elastic.clients.elasticsearch._types.ClusterStatistics; import co.elastic.clients.elasticsearch._types.ShardStatistics; import co.elastic.clients.elasticsearch.async_search.AsyncSearchResponseBase; import co.elastic.clients.json.JsonpDeserializable; @@ -62,6 +63,9 @@ public abstract class StatusResponseBase extends AsyncSearchResponseBase { private final ShardStatistics shards; + @Nullable + private final ClusterStatistics clusters; + @Nullable private final Integer completionStatus; @@ -71,6 +75,7 @@ protected StatusResponseBase(AbstractBuilder builder) { super(builder); this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); + this.clusters = builder.clusters; this.completionStatus = builder.completionStatus; } @@ -84,6 +89,17 @@ public final ShardStatistics shards() { return this.shards; } + /** + * Metadata about clusters involved in the cross-cluster search. Not shown for + * local-only searches. + *

+ * API name: {@code _clusters} + */ + @Nullable + public final ClusterStatistics clusters() { + return this.clusters; + } + /** * If the async search completed, this field shows the status code of the * search. For example, 200 indicates that the async search was successfully @@ -102,6 +118,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("_shards"); this.shards.serialize(generator, mapper); + if (this.clusters != null) { + generator.writeKey("_clusters"); + this.clusters.serialize(generator, mapper); + + } if (this.completionStatus != null) { generator.writeKey("completion_status"); generator.write(this.completionStatus); @@ -115,6 +136,9 @@ public abstract static class AbstractBuilder { private ShardStatistics shards; + @Nullable + private ClusterStatistics clusters; + @Nullable private Integer completionStatus; @@ -137,6 +161,27 @@ public final BuilderT shards(Function + * API name: {@code _clusters} + */ + public final BuilderT clusters(@Nullable ClusterStatistics value) { + this.clusters = value; + return self(); + } + + /** + * Metadata about clusters involved in the cross-cluster search. Not shown for + * local-only searches. + *

+ * API name: {@code _clusters} + */ + public final BuilderT clusters(Function> fn) { + return this.clusters(fn.apply(new ClusterStatistics.Builder()).build()); + } + /** * If the async search completed, this field shows the status code of the * search. For example, 200 indicates that the async search was successfully @@ -156,6 +201,7 @@ protected static > void setupStatusRe ObjectDeserializer op) { AsyncSearchResponseBase.setupAsyncSearchResponseBaseDeserializer(op); op.add(AbstractBuilder::shards, ShardStatistics._DESERIALIZER, "_shards"); + op.add(AbstractBuilder::clusters, ClusterStatistics._DESERIALIZER, "_clusters"); op.add(AbstractBuilder::completionStatus, JsonpDeserializer.integerDeserializer(), "completion_status"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java index ceec7f590..7d42b687e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java @@ -67,8 +67,8 @@ // typedef: _global.bulk.Request /** - * Allows to perform multiple index/update/delete operations in a single - * request. + * Performs multiple indexing or delete operations in a single API call. This + * reduces overhead and can greatly increase indexing speed. * * @see API * specification @@ -132,8 +132,8 @@ public Iterator _serializables() { return this.operations.iterator(); } /** - * True or false to return the _source field or not, or default list of fields - * to return, can be overridden on each sub-request + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -143,8 +143,7 @@ public final SourceConfigParam source() { } /** - * Default list of fields to exclude from the returned _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to exclude from the response. *

* API name: {@code _source_excludes} */ @@ -153,8 +152,7 @@ public final List sourceExcludes() { } /** - * Default list of fields to extract and return from the _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} */ @@ -163,7 +161,7 @@ public final List sourceIncludes() { } /** - * Default index for items which don't provide one + * Name of the data stream, index, or index alias to perform bulk actions on. *

* API name: {@code index} */ @@ -173,7 +171,11 @@ public final String index() { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -183,10 +185,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -196,7 +199,7 @@ public final Refresh refresh() { } /** - * Sets require_alias for all incoming documents. Defaults to unset (false) + * If true, the request’s actions must target an index alias. *

* API name: {@code require_alias} */ @@ -206,7 +209,7 @@ public final Boolean requireAlias() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -216,7 +219,8 @@ public final String routing() { } /** - * Explicit operation timeout + * Period each action waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -226,11 +230,9 @@ public final Time 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -299,8 +301,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List operations; /** - * True or false to return the _source field or not, or default list of fields - * to return, can be overridden on each sub-request + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -310,8 +312,8 @@ public final Builder source(@Nullable SourceConfigParam value) { } /** - * True or false to return the _source field or not, or default list of fields - * to return, can be overridden on each sub-request + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -320,8 +322,7 @@ public final Builder source(Function * API name: {@code _source_excludes} *

@@ -333,8 +334,7 @@ public final Builder sourceExcludes(List list) { } /** - * Default list of fields to exclude from the returned _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to exclude from the response. *

* API name: {@code _source_excludes} *

@@ -346,8 +346,7 @@ public final Builder sourceExcludes(String value, String... values) { } /** - * Default list of fields to extract and return from the _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -359,8 +358,7 @@ public final Builder sourceIncludes(List list) { } /** - * Default list of fields to extract and return from the _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -372,7 +370,7 @@ public final Builder sourceIncludes(String value, String... values) { } /** - * Default index for items which don't provide one + * Name of the data stream, index, or index alias to perform bulk actions on. *

* API name: {@code index} */ @@ -382,7 +380,11 @@ public final Builder index(@Nullable String value) { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -392,10 +394,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -405,7 +408,7 @@ public final Builder refresh(@Nullable Refresh value) { } /** - * Sets require_alias for all incoming documents. Defaults to unset (false) + * If true, the request’s actions must target an index alias. *

* API name: {@code require_alias} */ @@ -415,7 +418,7 @@ public final Builder requireAlias(@Nullable Boolean value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -425,7 +428,8 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Period each action waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -435,7 +439,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period each action waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -444,11 +449,9 @@ public final Builder timeout(Function> fn) { } /** - * 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -458,11 +461,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java index 6f700a2b8..31e9ba08f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java @@ -57,7 +57,7 @@ // typedef: _global.clear_scroll.Request /** - * Explicitly clears the search context for a scroll. + * Clears the search context and results for a scrolling search. * * @see API * specification @@ -79,6 +79,8 @@ public static ClearScrollRequest of(Function_all. + *

* API name: {@code scroll_id} */ public final List scrollId() { @@ -122,6 +124,8 @@ public static class Builder extends RequestBase.AbstractBuilder private List scrollId; /** + * Scroll IDs to clear. To clear all scroll IDs, use _all. + *

* API name: {@code scroll_id} *

* Adds all elements of list to scrollId. @@ -132,6 +136,8 @@ public final Builder scrollId(List list) { } /** + * Scroll IDs to clear. To clear all scroll IDs, use _all. + *

* API name: {@code scroll_id} *

* Adds one or more values to scrollId. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java index 2ecb50d89..b867d3d3c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java @@ -56,7 +56,7 @@ // typedef: _global.close_point_in_time.Request /** - * Close a point in time + * Closes a point-in-time. * * @see API @@ -79,7 +79,9 @@ public static ClosePointInTimeRequest of(Function + * API name: {@code id} */ public final String id() { return this.id; @@ -113,7 +115,9 @@ public static class Builder extends RequestBase.AbstractBuilder private String id; /** - * Required - API name: {@code id} + * Required - The ID of the point-in-time. + *

+ * API name: {@code id} */ public final Builder id(String value) { this.id = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java index 4f18d5df6..360897e9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java @@ -146,9 +146,10 @@ public static CountRequest of(Function> fn) } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -158,8 +159,9 @@ public final Boolean allowNoIndices() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. This + * parameter can only be used when the q query string parameter is + * specified. *

* API name: {@code analyze_wildcard} */ @@ -169,7 +171,8 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -179,7 +182,9 @@ public final String analyzer() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. This parameter can only be used when the q + * query string parameter is specified. *

* API name: {@code default_operator} */ @@ -189,8 +194,9 @@ public final Operator defaultOperator() { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. + * This parameter can only be used when the q query string + * parameter is specified. *

* API name: {@code df} */ @@ -200,8 +206,10 @@ public final String df() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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} */ @@ -210,8 +218,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, concrete, expanded or aliased indices are ignored when + * frozen. *

* API name: {@code ignore_throttled} */ @@ -221,8 +229,8 @@ public final Boolean ignoreThrottled() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -232,7 +240,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of indices to restrict the results + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -241,8 +251,8 @@ public final List index() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -252,8 +262,8 @@ public final Boolean lenient() { } /** - * Include only documents with a specific _score value in the - * result + * Sets the minimum _score value that documents must have to be + * included in the result. *

* API name: {@code min_score} */ @@ -263,8 +273,8 @@ public final Double minScore() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -274,7 +284,7 @@ public final String preference() { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -284,6 +294,8 @@ public final String q() { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ @Nullable @@ -292,7 +304,7 @@ public final Query query() { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -302,8 +314,9 @@ public final String routing() { } /** - * The maximum count for each shard, upon reaching which the query execution - * will terminate early + * 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. *

* API name: {@code terminate_after} */ @@ -387,9 +400,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Long terminateAfter; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -399,8 +413,9 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. This + * parameter can only be used when the q query string parameter is + * specified. *

* API name: {@code analyze_wildcard} */ @@ -410,7 +425,8 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -420,7 +436,9 @@ public final Builder analyzer(@Nullable String value) { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. This parameter can only be used when the q + * query string parameter is specified. *

* API name: {@code default_operator} */ @@ -430,8 +448,9 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. + * This parameter can only be used when the q query string + * parameter is specified. *

* API name: {@code df} */ @@ -441,8 +460,10 @@ public final Builder df(@Nullable String value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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} *

@@ -454,8 +475,10 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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} *

@@ -467,8 +490,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, concrete, expanded or aliased indices are ignored when + * frozen. *

* API name: {@code ignore_throttled} */ @@ -478,8 +501,8 @@ public final Builder ignoreThrottled(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -489,7 +512,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of indices to restrict the results + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -501,7 +526,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of indices to restrict the results + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -513,8 +540,8 @@ public final Builder index(String value, String... values) { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -524,8 +551,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** - * Include only documents with a specific _score value in the - * result + * Sets the minimum _score value that documents must have to be + * included in the result. *

* API name: {@code min_score} */ @@ -535,8 +562,8 @@ public final Builder minScore(@Nullable Double value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -546,7 +573,7 @@ public final Builder preference(@Nullable String value) { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -556,6 +583,8 @@ public final Builder q(@Nullable String value) { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -564,6 +593,8 @@ public final Builder query(@Nullable Query value) { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -571,7 +602,7 @@ public final Builder query(Function> fn) { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -581,8 +612,9 @@ public final Builder routing(@Nullable String value) { } /** - * The maximum count for each shard, upon reaching which the query execution - * will terminate early + * 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. *

* API name: {@code terminate_after} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java index 713142983..61eb92752 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java @@ -67,10 +67,9 @@ // typedef: _global.create.Request /** - * Creates a new document in the index. - *

- * Returns a 409 response when a document with a same ID already exists in the - * index. + * Adds a JSON document to the specified data stream or index and makes it + * searchable. If the target is an index and the document already exists, the + * request updates the document and increments its version. * * @see API * specification @@ -131,7 +130,7 @@ public static CreateRequest of( } /** - * Required - Document ID + * Required - Unique identifier for the document. *

* API name: {@code id} */ @@ -140,7 +139,11 @@ public final String id() { } /** - * Required - The name of the index + * Required - Name of the data stream or index to target. If the target doesn’t + * exist and matches the name or wildcard (*) pattern of an index + * template with a data_stream definition, this request creates the + * data stream. If the target doesn’t exist and doesn’t match a data stream + * template, this request creates the index. *

* API name: {@code index} */ @@ -149,7 +152,11 @@ public final String index() { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -159,10 +166,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -172,7 +180,7 @@ public final Refresh refresh() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -182,7 +190,8 @@ public final String routing() { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -192,7 +201,8 @@ public final Time timeout() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -202,7 +212,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -212,11 +222,9 @@ public final VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -280,7 +288,7 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; /** - * Required - Document ID + * Required - Unique identifier for the document. *

* API name: {@code id} */ @@ -290,7 +298,11 @@ public final Builder id(String value) { } /** - * Required - The name of the index + * Required - Name of the data stream or index to target. If the target doesn’t + * exist and matches the name or wildcard (*) pattern of an index + * template with a data_stream definition, this request creates the + * data stream. If the target doesn’t exist and doesn’t match a data stream + * template, this request creates the index. *

* API name: {@code index} */ @@ -300,7 +312,11 @@ public final Builder index(String value) { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -310,10 +326,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -323,7 +340,7 @@ public final Builder refresh(@Nullable Refresh value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -333,7 +350,8 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -343,7 +361,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -352,7 +371,8 @@ public final Builder timeout(Function * API name: {@code version} */ @@ -362,7 +382,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -372,11 +392,9 @@ public final Builder versionType(@Nullable VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -386,11 +404,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShard } /** - * 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java index 66d51fd86..64debabf9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java @@ -71,7 +71,7 @@ // typedef: _global.delete_by_query.Request /** - * Deletes documents matching the provided query. + * Deletes documents that match the specified query. * * @see API * specification @@ -214,9 +214,12 @@ public static DeleteByQueryRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -226,8 +229,7 @@ public final Boolean allowNoIndices() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -237,7 +239,7 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. *

* API name: {@code analyzer} */ @@ -247,7 +249,8 @@ public final String analyzer() { } /** - * What to do when the delete by query hits version conflicts? + * What to do if delete by query hits version conflicts: abort or + * proceed. *

* API name: {@code conflicts} */ @@ -257,7 +260,8 @@ public final Conflicts conflicts() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -267,8 +271,7 @@ public final Operator defaultOperator() { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -278,8 +281,12 @@ public final String df() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -298,8 +305,8 @@ public final Long from() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -309,8 +316,9 @@ public final Boolean ignoreUnavailable() { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -319,8 +327,8 @@ public final List index() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -330,6 +338,8 @@ public final Boolean lenient() { } /** + * The maximum number of documents to delete. + *

* API name: {@code max_docs} */ @Nullable @@ -338,8 +348,8 @@ public final Long maxDocs() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -349,7 +359,7 @@ public final String preference() { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -359,6 +369,8 @@ public final String q() { } /** + * Specifies the documents to delete using the Query DSL. + *

* API name: {@code query} */ @Nullable @@ -367,7 +379,8 @@ public final Query query() { } /** - * Should the affected indexes be refreshed? + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -377,8 +390,8 @@ public final Boolean refresh() { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the request cache is used for this request. Defaults to + * the index-level setting. *

* API name: {@code request_cache} */ @@ -388,8 +401,7 @@ public final Boolean requestCache() { } /** - * The throttle for this request in sub-requests per second. -1 means no - * throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -399,7 +411,7 @@ public final Float requestsPerSecond() { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -409,8 +421,7 @@ public final String routing() { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -420,7 +431,7 @@ public final Time scroll() { } /** - * Size on the scroll request powering the delete by query + * Size of the scroll request that powers the operation. *

* API name: {@code scroll_size} */ @@ -440,7 +451,8 @@ public final Time searchTimeout() { } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -450,6 +462,9 @@ public final SearchType searchType() { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ @Nullable @@ -458,8 +473,7 @@ public final SlicedScroll slice() { } /** - * 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. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -469,7 +483,7 @@ public final Slices slices() { } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} */ @@ -478,7 +492,8 @@ public final List sort() { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} */ @@ -487,8 +502,13 @@ public final List stats() { } /** - * The maximum number of documents to collect for each shard, upon reaching - * which the query execution will terminate early. + * 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. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. *

* API name: {@code terminate_after} */ @@ -498,8 +518,7 @@ public final Long terminateAfter() { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each deletion request waits for active shards. *

* API name: {@code timeout} */ @@ -509,7 +528,7 @@ public final Time timeout() { } /** - * Specify whether to return document version as part of a hit + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -519,11 +538,9 @@ public final 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -533,7 +550,7 @@ public final WaitForActiveShards waitForActiveShards() { } /** - * Should the request should block until the delete by query is complete. + * If true, the request blocks until the operation is complete. *

* API name: {@code wait_for_completion} */ @@ -676,9 +693,12 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean waitForCompletion; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -688,8 +708,7 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -699,7 +718,7 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. *

* API name: {@code analyzer} */ @@ -709,7 +728,8 @@ public final Builder analyzer(@Nullable String value) { } /** - * What to do when the delete by query hits version conflicts? + * What to do if delete by query hits version conflicts: abort or + * proceed. *

* API name: {@code conflicts} */ @@ -719,7 +739,8 @@ public final Builder conflicts(@Nullable Conflicts value) { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -729,8 +750,7 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -740,8 +760,12 @@ public final Builder df(@Nullable String value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -753,8 +777,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -776,8 +804,8 @@ public final Builder from(@Nullable Long value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -787,8 +815,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -800,8 +829,9 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -813,8 +843,8 @@ public final Builder index(String value, String... values) { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -824,6 +854,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** + * The maximum number of documents to delete. + *

* API name: {@code max_docs} */ public final Builder maxDocs(@Nullable Long value) { @@ -832,8 +864,8 @@ public final Builder maxDocs(@Nullable Long value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -843,7 +875,7 @@ public final Builder preference(@Nullable String value) { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -853,6 +885,8 @@ public final Builder q(@Nullable String value) { } /** + * Specifies the documents to delete using the Query DSL. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -861,6 +895,8 @@ public final Builder query(@Nullable Query value) { } /** + * Specifies the documents to delete using the Query DSL. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -868,7 +904,8 @@ public final Builder query(Function> fn) { } /** - * Should the affected indexes be refreshed? + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -878,8 +915,8 @@ public final Builder refresh(@Nullable Boolean value) { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the request cache is used for this request. Defaults to + * the index-level setting. *

* API name: {@code request_cache} */ @@ -889,8 +926,7 @@ public final Builder requestCache(@Nullable Boolean value) { } /** - * The throttle for this request in sub-requests per second. -1 means no - * throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -900,7 +936,7 @@ public final Builder requestsPerSecond(@Nullable Float value) { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -910,8 +946,7 @@ public final Builder routing(@Nullable String value) { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -921,8 +956,7 @@ public final Builder scroll(@Nullable Time value) { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -931,7 +965,7 @@ public final Builder scroll(Function> fn) { } /** - * Size on the scroll request powering the delete by query + * Size of the scroll request that powers the operation. *

* API name: {@code scroll_size} */ @@ -960,7 +994,8 @@ public final Builder searchTimeout(Function> f } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -970,6 +1005,9 @@ public final Builder searchType(@Nullable SearchType value) { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ public final Builder slice(@Nullable SlicedScroll value) { @@ -978,6 +1016,9 @@ public final Builder slice(@Nullable SlicedScroll value) { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ public final Builder slice(Function> fn) { @@ -985,8 +1026,7 @@ public final Builder slice(Functionauto. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -996,8 +1036,7 @@ public final Builder slices(@Nullable Slices 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. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -1006,7 +1045,7 @@ public final Builder slices(Function> fn) } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} *

@@ -1018,7 +1057,7 @@ public final Builder sort(List list) { } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} *

@@ -1030,7 +1069,8 @@ public final Builder sort(String value, String... values) { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} *

@@ -1042,7 +1082,8 @@ public final Builder stats(List list) { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} *

@@ -1054,8 +1095,13 @@ public final Builder stats(String value, String... values) { } /** - * The maximum number of documents to collect for each shard, upon reaching - * which the query execution will terminate early. + * 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. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. *

* API name: {@code terminate_after} */ @@ -1065,8 +1111,7 @@ public final Builder terminateAfter(@Nullable Long value) { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each deletion request waits for active shards. *

* API name: {@code timeout} */ @@ -1076,8 +1121,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each deletion request waits for active shards. *

* API name: {@code timeout} */ @@ -1086,7 +1130,7 @@ public final Builder timeout(Function> fn) { } /** - * Specify whether to return document version as part of a hit + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -1096,11 +1140,9 @@ public final 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -1110,11 +1152,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -1124,7 +1164,7 @@ public final Builder waitForActiveShards( } /** - * Should the request should block until the delete by query is complete. + * If true, the request blocks until the operation is complete. *

* API name: {@code wait_for_completion} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java index 94b1b2470..30291fc23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java @@ -85,8 +85,7 @@ public static DeleteByQueryRethrottleRequest of( } /** - * The throttle to set on this request in floating sub-requests per second. -1 - * means set no throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -96,7 +95,7 @@ public final Float requestsPerSecond() { } /** - * Required - The task id to rethrottle + * Required - The ID for the task. *

* API name: {@code task_id} */ @@ -119,8 +118,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String taskId; /** - * The throttle to set on this request in floating sub-requests per second. -1 - * means set no throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -130,7 +128,7 @@ public final Builder requestsPerSecond(@Nullable Float value) { } /** - * Required - The task id to rethrottle + * Required - The ID for the task. *

* API name: {@code task_id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java index 0c68bacb3..a1890a672 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java @@ -60,7 +60,7 @@ // typedef: _global.delete.Request /** - * Removes a document from the index. + * Removes a JSON document from the specified index. * * @see API * specification @@ -117,7 +117,7 @@ public static DeleteRequest of(Function> f } /** - * Required - The document ID + * Required - Unique identifier for the document. *

* API name: {@code id} */ @@ -126,8 +126,7 @@ public final String id() { } /** - * only perform the delete operation if the last operation that has changed the - * document has the specified primary term + * Only perform the operation if the document has this primary term. *

* API name: {@code if_primary_term} */ @@ -137,8 +136,7 @@ public final Long ifPrimaryTerm() { } /** - * only perform the delete operation if the last operation that has changed the - * document has the specified sequence number + * Only perform the operation if the document has this sequence number. *

* API name: {@code if_seq_no} */ @@ -148,7 +146,7 @@ public final Long ifSeqNo() { } /** - * Required - The name of the index + * Required - Name of the target index. *

* API name: {@code index} */ @@ -157,10 +155,11 @@ public final String index() { } /** - * 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -170,7 +169,7 @@ public final Refresh refresh() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -180,7 +179,7 @@ public final String routing() { } /** - * Explicit operation timeout + * Period to wait for active shards. *

* API name: {@code timeout} */ @@ -190,7 +189,8 @@ public final Time timeout() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -200,7 +200,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -210,11 +210,9 @@ public final VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -259,7 +257,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private WaitForActiveShards waitForActiveShards; /** - * Required - The document ID + * Required - Unique identifier for the document. *

* API name: {@code id} */ @@ -269,8 +267,7 @@ public final Builder id(String value) { } /** - * only perform the delete operation if the last operation that has changed the - * document has the specified primary term + * Only perform the operation if the document has this primary term. *

* API name: {@code if_primary_term} */ @@ -280,8 +277,7 @@ public final Builder ifPrimaryTerm(@Nullable Long value) { } /** - * only perform the delete operation if the last operation that has changed the - * document has the specified sequence number + * Only perform the operation if the document has this sequence number. *

* API name: {@code if_seq_no} */ @@ -291,7 +287,7 @@ public final Builder ifSeqNo(@Nullable Long value) { } /** - * Required - The name of the index + * Required - Name of the target index. *

* API name: {@code index} */ @@ -301,10 +297,11 @@ public final Builder index(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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -314,7 +311,7 @@ public final Builder refresh(@Nullable Refresh value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -324,7 +321,7 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Period to wait for active shards. *

* API name: {@code timeout} */ @@ -334,7 +331,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for active shards. *

* API name: {@code timeout} */ @@ -343,7 +340,8 @@ public final Builder timeout(Function> fn) { } /** - * Explicit version number for concurrency control + * 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} */ @@ -353,7 +351,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -363,11 +361,9 @@ public final Builder versionType(@Nullable VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -377,11 +373,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java index 7630e1800..c943e5841 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java @@ -56,7 +56,7 @@ // typedef: _global.delete_script.Request /** - * Deletes a script. + * Deletes a stored script or search template. * * @see API * specification @@ -86,7 +86,7 @@ public static DeleteScriptRequest of(Function * API name: {@code id} */ @@ -95,7 +95,8 @@ public final String id() { } /** - * Specify timeout for connection to master + * 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} */ @@ -105,7 +106,8 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * 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} */ @@ -132,7 +134,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Required - Script ID + * Required - Identifier for the stored script or search template. *

* API name: {@code id} */ @@ -142,7 +144,8 @@ public final Builder id(String value) { } /** - * Specify timeout for connection to master + * 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} */ @@ -152,7 +155,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * 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} */ @@ -161,7 +165,8 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * 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} */ @@ -171,7 +176,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * 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} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java index c906e15e1..b6713cd70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java @@ -63,7 +63,7 @@ // typedef: _global.exists.Request /** - * Returns information about whether a document exists in an index. + * Checks if a document in an index exists. * * @see API * specification @@ -125,8 +125,8 @@ public static ExistsRequest of(Function> f } /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -136,7 +136,7 @@ public final SourceConfigParam source() { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude in the response. *

* API name: {@code _source_excludes} */ @@ -145,7 +145,7 @@ public final List sourceExcludes() { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} */ @@ -154,7 +154,7 @@ public final List sourceIncludes() { } /** - * Required - The document ID + * Required - Identifier of the document. *

* API name: {@code id} */ @@ -163,7 +163,8 @@ public final String id() { } /** - * Required - The name of the index + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -172,8 +173,8 @@ public final String index() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -183,7 +184,7 @@ public final String preference() { } /** - * Specify whether to perform the operation in realtime or search mode + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -193,7 +194,8 @@ public final Boolean realtime() { } /** - * Refresh the shard containing the document before performing the operation + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -203,7 +205,7 @@ public final Boolean refresh() { } /** - * Specific routing value + * Target the specified primary shard. *

* API name: {@code routing} */ @@ -213,7 +215,9 @@ public final String routing() { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} */ @@ -222,7 +226,8 @@ public final List storedFields() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -232,7 +237,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -283,8 +288,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private VersionType versionType; /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -294,8 +299,8 @@ public final Builder source(@Nullable SourceConfigParam value) { } /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -304,7 +309,7 @@ public final Builder source(Function * API name: {@code _source_excludes} *

@@ -316,7 +321,7 @@ public final Builder sourceExcludes(List list) { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude in the response. *

* API name: {@code _source_excludes} *

@@ -328,7 +333,7 @@ public final Builder sourceExcludes(String value, String... values) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -340,7 +345,7 @@ public final Builder sourceIncludes(List list) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -352,7 +357,7 @@ public final Builder sourceIncludes(String value, String... values) { } /** - * Required - The document ID + * Required - Identifier of the document. *

* API name: {@code id} */ @@ -362,7 +367,8 @@ public final Builder id(String value) { } /** - * Required - The name of the index + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -372,8 +378,8 @@ public final Builder index(String value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -383,7 +389,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specify whether to perform the operation in realtime or search mode + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -393,7 +399,8 @@ public final Builder realtime(@Nullable Boolean value) { } /** - * Refresh the shard containing the document before performing the operation + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -403,7 +410,7 @@ public final Builder refresh(@Nullable Boolean value) { } /** - * Specific routing value + * Target the specified primary shard. *

* API name: {@code routing} */ @@ -413,7 +420,9 @@ public final Builder routing(@Nullable String value) { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} *

@@ -425,7 +434,9 @@ public final Builder storedFields(List list) { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} *

@@ -437,7 +448,8 @@ public final Builder storedFields(String value, String... values) { } /** - * Explicit version number for concurrency control + * 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} */ @@ -447,7 +459,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java index 76ade6e75..15c4579b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java @@ -63,7 +63,7 @@ // typedef: _global.exists_source.Request /** - * Returns information about whether a document source exists in an index. + * Checks if a document's _source is stored. * * @see API * specification @@ -122,8 +122,8 @@ public static ExistsSourceRequest of(Functiontrue or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -133,7 +133,7 @@ public final SourceConfigParam source() { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude in the response. *

* API name: {@code _source_excludes} */ @@ -142,7 +142,7 @@ public final List sourceExcludes() { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} */ @@ -151,7 +151,7 @@ public final List sourceIncludes() { } /** - * Required - The document ID + * Required - Identifier of the document. *

* API name: {@code id} */ @@ -160,7 +160,8 @@ public final String id() { } /** - * Required - The name of the index + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -169,8 +170,8 @@ public final String index() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -180,7 +181,7 @@ public final String preference() { } /** - * Specify whether to perform the operation in realtime or search mode + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -190,7 +191,8 @@ public final Boolean realtime() { } /** - * Refresh the shard containing the document before performing the operation + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -200,7 +202,7 @@ public final Boolean refresh() { } /** - * Specific routing value + * Target the specified primary shard. *

* API name: {@code routing} */ @@ -210,7 +212,8 @@ public final String routing() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -220,7 +223,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -270,8 +273,8 @@ public static class Builder extends RequestBase.AbstractBuilder private VersionType versionType; /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -281,8 +284,8 @@ public final Builder source(@Nullable SourceConfigParam value) { } /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -291,7 +294,7 @@ public final Builder source(Function * API name: {@code _source_excludes} *

@@ -303,7 +306,7 @@ public final Builder sourceExcludes(List list) { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude in the response. *

* API name: {@code _source_excludes} *

@@ -315,7 +318,7 @@ public final Builder sourceExcludes(String value, String... values) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -327,7 +330,7 @@ public final Builder sourceIncludes(List list) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -339,7 +342,7 @@ public final Builder sourceIncludes(String value, String... values) { } /** - * Required - The document ID + * Required - Identifier of the document. *

* API name: {@code id} */ @@ -349,7 +352,8 @@ public final Builder id(String value) { } /** - * Required - The name of the index + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -359,8 +363,8 @@ public final Builder index(String value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -370,7 +374,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specify whether to perform the operation in realtime or search mode + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -380,7 +384,8 @@ public final Builder realtime(@Nullable Boolean value) { } /** - * Refresh the shard containing the document before performing the operation + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -390,7 +395,7 @@ public final Builder refresh(@Nullable Boolean value) { } /** - * Specific routing value + * Target the specified primary shard. *

* API name: {@code routing} */ @@ -400,7 +405,8 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit version number for concurrency control + * 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} */ @@ -410,7 +416,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java index ed3c9fa02..4562fdd46 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java @@ -63,7 +63,8 @@ // typedef: _global.explain.Request /** - * Returns information about why a specific matches (or doesn't match) a query. + * Returns information about why a specific document matches (or doesn’t match) + * a query. * * @see API * specification @@ -137,8 +138,8 @@ public static ExplainRequest of(Function> } /** - * True or false to return the _source field or not, or a list of fields to - * return + * True or false to return the _source field or not, or a list of + * fields to return. *

* API name: {@code _source} */ @@ -148,7 +149,7 @@ public final SourceConfigParam source() { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude from the response. *

* API name: {@code _source_excludes} */ @@ -157,7 +158,7 @@ public final List sourceExcludes() { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} */ @@ -166,8 +167,7 @@ public final List sourceIncludes() { } /** - * Specify whether wildcards and prefix queries in the query string query should - * be analyzed (default: false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -177,7 +177,8 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer for the query string query + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -187,7 +188,8 @@ public final String analyzer() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -197,7 +199,7 @@ public final Operator defaultOperator() { } /** - * The default field for query string query (default: _all) + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -207,7 +209,7 @@ public final String df() { } /** - * Required - The document ID + * Required - Defines the document ID. *

* API name: {@code id} */ @@ -216,7 +218,8 @@ public final String id() { } /** - * Required - The name of the index + * Required - Index names used to limit the request. Only a single index name + * can be provided to this parameter. *

* API name: {@code index} */ @@ -225,8 +228,8 @@ public final String index() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -236,8 +239,8 @@ public final Boolean lenient() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -247,7 +250,7 @@ public final String preference() { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -257,6 +260,8 @@ public final String q() { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ @Nullable @@ -265,7 +270,7 @@ public final Query query() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -275,7 +280,7 @@ public final String routing() { } /** - * A comma-separated list of stored fields to return in the response + * A comma-separated list of stored fields to return in the response. *

* API name: {@code stored_fields} */ @@ -353,8 +358,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List storedFields; /** - * True or false to return the _source field or not, or a list of fields to - * return + * True or false to return the _source field or not, or a list of + * fields to return. *

* API name: {@code _source} */ @@ -364,8 +369,8 @@ public final Builder source(@Nullable SourceConfigParam value) { } /** - * True or false to return the _source field or not, or a list of fields to - * return + * True or false to return the _source field or not, or a list of + * fields to return. *

* API name: {@code _source} */ @@ -374,7 +379,7 @@ public final Builder source(Function * API name: {@code _source_excludes} *

@@ -386,7 +391,7 @@ public final Builder sourceExcludes(List list) { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude from the response. *

* API name: {@code _source_excludes} *

@@ -398,7 +403,7 @@ public final Builder sourceExcludes(String value, String... values) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -410,7 +415,7 @@ public final Builder sourceIncludes(List list) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -422,8 +427,7 @@ public final Builder sourceIncludes(String value, String... values) { } /** - * Specify whether wildcards and prefix queries in the query string query should - * be analyzed (default: false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -433,7 +437,8 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer for the query string query + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -443,7 +448,8 @@ public final Builder analyzer(@Nullable String value) { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -453,7 +459,7 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The default field for query string query (default: _all) + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -463,7 +469,7 @@ public final Builder df(@Nullable String value) { } /** - * Required - The document ID + * Required - Defines the document ID. *

* API name: {@code id} */ @@ -473,7 +479,8 @@ public final Builder id(String value) { } /** - * Required - The name of the index + * Required - Index names used to limit the request. Only a single index name + * can be provided to this parameter. *

* API name: {@code index} */ @@ -483,8 +490,8 @@ public final Builder index(String value) { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -494,8 +501,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -505,7 +512,7 @@ public final Builder preference(@Nullable String value) { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -515,6 +522,8 @@ public final Builder q(@Nullable String value) { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -523,6 +532,8 @@ public final Builder query(@Nullable Query value) { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -530,7 +541,7 @@ public final Builder query(Function> fn) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -540,7 +551,7 @@ public final Builder routing(@Nullable String value) { } /** - * A comma-separated list of stored fields to return in the response + * A comma-separated list of stored fields to return in the response. *

* API name: {@code stored_fields} *

@@ -552,7 +563,7 @@ public final Builder storedFields(List list) { } /** - * A comma-separated list of stored fields to return in the response + * A comma-separated list of stored fields to return in the response. *

* API name: {@code stored_fields} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java index 9edafa6f8..f576edff6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java @@ -181,7 +181,7 @@ public final String preference() { } /** - * Boolean) If true, the request is real-time as opposed to near-real-time. + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -212,7 +212,9 @@ public final String routing() { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

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

* API name: {@code realtime} */ @@ -414,7 +416,9 @@ public final Builder routing(@Nullable String value) { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} *

@@ -426,7 +430,9 @@ public final Builder storedFields(List list) { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java index f9b45b822..f0a1062c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java @@ -56,7 +56,7 @@ // typedef: _global.get_script.Request /** - * Returns a script. + * Retrieves a stored script or search template. * * @see API * specification @@ -82,7 +82,7 @@ public static GetScriptRequest of(Function * API name: {@code id} */ @@ -115,7 +115,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time masterTimeout; /** - * Required - Script ID + * Required - Identifier for the stored script or search template. *

* API name: {@code id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java index 381e77d46..d6ab508fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java @@ -69,7 +69,9 @@ // typedef: _global.index.Request /** - * Creates or updates a document in an index. + * Adds a JSON document to the specified data stream or index and makes it + * searchable. If the target is an index and the document already exists, the + * request updates the document and increments its version. * * @see API * specification @@ -147,7 +149,7 @@ public static IndexRequest of( } /** - * Document ID + * Unique identifier for the document. *

* API name: {@code id} */ @@ -157,8 +159,7 @@ public final String id() { } /** - * only perform the index operation if the last operation that has changed the - * document has the specified primary term + * Only perform the operation if the document has this primary term. *

* API name: {@code if_primary_term} */ @@ -168,8 +169,7 @@ public final Long ifPrimaryTerm() { } /** - * only perform the index operation if the last operation that has changed the - * document has the specified sequence number + * Only perform the operation if the document has this sequence number. *

* API name: {@code if_seq_no} */ @@ -179,7 +179,7 @@ public final Long ifSeqNo() { } /** - * Required - The name of the index + * Required - Name of the data stream or index to target. *

* API name: {@code index} */ @@ -188,9 +188,13 @@ public final String index() { } /** - * Explicit operation type. Defaults to index for requests with an - * explicit document ID, and to createfor requests without an - * explicit document ID + * Set to create to only index the document if it does not already exist (put if + * absent). If a document with the specified _id already exists, + * the indexing operation will fail. Same as using the + * <index>/_create endpoint. Valid values: + * index, create. If document id is specified, it + * defaults to index. Otherwise, it defaults to + * create. *

* API name: {@code op_type} */ @@ -200,7 +204,11 @@ public final OpType opType() { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -210,10 +218,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -223,7 +232,7 @@ public final Refresh refresh() { } /** - * When true, requires destination to be an alias. Default is false + * If true, the destination must be an index alias. *

* API name: {@code require_alias} */ @@ -233,7 +242,7 @@ public final Boolean requireAlias() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -243,7 +252,8 @@ public final String routing() { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -253,7 +263,8 @@ public final Time timeout() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -263,7 +274,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -273,11 +284,9 @@ public final VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -354,7 +363,7 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; /** - * Document ID + * Unique identifier for the document. *

* API name: {@code id} */ @@ -364,8 +373,7 @@ public final Builder id(@Nullable String value) { } /** - * only perform the index operation if the last operation that has changed the - * document has the specified primary term + * Only perform the operation if the document has this primary term. *

* API name: {@code if_primary_term} */ @@ -375,8 +383,7 @@ public final Builder ifPrimaryTerm(@Nullable Long value) { } /** - * only perform the index operation if the last operation that has changed the - * document has the specified sequence number + * Only perform the operation if the document has this sequence number. *

* API name: {@code if_seq_no} */ @@ -386,7 +393,7 @@ public final Builder ifSeqNo(@Nullable Long value) { } /** - * Required - The name of the index + * Required - Name of the data stream or index to target. *

* API name: {@code index} */ @@ -396,9 +403,13 @@ public final Builder index(String value) { } /** - * Explicit operation type. Defaults to index for requests with an - * explicit document ID, and to createfor requests without an - * explicit document ID + * Set to create to only index the document if it does not already exist (put if + * absent). If a document with the specified _id already exists, + * the indexing operation will fail. Same as using the + * <index>/_create endpoint. Valid values: + * index, create. If document id is specified, it + * defaults to index. Otherwise, it defaults to + * create. *

* API name: {@code op_type} */ @@ -408,7 +419,11 @@ public final Builder opType(@Nullable OpType value) { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -418,10 +433,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -431,7 +447,7 @@ public final Builder refresh(@Nullable Refresh value) { } /** - * When true, requires destination to be an alias. Default is false + * If true, the destination must be an index alias. *

* API name: {@code require_alias} */ @@ -441,7 +457,7 @@ public final Builder requireAlias(@Nullable Boolean value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -451,7 +467,8 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -461,7 +478,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -470,7 +488,8 @@ public final Builder timeout(Function * API name: {@code version} */ @@ -480,7 +499,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -490,11 +509,9 @@ public final Builder versionType(@Nullable VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -504,11 +521,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShard } /** - * 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java index 8190ca719..8f023d59d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java @@ -107,8 +107,8 @@ public Iterator _serializables() { return this.searchTemplates.iterator(); } /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips are minimized for cross-cluster + * search requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -118,7 +118,9 @@ public final Boolean ccsMinimizeRoundtrips() { } /** - * A comma-separated list of index names to use as default + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use *. *

* API name: {@code index} */ @@ -127,8 +129,7 @@ public final List index() { } /** - * Controls the maximum number of concurrent searches the multi search api will - * execute + * Maximum number of concurrent searches the API can run. *

* API name: {@code max_concurrent_searches} */ @@ -138,7 +139,8 @@ public final Long maxConcurrentSearches() { } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -191,8 +193,8 @@ public static class Builder extends RequestBase.AbstractBuilder private List searchTemplates; /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips are minimized for cross-cluster + * search requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -202,7 +204,9 @@ public final Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { } /** - * A comma-separated list of index names to use as default + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use *. *

* API name: {@code index} *

@@ -214,7 +218,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to use as default + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use *. *

* API name: {@code index} *

@@ -226,8 +232,7 @@ public final Builder index(String value, String... values) { } /** - * Controls the maximum number of concurrent searches the multi search api will - * execute + * Maximum number of concurrent searches the API can run. *

* API name: {@code max_concurrent_searches} */ @@ -237,7 +242,8 @@ public final Builder maxConcurrentSearches(@Nullable Long value) { } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java index e85d5c427..3c07cebd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java @@ -135,6 +135,8 @@ public static MtermvectorsRequest of(Function * API name: {@code docs} */ public final List docs() { @@ -142,9 +144,8 @@ public final List docs() { } /** - * 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". + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. *

* API name: {@code field_statistics} */ @@ -154,8 +155,10 @@ public final Boolean fieldStatistics() { } /** - * A comma-separated list of fields to return. Applies to all returned documents - * unless otherwise specified in body "params" or "docs". + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} */ @@ -164,6 +167,9 @@ public final List fields() { } /** + * Simplified syntax to specify documents by their ID if they're in the same + * index. + *

* API name: {@code ids} */ public final List ids() { @@ -171,7 +177,7 @@ public final List ids() { } /** - * The index in which the document resides. + * Name of the index that contains the documents. *

* API name: {@code index} */ @@ -181,9 +187,7 @@ public final String index() { } /** - * Specifies if term offsets should be returned. Applies to all returned - * documents unless otherwise specified in body "params" or - * "docs". + * If true, the response includes term offsets. *

* API name: {@code offsets} */ @@ -193,9 +197,7 @@ public final Boolean offsets() { } /** - * Specifies if term payloads should be returned. Applies to all returned - * documents unless otherwise specified in body "params" or - * "docs". + * If true, the response includes term payloads. *

* API name: {@code payloads} */ @@ -205,9 +207,7 @@ public final Boolean payloads() { } /** - * Specifies if term positions should be returned. Applies to all returned - * documents unless otherwise specified in body "params" or - * "docs". + * If true, the response includes term positions. *

* API name: {@code positions} */ @@ -217,9 +217,8 @@ public final 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". + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -229,8 +228,7 @@ public final String preference() { } /** - * Specifies if requests are real-time as opposed to near-real-time (default: - * true). + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -240,8 +238,7 @@ public final Boolean realtime() { } /** - * Specific routing value. Applies to all returned documents unless otherwise - * specified in body "params" or "docs". + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -251,9 +248,7 @@ public final String 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". + * If true, the response includes term frequency and document frequency. *

* API name: {@code term_statistics} */ @@ -263,7 +258,7 @@ public final Boolean termStatistics() { } /** - * Explicit version number for concurrency control + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -273,7 +268,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type. *

* API name: {@code version_type} */ @@ -368,6 +363,8 @@ public static class Builder extends RequestBase.AbstractBuilder private VersionType versionType; /** + * Array of existing or artificial documents. + *

* API name: {@code docs} *

* Adds all elements of list to docs. @@ -378,6 +375,8 @@ public final Builder docs(List list) { } /** + * Array of existing or artificial documents. + *

* API name: {@code docs} *

* Adds one or more values to docs. @@ -388,6 +387,8 @@ public final Builder docs(MultiTermVectorsOperation value, MultiTermVectorsOpera } /** + * Array of existing or artificial documents. + *

* API name: {@code docs} *

* Adds a value to docs using a builder lambda. @@ -398,9 +399,8 @@ public final Builder docs( } /** - * 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". + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. *

* API name: {@code field_statistics} */ @@ -410,8 +410,10 @@ public final Builder fieldStatistics(@Nullable Boolean value) { } /** - * A comma-separated list of fields to return. Applies to all returned documents - * unless otherwise specified in body "params" or "docs". + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} *

@@ -423,8 +425,10 @@ public final Builder fields(List list) { } /** - * A comma-separated list of fields to return. Applies to all returned documents - * unless otherwise specified in body "params" or "docs". + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} *

@@ -436,6 +440,9 @@ public final Builder fields(String value, String... values) { } /** + * Simplified syntax to specify documents by their ID if they're in the same + * index. + *

* API name: {@code ids} *

* Adds all elements of list to ids. @@ -446,6 +453,9 @@ public final Builder ids(List list) { } /** + * Simplified syntax to specify documents by their ID if they're in the same + * index. + *

* API name: {@code ids} *

* Adds one or more values to ids. @@ -456,7 +466,7 @@ public final Builder ids(String value, String... values) { } /** - * The index in which the document resides. + * Name of the index that contains the documents. *

* API name: {@code index} */ @@ -466,9 +476,7 @@ public final Builder index(@Nullable String value) { } /** - * Specifies if term offsets should be returned. Applies to all returned - * documents unless otherwise specified in body "params" or - * "docs". + * If true, the response includes term offsets. *

* API name: {@code offsets} */ @@ -478,9 +486,7 @@ public final 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". + * If true, the response includes term payloads. *

* API name: {@code payloads} */ @@ -490,9 +496,7 @@ public final 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". + * If true, the response includes term positions. *

* API name: {@code positions} */ @@ -502,9 +506,8 @@ public final 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". + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -514,8 +517,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specifies if requests are real-time as opposed to near-real-time (default: - * true). + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -525,8 +527,7 @@ public final Builder realtime(@Nullable Boolean value) { } /** - * Specific routing value. Applies to all returned documents unless otherwise - * specified in body "params" or "docs". + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -536,9 +537,7 @@ public final Builder routing(@Nullable String value) { } /** - * Specifies if total term frequency and document frequency should be returned. - * Applies to all returned documents unless otherwise specified in body - * "params" or "docs". + * If true, the response includes term frequency and document frequency. *

* API name: {@code term_statistics} */ @@ -548,7 +547,7 @@ public final Builder termStatistics(@Nullable Boolean value) { } /** - * Explicit version number for concurrency control + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -558,7 +557,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type. *

* API name: {@code version_type} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java index ccae8c324..5b9752c24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java @@ -108,8 +108,12 @@ public static OpenPointInTimeRequest of(Function

* API name: {@code expand_wildcards} */ @@ -118,8 +122,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -139,7 +143,7 @@ public final List index() { } /** - * Required - Specific the time to live for the point in time + * Required - Extends the time to live of the corresponding point in time. *

* API name: {@code keep_alive} */ @@ -148,8 +152,8 @@ public final Time keepAlive() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -159,7 +163,7 @@ public final String preference() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -194,8 +198,12 @@ public static class Builder extends RequestBase.AbstractBuilder private String routing; /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -207,8 +215,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -220,8 +232,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -257,7 +269,7 @@ public final Builder index(String value, String... values) { } /** - * Required - Specific the time to live for the point in time + * Required - Extends the time to live of the corresponding point in time. *

* API name: {@code keep_alive} */ @@ -267,7 +279,7 @@ public final Builder keepAlive(Time value) { } /** - * Required - Specific the time to live for the point in time + * Required - Extends the time to live of the corresponding point in time. *

* API name: {@code keep_alive} */ @@ -276,8 +288,8 @@ public final Builder keepAlive(Function> fn) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -287,7 +299,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java index 7d70556fe..2acff98fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java @@ -59,7 +59,7 @@ // typedef: _global.put_script.Request /** - * Creates or updates a script. + * Creates or updates a stored script or search template. * * @see API * specification @@ -96,7 +96,8 @@ public static PutScriptRequest of(Function * API name: {@code context} */ @@ -106,7 +107,8 @@ public final String context() { } /** - * Required - Script ID + * Required - Identifier for the stored script or search template. Must be + * unique within the cluster. *

* API name: {@code id} */ @@ -115,7 +117,8 @@ public final String id() { } /** - * Specify timeout for connection to master + * 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} */ @@ -125,14 +128,18 @@ public final Time masterTimeout() { } /** - * Required - API name: {@code script} + * Required - Contains the script or search template, its parameters, and its + * language. + *

+ * API name: {@code script} */ public final StoredScript script() { return this.script; } /** - * Explicit operation timeout + * 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} */ @@ -180,7 +187,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Script context + * Context in which the script or search template should run. To prevent errors, + * the API immediately compiles the script or template in this context. *

* API name: {@code context} */ @@ -190,7 +198,8 @@ public final Builder context(@Nullable String value) { } /** - * Required - Script ID + * Required - Identifier for the stored script or search template. Must be + * unique within the cluster. *

* API name: {@code id} */ @@ -200,7 +209,8 @@ public final Builder id(String value) { } /** - * Specify timeout for connection to master + * 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} */ @@ -210,7 +220,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * 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} */ @@ -219,7 +230,10 @@ public final Builder masterTimeout(Function> f } /** - * Required - API name: {@code script} + * Required - Contains the script or search template, its parameters, and its + * language. + *

+ * API name: {@code script} */ public final Builder script(StoredScript value) { this.script = value; @@ -227,14 +241,18 @@ public final Builder script(StoredScript value) { } /** - * Required - API name: {@code script} + * Required - Contains the script or search template, its parameters, and its + * language. + *

+ * API name: {@code script} */ public final Builder script(Function> fn) { return this.script(fn.apply(new StoredScript.Builder()).build()); } /** - * Explicit operation timeout + * 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} */ @@ -244,7 +262,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * 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} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java index b5121950f..d8148aa03 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java @@ -56,7 +56,7 @@ // typedef: _global.reindex_rethrottle.Request /** - * Changes the number of requests per second for a particular Reindex operation. + * Copies documents from a source to a destination. * * @see API @@ -83,8 +83,7 @@ public static ReindexRethrottleRequest of(Function * API name: {@code requests_per_second} */ @@ -94,7 +93,7 @@ public final Float requestsPerSecond() { } /** - * Required - The task id to rethrottle + * Required - Identifier for the task. *

* API name: {@code task_id} */ @@ -117,8 +116,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String taskId; /** - * The throttle to set on this request in floating sub-requests per second. -1 - * means set no throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -128,7 +126,7 @@ public final Builder requestsPerSecond(@Nullable Float value) { } /** - * Required - The task id to rethrottle + * Required - Identifier for the task. *

* API name: {@code task_id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java index d2b41f7b6..702555736 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java @@ -59,7 +59,7 @@ // typedef: _global.render_search_template.Request /** - * Allows to use the Mustache language to pre-render a search definition. + * Renders a search template as a search request body. * * @see API @@ -102,7 +102,8 @@ public final String file() { } /** - * The id of the stored search template + * ID of the search template to render. If no source is specified, + * this or the id request body parameter is required. *

* API name: {@code id} */ @@ -112,6 +113,9 @@ public final String id() { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} */ public final Map params() { @@ -119,6 +123,11 @@ public final Map params() { } /** + * An inline search template. Supports the same parameters as the search API's + * request body. These parameters also support Mustache variables. If no + * id or <templated-id> is specified, this + * parameter is required. + *

* API name: {@code source} */ @Nullable @@ -191,7 +200,8 @@ public final Builder file(@Nullable String value) { } /** - * The id of the stored search template + * ID of the search template to render. If no source is specified, + * this or the id request body parameter is required. *

* API name: {@code id} */ @@ -201,6 +211,9 @@ public final Builder id(@Nullable String value) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -211,6 +224,9 @@ public final Builder params(Map map) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds an entry to params. @@ -221,6 +237,11 @@ public final Builder params(String key, JsonData value) { } /** + * An inline search template. Supports the same parameters as the search API's + * request body. These parameters also support Mustache variables. If no + * id or <templated-id> is specified, this + * parameter is required. + *

* API name: {@code source} */ public final Builder source(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java index 439048a47..1f00be2c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java @@ -57,7 +57,7 @@ // typedef: _global.scripts_painless_execute.Request /** - * Allows an arbitrary script to be executed and a result to be returned + * Runs a script and returns a result. * * @see API @@ -89,6 +89,8 @@ public static ScriptsPainlessExecuteRequest of(Function * API name: {@code context} */ @Nullable @@ -97,6 +99,8 @@ public final String context() { } /** + * Additional parameters for the context. + *

* API name: {@code context_setup} */ @Nullable @@ -105,6 +109,8 @@ public final PainlessContextSetup contextSetup() { } /** + * The Painless script to execute. + *

* API name: {@code script} */ @Nullable @@ -160,6 +166,8 @@ public static class Builder extends RequestBase.AbstractBuilder private InlineScript script; /** + * The context that the script should run in. + *

* API name: {@code context} */ public final Builder context(@Nullable String value) { @@ -168,6 +176,8 @@ public final Builder context(@Nullable String value) { } /** + * Additional parameters for the context. + *

* API name: {@code context_setup} */ public final Builder contextSetup(@Nullable PainlessContextSetup value) { @@ -176,6 +186,8 @@ public final Builder contextSetup(@Nullable PainlessContextSetup value) { } /** + * Additional parameters for the context. + *

* API name: {@code context_setup} */ public final Builder contextSetup( @@ -184,6 +196,8 @@ public final Builder contextSetup( } /** + * The Painless script to execute. + *

* API name: {@code script} */ public final Builder script(@Nullable InlineScript value) { @@ -192,6 +206,8 @@ public final Builder script(@Nullable InlineScript value) { } /** + * The Painless script to execute. + *

* API name: {@code script} */ public final Builder script(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index 728e3b8af..db9894637 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java @@ -59,6 +59,7 @@ import java.lang.Integer; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -2215,6 +2216,78 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * Used to retrieve the next page of hits using a set of sort values from the * previous page. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java index 24ca604c0..7e57b903c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java @@ -105,9 +105,12 @@ public static SearchShardsRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -117,8 +120,12 @@ public final Boolean allowNoIndices() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -127,8 +134,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -138,8 +145,8 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of index names to search; use _all or - * empty string to perform the operation on all indices + * Returns the indices and shards that a search request would be executed + * against. *

* API name: {@code index} */ @@ -148,8 +155,8 @@ public final List index() { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -159,8 +166,8 @@ public final Boolean local() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -170,7 +177,7 @@ public final String preference() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -210,9 +217,12 @@ public static class Builder extends RequestBase.AbstractBuilder private String routing; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -222,8 +232,12 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -235,8 +249,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -248,8 +266,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -259,8 +277,8 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of index names to search; use _all or - * empty string to perform the operation on all indices + * Returns the indices and shards that a search request would be executed + * against. *

* API name: {@code index} *

@@ -272,8 +290,8 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to search; use _all or - * empty string to perform the operation on all indices + * Returns the indices and shards that a search request would be executed + * against. *

* API name: {@code index} *

@@ -285,8 +303,8 @@ public final Builder index(String value, String... values) { } /** - * Return local information, do not retrieve the state from master node - * (default: false) + * If true, the request retrieves information from the local node + * only. *

* API name: {@code local} */ @@ -296,8 +314,8 @@ public final Builder local(@Nullable Boolean value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -307,7 +325,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java index bc0343119..64bc1b3c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java @@ -64,7 +64,7 @@ // typedef: _global.search_template.Request /** - * Allows to use the Mustache language to pre-render a search definition. + * Runs a search with a search template. * * @see API * specification @@ -140,9 +140,12 @@ public static SearchTemplateRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -152,8 +155,8 @@ public final Boolean allowNoIndices() { } /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips are minimized for cross-cluster + * search requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -163,8 +166,12 @@ public final Boolean ccsMinimizeRoundtrips() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -173,6 +180,9 @@ public final List expandWildcards() { } /** + * If true, returns detailed information about score calculation as + * part of each hit. + *

* API name: {@code explain} */ @Nullable @@ -192,8 +202,8 @@ public final String id() { } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, specified concrete, expanded, or aliased indices are + * not included in the response when throttled. *

* API name: {@code ignore_throttled} */ @@ -203,8 +213,8 @@ public final Boolean ignoreThrottled() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -224,6 +234,9 @@ public final List index() { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} */ public final Map params() { @@ -231,8 +244,8 @@ public final Map params() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -242,6 +255,8 @@ public final String preference() { } /** + * If true, the query execution is profiled. + *

* API name: {@code profile} */ @Nullable @@ -392,9 +407,12 @@ public static class Builder extends RequestBase.AbstractBuilder private String source; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -404,8 +422,8 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips are minimized for cross-cluster + * search requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -415,8 +433,12 @@ public final Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -428,8 +450,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -441,6 +467,9 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** + * If true, returns detailed information about score calculation as + * part of each hit. + *

* API name: {@code explain} */ public final Builder explain(@Nullable Boolean value) { @@ -460,8 +489,8 @@ public final Builder id(@Nullable String value) { } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, specified concrete, expanded, or aliased indices are + * not included in the response when throttled. *

* API name: {@code ignore_throttled} */ @@ -471,8 +500,8 @@ public final Builder ignoreThrottled(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -508,6 +537,9 @@ public final Builder index(String value, String... values) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -518,6 +550,9 @@ public final Builder params(Map map) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds an entry to params. @@ -528,8 +563,8 @@ public final Builder params(String key, JsonData value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -539,6 +574,8 @@ public final Builder preference(@Nullable String value) { } /** + * If true, the query execution is profiled. + *

* API name: {@code profile} */ public final Builder profile(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java index 9edc6547c..7233b315e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java @@ -153,6 +153,9 @@ public static TermvectorsRequest of( } /** + * An artificial document (a document not present in the index) for which you + * want to retrieve term vectors. + *

* API name: {@code doc} */ @Nullable @@ -161,8 +164,8 @@ public final TDocument doc() { } /** - * Specifies if document count, sum of document frequencies and sum of total - * term frequencies should be returned. + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. *

* API name: {@code field_statistics} */ @@ -172,7 +175,10 @@ public final Boolean fieldStatistics() { } /** - * A comma-separated list of fields to return. + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} */ @@ -181,6 +187,8 @@ public final List fields() { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ @Nullable @@ -189,7 +197,7 @@ public final Filter filter() { } /** - * The id of the document, when not specified a doc param should be supplied. + * Unique identifier of the document. *

* API name: {@code id} */ @@ -199,7 +207,7 @@ public final String id() { } /** - * Required - The index in which the document resides. + * Required - Name of the index that contains the document. *

* API name: {@code index} */ @@ -208,7 +216,7 @@ public final String index() { } /** - * Specifies if term offsets should be returned. + * If true, the response includes term offsets. *

* API name: {@code offsets} */ @@ -218,7 +226,7 @@ public final Boolean offsets() { } /** - * Specifies if term payloads should be returned. + * If true, the response includes term payloads. *

* API name: {@code payloads} */ @@ -228,6 +236,8 @@ public final Boolean payloads() { } /** + * Overrides the default per-field analyzer. + *

* API name: {@code per_field_analyzer} */ public final Map perFieldAnalyzer() { @@ -235,7 +245,7 @@ public final Map perFieldAnalyzer() { } /** - * Specifies if term positions should be returned. + * If true, the response includes term positions. *

* API name: {@code positions} */ @@ -245,8 +255,8 @@ public final Boolean positions() { } /** - * Specify the node or shard the operation should be performed on (default: - * random). + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -256,8 +266,7 @@ public final String preference() { } /** - * Specifies if request is real-time as opposed to near-real-time (default: - * true). + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -267,7 +276,7 @@ public final Boolean realtime() { } /** - * Specific routing value. + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -277,7 +286,8 @@ public final String routing() { } /** - * Specifies if total term frequency and document frequency should be returned. + * If true, the response includes term frequency and document + * frequency. *

* API name: {@code term_statistics} */ @@ -287,7 +297,7 @@ public final Boolean termStatistics() { } /** - * Explicit version number for concurrency control + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -297,7 +307,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type. *

* API name: {@code version_type} */ @@ -401,6 +411,9 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; /** + * An artificial document (a document not present in the index) for which you + * want to retrieve term vectors. + *

* API name: {@code doc} */ public final Builder doc(@Nullable TDocument value) { @@ -409,8 +422,8 @@ public final Builder doc(@Nullable TDocument value) { } /** - * Specifies if document count, sum of document frequencies and sum of total - * term frequencies should be returned. + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. *

* API name: {@code field_statistics} */ @@ -420,7 +433,10 @@ public final Builder fieldStatistics(@Nullable Boolean value) { } /** - * A comma-separated list of fields to return. + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} *

@@ -432,7 +448,10 @@ public final Builder fields(List list) { } /** - * A comma-separated list of fields to return. + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} *

@@ -444,6 +463,8 @@ public final Builder fields(String value, String... values) { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Filter value) { @@ -452,6 +473,8 @@ public final Builder filter(@Nullable Filter value) { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -459,7 +482,7 @@ public final Builder filter(Function * API name: {@code id} */ @@ -469,7 +492,7 @@ public final Builder id(@Nullable String value) { } /** - * Required - The index in which the document resides. + * Required - Name of the index that contains the document. *

* API name: {@code index} */ @@ -479,7 +502,7 @@ public final Builder index(String value) { } /** - * Specifies if term offsets should be returned. + * If true, the response includes term offsets. *

* API name: {@code offsets} */ @@ -489,7 +512,7 @@ public final Builder offsets(@Nullable Boolean value) { } /** - * Specifies if term payloads should be returned. + * If true, the response includes term payloads. *

* API name: {@code payloads} */ @@ -499,6 +522,8 @@ public final Builder payloads(@Nullable Boolean value) { } /** + * Overrides the default per-field analyzer. + *

* API name: {@code per_field_analyzer} *

* Adds all entries of map to perFieldAnalyzer. @@ -509,6 +534,8 @@ public final Builder perFieldAnalyzer(Map map) { } /** + * Overrides the default per-field analyzer. + *

* API name: {@code per_field_analyzer} *

* Adds an entry to perFieldAnalyzer. @@ -519,7 +546,7 @@ public final Builder perFieldAnalyzer(String key, String value) { } /** - * Specifies if term positions should be returned. + * If true, the response includes term positions. *

* API name: {@code positions} */ @@ -529,8 +556,8 @@ public final Builder positions(@Nullable Boolean value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random). + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -540,8 +567,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specifies if request is real-time as opposed to near-real-time (default: - * true). + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -551,7 +577,7 @@ public final Builder realtime(@Nullable Boolean value) { } /** - * Specific routing value. + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -561,7 +587,8 @@ public final Builder routing(@Nullable String value) { } /** - * Specifies if total term frequency and document frequency should be returned. + * If true, the response includes term frequency and document + * frequency. *

* API name: {@code term_statistics} */ @@ -571,7 +598,7 @@ public final Builder termStatistics(@Nullable Boolean value) { } /** - * Explicit version number for concurrency control + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -581,7 +608,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type. *

* API name: {@code version_type} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java index 3ec1d1d82..fb314ace8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java @@ -72,8 +72,9 @@ // typedef: _global.update_by_query.Request /** - * Performs an update on every document in the index without changing the - * source, for example to pick up a mapping change. + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the data stream or index without + * modifying the source, which is useful for picking up mapping changes. * * @see API * specification @@ -224,9 +225,12 @@ public static UpdateByQueryRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -236,8 +240,7 @@ public final Boolean allowNoIndices() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -247,7 +250,7 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. *

* API name: {@code analyzer} */ @@ -257,6 +260,9 @@ public final String analyzer() { } /** + * What to do if update by query hits version conflicts: abort or + * proceed. + *

* API name: {@code conflicts} */ @Nullable @@ -265,7 +271,8 @@ public final Conflicts conflicts() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -275,8 +282,7 @@ public final Operator defaultOperator() { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -286,8 +292,12 @@ public final String df() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -306,8 +316,8 @@ public final Long from() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -317,8 +327,9 @@ public final Boolean ignoreUnavailable() { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -327,8 +338,8 @@ public final List index() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -338,6 +349,8 @@ public final Boolean lenient() { } /** + * The maximum number of documents to update. + *

* API name: {@code max_docs} */ @Nullable @@ -346,7 +359,11 @@ public final Long maxDocs() { } /** - * Ingest pipeline to set on index requests made by this action. (default: none) + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -356,8 +373,8 @@ public final String pipeline() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -367,6 +384,8 @@ public final String preference() { } /** + * Specifies the documents to update using the Query DSL. + *

* API name: {@code query} */ @Nullable @@ -375,7 +394,8 @@ public final Query query() { } /** - * Should the affected indexes be refreshed? + * If true, Elasticsearch refreshes affected shards to make the + * operation visible to search. *

* API name: {@code refresh} */ @@ -385,8 +405,7 @@ public final Boolean refresh() { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the request cache is used for this request. *

* API name: {@code request_cache} */ @@ -396,8 +415,7 @@ public final Boolean requestCache() { } /** - * The throttle to set on this request in sub-requests per second. -1 means no - * throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -407,7 +425,7 @@ public final Float requestsPerSecond() { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -417,6 +435,8 @@ public final String routing() { } /** + * The script to run to update the document source or metadata when updating. + *

* API name: {@code script} */ @Nullable @@ -425,8 +445,7 @@ public final Script script() { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -436,7 +455,7 @@ public final Time scroll() { } /** - * Size on the scroll request powering the update by query + * Size of the scroll request that powers the operation. *

* API name: {@code scroll_size} */ @@ -446,7 +465,7 @@ public final Long scrollSize() { } /** - * Explicit timeout for each search request. Defaults to no timeout. + * Explicit timeout for each search request. *

* API name: {@code search_timeout} */ @@ -456,7 +475,8 @@ public final Time searchTimeout() { } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -466,6 +486,9 @@ public final SearchType searchType() { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ @Nullable @@ -474,8 +497,7 @@ public final SlicedScroll slice() { } /** - * 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. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -485,7 +507,7 @@ public final Slices slices() { } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} */ @@ -494,7 +516,8 @@ public final List sort() { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} */ @@ -503,8 +526,13 @@ public final List stats() { } /** - * The maximum number of documents to collect for each shard, upon reaching - * which the query execution will terminate early. + * 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. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. *

* API name: {@code terminate_after} */ @@ -514,8 +542,8 @@ public final Long terminateAfter() { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each update request waits for the following operations: dynamic + * mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -525,7 +553,7 @@ public final Time timeout() { } /** - * Specify whether to return document version as part of a hit + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -546,11 +574,9 @@ public final 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -560,8 +586,7 @@ public final WaitForActiveShards waitForActiveShards() { } /** - * Should the request should block until the update by query operation is - * complete. + * If true, the request blocks until the operation is complete. *

* API name: {@code wait_for_completion} */ @@ -719,9 +744,12 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean waitForCompletion; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -731,8 +759,7 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -742,7 +769,7 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. *

* API name: {@code analyzer} */ @@ -752,6 +779,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * What to do if update by query hits version conflicts: abort or + * proceed. + *

* API name: {@code conflicts} */ public final Builder conflicts(@Nullable Conflicts value) { @@ -760,7 +790,8 @@ public final Builder conflicts(@Nullable Conflicts value) { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -770,8 +801,7 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -781,8 +811,12 @@ public final Builder df(@Nullable String value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -794,8 +828,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -817,8 +855,8 @@ public final Builder from(@Nullable Long value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -828,8 +866,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -841,8 +880,9 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -854,8 +894,8 @@ public final Builder index(String value, String... values) { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -865,6 +905,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** + * The maximum number of documents to update. + *

* API name: {@code max_docs} */ public final Builder maxDocs(@Nullable Long value) { @@ -873,7 +915,11 @@ public final Builder maxDocs(@Nullable Long value) { } /** - * Ingest pipeline to set on index requests made by this action. (default: none) + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -883,8 +929,8 @@ public final Builder pipeline(@Nullable String value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -894,6 +940,8 @@ public final Builder preference(@Nullable String value) { } /** + * Specifies the documents to update using the Query DSL. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -902,6 +950,8 @@ public final Builder query(@Nullable Query value) { } /** + * Specifies the documents to update using the Query DSL. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -909,7 +959,8 @@ public final Builder query(Function> fn) { } /** - * Should the affected indexes be refreshed? + * If true, Elasticsearch refreshes affected shards to make the + * operation visible to search. *

* API name: {@code refresh} */ @@ -919,8 +970,7 @@ public final Builder refresh(@Nullable Boolean value) { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the request cache is used for this request. *

* API name: {@code request_cache} */ @@ -930,8 +980,7 @@ public final Builder requestCache(@Nullable Boolean value) { } /** - * The throttle to set on this request in sub-requests per second. -1 means no - * throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -941,7 +990,7 @@ public final Builder requestsPerSecond(@Nullable Float value) { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -951,6 +1000,8 @@ public final Builder routing(@Nullable String value) { } /** + * The script to run to update the document source or metadata when updating. + *

* API name: {@code script} */ public final Builder script(@Nullable Script value) { @@ -959,6 +1010,8 @@ public final Builder script(@Nullable Script value) { } /** + * The script to run to update the document source or metadata when updating. + *

* API name: {@code script} */ public final Builder script(Function> fn) { @@ -966,8 +1019,7 @@ public final Builder script(Function> fn) } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -977,8 +1029,7 @@ public final Builder scroll(@Nullable Time value) { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -987,7 +1038,7 @@ public final Builder scroll(Function> fn) { } /** - * Size on the scroll request powering the update by query + * Size of the scroll request that powers the operation. *

* API name: {@code scroll_size} */ @@ -997,7 +1048,7 @@ public final Builder scrollSize(@Nullable Long value) { } /** - * Explicit timeout for each search request. Defaults to no timeout. + * Explicit timeout for each search request. *

* API name: {@code search_timeout} */ @@ -1007,7 +1058,7 @@ public final Builder searchTimeout(@Nullable Time value) { } /** - * Explicit timeout for each search request. Defaults to no timeout. + * Explicit timeout for each search request. *

* API name: {@code search_timeout} */ @@ -1016,7 +1067,8 @@ public final Builder searchTimeout(Function> f } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -1026,6 +1078,9 @@ public final Builder searchType(@Nullable SearchType value) { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ public final Builder slice(@Nullable SlicedScroll value) { @@ -1034,6 +1089,9 @@ public final Builder slice(@Nullable SlicedScroll value) { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ public final Builder slice(Function> fn) { @@ -1041,8 +1099,7 @@ public final Builder slice(Functionauto. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -1052,8 +1109,7 @@ public final Builder slices(@Nullable Slices 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. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -1062,7 +1118,7 @@ public final Builder slices(Function> fn) } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} *

@@ -1074,7 +1130,7 @@ public final Builder sort(List list) { } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} *

@@ -1086,7 +1142,8 @@ public final Builder sort(String value, String... values) { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} *

@@ -1098,7 +1155,8 @@ public final Builder stats(List list) { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} *

@@ -1110,8 +1168,13 @@ public final Builder stats(String value, String... values) { } /** - * The maximum number of documents to collect for each shard, upon reaching - * which the query execution will terminate early. + * 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. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. *

* API name: {@code terminate_after} */ @@ -1121,8 +1184,8 @@ public final Builder terminateAfter(@Nullable Long value) { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each update request waits for the following operations: dynamic + * mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -1132,8 +1195,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each update request waits for the following operations: dynamic + * mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -1142,7 +1205,7 @@ public final Builder timeout(Function> fn) { } /** - * Specify whether to return document version as part of a hit + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -1163,11 +1226,9 @@ public final 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -1177,11 +1238,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -1191,8 +1250,7 @@ public final Builder waitForActiveShards( } /** - * Should the request should block until the update by query operation is - * complete. + * If true, the request blocks until the operation is complete. *

* API name: {@code wait_for_completion} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java index 8330d6c39..e7a920fe3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java @@ -85,8 +85,7 @@ public static UpdateByQueryRethrottleRequest of( } /** - * The throttle to set on this request in floating sub-requests per second. -1 - * means set no throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -96,7 +95,7 @@ public final Float requestsPerSecond() { } /** - * Required - The task id to rethrottle + * Required - The ID for the task. *

* API name: {@code task_id} */ @@ -119,8 +118,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String taskId; /** - * The throttle to set on this request in floating sub-requests per second. -1 - * means set no throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -130,7 +128,7 @@ public final Builder requestsPerSecond(@Nullable Float value) { } /** - * Required - The task id to rethrottle + * Required - The ID for the task. *

* API name: {@code task_id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java index 4332c9255..2de061b70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java @@ -95,6 +95,8 @@ protected BulkOperationBase(AbstractBuilder builder) { } /** + * The document ID. + *

* API name: {@code _id} */ @Nullable @@ -103,6 +105,8 @@ public final String id() { } /** + * Name of the index or index alias to perform the action on. + *

* API name: {@code _index} */ @Nullable @@ -111,6 +115,8 @@ public final String index() { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ @Nullable @@ -228,6 +234,8 @@ public abstract static class AbstractBuilder * API name: {@code _id} */ public final BuilderT id(@Nullable String value) { @@ -236,6 +244,8 @@ public final BuilderT id(@Nullable String value) { } /** + * Name of the index or index alias to perform the action on. + *

* API name: {@code _index} */ public final BuilderT index(@Nullable String value) { @@ -244,6 +254,8 @@ public final BuilderT index(@Nullable String value) { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ public final BuilderT routing(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java index a43fcc4ff..ee9343ad8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java @@ -133,6 +133,8 @@ public final OperationType operationType() { } /** + * The document ID associated with the operation. + *

* API name: {@code _id} */ @Nullable @@ -141,20 +143,29 @@ public final String id() { } /** - * Required - API name: {@code _index} + * Required - Name of the index associated with the operation. If the operation + * targeted a data stream, this is the backing index into which the document was + * written. + *

+ * API name: {@code _index} */ public final String index() { return this.index; } /** - * Required - API name: {@code status} + * Required - HTTP status code returned for the operation. + *

+ * API name: {@code status} */ public final int status() { return this.status; } /** + * Contains additional information about the failed operation. The parameter is + * only returned for failed operations. + *

* API name: {@code error} */ @Nullable @@ -163,6 +174,8 @@ public final ErrorCause error() { } /** + * The primary term assigned to the document for the operation. + *

* API name: {@code _primary_term} */ @Nullable @@ -171,6 +184,9 @@ public final Long primaryTerm() { } /** + * Result of the operation. Successful values are created, + * deleted, and updated. + *

* API name: {@code result} */ @Nullable @@ -179,6 +195,10 @@ public final String result() { } /** + * The sequence number assigned to the document for the operation. Sequence + * numbers are used to ensure an older version of a document doesn’t overwrite a + * newer version. + *

* API name: {@code _seq_no} */ @Nullable @@ -187,6 +207,8 @@ public final Long seqNo() { } /** + * Contains shard information for the operation. + *

* API name: {@code _shards} */ @Nullable @@ -195,6 +217,9 @@ public final ShardStatistics shards() { } /** + * The document version associated with the operation. The document version is + * incremented each time the document is updated. + *

* API name: {@code _version} */ @Nullable @@ -340,6 +365,8 @@ public final Builder operationType(OperationType value) { private InlineGet> get; /** + * The document ID associated with the operation. + *

* API name: {@code _id} */ public final Builder id(@Nullable String value) { @@ -348,7 +375,11 @@ public final Builder id(@Nullable String value) { } /** - * Required - API name: {@code _index} + * Required - Name of the index associated with the operation. If the operation + * targeted a data stream, this is the backing index into which the document was + * written. + *

+ * API name: {@code _index} */ public final Builder index(String value) { this.index = value; @@ -356,7 +387,9 @@ public final Builder index(String value) { } /** - * Required - API name: {@code status} + * Required - HTTP status code returned for the operation. + *

+ * API name: {@code status} */ public final Builder status(int value) { this.status = value; @@ -364,6 +397,9 @@ public final Builder status(int value) { } /** + * Contains additional information about the failed operation. The parameter is + * only returned for failed operations. + *

* API name: {@code error} */ public final Builder error(@Nullable ErrorCause value) { @@ -372,6 +408,9 @@ public final Builder error(@Nullable ErrorCause value) { } /** + * Contains additional information about the failed operation. The parameter is + * only returned for failed operations. + *

* API name: {@code error} */ public final Builder error(Function> fn) { @@ -379,6 +418,8 @@ public final Builder error(Function * API name: {@code _primary_term} */ public final Builder primaryTerm(@Nullable Long value) { @@ -387,6 +428,9 @@ public final Builder primaryTerm(@Nullable Long value) { } /** + * Result of the operation. Successful values are created, + * deleted, and updated. + *

* API name: {@code result} */ public final Builder result(@Nullable String value) { @@ -395,6 +439,10 @@ public final Builder result(@Nullable String value) { } /** + * The sequence number assigned to the document for the operation. Sequence + * numbers are used to ensure an older version of a document doesn’t overwrite a + * newer version. + *

* API name: {@code _seq_no} */ public final Builder seqNo(@Nullable Long value) { @@ -403,6 +451,8 @@ public final Builder seqNo(@Nullable Long value) { } /** + * Contains shard information for the operation. + *

* API name: {@code _shards} */ public final Builder shards(@Nullable ShardStatistics value) { @@ -411,6 +461,8 @@ public final Builder shards(@Nullable ShardStatistics value) { } /** + * Contains shard information for the operation. + *

* API name: {@code _shards} */ public final Builder shards(Function> fn) { @@ -418,6 +470,9 @@ public final Builder shards(Function * API name: {@code _version} */ public final Builder version(@Nullable Long value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java index 0becb3367..bd060c89d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java @@ -137,6 +137,8 @@ public Iterator _serializables() { } /** + * If true, the request’s actions must target an index alias. + *

* API name: {@code require_alias} */ @Nullable @@ -231,6 +233,8 @@ public final Builder binaryAction(@Nullable BinaryD private JsonpSerializer tPartialDocumentSerializer; /** + * If true, the request’s actions must target an index alias. + *

* API name: {@code require_alias} */ public final Builder requireAlias(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java index edb954583..776d62830 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java @@ -78,6 +78,12 @@ protected WriteOperation(AbstractBuilder builder) { } /** + * A map from the full name of fields to the name of dynamic templates. Defaults + * to an empty map. If a name matches a dynamic template, then that template + * will be applied regardless of other match predicates defined in the template. + * If a field is already defined in the mapping, then this parameter won’t be + * used. + *

* API name: {@code dynamic_templates} */ public final Map dynamicTemplates() { @@ -85,6 +91,12 @@ public final Map dynamicTemplates() { } /** + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. + *

* API name: {@code pipeline} */ @Nullable @@ -93,6 +105,8 @@ public final String pipeline() { } /** + * If true, the request’s actions must target an index alias. + *

* API name: {@code require_alias} */ @Nullable @@ -140,6 +154,12 @@ public abstract static class AbstractBuilder * API name: {@code dynamic_templates} *

* Adds all entries of map to dynamicTemplates. @@ -150,6 +170,12 @@ public final BuilderT dynamicTemplates(Map map) { } /** + * A map from the full name of fields to the name of dynamic templates. Defaults + * to an empty map. If a name matches a dynamic template, then that template + * will be applied regardless of other match predicates defined in the template. + * If a field is already defined in the mapping, then this parameter won’t be + * used. + *

* API name: {@code dynamic_templates} *

* Adds an entry to dynamicTemplates. @@ -160,6 +186,12 @@ public final BuilderT dynamicTemplates(String key, String value) { } /** + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. + *

* API name: {@code pipeline} */ public final BuilderT pipeline(@Nullable String value) { @@ -168,6 +200,8 @@ public final BuilderT pipeline(@Nullable String value) { } /** + * If true, the request’s actions must target an index alias. + *

* API name: {@code require_alias} */ public final BuilderT requireAlias(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java index 46a81645b..2eda888ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java @@ -51,6 +51,7 @@ import java.lang.Integer; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; @@ -1230,6 +1231,66 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * API name: {@code search_after} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/TemplateConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/TemplateConfig.java index 7a47ebb20..10d395201 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/TemplateConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/TemplateConfig.java @@ -94,6 +94,9 @@ public static TemplateConfig of(Function> } /** + * If true, returns detailed information about score calculation as + * part of each hit. + *

* API name: {@code explain} */ @Nullable @@ -113,6 +116,9 @@ public final String id() { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} */ public final Map params() { @@ -120,6 +126,8 @@ public final Map params() { } /** + * If true, the query execution is profiled. + *

* API name: {@code profile} */ @Nullable @@ -212,6 +220,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String source; /** + * If true, returns detailed information about score calculation as + * part of each hit. + *

* API name: {@code explain} */ public final Builder explain(@Nullable Boolean value) { @@ -231,6 +242,9 @@ public final Builder id(@Nullable String value) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -241,6 +255,9 @@ public final Builder params(Map map) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds an entry to params. @@ -251,6 +268,8 @@ public final Builder params(String key, JsonData value) { } /** + * If true, the query execution is profiled. + *

* API name: {@code profile} */ public final Builder profile(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java index 3460b8d90..74467a91a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java @@ -128,13 +128,17 @@ public static MultiTermVectorsOperation of(Function + * API name: {@code _id} */ public final String id() { return this.id; } /** + * The index of the document. + *

* API name: {@code _index} */ @Nullable @@ -143,6 +147,9 @@ public final String index() { } /** + * An artificial document (a document not present in the index) for which you + * want to retrieve term vectors. + *

* API name: {@code doc} */ @Nullable @@ -151,6 +158,11 @@ public final JsonData doc() { } /** + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. + *

* API name: {@code fields} */ public final List fields() { @@ -158,6 +170,9 @@ public final List fields() { } /** + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. + *

* API name: {@code field_statistics} */ @Nullable @@ -166,6 +181,8 @@ public final Boolean fieldStatistics() { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ @Nullable @@ -174,6 +191,8 @@ public final Filter filter() { } /** + * If true, the response includes term offsets. + *

* API name: {@code offsets} */ @Nullable @@ -182,6 +201,8 @@ public final Boolean offsets() { } /** + * If true, the response includes term payloads. + *

* API name: {@code payloads} */ @Nullable @@ -190,6 +211,8 @@ public final Boolean payloads() { } /** + * If true, the response includes term positions. + *

* API name: {@code positions} */ @Nullable @@ -198,6 +221,8 @@ public final Boolean positions() { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ @Nullable @@ -206,6 +231,8 @@ public final String routing() { } /** + * If true, the response includes term frequency and document frequency. + *

* API name: {@code term_statistics} */ @Nullable @@ -214,6 +241,8 @@ public final Boolean termStatistics() { } /** + * If true, returns the document version as part of a hit. + *

* API name: {@code version} */ @Nullable @@ -222,6 +251,8 @@ public final Long version() { } /** + * Specific version type. + *

* API name: {@code version_type} */ @Nullable @@ -363,7 +394,9 @@ public static class Builder extends WithJsonObjectBuilderBase private VersionType versionType; /** - * Required - API name: {@code _id} + * Required - The ID of the document. + *

+ * API name: {@code _id} */ public final Builder id(String value) { this.id = value; @@ -371,6 +404,8 @@ public final Builder id(String value) { } /** + * The index of the document. + *

* API name: {@code _index} */ public final Builder index(@Nullable String value) { @@ -379,6 +414,9 @@ public final Builder index(@Nullable String value) { } /** + * An artificial document (a document not present in the index) for which you + * want to retrieve term vectors. + *

* API name: {@code doc} */ public final Builder doc(@Nullable JsonData value) { @@ -387,6 +425,11 @@ public final Builder doc(@Nullable JsonData value) { } /** + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. + *

* API name: {@code fields} *

* Adds all elements of list to fields. @@ -397,6 +440,11 @@ public final Builder fields(List list) { } /** + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. + *

* API name: {@code fields} *

* Adds one or more values to fields. @@ -407,6 +455,9 @@ public final Builder fields(String value, String... values) { } /** + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. + *

* API name: {@code field_statistics} */ public final Builder fieldStatistics(@Nullable Boolean value) { @@ -415,6 +466,8 @@ public final Builder fieldStatistics(@Nullable Boolean value) { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Filter value) { @@ -423,6 +476,8 @@ public final Builder filter(@Nullable Filter value) { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -430,6 +485,8 @@ public final Builder filter(Function> fn) } /** + * If true, the response includes term offsets. + *

* API name: {@code offsets} */ public final Builder offsets(@Nullable Boolean value) { @@ -438,6 +495,8 @@ public final Builder offsets(@Nullable Boolean value) { } /** + * If true, the response includes term payloads. + *

* API name: {@code payloads} */ public final Builder payloads(@Nullable Boolean value) { @@ -446,6 +505,8 @@ public final Builder payloads(@Nullable Boolean value) { } /** + * If true, the response includes term positions. + *

* API name: {@code positions} */ public final Builder positions(@Nullable Boolean value) { @@ -454,6 +515,8 @@ public final Builder positions(@Nullable Boolean value) { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ public final Builder routing(@Nullable String value) { @@ -462,6 +525,8 @@ public final Builder routing(@Nullable String value) { } /** + * If true, the response includes term frequency and document frequency. + *

* API name: {@code term_statistics} */ public final Builder termStatistics(@Nullable Boolean value) { @@ -470,6 +535,8 @@ public final Builder termStatistics(@Nullable Boolean value) { } /** + * If true, returns the document version as part of a hit. + *

* API name: {@code version} */ public final Builder version(@Nullable Long value) { @@ -478,6 +545,8 @@ public final Builder version(@Nullable Long value) { } /** + * Specific version type. + *

* API name: {@code version_type} */ public final Builder versionType(@Nullable VersionType value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexStatus.java index ed4dee5b5..433f8e8d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexStatus.java @@ -117,42 +117,58 @@ public static ReindexStatus of(Function> f } /** - * Required - API name: {@code batches} + * Required - The number of scroll responses pulled back by the reindex. + *

+ * API name: {@code batches} */ public final long batches() { return this.batches; } /** - * Required - API name: {@code created} + * Required - The number of documents that were successfully created. + *

+ * API name: {@code created} */ public final long created() { return this.created; } /** - * Required - API name: {@code deleted} + * Required - The number of documents that were successfully deleted. + *

+ * API name: {@code deleted} */ public final long deleted() { return this.deleted; } /** - * Required - API name: {@code noops} + * Required - The number of documents that were ignored because the script used + * for the reindex returned a noop value for ctx.op. + *

+ * API name: {@code noops} */ public final long noops() { return this.noops; } /** - * Required - API name: {@code requests_per_second} + * Required - The number of requests per second effectively executed during the + * reindex. + *

+ * API name: {@code requests_per_second} */ public final float requestsPerSecond() { return this.requestsPerSecond; } /** - * Required - API name: {@code retries} + * Required - The number of retries attempted by reindex. bulk is + * the number of bulk actions retried and search is the number of + * search actions retried. + *

+ * API name: {@code retries} */ public final Retries retries() { return this.retries; @@ -167,7 +183,10 @@ public final Time throttled() { } /** - * Required - API name: {@code throttled_millis} + * Required - Number of milliseconds the request slept to conform to + * requests_per_second. + *

+ * API name: {@code throttled_millis} */ public final long throttledMillis() { return this.throttledMillis; @@ -182,28 +201,42 @@ public final Time throttledUntil() { } /** - * Required - API name: {@code throttled_until_millis} + * Required - This field should always be equal to zero in a + * _reindex response. It only has meaning when using the Task API, + * where it indicates the next time (in milliseconds since epoch) a throttled + * request will be executed again in order to conform to + * requests_per_second. + *

+ * API name: {@code throttled_until_millis} */ public final long throttledUntilMillis() { return this.throttledUntilMillis; } /** - * Required - API name: {@code total} + * Required - The number of documents that were successfully processed. + *

+ * API name: {@code total} */ public final long total() { return this.total; } /** - * Required - API name: {@code updated} + * Required - The number of documents that were successfully updated, for + * example, a document with same ID already existed prior to reindex updating + * it. + *

+ * API name: {@code updated} */ public final long updated() { return this.updated; } /** - * Required - API name: {@code version_conflicts} + * Required - The number of version conflicts that reindex hits. + *

+ * API name: {@code version_conflicts} */ public final long versionConflicts() { return this.versionConflicts; @@ -306,7 +339,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long versionConflicts; /** - * Required - API name: {@code batches} + * Required - The number of scroll responses pulled back by the reindex. + *

+ * API name: {@code batches} */ public final Builder batches(long value) { this.batches = value; @@ -314,7 +349,9 @@ public final Builder batches(long value) { } /** - * Required - API name: {@code created} + * Required - The number of documents that were successfully created. + *

+ * API name: {@code created} */ public final Builder created(long value) { this.created = value; @@ -322,7 +359,9 @@ public final Builder created(long value) { } /** - * Required - API name: {@code deleted} + * Required - The number of documents that were successfully deleted. + *

+ * API name: {@code deleted} */ public final Builder deleted(long value) { this.deleted = value; @@ -330,7 +369,10 @@ public final Builder deleted(long value) { } /** - * Required - API name: {@code noops} + * Required - The number of documents that were ignored because the script used + * for the reindex returned a noop value for ctx.op. + *

+ * API name: {@code noops} */ public final Builder noops(long value) { this.noops = value; @@ -338,7 +380,10 @@ public final Builder noops(long value) { } /** - * Required - API name: {@code requests_per_second} + * Required - The number of requests per second effectively executed during the + * reindex. + *

+ * API name: {@code requests_per_second} */ public final Builder requestsPerSecond(float value) { this.requestsPerSecond = value; @@ -346,7 +391,11 @@ public final Builder requestsPerSecond(float value) { } /** - * Required - API name: {@code retries} + * Required - The number of retries attempted by reindex. bulk is + * the number of bulk actions retried and search is the number of + * search actions retried. + *

+ * API name: {@code retries} */ public final Builder retries(Retries value) { this.retries = value; @@ -354,7 +403,11 @@ public final Builder retries(Retries value) { } /** - * Required - API name: {@code retries} + * Required - The number of retries attempted by reindex. bulk is + * the number of bulk actions retried and search is the number of + * search actions retried. + *

+ * API name: {@code retries} */ public final Builder retries(Function> fn) { return this.retries(fn.apply(new Retries.Builder()).build()); @@ -376,7 +429,10 @@ public final Builder throttled(Function> fn) { } /** - * Required - API name: {@code throttled_millis} + * Required - Number of milliseconds the request slept to conform to + * requests_per_second. + *

+ * API name: {@code throttled_millis} */ public final Builder throttledMillis(long value) { this.throttledMillis = value; @@ -399,7 +455,13 @@ public final Builder throttledUntil(Function> } /** - * Required - API name: {@code throttled_until_millis} + * Required - This field should always be equal to zero in a + * _reindex response. It only has meaning when using the Task API, + * where it indicates the next time (in milliseconds since epoch) a throttled + * request will be executed again in order to conform to + * requests_per_second. + *

+ * API name: {@code throttled_until_millis} */ public final Builder throttledUntilMillis(long value) { this.throttledUntilMillis = value; @@ -407,7 +469,9 @@ public final Builder throttledUntilMillis(long value) { } /** - * Required - API name: {@code total} + * Required - The number of documents that were successfully processed. + *

+ * API name: {@code total} */ public final Builder total(long value) { this.total = value; @@ -415,7 +479,11 @@ public final Builder total(long value) { } /** - * Required - API name: {@code updated} + * Required - The number of documents that were successfully updated, for + * example, a document with same ID already existed prior to reindex updating + * it. + *

+ * API name: {@code updated} */ public final Builder updated(long value) { this.updated = value; @@ -423,7 +491,9 @@ public final Builder updated(long value) { } /** - * Required - API name: {@code version_conflicts} + * Required - The number of version conflicts that reindex hits. + *

+ * API name: {@code version_conflicts} */ public final Builder versionConflicts(long value) { this.versionConflicts = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java index 787101083..22658f9b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java @@ -83,21 +83,30 @@ public static PainlessContextSetup of(Function + * API name: {@code document} */ public final JsonData document() { return this.document; } /** - * Required - API name: {@code index} + * Required - Index containing a mapping that’s compatible with the indexed + * document. You may specify a remote index by prefixing the index with the + * remote cluster alias. + *

+ * API name: {@code index} */ public final String index() { return this.index; } /** - * Required - API name: {@code query} + * Required - Use this parameter to specify a query for computing a score. + *

+ * API name: {@code query} */ public final Query query() { return this.query; @@ -146,7 +155,10 @@ public static class Builder extends WithJsonObjectBuilderBase private Query query; /** - * Required - API name: {@code document} + * Required - Document that’s temporarily indexed in-memory and accessible from + * the script. + *

+ * API name: {@code document} */ public final Builder document(JsonData value) { this.document = value; @@ -154,7 +166,11 @@ public final Builder document(JsonData value) { } /** - * Required - API name: {@code index} + * Required - Index containing a mapping that’s compatible with the indexed + * document. You may specify a remote index by prefixing the index with the + * remote cluster alias. + *

+ * API name: {@code index} */ public final Builder index(String value) { this.index = value; @@ -162,7 +178,9 @@ public final Builder index(String value) { } /** - * Required - API name: {@code query} + * Required - Use this parameter to specify a query for computing a score. + *

+ * API name: {@code query} */ public final Builder query(Query value) { this.query = value; @@ -170,7 +188,9 @@ public final Builder query(Query value) { } /** - * Required - API name: {@code query} + * Required - Use this parameter to specify a query for computing a score. + *

+ * API name: {@code query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Hit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Hit.java index cdb68649e..b039a2909 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Hit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Hit.java @@ -38,6 +38,7 @@ import java.lang.Double; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; @@ -787,6 +788,66 @@ public final Builder sort(FieldValue value, FieldValue... values) { return this; } + /** + * API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(String value, String... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(long value, long... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(double value, double... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(boolean value, boolean... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + /** * API name: {@code sort} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Filter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Filter.java index fa072380a..9a363d955 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Filter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Filter.java @@ -98,6 +98,8 @@ public static Filter of(Function> fn) { } /** + * Ignore words which occur in more than this many docs. Defaults to unbounded. + *

* API name: {@code max_doc_freq} */ @Nullable @@ -106,6 +108,8 @@ public final Integer maxDocFreq() { } /** + * Maximum number of terms that must be returned per field. + *

* API name: {@code max_num_terms} */ @Nullable @@ -114,6 +118,9 @@ public final Integer maxNumTerms() { } /** + * Ignore words with more than this frequency in the source doc. Defaults to + * unbounded. + *

* API name: {@code max_term_freq} */ @Nullable @@ -122,6 +129,9 @@ public final Integer maxTermFreq() { } /** + * The maximum word length above which words will be ignored. Defaults to + * unbounded. + *

* API name: {@code max_word_length} */ @Nullable @@ -130,6 +140,8 @@ public final Integer maxWordLength() { } /** + * Ignore terms which do not occur in at least this many docs. + *

* API name: {@code min_doc_freq} */ @Nullable @@ -138,6 +150,8 @@ public final Integer minDocFreq() { } /** + * Ignore words with less than this frequency in the source doc. + *

* API name: {@code min_term_freq} */ @Nullable @@ -146,6 +160,8 @@ public final Integer minTermFreq() { } /** + * The minimum word length below which words will be ignored. + *

* API name: {@code min_word_length} */ @Nullable @@ -236,6 +252,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer minWordLength; /** + * Ignore words which occur in more than this many docs. Defaults to unbounded. + *

* API name: {@code max_doc_freq} */ public final Builder maxDocFreq(@Nullable Integer value) { @@ -244,6 +262,8 @@ public final Builder maxDocFreq(@Nullable Integer value) { } /** + * Maximum number of terms that must be returned per field. + *

* API name: {@code max_num_terms} */ public final Builder maxNumTerms(@Nullable Integer value) { @@ -252,6 +272,9 @@ public final Builder maxNumTerms(@Nullable Integer value) { } /** + * Ignore words with more than this frequency in the source doc. Defaults to + * unbounded. + *

* API name: {@code max_term_freq} */ public final Builder maxTermFreq(@Nullable Integer value) { @@ -260,6 +283,9 @@ public final Builder maxTermFreq(@Nullable Integer value) { } /** + * The maximum word length above which words will be ignored. Defaults to + * unbounded. + *

* API name: {@code max_word_length} */ public final Builder maxWordLength(@Nullable Integer value) { @@ -268,6 +294,8 @@ public final Builder maxWordLength(@Nullable Integer value) { } /** + * Ignore terms which do not occur in at least this many docs. + *

* API name: {@code min_doc_freq} */ public final Builder minDocFreq(@Nullable Integer value) { @@ -276,6 +304,8 @@ public final Builder minDocFreq(@Nullable Integer value) { } /** + * Ignore words with less than this frequency in the source doc. + *

* API name: {@code min_term_freq} */ public final Builder minTermFreq(@Nullable Integer value) { @@ -284,6 +314,8 @@ public final Builder minTermFreq(@Nullable Integer value) { } /** + * The minimum word length below which words will be ignored. + *

* API name: {@code min_word_length} */ public final Builder minWordLength(@Nullable Integer value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index f9da24a2b..be68cd217 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -4,47 +4,47 @@ Elasticsearch API specification - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java index e7f99b04f..9030036ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch.enrich; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -67,7 +68,7 @@ public class EnrichPolicy implements JsonpSerializable { private final String matchField; @Nullable - private final String query; + private final Query query; @Nullable private final String name; @@ -117,7 +118,7 @@ public final String matchField() { * API name: {@code query} */ @Nullable - public final String query() { + public final Query query() { return this.query; } @@ -173,7 +174,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (this.query != null) { generator.writeKey("query"); - generator.write(this.query); + this.query.serialize(generator, mapper); } if (this.name != null) { @@ -208,7 +209,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String matchField; @Nullable - private String query; + private Query query; @Nullable private String name; @@ -267,11 +268,18 @@ public final Builder matchField(String value) { /** * API name: {@code query} */ - public final Builder query(@Nullable String value) { + public final Builder query(@Nullable Query value) { this.query = value; return this; } + /** + * API name: {@code query} + */ + public final Builder query(Function> fn) { + return this.query(fn.apply(new Query.Builder()).build()); + } + /** * API name: {@code name} */ @@ -321,7 +329,7 @@ protected static void setupEnrichPolicyDeserializer(ObjectDeserializer delete( * Returns async results from previously executed Event Query Language (EQL) * search * - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-search-api.html) + * @see Documentation + * on elastic.co */ public CompletableFuture> get(EqlGetRequest request, Class tEventClass) { @@ -129,10 +128,9 @@ public CompletableFuture> get(EqlGetRequest requ * @param fn * a function that initializes a builder to create the * {@link EqlGetRequest} - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-search-api.html) + * @see Documentation + * on elastic.co */ public final CompletableFuture> get( @@ -144,10 +142,9 @@ public final CompletableFuture> get( * Returns async results from previously executed Event Query Language (EQL) * search * - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-search-api.html) + * @see Documentation + * on elastic.co */ public CompletableFuture> get(EqlGetRequest request, Type tEventType) { @@ -166,10 +163,9 @@ public CompletableFuture> get(EqlGetRequest requ * @param fn * a function that initializes a builder to create the * {@link EqlGetRequest} - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-search-api.html) + * @see Documentation + * on elastic.co */ public final CompletableFuture> get( @@ -183,10 +179,9 @@ public final CompletableFuture> get( * Returns the status of a previously submitted async or stored Event Query * Language (EQL) search * - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-status-api.html) + * @see Documentation + * on elastic.co */ public CompletableFuture getStatus(GetEqlStatusRequest request) { @@ -203,10 +198,9 @@ public CompletableFuture getStatus(GetEqlStatusRequest req * @param fn * a function that initializes a builder to create the * {@link GetEqlStatusRequest} - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-status-api.html) + * @see Documentation + * on elastic.co */ public final CompletableFuture getStatus( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java index e0645a87c..7cfd2420f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java @@ -108,10 +108,9 @@ public final EqlDeleteResponse delete(Functionhttps://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-search-api.html) + * @see Documentation + * on elastic.co */ public EqlGetResponse get(EqlGetRequest request, Class tEventClass) @@ -131,10 +130,9 @@ public EqlGetResponse get(EqlGetRequest request, Class * @param fn * a function that initializes a builder to create the * {@link EqlGetRequest} - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-search-api.html) + * @see Documentation + * on elastic.co */ public final EqlGetResponse get(Function> fn, @@ -146,10 +144,9 @@ public final EqlGetResponse get(Functionhttps://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-search-api.html) + * @see Documentation + * on elastic.co */ public EqlGetResponse get(EqlGetRequest request, Type tEventType) @@ -169,10 +166,9 @@ public EqlGetResponse get(EqlGetRequest request, Type tEventTyp * @param fn * a function that initializes a builder to create the * {@link EqlGetRequest} - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-search-api.html) + * @see Documentation + * on elastic.co */ public final EqlGetResponse get(Function> fn, @@ -186,10 +182,9 @@ public final EqlGetResponse get(Functionhttps://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-status-api.html) + * @see Documentation + * on elastic.co */ public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOException, ElasticsearchException { @@ -206,10 +201,9 @@ public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOExce * @param fn * a function that initializes a builder to create the * {@link GetEqlStatusRequest} - * @see [Documentation on - * elastic.co](https://www.elastic.co - * https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-async-eql-status-api.html) + * @see Documentation + * on elastic.co */ public final GetEqlStatusResponse getStatus( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java new file mode 100644 index 000000000..43034ea3e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java @@ -0,0 +1,101 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.endpoints.BinaryResponse; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the esql namespace. + */ +public class ElasticsearchEsqlAsyncClient extends ApiClient { + + public ElasticsearchEsqlAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchEsqlAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchEsqlAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchEsqlAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: esql.query + + /** + * Executes an ESQL request + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture query(QueryRequest request) { + @SuppressWarnings("unchecked") + Endpoint endpoint = (Endpoint) QueryRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Executes an ESQL request + * + * @param fn + * a function that initializes a builder to create the + * {@link QueryRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture query( + Function> fn) { + return query(fn.apply(new QueryRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java new file mode 100644 index 000000000..ef7b531d7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java @@ -0,0 +1,102 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.endpoints.BinaryResponse; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the esql namespace. + */ +public class ElasticsearchEsqlClient extends ApiClient { + + public ElasticsearchEsqlClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchEsqlClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchEsqlClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchEsqlClient(this.transport, transportOptions); + } + + // ----- Endpoint: esql.query + + /** + * Executes an ESQL request + * + * @see Documentation + * on elastic.co + */ + + public BinaryResponse query(QueryRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + Endpoint endpoint = (Endpoint) QueryRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Executes an ESQL request + * + * @param fn + * a function that initializes a builder to create the + * {@link QueryRequest} + * @see Documentation + * on elastic.co + */ + + public final BinaryResponse query(Function> fn) + throws IOException, ElasticsearchException { + return query(fn.apply(new QueryRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java new file mode 100644 index 000000000..68f52f6ae --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java @@ -0,0 +1,441 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.BinaryEndpoint; +import co.elastic.clients.transport.endpoints.BinaryResponse; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: esql.query.Request + +/** + * Executes an ES|QL request + * + * @see API + * specification + */ +@JsonpDeserializable +public class QueryRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final Boolean columnar; + + @Nullable + private final String delimiter; + + @Nullable + private final Query filter; + + @Nullable + private final String format; + + @Nullable + private final String locale; + + private final List params; + + private final String query; + + // --------------------------------------------------------------------------------------------- + + private QueryRequest(Builder builder) { + + this.columnar = builder.columnar; + this.delimiter = builder.delimiter; + this.filter = builder.filter; + this.format = builder.format; + this.locale = builder.locale; + this.params = ApiTypeHelper.unmodifiable(builder.params); + this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query"); + + } + + public static QueryRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * By default, ES|QL returns results as rows. For example, FROM returns each + * individual document as one row. For the JSON, YAML, CBOR and smile formats, + * ES|QL can return the results in a columnar fashion where one row represents + * all the values of a certain column in the results. + *

+ * API name: {@code columnar} + */ + @Nullable + public final Boolean columnar() { + return this.columnar; + } + + /** + * The character to use between values within a CSV row. Only valid for the CSV + * format. + *

+ * API name: {@code delimiter} + */ + @Nullable + public final String delimiter() { + return this.delimiter; + } + + /** + * Specify a Query DSL query in the filter parameter to filter the set of + * documents that an ES|QL query runs on. + *

+ * API name: {@code filter} + */ + @Nullable + public final Query filter() { + return this.filter; + } + + /** + * A short version of the Accept header, e.g. json, yaml. + *

+ * API name: {@code format} + */ + @Nullable + public final String format() { + return this.format; + } + + /** + * API name: {@code locale} + */ + @Nullable + public final String locale() { + return this.locale; + } + + /** + * To avoid any attempts of hacking or code injection, extract the values in a + * separate list of parameters. Use question mark placeholders (?) in the query + * string for each of the parameters. + *

+ * API name: {@code params} + */ + public final List params() { + return this.params; + } + + /** + * Required - The ES|QL query API accepts an ES|QL query string in the query + * parameter, runs it, and returns the results. + *

+ * API name: {@code query} + */ + public final String query() { + return this.query; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.columnar != null) { + generator.writeKey("columnar"); + generator.write(this.columnar); + + } + if (this.filter != null) { + generator.writeKey("filter"); + this.filter.serialize(generator, mapper); + + } + if (this.locale != null) { + generator.writeKey("locale"); + generator.write(this.locale); + + } + if (ApiTypeHelper.isDefined(this.params)) { + generator.writeKey("params"); + generator.writeStartArray(); + for (FieldValue item0 : this.params) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + generator.writeKey("query"); + generator.write(this.query); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link QueryRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean columnar; + + @Nullable + private String delimiter; + + @Nullable + private Query filter; + + @Nullable + private String format; + + @Nullable + private String locale; + + @Nullable + private List params; + + private String query; + + /** + * By default, ES|QL returns results as rows. For example, FROM returns each + * individual document as one row. For the JSON, YAML, CBOR and smile formats, + * ES|QL can return the results in a columnar fashion where one row represents + * all the values of a certain column in the results. + *

+ * API name: {@code columnar} + */ + public final Builder columnar(@Nullable Boolean value) { + this.columnar = value; + return this; + } + + /** + * The character to use between values within a CSV row. Only valid for the CSV + * format. + *

+ * API name: {@code delimiter} + */ + public final Builder delimiter(@Nullable String value) { + this.delimiter = value; + return this; + } + + /** + * Specify a Query DSL query in the filter parameter to filter the set of + * documents that an ES|QL query runs on. + *

+ * API name: {@code filter} + */ + public final Builder filter(@Nullable Query value) { + this.filter = value; + return this; + } + + /** + * Specify a Query DSL query in the filter parameter to filter the set of + * documents that an ES|QL query runs on. + *

+ * API name: {@code filter} + */ + public final Builder filter(Function> fn) { + return this.filter(fn.apply(new Query.Builder()).build()); + } + + /** + * A short version of the Accept header, e.g. json, yaml. + *

+ * API name: {@code format} + */ + public final Builder format(@Nullable String value) { + this.format = value; + return this; + } + + /** + * API name: {@code locale} + */ + public final Builder locale(@Nullable String value) { + this.locale = value; + return this; + } + + /** + * To avoid any attempts of hacking or code injection, extract the values in a + * separate list of parameters. Use question mark placeholders (?) in the query + * string for each of the parameters. + *

+ * API name: {@code params} + *

+ * Adds all elements of list to params. + */ + public final Builder params(List list) { + this.params = _listAddAll(this.params, list); + return this; + } + + /** + * To avoid any attempts of hacking or code injection, extract the values in a + * separate list of parameters. Use question mark placeholders (?) in the query + * string for each of the parameters. + *

+ * API name: {@code params} + *

+ * Adds one or more values to params. + */ + public final Builder params(FieldValue value, FieldValue... values) { + this.params = _listAdd(this.params, value, values); + return this; + } + + /** + * To avoid any attempts of hacking or code injection, extract the values in a + * separate list of parameters. Use question mark placeholders (?) in the query + * string for each of the parameters. + *

+ * API name: {@code params} + *

+ * Adds a value to params using a builder lambda. + */ + public final Builder params(Function> fn) { + return params(fn.apply(new FieldValue.Builder()).build()); + } + + /** + * Required - The ES|QL query API accepts an ES|QL query string in the query + * parameter, runs it, and returns the results. + *

+ * API name: {@code query} + */ + public final Builder query(String value) { + this.query = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link QueryRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public QueryRequest build() { + _checkSingleUse(); + + return new QueryRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link QueryRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + QueryRequest::setupQueryRequestDeserializer); + + protected static void setupQueryRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::columnar, JsonpDeserializer.booleanDeserializer(), "columnar"); + op.add(Builder::filter, Query._DESERIALIZER, "filter"); + op.add(Builder::locale, JsonpDeserializer.stringDeserializer(), "locale"); + op.add(Builder::params, JsonpDeserializer.arrayDeserializer(FieldValue._DESERIALIZER), "params"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code esql.query}". + */ + public static final Endpoint _ENDPOINT = new BinaryEndpoint<>( + "es/esql.query", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + return "/_query"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.delimiter != null) { + params.put("delimiter", request.delimiter); + } + if (request.format != null) { + params.put("format", request.format); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, null); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java index 02cc64618..9d6d3654b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java @@ -57,6 +57,7 @@ import java.lang.Integer; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -1836,6 +1837,66 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * API name: {@code search_after} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycle.java deleted file mode 100644 index 25ac7f4ae..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycle.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * 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; - -import co.elastic.clients.elasticsearch._types.Time; -import co.elastic.clients.json.JsonpDeserializable; -import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; -import co.elastic.clients.json.ObjectBuilderDeserializer; -import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; -import jakarta.json.stream.JsonGenerator; -import java.util.Objects; -import java.util.function.Function; -import javax.annotation.Nullable; - -// typedef: indices._types.DataLifecycle - -/** - * Data lifecycle denotes that a data stream is managed by DLM and contains the - * configuration. - * - * @see API - * specification - */ -@JsonpDeserializable -public class DataLifecycle implements JsonpSerializable { - @Nullable - private final Time dataRetention; - - // --------------------------------------------------------------------------------------------- - - private DataLifecycle(Builder builder) { - - this.dataRetention = builder.dataRetention; - - } - - public static DataLifecycle of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * API name: {@code data_retention} - */ - @Nullable - public final Time dataRetention() { - return this.dataRetention; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (this.dataRetention != null) { - generator.writeKey("data_retention"); - this.dataRetention.serialize(generator, mapper); - - } - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link DataLifecycle}. - */ - - public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - @Nullable - private Time dataRetention; - - /** - * API name: {@code data_retention} - */ - public final Builder dataRetention(@Nullable Time value) { - this.dataRetention = value; - return this; - } - - /** - * API name: {@code data_retention} - */ - public final Builder dataRetention(Function> fn) { - return this.dataRetention(fn.apply(new Time.Builder()).build()); - } - - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link DataLifecycle}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public DataLifecycle build() { - _checkSingleUse(); - - return new DataLifecycle(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link DataLifecycle} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - DataLifecycle::setupDataLifecycleDeserializer); - - protected static void setupDataLifecycleDeserializer(ObjectDeserializer op) { - - op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); - - } - -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java deleted file mode 100644 index b7ada17fb..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * 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; - -import co.elastic.clients.elasticsearch._types.Time; -import co.elastic.clients.json.JsonpDeserializable; -import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; -import co.elastic.clients.json.ObjectBuilderDeserializer; -import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; -import jakarta.json.stream.JsonGenerator; -import java.util.Objects; -import java.util.function.Function; -import javax.annotation.Nullable; - -// typedef: indices._types.DataLifecycleWithRollover - -/** - * Data lifecycle with rollover can be used to display the configuration - * including the default rollover conditions, if asked. - * - * @see API - * specification - */ -@JsonpDeserializable -public class DataLifecycleWithRollover implements JsonpSerializable { - @Nullable - private final Time dataRetention; - - @Nullable - private final DlmRolloverConditions rollover; - - // --------------------------------------------------------------------------------------------- - - private DataLifecycleWithRollover(Builder builder) { - - this.dataRetention = builder.dataRetention; - this.rollover = builder.rollover; - - } - - public static DataLifecycleWithRollover of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * If defined, every document added to this data stream will be stored at least - * for this time frame. Any time after this duration the document could be - * deleted. When empty, every document in this data stream will be stored - * indefinitely. - *

- * API name: {@code data_retention} - */ - @Nullable - public final Time dataRetention() { - return this.dataRetention; - } - - /** - * The conditions which will trigger the rollover of a backing index as - * configured by the cluster setting - * cluster.lifecycle.default.rollover. This property is an - * implementation detail and it will only be retrieved when the query param - * include_defaults is set to true. The contents of this field are - * subject to change. - *

- * API name: {@code rollover} - */ - @Nullable - public final DlmRolloverConditions rollover() { - return this.rollover; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (this.dataRetention != null) { - generator.writeKey("data_retention"); - this.dataRetention.serialize(generator, mapper); - - } - if (this.rollover != null) { - generator.writeKey("rollover"); - this.rollover.serialize(generator, mapper); - - } - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link DataLifecycleWithRollover}. - */ - - public static class Builder extends WithJsonObjectBuilderBase - implements - ObjectBuilder { - @Nullable - private Time dataRetention; - - @Nullable - private DlmRolloverConditions rollover; - - /** - * If defined, every document added to this data stream will be stored at least - * for this time frame. Any time after this duration the document could be - * deleted. When empty, every document in this data stream will be stored - * indefinitely. - *

- * API name: {@code data_retention} - */ - public final Builder dataRetention(@Nullable Time value) { - this.dataRetention = value; - return this; - } - - /** - * If defined, every document added to this data stream will be stored at least - * for this time frame. Any time after this duration the document could be - * deleted. When empty, every document in this data stream will be stored - * indefinitely. - *

- * API name: {@code data_retention} - */ - public final Builder dataRetention(Function> fn) { - return this.dataRetention(fn.apply(new Time.Builder()).build()); - } - - /** - * The conditions which will trigger the rollover of a backing index as - * configured by the cluster setting - * cluster.lifecycle.default.rollover. This property is an - * implementation detail and it will only be retrieved when the query param - * include_defaults is set to true. The contents of this field are - * subject to change. - *

- * API name: {@code rollover} - */ - public final Builder rollover(@Nullable DlmRolloverConditions value) { - this.rollover = value; - return this; - } - - /** - * The conditions which will trigger the rollover of a backing index as - * configured by the cluster setting - * cluster.lifecycle.default.rollover. This property is an - * implementation detail and it will only be retrieved when the query param - * include_defaults is set to true. The contents of this field are - * subject to change. - *

- * API name: {@code rollover} - */ - public final Builder rollover( - Function> fn) { - return this.rollover(fn.apply(new DlmRolloverConditions.Builder()).build()); - } - - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link DataLifecycleWithRollover}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public DataLifecycleWithRollover build() { - _checkSingleUse(); - - return new DataLifecycleWithRollover(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link DataLifecycleWithRollover} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, DataLifecycleWithRollover::setupDataLifecycleWithRolloverDeserializer); - - protected static void setupDataLifecycleWithRolloverDeserializer( - ObjectDeserializer op) { - - op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); - op.add(Builder::rollover, DlmRolloverConditions._DESERIALIZER, "rollover"); - - } - -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java index eeafd3aed..9515531df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java @@ -77,6 +77,10 @@ public class DataStream implements JsonpSerializable { @Nullable private final String ilmPolicy; + private final ManagedBy nextGenerationManagedBy; + + private final boolean preferIlm; + private final List indices; @Nullable @@ -105,6 +109,9 @@ private DataStream(Builder builder) { this.generation = ApiTypeHelper.requireNonNull(builder.generation, this, "generation"); this.hidden = ApiTypeHelper.requireNonNull(builder.hidden, this, "hidden"); this.ilmPolicy = builder.ilmPolicy; + this.nextGenerationManagedBy = ApiTypeHelper.requireNonNull(builder.nextGenerationManagedBy, this, + "nextGenerationManagedBy"); + this.preferIlm = ApiTypeHelper.requireNonNull(builder.preferIlm, this, "preferIlm"); this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); this.lifecycle = builder.lifecycle; this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); @@ -176,6 +183,26 @@ public final String ilmPolicy() { return this.ilmPolicy; } + /** + * Required - Name of the lifecycle system that'll manage the next generation of + * the data stream. + *

+ * API name: {@code next_generation_managed_by} + */ + public final ManagedBy nextGenerationManagedBy() { + return this.nextGenerationManagedBy; + } + + /** + * Required - Indicates if ILM should take precedence over DSL in case both are + * configured to managed this data stream. + *

+ * API name: {@code prefer_ilm} + */ + public final boolean preferIlm() { + return this.preferIlm; + } + /** * Required - Array of objects containing information about the data stream’s * backing indices. The last item in this array contains information about the @@ -299,6 +326,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.ilmPolicy); } + generator.writeKey("next_generation_managed_by"); + this.nextGenerationManagedBy.serialize(generator, mapper); + generator.writeKey("prefer_ilm"); + generator.write(this.preferIlm); + if (ApiTypeHelper.isDefined(this.indices)) { generator.writeKey("indices"); generator.writeStartArray(); @@ -362,6 +394,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String ilmPolicy; + private ManagedBy nextGenerationManagedBy; + + private Boolean preferIlm; + private List indices; @Nullable @@ -456,6 +492,28 @@ public final Builder ilmPolicy(@Nullable String value) { return this; } + /** + * Required - Name of the lifecycle system that'll manage the next generation of + * the data stream. + *

+ * API name: {@code next_generation_managed_by} + */ + public final Builder nextGenerationManagedBy(ManagedBy value) { + this.nextGenerationManagedBy = value; + return this; + } + + /** + * Required - Indicates if ILM should take precedence over DSL in case both are + * configured to managed this data stream. + *

+ * API name: {@code prefer_ilm} + */ + public final Builder preferIlm(boolean value) { + this.preferIlm = value; + return this; + } + /** * Required - Array of objects containing information about the data stream’s * backing indices. The last item in this array contains information about the @@ -630,6 +688,8 @@ protected static void setupDataStreamDeserializer(ObjectDeserializer + * API name: {@code ilm_policy} + */ + @Nullable + public final String ilmPolicy() { + return this.ilmPolicy; + } + + /** + * Required - Name of the lifecycle system that's currently managing this + * backing index. + *

+ * API name: {@code managed_by} + */ + public final ManagedBy managedBy() { + return this.managedBy; + } + + /** + * Required - Indicates if ILM should take precedence over DSL in case both are + * configured to manage this index. + *

+ * API name: {@code prefer_ilm} + */ + public final boolean preferIlm() { + return this.preferIlm; + } + /** * Serialize this object to JSON. */ @@ -111,6 +152,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("index_uuid"); generator.write(this.indexUuid); + if (this.ilmPolicy != null) { + generator.writeKey("ilm_policy"); + generator.write(this.ilmPolicy); + + } + generator.writeKey("managed_by"); + this.managedBy.serialize(generator, mapper); + generator.writeKey("prefer_ilm"); + generator.write(this.preferIlm); + } @Override @@ -129,6 +180,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String indexUuid; + @Nullable + private String ilmPolicy; + + private ManagedBy managedBy; + + private Boolean preferIlm; + /** * Required - Name of the backing index. *

@@ -149,6 +207,38 @@ public final Builder indexUuid(String value) { return this; } + /** + * Name of the current ILM lifecycle policy configured for this backing index. + *

+ * API name: {@code ilm_policy} + */ + public final Builder ilmPolicy(@Nullable String value) { + this.ilmPolicy = value; + return this; + } + + /** + * Required - Name of the lifecycle system that's currently managing this + * backing index. + *

+ * API name: {@code managed_by} + */ + public final Builder managedBy(ManagedBy value) { + this.managedBy = value; + return this; + } + + /** + * Required - Indicates if ILM should take precedence over DSL in case both are + * configured to manage this index. + *

+ * API name: {@code prefer_ilm} + */ + public final Builder preferIlm(boolean value) { + this.preferIlm = value; + return this; + } + @Override protected Builder self() { return this; @@ -179,6 +269,9 @@ protected static void setupDataStreamIndexDeserializer(ObjectDeserializerAPI - * specification - */ -@JsonpDeserializable -public class DlmRolloverConditions implements JsonpSerializable { - @Nullable - private final Time minAge; - - @Nullable - private final String maxAge; - - @Nullable - private final Long minDocs; - - @Nullable - private final Long maxDocs; - - @Nullable - private final String minSize; - - @Nullable - private final String maxSize; - - @Nullable - private final String minPrimaryShardSize; - - @Nullable - private final String maxPrimaryShardSize; - - @Nullable - private final Long minPrimaryShardDocs; - - @Nullable - private final Long maxPrimaryShardDocs; - - // --------------------------------------------------------------------------------------------- - - private DlmRolloverConditions(Builder builder) { - - this.minAge = builder.minAge; - this.maxAge = builder.maxAge; - this.minDocs = builder.minDocs; - this.maxDocs = builder.maxDocs; - this.minSize = builder.minSize; - this.maxSize = builder.maxSize; - this.minPrimaryShardSize = builder.minPrimaryShardSize; - this.maxPrimaryShardSize = builder.maxPrimaryShardSize; - this.minPrimaryShardDocs = builder.minPrimaryShardDocs; - this.maxPrimaryShardDocs = builder.maxPrimaryShardDocs; - - } - - public static DlmRolloverConditions of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * API name: {@code min_age} - */ - @Nullable - public final Time minAge() { - return this.minAge; - } - - /** - * API name: {@code max_age} - */ - @Nullable - public final String maxAge() { - return this.maxAge; - } - - /** - * API name: {@code min_docs} - */ - @Nullable - public final Long minDocs() { - return this.minDocs; - } - - /** - * API name: {@code max_docs} - */ - @Nullable - public final Long maxDocs() { - return this.maxDocs; - } - - /** - * API name: {@code min_size} - */ - @Nullable - public final String minSize() { - return this.minSize; - } - - /** - * API name: {@code max_size} - */ - @Nullable - public final String maxSize() { - return this.maxSize; - } - - /** - * API name: {@code min_primary_shard_size} - */ - @Nullable - public final String minPrimaryShardSize() { - return this.minPrimaryShardSize; - } - - /** - * API name: {@code max_primary_shard_size} - */ - @Nullable - public final String maxPrimaryShardSize() { - return this.maxPrimaryShardSize; - } - - /** - * API name: {@code min_primary_shard_docs} - */ - @Nullable - public final Long minPrimaryShardDocs() { - return this.minPrimaryShardDocs; - } - - /** - * API name: {@code max_primary_shard_docs} - */ - @Nullable - public final Long maxPrimaryShardDocs() { - return this.maxPrimaryShardDocs; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (this.minAge != null) { - generator.writeKey("min_age"); - this.minAge.serialize(generator, mapper); - - } - if (this.maxAge != null) { - generator.writeKey("max_age"); - generator.write(this.maxAge); - - } - if (this.minDocs != null) { - generator.writeKey("min_docs"); - generator.write(this.minDocs); - - } - if (this.maxDocs != null) { - generator.writeKey("max_docs"); - generator.write(this.maxDocs); - - } - if (this.minSize != null) { - generator.writeKey("min_size"); - generator.write(this.minSize); - - } - if (this.maxSize != null) { - generator.writeKey("max_size"); - generator.write(this.maxSize); - - } - if (this.minPrimaryShardSize != null) { - generator.writeKey("min_primary_shard_size"); - generator.write(this.minPrimaryShardSize); - - } - if (this.maxPrimaryShardSize != null) { - generator.writeKey("max_primary_shard_size"); - generator.write(this.maxPrimaryShardSize); - - } - if (this.minPrimaryShardDocs != null) { - generator.writeKey("min_primary_shard_docs"); - generator.write(this.minPrimaryShardDocs); - - } - if (this.maxPrimaryShardDocs != null) { - generator.writeKey("max_primary_shard_docs"); - generator.write(this.maxPrimaryShardDocs); - - } - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link DlmRolloverConditions}. - */ - - public static class Builder extends WithJsonObjectBuilderBase - implements - ObjectBuilder { - @Nullable - private Time minAge; - - @Nullable - private String maxAge; - - @Nullable - private Long minDocs; - - @Nullable - private Long maxDocs; - - @Nullable - private String minSize; - - @Nullable - private String maxSize; - - @Nullable - private String minPrimaryShardSize; - - @Nullable - private String maxPrimaryShardSize; - - @Nullable - private Long minPrimaryShardDocs; - - @Nullable - private Long maxPrimaryShardDocs; - - /** - * API name: {@code min_age} - */ - public final Builder minAge(@Nullable Time value) { - this.minAge = value; - return this; - } - - /** - * API name: {@code min_age} - */ - public final Builder minAge(Function> fn) { - return this.minAge(fn.apply(new Time.Builder()).build()); - } - - /** - * API name: {@code max_age} - */ - public final Builder maxAge(@Nullable String value) { - this.maxAge = value; - return this; - } - - /** - * API name: {@code min_docs} - */ - public final Builder minDocs(@Nullable Long value) { - this.minDocs = value; - return this; - } - - /** - * API name: {@code max_docs} - */ - public final Builder maxDocs(@Nullable Long value) { - this.maxDocs = value; - return this; - } - - /** - * API name: {@code min_size} - */ - public final Builder minSize(@Nullable String value) { - this.minSize = value; - return this; - } - - /** - * API name: {@code max_size} - */ - public final Builder maxSize(@Nullable String value) { - this.maxSize = value; - return this; - } - - /** - * API name: {@code min_primary_shard_size} - */ - public final Builder minPrimaryShardSize(@Nullable String value) { - this.minPrimaryShardSize = value; - return this; - } - - /** - * API name: {@code max_primary_shard_size} - */ - public final Builder maxPrimaryShardSize(@Nullable String value) { - this.maxPrimaryShardSize = value; - return this; - } - - /** - * API name: {@code min_primary_shard_docs} - */ - public final Builder minPrimaryShardDocs(@Nullable Long value) { - this.minPrimaryShardDocs = value; - return this; - } - - /** - * API name: {@code max_primary_shard_docs} - */ - public final Builder maxPrimaryShardDocs(@Nullable Long value) { - this.maxPrimaryShardDocs = value; - return this; - } - - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link DlmRolloverConditions}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public DlmRolloverConditions build() { - _checkSingleUse(); - - return new DlmRolloverConditions(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link DlmRolloverConditions} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, DlmRolloverConditions::setupDlmRolloverConditionsDeserializer); - - protected static void setupDlmRolloverConditionsDeserializer(ObjectDeserializer op) { - - op.add(Builder::minAge, Time._DESERIALIZER, "min_age"); - op.add(Builder::maxAge, JsonpDeserializer.stringDeserializer(), "max_age"); - op.add(Builder::minDocs, JsonpDeserializer.longDeserializer(), "min_docs"); - op.add(Builder::maxDocs, JsonpDeserializer.longDeserializer(), "max_docs"); - op.add(Builder::minSize, JsonpDeserializer.stringDeserializer(), "min_size"); - op.add(Builder::maxSize, JsonpDeserializer.stringDeserializer(), "max_size"); - op.add(Builder::minPrimaryShardSize, JsonpDeserializer.stringDeserializer(), "min_primary_shard_size"); - op.add(Builder::maxPrimaryShardSize, JsonpDeserializer.stringDeserializer(), "max_primary_shard_size"); - op.add(Builder::minPrimaryShardDocs, JsonpDeserializer.longDeserializer(), "min_primary_shard_docs"); - op.add(Builder::maxPrimaryShardDocs, JsonpDeserializer.longDeserializer(), "max_primary_shard_docs"); - - } - -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index 73949abd1..433316e9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java @@ -512,7 +512,7 @@ public final CompletableFuture deleteDataStream( * Deletes an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation * on elastic.co */ @@ -530,7 +530,7 @@ public CompletableFuture deleteIndexTemplate(Delete * a function that initializes a builder to create the * {@link DeleteIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation * on elastic.co */ @@ -545,7 +545,7 @@ public final CompletableFuture deleteIndexTemplate( * Deletes an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html">Documentation * on elastic.co */ @@ -563,7 +563,7 @@ public CompletableFuture deleteTemplate(DeleteTemplateRe * a function that initializes a builder to create the * {@link DeleteTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html">Documentation * on elastic.co */ @@ -710,7 +710,7 @@ public final CompletableFuture existsAlias( * Returns information about whether a particular index template exists. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -728,7 +728,7 @@ public CompletableFuture existsIndexTemplate(ExistsIndexTemplat * a function that initializes a builder to create the * {@link ExistsIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -743,7 +743,7 @@ public final CompletableFuture existsIndexTemplate( * Returns information about whether a particular index template exists. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html">Documentation * on elastic.co */ @@ -761,7 +761,7 @@ public CompletableFuture existsTemplate(ExistsTemplateRequest r * a function that initializes a builder to create the * {@link ExistsTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html">Documentation * on elastic.co */ @@ -1127,7 +1127,7 @@ public final CompletableFuture getFieldMapping( * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -1145,7 +1145,7 @@ public CompletableFuture getIndexTemplate(GetIndexTemp * a function that initializes a builder to create the * {@link GetIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -1158,7 +1158,7 @@ public final CompletableFuture getIndexTemplate( * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -1265,7 +1265,7 @@ public CompletableFuture getSettings() { * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html">Documentation * on elastic.co */ @@ -1283,7 +1283,7 @@ public CompletableFuture getTemplate(GetTemplateRequest req * a function that initializes a builder to create the * {@link GetTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html">Documentation * on elastic.co */ @@ -1296,7 +1296,7 @@ public final CompletableFuture getTemplate( * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html">Documentation * on elastic.co */ @@ -1510,7 +1510,7 @@ public final CompletableFuture putDataLifecycle( * Creates or updates an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html">Documentation * on elastic.co */ @@ -1528,7 +1528,7 @@ public CompletableFuture putIndexTemplate(PutIndexTemp * a function that initializes a builder to create the * {@link PutIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html">Documentation * on elastic.co */ @@ -1622,7 +1622,7 @@ public CompletableFuture putSettings() { * Creates or updates an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html">Documentation * on elastic.co */ @@ -1640,7 +1640,7 @@ public CompletableFuture putTemplate(PutTemplateRequest req * a function that initializes a builder to create the * {@link PutTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html">Documentation * on elastic.co */ @@ -1975,7 +1975,7 @@ public final CompletableFuture shrink( * system * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -1995,7 +1995,7 @@ public CompletableFuture simulateIndexTemplate( * a function that initializes a builder to create the * {@link SimulateIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -2010,7 +2010,7 @@ public final CompletableFuture simulateIndexTempl * Simulate resolving the given template name or body * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ @@ -2028,7 +2028,7 @@ public CompletableFuture simulateTemplate(SimulateTemp * a function that initializes a builder to create the * {@link SimulateTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ @@ -2041,7 +2041,7 @@ public final CompletableFuture simulateTemplate( * Simulate resolving the given template name or body * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java index 3baaab018..219a066a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java @@ -519,7 +519,7 @@ public final DeleteDataStreamResponse deleteDataStream( * Deletes an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation * on elastic.co */ @@ -538,7 +538,7 @@ public DeleteIndexTemplateResponse deleteIndexTemplate(DeleteIndexTemplateReques * a function that initializes a builder to create the * {@link DeleteIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation * on elastic.co */ @@ -554,7 +554,7 @@ public final DeleteIndexTemplateResponse deleteIndexTemplate( * Deletes an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html">Documentation * on elastic.co */ @@ -573,7 +573,7 @@ public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) * a function that initializes a builder to create the * {@link DeleteTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html">Documentation * on elastic.co */ @@ -721,7 +721,7 @@ public final BooleanResponse existsAlias(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -740,7 +740,7 @@ public BooleanResponse existsIndexTemplate(ExistsIndexTemplateRequest request) * a function that initializes a builder to create the * {@link ExistsIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -756,7 +756,7 @@ public final BooleanResponse existsIndexTemplate( * Returns information about whether a particular index template exists. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html">Documentation * on elastic.co */ @@ -774,7 +774,7 @@ public BooleanResponse existsTemplate(ExistsTemplateRequest request) throws IOEx * a function that initializes a builder to create the * {@link ExistsTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html">Documentation * on elastic.co */ @@ -1151,7 +1151,7 @@ public final GetFieldMappingResponse getFieldMapping( * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -1170,7 +1170,7 @@ public GetIndexTemplateResponse getIndexTemplate(GetIndexTemplateRequest request * a function that initializes a builder to create the * {@link GetIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -1184,7 +1184,7 @@ public final GetIndexTemplateResponse getIndexTemplate( * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -1293,7 +1293,7 @@ public GetIndicesSettingsResponse getSettings() throws IOException, Elasticsearc * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html">Documentation * on elastic.co */ @@ -1311,7 +1311,7 @@ public GetTemplateResponse getTemplate(GetTemplateRequest request) throws IOExce * a function that initializes a builder to create the * {@link GetTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html">Documentation * on elastic.co */ @@ -1325,7 +1325,7 @@ public final GetTemplateResponse getTemplate( * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html">Documentation * on elastic.co */ @@ -1548,7 +1548,7 @@ public final PutDataLifecycleResponse putDataLifecycle( * Creates or updates an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html">Documentation * on elastic.co */ @@ -1567,7 +1567,7 @@ public PutIndexTemplateResponse putIndexTemplate(PutIndexTemplateRequest request * a function that initializes a builder to create the * {@link PutIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html">Documentation * on elastic.co */ @@ -1664,7 +1664,7 @@ public PutIndicesSettingsResponse putSettings() throws IOException, Elasticsearc * Creates or updates an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html">Documentation * on elastic.co */ @@ -1682,7 +1682,7 @@ public PutTemplateResponse putTemplate(PutTemplateRequest request) throws IOExce * a function that initializes a builder to create the * {@link PutTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html">Documentation * on elastic.co */ @@ -2021,7 +2021,7 @@ public final ShrinkResponse shrink(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -2041,7 +2041,7 @@ public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplate * a function that initializes a builder to create the * {@link SimulateIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -2057,7 +2057,7 @@ public final SimulateIndexTemplateResponse simulateIndexTemplate( * Simulate resolving the given template name or body * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ @@ -2076,7 +2076,7 @@ public SimulateTemplateResponse simulateTemplate(SimulateTemplateRequest request * a function that initializes a builder to create the * {@link SimulateTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ @@ -2090,7 +2090,7 @@ public final SimulateTemplateResponse simulateTemplate( * Simulate resolving the given template name or body * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ 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 87a2234c9..edaf0ce75 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 @@ -222,9 +222,6 @@ public class IndexSettings implements JsonpSerializable { @Nullable private final IndexSettingsTimeSeries timeSeries; - @Nullable - private final Integer shards; - @Nullable private final Queries queries; @@ -299,7 +296,6 @@ private IndexSettings(Builder builder) { this.analysis = builder.analysis; this.settings = builder.settings; this.timeSeries = builder.timeSeries; - this.shards = builder.shards; this.queries = builder.queries; this.similarity = builder.similarity; this.mapping = builder.mapping; @@ -725,14 +721,6 @@ public final IndexSettingsTimeSeries timeSeries() { return this.timeSeries; } - /** - * API name: {@code shards} - */ - @Nullable - public final Integer shards() { - return this.shards; - } - /** * API name: {@code queries} */ @@ -1060,11 +1048,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("time_series"); this.timeSeries.serialize(generator, mapper); - } - if (this.shards != null) { - generator.writeKey("shards"); - generator.write(this.shards); - } if (this.queries != null) { generator.writeKey("queries"); @@ -1290,9 +1273,6 @@ public final Builder otherSettings(String key, JsonData value) { @Nullable private IndexSettingsTimeSeries timeSeries; - @Nullable - private Integer shards; - @Nullable private Queries queries; @@ -1858,14 +1838,6 @@ public final Builder timeSeries( return this.timeSeries(fn.apply(new IndexSettingsTimeSeries.Builder()).build()); } - /** - * API name: {@code shards} - */ - public final Builder shards(@Nullable Integer value) { - this.shards = value; - return this; - } - /** * API name: {@code queries} */ @@ -2057,7 +2029,6 @@ protected static void setupIndexSettingsDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public enum ManagedBy implements JsonEnum { + Ilm("Index Lifecycle Management"), + + Datastream("Data stream lifecycle"), + + Unmanaged("Unmanaged"), + + ; + + private final String jsonValue; + + ManagedBy(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ManagedBy.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java index 782be01d0..a5aea4eff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java @@ -77,9 +77,9 @@ public static MappingLimitSettingsDimensionFields of( /** * [preview] This functionality is in technical preview and may be changed or - * removed in a future release. Elastic will apply best effort to fix any - * issues, but features in technical preview are not subject to the support SLA - * of official GA features. + * removed in a future release. Elastic will work to fix any issues, but + * features in technical preview are not subject to the support SLA of official + * GA features. *

* API name: {@code limit} */ @@ -126,9 +126,9 @@ public static class Builder extends WithJsonObjectBuilderBase /** * [preview] This functionality is in technical preview and may be changed or - * removed in a future release. Elastic will apply best effort to fix any - * issues, but features in technical preview are not subject to the support SLA - * of official GA features. + * removed in a future release. Elastic will work to fix any issues, but + * features in technical preview are not subject to the support SLA of official + * GA features. *

* API name: {@code limit} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataLifecycleExplain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataLifecycleExplain.java deleted file mode 100644 index 013169b6e..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataLifecycleExplain.java +++ /dev/null @@ -1,406 +0,0 @@ -/* - * 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.explain_data_lifecycle; - -import co.elastic.clients.elasticsearch._types.Time; -import co.elastic.clients.elasticsearch.indices.DataLifecycleWithRollover; -import co.elastic.clients.json.JsonpDeserializable; -import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; -import co.elastic.clients.json.ObjectBuilderDeserializer; -import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; -import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; -import jakarta.json.stream.JsonGenerator; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.String; -import java.util.Objects; -import java.util.function.Function; -import javax.annotation.Nullable; - -// typedef: indices.explain_data_lifecycle.DataLifecycleExplain - -/** - * - * @see API - * specification - */ -@JsonpDeserializable -public class DataLifecycleExplain implements JsonpSerializable { - private final String index; - - private final boolean managedByDlm; - - @Nullable - private final Long indexCreationDateMillis; - - @Nullable - private final Time timeSinceIndexCreation; - - @Nullable - private final Long rolloverDateMillis; - - @Nullable - private final Time timeSinceRollover; - - @Nullable - private final DataLifecycleWithRollover lifecycle; - - @Nullable - private final Time generationTime; - - @Nullable - private final String error; - - // --------------------------------------------------------------------------------------------- - - private DataLifecycleExplain(Builder builder) { - - this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); - this.managedByDlm = ApiTypeHelper.requireNonNull(builder.managedByDlm, this, "managedByDlm"); - this.indexCreationDateMillis = builder.indexCreationDateMillis; - this.timeSinceIndexCreation = builder.timeSinceIndexCreation; - this.rolloverDateMillis = builder.rolloverDateMillis; - this.timeSinceRollover = builder.timeSinceRollover; - this.lifecycle = builder.lifecycle; - this.generationTime = builder.generationTime; - this.error = builder.error; - - } - - public static DataLifecycleExplain of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * Required - API name: {@code index} - */ - public final String index() { - return this.index; - } - - /** - * Required - API name: {@code managed_by_dlm} - */ - public final boolean managedByDlm() { - return this.managedByDlm; - } - - /** - * API name: {@code index_creation_date_millis} - */ - @Nullable - public final Long indexCreationDateMillis() { - return this.indexCreationDateMillis; - } - - /** - * API name: {@code time_since_index_creation} - */ - @Nullable - public final Time timeSinceIndexCreation() { - return this.timeSinceIndexCreation; - } - - /** - * API name: {@code rollover_date_millis} - */ - @Nullable - public final Long rolloverDateMillis() { - return this.rolloverDateMillis; - } - - /** - * API name: {@code time_since_rollover} - */ - @Nullable - public final Time timeSinceRollover() { - return this.timeSinceRollover; - } - - /** - * API name: {@code lifecycle} - */ - @Nullable - public final DataLifecycleWithRollover lifecycle() { - return this.lifecycle; - } - - /** - * API name: {@code generation_time} - */ - @Nullable - public final Time generationTime() { - return this.generationTime; - } - - /** - * API name: {@code error} - */ - @Nullable - public final String error() { - return this.error; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("index"); - generator.write(this.index); - - generator.writeKey("managed_by_dlm"); - generator.write(this.managedByDlm); - - if (this.indexCreationDateMillis != null) { - generator.writeKey("index_creation_date_millis"); - generator.write(this.indexCreationDateMillis); - - } - if (this.timeSinceIndexCreation != null) { - generator.writeKey("time_since_index_creation"); - this.timeSinceIndexCreation.serialize(generator, mapper); - - } - if (this.rolloverDateMillis != null) { - generator.writeKey("rollover_date_millis"); - generator.write(this.rolloverDateMillis); - - } - if (this.timeSinceRollover != null) { - generator.writeKey("time_since_rollover"); - this.timeSinceRollover.serialize(generator, mapper); - - } - if (this.lifecycle != null) { - generator.writeKey("lifecycle"); - this.lifecycle.serialize(generator, mapper); - - } - if (this.generationTime != null) { - generator.writeKey("generation_time"); - this.generationTime.serialize(generator, mapper); - - } - if (this.error != null) { - generator.writeKey("error"); - generator.write(this.error); - - } - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link DataLifecycleExplain}. - */ - - public static class Builder extends WithJsonObjectBuilderBase - implements - ObjectBuilder { - private String index; - - private Boolean managedByDlm; - - @Nullable - private Long indexCreationDateMillis; - - @Nullable - private Time timeSinceIndexCreation; - - @Nullable - private Long rolloverDateMillis; - - @Nullable - private Time timeSinceRollover; - - @Nullable - private DataLifecycleWithRollover lifecycle; - - @Nullable - private Time generationTime; - - @Nullable - private String error; - - /** - * Required - API name: {@code index} - */ - public final Builder index(String value) { - this.index = value; - return this; - } - - /** - * Required - API name: {@code managed_by_dlm} - */ - public final Builder managedByDlm(boolean value) { - this.managedByDlm = value; - return this; - } - - /** - * API name: {@code index_creation_date_millis} - */ - public final Builder indexCreationDateMillis(@Nullable Long value) { - this.indexCreationDateMillis = value; - return this; - } - - /** - * API name: {@code time_since_index_creation} - */ - public final Builder timeSinceIndexCreation(@Nullable Time value) { - this.timeSinceIndexCreation = value; - return this; - } - - /** - * API name: {@code time_since_index_creation} - */ - public final Builder timeSinceIndexCreation(Function> fn) { - return this.timeSinceIndexCreation(fn.apply(new Time.Builder()).build()); - } - - /** - * API name: {@code rollover_date_millis} - */ - public final Builder rolloverDateMillis(@Nullable Long value) { - this.rolloverDateMillis = value; - return this; - } - - /** - * API name: {@code time_since_rollover} - */ - public final Builder timeSinceRollover(@Nullable Time value) { - this.timeSinceRollover = value; - return this; - } - - /** - * API name: {@code time_since_rollover} - */ - public final Builder timeSinceRollover(Function> fn) { - return this.timeSinceRollover(fn.apply(new Time.Builder()).build()); - } - - /** - * API name: {@code lifecycle} - */ - public final Builder lifecycle(@Nullable DataLifecycleWithRollover value) { - this.lifecycle = value; - return this; - } - - /** - * API name: {@code lifecycle} - */ - public final Builder lifecycle( - Function> fn) { - return this.lifecycle(fn.apply(new DataLifecycleWithRollover.Builder()).build()); - } - - /** - * API name: {@code generation_time} - */ - public final Builder generationTime(@Nullable Time value) { - this.generationTime = value; - return this; - } - - /** - * API name: {@code generation_time} - */ - public final Builder generationTime(Function> fn) { - return this.generationTime(fn.apply(new Time.Builder()).build()); - } - - /** - * API name: {@code error} - */ - public final Builder error(@Nullable String value) { - this.error = value; - return this; - } - - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link DataLifecycleExplain}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public DataLifecycleExplain build() { - _checkSingleUse(); - - return new DataLifecycleExplain(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link DataLifecycleExplain} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, DataLifecycleExplain::setupDataLifecycleExplainDeserializer); - - protected static void setupDataLifecycleExplainDeserializer(ObjectDeserializer op) { - - op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "index"); - op.add(Builder::managedByDlm, JsonpDeserializer.booleanDeserializer(), "managed_by_dlm"); - op.add(Builder::indexCreationDateMillis, JsonpDeserializer.longDeserializer(), "index_creation_date_millis"); - op.add(Builder::timeSinceIndexCreation, Time._DESERIALIZER, "time_since_index_creation"); - op.add(Builder::rolloverDateMillis, JsonpDeserializer.longDeserializer(), "rollover_date_millis"); - op.add(Builder::timeSinceRollover, Time._DESERIALIZER, "time_since_rollover"); - op.add(Builder::lifecycle, DataLifecycleWithRollover._DESERIALIZER, "lifecycle"); - op.add(Builder::generationTime, Time._DESERIALIZER, "generation_time"); - op.add(Builder::error, JsonpDeserializer.stringDeserializer(), "error"); - - } - -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java deleted file mode 100644 index 3abac00cc..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * 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.get_data_lifecycle; - -import co.elastic.clients.elasticsearch.indices.DataLifecycle; -import co.elastic.clients.json.JsonpDeserializable; -import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; -import co.elastic.clients.json.ObjectBuilderDeserializer; -import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; -import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; -import jakarta.json.stream.JsonGenerator; -import java.lang.String; -import java.util.Objects; -import java.util.function.Function; -import javax.annotation.Nullable; - -// typedef: indices.get_data_lifecycle.DataStreamLifecycle - -/** - * - * @see API - * specification - */ -@JsonpDeserializable -public class DataStreamLifecycle implements JsonpSerializable { - private final String name; - - @Nullable - private final DataLifecycle lifecycle; - - // --------------------------------------------------------------------------------------------- - - private DataStreamLifecycle(Builder builder) { - - this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); - this.lifecycle = builder.lifecycle; - - } - - public static DataStreamLifecycle of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * Required - API name: {@code name} - */ - public final String name() { - return this.name; - } - - /** - * API name: {@code lifecycle} - */ - @Nullable - public final DataLifecycle lifecycle() { - return this.lifecycle; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("name"); - generator.write(this.name); - - if (this.lifecycle != null) { - generator.writeKey("lifecycle"); - this.lifecycle.serialize(generator, mapper); - - } - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link DataStreamLifecycle}. - */ - - public static class Builder extends WithJsonObjectBuilderBase - implements - ObjectBuilder { - private String name; - - @Nullable - private DataLifecycle lifecycle; - - /** - * Required - API name: {@code name} - */ - public final Builder name(String value) { - this.name = value; - return this; - } - - /** - * API name: {@code lifecycle} - */ - public final Builder lifecycle(@Nullable DataLifecycle value) { - this.lifecycle = value; - return this; - } - - /** - * API name: {@code lifecycle} - */ - public final Builder lifecycle(Function> fn) { - return this.lifecycle(fn.apply(new DataLifecycle.Builder()).build()); - } - - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link DataStreamLifecycle}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public DataStreamLifecycle build() { - _checkSingleUse(); - - return new DataStreamLifecycle(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link DataStreamLifecycle} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, DataStreamLifecycle::setupDataStreamLifecycleDeserializer); - - protected static void setupDataStreamLifecycleDeserializer(ObjectDeserializer op) { - - op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); - op.add(Builder::lifecycle, DataLifecycle._DESERIALIZER, "lifecycle"); - - } - -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java new file mode 100644 index 000000000..a482dcc80 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java @@ -0,0 +1,212 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.delete_model.Request + +/** + * Delete an inference service model + * + * @see API + * specification + */ + +public class DeleteModelRequest extends RequestBase { + private final String modelId; + + private final TaskType taskType; + + // --------------------------------------------------------------------------------------------- + + private DeleteModelRequest(Builder builder) { + + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + + } + + public static DeleteModelRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The unique identifier of the inference model. + *

+ * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Required - The model task type + *

+ * API name: {@code task_type} + */ + public final TaskType taskType() { + return this.taskType; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteModelRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String modelId; + + private TaskType taskType; + + /** + * Required - The unique identifier of the inference model. + *

+ * API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * Required - The model task type + *

+ * API name: {@code task_type} + */ + public final Builder taskType(TaskType value) { + this.taskType = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteModelRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteModelRequest build() { + _checkSingleUse(); + + return new DeleteModelRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.delete_model}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.delete_model", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _modelId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _modelId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.modelId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _modelId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("modelId", request.modelId); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteModelResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelResponse.java new file mode 100644 index 000000000..b479ad40b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelResponse.java @@ -0,0 +1,107 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +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.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.delete_model.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteModelResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteModelResponse(Builder builder) { + super(builder); + + } + + public static DeleteModelResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteModelResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteModelResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteModelResponse build() { + _checkSingleUse(); + + return new DeleteModelResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteModelResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteModelResponse::setupDeleteModelResponseDeserializer); + + protected static void setupDeleteModelResponseDeserializer(ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java new file mode 100644 index 000000000..5a6fac587 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java @@ -0,0 +1,202 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the inference namespace. + */ +public class ElasticsearchInferenceAsyncClient + extends + ApiClient { + + public ElasticsearchInferenceAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchInferenceAsyncClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchInferenceAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchInferenceAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: inference.delete_model + + /** + * Delete model in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteModel(DeleteModelRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteModelRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Delete model in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteModelRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteModel( + Function> fn) { + return deleteModel(fn.apply(new DeleteModelRequest.Builder()).build()); + } + + // ----- Endpoint: inference.get_model + + /** + * Get a model in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getModel(GetModelRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetModelRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Get a model in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link GetModelRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getModel( + Function> fn) { + return getModel(fn.apply(new GetModelRequest.Builder()).build()); + } + + // ----- Endpoint: inference.inference + + /** + * Perform inference on a model + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture inference(InferenceRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) InferenceRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Perform inference on a model + * + * @param fn + * a function that initializes a builder to create the + * {@link InferenceRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture inference( + Function> fn) { + return inference(fn.apply(new InferenceRequest.Builder()).build()); + } + + // ----- Endpoint: inference.put_model + + /** + * Configure a model for use in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putModel(PutModelRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutModelRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Configure a model for use in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link PutModelRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture putModel( + Function> fn) { + return putModel(fn.apply(new PutModelRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java new file mode 100644 index 000000000..c46cc5480 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java @@ -0,0 +1,201 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the inference namespace. + */ +public class ElasticsearchInferenceClient extends ApiClient { + + public ElasticsearchInferenceClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchInferenceClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchInferenceClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchInferenceClient(this.transport, transportOptions); + } + + // ----- Endpoint: inference.delete_model + + /** + * Delete model in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public DeleteModelResponse deleteModel(DeleteModelRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteModelRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Delete model in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteModelRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteModelResponse deleteModel( + Function> fn) + throws IOException, ElasticsearchException { + return deleteModel(fn.apply(new DeleteModelRequest.Builder()).build()); + } + + // ----- Endpoint: inference.get_model + + /** + * Get a model in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public GetModelResponse getModel(GetModelRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetModelRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Get a model in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link GetModelRequest} + * @see Documentation + * on elastic.co + */ + + public final GetModelResponse getModel(Function> fn) + throws IOException, ElasticsearchException { + return getModel(fn.apply(new GetModelRequest.Builder()).build()); + } + + // ----- Endpoint: inference.inference + + /** + * Perform inference on a model + * + * @see Documentation + * on elastic.co + */ + + public InferenceResponse inference(InferenceRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) InferenceRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Perform inference on a model + * + * @param fn + * a function that initializes a builder to create the + * {@link InferenceRequest} + * @see Documentation + * on elastic.co + */ + + public final InferenceResponse inference(Function> fn) + throws IOException, ElasticsearchException { + return inference(fn.apply(new InferenceRequest.Builder()).build()); + } + + // ----- Endpoint: inference.put_model + + /** + * Configure a model for use in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public PutModelResponse putModel(PutModelRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutModelRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Configure a model for use in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link PutModelRequest} + * @see Documentation + * on elastic.co + */ + + public final PutModelResponse putModel(Function> fn) + throws IOException, ElasticsearchException { + return putModel(fn.apply(new PutModelRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java new file mode 100644 index 000000000..54ef93edc --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java @@ -0,0 +1,210 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.get_model.Request + +/** + * Get an inference service model + * + * @see API + * specification + */ + +public class GetModelRequest extends RequestBase { + private final String modelId; + + private final TaskType taskType; + + // --------------------------------------------------------------------------------------------- + + private GetModelRequest(Builder builder) { + + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + + } + + public static GetModelRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The unique identifier of the inference model. + *

+ * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Required - The model task type + *

+ * API name: {@code task_type} + */ + public final TaskType taskType() { + return this.taskType; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetModelRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String modelId; + + private TaskType taskType; + + /** + * Required - The unique identifier of the inference model. + *

+ * API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * Required - The model task type + *

+ * API name: {@code task_type} + */ + public final Builder taskType(TaskType value) { + this.taskType = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetModelRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetModelRequest build() { + _checkSingleUse(); + + return new GetModelRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.get_model}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.get_model", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _modelId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _modelId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.modelId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _modelId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("modelId", request.modelId); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetModelResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelResponse.java new file mode 100644 index 000000000..1d02e083a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelResponse.java @@ -0,0 +1,182 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.get_model.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetModelResponse implements JsonpSerializable { + private final List models; + + // --------------------------------------------------------------------------------------------- + + private GetModelResponse(Builder builder) { + + this.models = ApiTypeHelper.unmodifiableRequired(builder.models, this, "models"); + + } + + public static GetModelResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code models} + */ + public final List models() { + return this.models; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.models)) { + generator.writeKey("models"); + generator.writeStartArray(); + for (ModelConfigContainer item0 : this.models) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetModelResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private List models; + + /** + * Required - API name: {@code models} + *

+ * Adds all elements of list to models. + */ + public final Builder models(List list) { + this.models = _listAddAll(this.models, list); + return this; + } + + /** + * Required - API name: {@code models} + *

+ * Adds one or more values to models. + */ + public final Builder models(ModelConfigContainer value, ModelConfigContainer... values) { + this.models = _listAdd(this.models, value, values); + return this; + } + + /** + * Required - API name: {@code models} + *

+ * Adds a value to models using a builder lambda. + */ + public final Builder models(Function> fn) { + return models(fn.apply(new ModelConfigContainer.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetModelResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetModelResponse build() { + _checkSingleUse(); + + return new GetModelResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetModelResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + GetModelResponse::setupGetModelResponseDeserializer); + + protected static void setupGetModelResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::models, JsonpDeserializer.arrayDeserializer(ModelConfigContainer._DESERIALIZER), "models"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java new file mode 100644 index 000000000..681895e6b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java @@ -0,0 +1,325 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.inference.Request + +/** + * Perform inference on the service + * + * @see API + * specification + */ +@JsonpDeserializable +public class InferenceRequest extends RequestBase implements JsonpSerializable { + private final List input; + + private final String modelId; + + @Nullable + private final JsonData taskSettings; + + private final TaskType taskType; + + // --------------------------------------------------------------------------------------------- + + private InferenceRequest(Builder builder) { + + this.input = ApiTypeHelper.unmodifiableRequired(builder.input, this, "input"); + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.taskSettings = builder.taskSettings; + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + + } + + public static InferenceRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Text input to the model. Either a string or an array of strings. + *

+ * API name: {@code input} + */ + public final List input() { + return this.input; + } + + /** + * Required - The unique identifier of the inference model. + *

+ * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Optional task settings + *

+ * API name: {@code task_settings} + */ + @Nullable + public final JsonData taskSettings() { + return this.taskSettings; + } + + /** + * Required - The model task type + *

+ * API name: {@code task_type} + */ + public final TaskType taskType() { + return this.taskType; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.input)) { + generator.writeKey("input"); + generator.writeStartArray(); + for (String item0 : this.input) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.taskSettings != null) { + generator.writeKey("task_settings"); + this.taskSettings.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link InferenceRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private List input; + + private String modelId; + + @Nullable + private JsonData taskSettings; + + private TaskType taskType; + + /** + * Required - Text input to the model. Either a string or an array of strings. + *

+ * API name: {@code input} + *

+ * Adds all elements of list to input. + */ + public final Builder input(List list) { + this.input = _listAddAll(this.input, list); + return this; + } + + /** + * Required - Text input to the model. Either a string or an array of strings. + *

+ * API name: {@code input} + *

+ * Adds one or more values to input. + */ + public final Builder input(String value, String... values) { + this.input = _listAdd(this.input, value, values); + return this; + } + + /** + * Required - The unique identifier of the inference model. + *

+ * API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * Optional task settings + *

+ * API name: {@code task_settings} + */ + public final Builder taskSettings(@Nullable JsonData value) { + this.taskSettings = value; + return this; + } + + /** + * Required - The model task type + *

+ * API name: {@code task_type} + */ + public final Builder taskType(TaskType value) { + this.taskType = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link InferenceRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public InferenceRequest build() { + _checkSingleUse(); + + return new InferenceRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link InferenceRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + InferenceRequest::setupInferenceRequestDeserializer); + + protected static void setupInferenceRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::input, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "input"); + op.add(Builder::taskSettings, JsonData._DESERIALIZER, "task_settings"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.inference}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.inference", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _modelId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _modelId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.modelId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _modelId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("modelId", request.modelId); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, InferenceResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResponse.java new file mode 100644 index 000000000..3eba0b8fa --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResponse.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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.inference.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class InferenceResponse implements JsonpSerializable { + private final InferenceResult valueBody; + + // --------------------------------------------------------------------------------------------- + + private InferenceResponse(Builder builder) { + + this.valueBody = ApiTypeHelper.requireNonNull(builder.valueBody, this, "valueBody"); + + } + + public static InferenceResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Response value. + */ + public final InferenceResult valueBody() { + return this.valueBody; + } + + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + this.valueBody.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link InferenceResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private InferenceResult valueBody; + + /** + * Required - Response value. + */ + public final Builder valueBody(InferenceResult value) { + this.valueBody = value; + return this; + } + + /** + * Required - Response value. + */ + public final Builder valueBody(Function> fn) { + return this.valueBody(fn.apply(new InferenceResult.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + InferenceResult value = (InferenceResult) InferenceResult._DESERIALIZER.deserialize(parser, mapper); + return this.valueBody(value); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link InferenceResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public InferenceResponse build() { + _checkSingleUse(); + + return new InferenceResponse(this); + } + } + + public static final JsonpDeserializer _DESERIALIZER = createInferenceResponseDeserializer(); + protected static JsonpDeserializer createInferenceResponseDeserializer() { + + JsonpDeserializer valueDeserializer = InferenceResult._DESERIALIZER; + + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .valueBody(valueDeserializer.deserialize(parser, mapper, event)).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java new file mode 100644 index 000000000..616d2ea5b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java @@ -0,0 +1,278 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.TaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.InferenceResult + +/** + * InferenceResult is an aggregation of mutually exclusive variants + * + * @see API + * specification + */ +@JsonpDeserializable +public class InferenceResult implements TaggedUnion, JsonpSerializable { + + /** + * {@link InferenceResult} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + TextEmbeddingBytes("text_embedding_bytes"), + + TextEmbedding("text_embedding"), + + SparseEmbedding("sparse_embedding"), + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + public InferenceResult(InferenceResultVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._inferenceResultKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + + } + + private InferenceResult(Builder builder) { + + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + + } + + public static InferenceResult of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Is this variant instance of kind {@code text_embedding_bytes}? + */ + public boolean isTextEmbeddingBytes() { + return _kind == Kind.TextEmbeddingBytes; + } + + /** + * Get the {@code text_embedding_bytes} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code text_embedding_bytes} + * kind. + */ + public List textEmbeddingBytes() { + return TaggedUnionUtils.get(this, Kind.TextEmbeddingBytes); + } + + /** + * Is this variant instance of kind {@code text_embedding}? + */ + public boolean isTextEmbedding() { + return _kind == Kind.TextEmbedding; + } + + /** + * Get the {@code text_embedding} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code text_embedding} kind. + */ + public List textEmbedding() { + return TaggedUnionUtils.get(this, Kind.TextEmbedding); + } + + /** + * Is this variant instance of kind {@code sparse_embedding}? + */ + public boolean isSparseEmbedding() { + return _kind == Kind.SparseEmbedding; + } + + /** + * Get the {@code sparse_embedding} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code sparse_embedding} + * kind. + */ + public List sparseEmbedding() { + return TaggedUnionUtils.get(this, Kind.SparseEmbedding); + } + + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeStartObject(); + + generator.writeKey(_kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } else { + switch (_kind) { + case TextEmbeddingBytes : + generator.writeStartArray(); + for (TextEmbeddingByteResult item0 : ((List) this._value)) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + break; + case TextEmbedding : + generator.writeStartArray(); + for (TextEmbeddingResult item0 : ((List) this._value)) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + break; + case SparseEmbedding : + generator.writeStartArray(); + for (SparseEmbeddingResult item0 : ((List) this._value)) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + break; + } + } + + generator.writeEnd(); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Kind _kind; + private Object _value; + + @Override + protected Builder self() { + return this; + } + public ObjectBuilder textEmbeddingBytes(List v) { + this._kind = Kind.TextEmbeddingBytes; + this._value = v; + return this; + } + + public ObjectBuilder textEmbedding(List v) { + this._kind = Kind.TextEmbedding; + this._value = v; + return this; + } + + public ObjectBuilder sparseEmbedding(List v) { + this._kind = Kind.SparseEmbedding; + this._value = v; + return this; + } + + public InferenceResult build() { + _checkSingleUse(); + return new InferenceResult(this); + } + + } + + protected static void setupInferenceResultDeserializer(ObjectDeserializer op) { + + op.add(Builder::textEmbeddingBytes, JsonpDeserializer.arrayDeserializer(TextEmbeddingByteResult._DESERIALIZER), + "text_embedding_bytes"); + op.add(Builder::textEmbedding, JsonpDeserializer.arrayDeserializer(TextEmbeddingResult._DESERIALIZER), + "text_embedding"); + op.add(Builder::sparseEmbedding, JsonpDeserializer.arrayDeserializer(SparseEmbeddingResult._DESERIALIZER), + "sparse_embedding"); + + } + + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + InferenceResult::setupInferenceResultDeserializer, Builder::build); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java new file mode 100644 index 000000000..4bc8aca15 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Builders for {@link InferenceResult} variants. + *

+ * Variants text_embedding_bytes, text_embedding, + * sparse_embedding are not available here as they don't have a + * dedicated class. Use {@link InferenceResult}'s builder for these. + * + */ +public class InferenceResultBuilders { + private InferenceResultBuilders() { + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultVariant.java new file mode 100644 index 000000000..c9aa04b52 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultVariant.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link InferenceResult} variants. + */ +public interface InferenceResultVariant { + + InferenceResult.Kind _inferenceResultKind(); + + default InferenceResult _toInferenceResult() { + return new InferenceResult(this); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfig.java new file mode 100644 index 000000000..f7a219e29 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfig.java @@ -0,0 +1,223 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.ModelConfig + +/** + * Configuration options when storing the model config + * + * @see API + * specification + */ +@JsonpDeserializable +public class ModelConfig implements JsonpSerializable { + private final String service; + + private final JsonData serviceSettings; + + private final JsonData taskSettings; + + // --------------------------------------------------------------------------------------------- + + protected ModelConfig(AbstractBuilder builder) { + + this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); + this.serviceSettings = ApiTypeHelper.requireNonNull(builder.serviceSettings, this, "serviceSettings"); + this.taskSettings = ApiTypeHelper.requireNonNull(builder.taskSettings, this, "taskSettings"); + + } + + public static ModelConfig modelConfigOf(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The service type + *

+ * API name: {@code service} + */ + public final String service() { + return this.service; + } + + /** + * Required - Settings specific to the service + *

+ * API name: {@code service_settings} + */ + public final JsonData serviceSettings() { + return this.serviceSettings; + } + + /** + * Required - Task settings specific to the service and model + *

+ * API name: {@code task_settings} + */ + public final JsonData taskSettings() { + return this.taskSettings; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("service"); + generator.write(this.service); + + generator.writeKey("service_settings"); + this.serviceSettings.serialize(generator, mapper); + + generator.writeKey("task_settings"); + this.taskSettings.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ModelConfig}. + */ + + public static class Builder extends ModelConfig.AbstractBuilder implements ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ModelConfig}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ModelConfig build() { + _checkSingleUse(); + + return new ModelConfig(this); + } + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private String service; + + private JsonData serviceSettings; + + private JsonData taskSettings; + + /** + * Required - The service type + *

+ * API name: {@code service} + */ + public final BuilderT service(String value) { + this.service = value; + return self(); + } + + /** + * Required - Settings specific to the service + *

+ * API name: {@code service_settings} + */ + public final BuilderT serviceSettings(JsonData value) { + this.serviceSettings = value; + return self(); + } + + /** + * Required - Task settings specific to the service and model + *

+ * API name: {@code task_settings} + */ + public final BuilderT taskSettings(JsonData value) { + this.taskSettings = value; + return self(); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ModelConfig} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ModelConfig::setupModelConfigDeserializer); + + protected static > void setupModelConfigDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::service, JsonpDeserializer.stringDeserializer(), "service"); + op.add(AbstractBuilder::serviceSettings, JsonData._DESERIALIZER, "service_settings"); + op.add(AbstractBuilder::taskSettings, JsonData._DESERIALIZER, "task_settings"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfigContainer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfigContainer.java new file mode 100644 index 000000000..10677d187 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfigContainer.java @@ -0,0 +1,182 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.ModelConfigContainer + +/** + * Represents a model as returned by the GET API + * + * @see API + * specification + */ +@JsonpDeserializable +public class ModelConfigContainer extends ModelConfig { + private final String modelId; + + private final TaskType taskType; + + // --------------------------------------------------------------------------------------------- + + protected ModelConfigContainer(AbstractBuilder builder) { + super(builder); + + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + + } + + public static ModelConfigContainer modelConfigContainerOf( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The model Id + *

+ * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Required - The model's task type + *

+ * API name: {@code task_type} + */ + public final TaskType taskType() { + return this.taskType; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("model_id"); + generator.write(this.modelId); + + generator.writeKey("task_type"); + this.taskType.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ModelConfigContainer}. + */ + + public static class Builder extends ModelConfigContainer.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ModelConfigContainer}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ModelConfigContainer build() { + _checkSingleUse(); + + return new ModelConfigContainer(this); + } + } + + public abstract static class AbstractBuilder> + extends + ModelConfig.AbstractBuilder { + private String modelId; + + private TaskType taskType; + + /** + * Required - The model Id + *

+ * API name: {@code model_id} + */ + public final BuilderT modelId(String value) { + this.modelId = value; + return self(); + } + + /** + * Required - The model's task type + *

+ * API name: {@code task_type} + */ + public final BuilderT taskType(TaskType value) { + this.taskType = value; + return self(); + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ModelConfigContainer} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ModelConfigContainer::setupModelConfigContainerDeserializer); + + protected static > void setupModelConfigContainerDeserializer( + ObjectDeserializer op) { + ModelConfig.setupModelConfigDeserializer(op); + op.add(AbstractBuilder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(AbstractBuilder::taskType, TaskType._DESERIALIZER, "task_type"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java new file mode 100644 index 000000000..a1fd000f8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java @@ -0,0 +1,265 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_model.Request + +/** + * Create an inference service model + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutModelRequest extends RequestBase implements JsonpSerializable { + private final String modelId; + + private final TaskType taskType; + + private final ModelConfig modelConfig; + + // --------------------------------------------------------------------------------------------- + + private PutModelRequest(Builder builder) { + + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + this.modelConfig = ApiTypeHelper.requireNonNull(builder.modelConfig, this, "modelConfig"); + + } + + public static PutModelRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The unique identifier of the inference model. + *

+ * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Required - The model task type + *

+ * API name: {@code task_type} + */ + public final TaskType taskType() { + return this.taskType; + } + + /** + * Required - Request body. + */ + public final ModelConfig modelConfig() { + return this.modelConfig; + } + + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + this.modelConfig.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutModelRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String modelId; + + private TaskType taskType; + + private ModelConfig modelConfig; + + /** + * Required - The unique identifier of the inference model. + *

+ * API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * Required - The model task type + *

+ * API name: {@code task_type} + */ + public final Builder taskType(TaskType value) { + this.taskType = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder modelConfig(ModelConfig value) { + this.modelConfig = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder modelConfig(Function> fn) { + return this.modelConfig(fn.apply(new ModelConfig.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + ModelConfig value = (ModelConfig) ModelConfig._DESERIALIZER.deserialize(parser, mapper); + return this.modelConfig(value); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutModelRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutModelRequest build() { + _checkSingleUse(); + + return new PutModelRequest(this); + } + } + + public static final JsonpDeserializer _DESERIALIZER = createPutModelRequestDeserializer(); + protected static JsonpDeserializer createPutModelRequestDeserializer() { + + JsonpDeserializer valueDeserializer = ModelConfig._DESERIALIZER; + + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .modelConfig(valueDeserializer.deserialize(parser, mapper, event)).build()); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.put_model}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.put_model", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _modelId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _modelId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.modelId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _modelId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _modelId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _modelId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("modelId", request.modelId); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, PutModelResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelResponse.java new file mode 100644 index 000000000..1d25f7476 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelResponse.java @@ -0,0 +1,106 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +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.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_model.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutModelResponse extends ModelConfigContainer { + // --------------------------------------------------------------------------------------------- + + private PutModelResponse(Builder builder) { + super(builder); + + } + + public static PutModelResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutModelResponse}. + */ + + public static class Builder extends ModelConfigContainer.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutModelResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutModelResponse build() { + _checkSingleUse(); + + return new PutModelResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutModelResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutModelResponse::setupPutModelResponseDeserializer); + + protected static void setupPutModelResponseDeserializer(ObjectDeserializer op) { + ModelConfigContainer.setupModelConfigContainerDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java new file mode 100644 index 000000000..7538e4951 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java @@ -0,0 +1,180 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Float; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.SparseEmbeddingResult + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SparseEmbeddingResult implements JsonpSerializable { + private final Map embedding; + + // --------------------------------------------------------------------------------------------- + + private SparseEmbeddingResult(Builder builder) { + + this.embedding = ApiTypeHelper.unmodifiableRequired(builder.embedding, this, "embedding"); + + } + + public static SparseEmbeddingResult of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code embedding} + */ + public final Map embedding() { + return this.embedding; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.embedding)) { + generator.writeKey("embedding"); + generator.writeStartObject(); + for (Map.Entry item0 : this.embedding.entrySet()) { + generator.writeKey(item0.getKey()); + generator.write(item0.getValue()); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SparseEmbeddingResult}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Map embedding; + + /** + * Required - API name: {@code embedding} + *

+ * Adds all entries of map to embedding. + */ + public final Builder embedding(Map map) { + this.embedding = _mapPutAll(this.embedding, map); + return this; + } + + /** + * Required - API name: {@code embedding} + *

+ * Adds an entry to embedding. + */ + public final Builder embedding(String key, Float value) { + this.embedding = _mapPut(this.embedding, key, value); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SparseEmbeddingResult}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SparseEmbeddingResult build() { + _checkSingleUse(); + + return new SparseEmbeddingResult(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SparseEmbeddingResult} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SparseEmbeddingResult::setupSparseEmbeddingResultDeserializer); + + protected static void setupSparseEmbeddingResultDeserializer(ObjectDeserializer op) { + + op.add(Builder::embedding, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.floatDeserializer()), + "embedding"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java new file mode 100644 index 000000000..f64455e15 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java @@ -0,0 +1,65 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum TaskType implements JsonEnum { + SparseEmbedding("sparse_embedding"), + + TextEmbedding("text_embedding"), + + ; + + private final String jsonValue; + + TaskType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>(TaskType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java new file mode 100644 index 000000000..2143fa6c4 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java @@ -0,0 +1,180 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.TextEmbeddingByteResult + +/** + * The text embedding result object for byte representation + * + * @see API + * specification + */ +@JsonpDeserializable +public class TextEmbeddingByteResult implements JsonpSerializable { + private final List embedding; + + // --------------------------------------------------------------------------------------------- + + private TextEmbeddingByteResult(Builder builder) { + + this.embedding = ApiTypeHelper.unmodifiableRequired(builder.embedding, this, "embedding"); + + } + + public static TextEmbeddingByteResult of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code embedding} + */ + public final List embedding() { + return this.embedding; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.embedding)) { + generator.writeKey("embedding"); + generator.writeStartArray(); + for (Number item0 : this.embedding) { + generator.write(item0.doubleValue()); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TextEmbeddingByteResult}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List embedding; + + /** + * Required - API name: {@code embedding} + *

+ * Adds all elements of list to embedding. + */ + public final Builder embedding(List list) { + this.embedding = _listAddAll(this.embedding, list); + return this; + } + + /** + * Required - API name: {@code embedding} + *

+ * Adds one or more values to embedding. + */ + public final Builder embedding(Number value, Number... values) { + this.embedding = _listAdd(this.embedding, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TextEmbeddingByteResult}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TextEmbeddingByteResult build() { + _checkSingleUse(); + + return new TextEmbeddingByteResult(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TextEmbeddingByteResult} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TextEmbeddingByteResult::setupTextEmbeddingByteResultDeserializer); + + protected static void setupTextEmbeddingByteResultDeserializer( + ObjectDeserializer op) { + + op.add(Builder::embedding, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.numberDeserializer()), + "embedding"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java similarity index 59% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java rename to java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java index 43165f689..a237a6945 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java @@ -17,7 +17,7 @@ * under the License. */ -package co.elastic.clients.elasticsearch.security; +package co.elastic.clients.elasticsearch.inference; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -30,7 +30,8 @@ import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; -import java.lang.String; +import java.lang.Float; +import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -50,42 +51,36 @@ // //---------------------------------------------------------------- -// typedef: security._types.Realm +// typedef: inference._types.TextEmbeddingResult /** - * - * @see API + * The text embedding result object + * + * @see API * specification */ @JsonpDeserializable -public class Realm implements FieldRuleVariant, JsonpSerializable { - private final String name; +public class TextEmbeddingResult implements JsonpSerializable { + private final List embedding; // --------------------------------------------------------------------------------------------- - private Realm(Builder builder) { + private TextEmbeddingResult(Builder builder) { - this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.embedding = ApiTypeHelper.unmodifiableRequired(builder.embedding, this, "embedding"); } - public static Realm of(Function> fn) { + public static TextEmbeddingResult of(Function> fn) { return fn.apply(new Builder()).build(); } /** - * FieldRule variant kind. + * Required - API name: {@code embedding} */ - @Override - public FieldRule.Kind _fieldRuleKind() { - return FieldRule.Kind.Realm; - } - - /** - * Required - API name: {@code name} - */ - public final String name() { - return this.name; + public final List embedding() { + return this.embedding; } /** @@ -99,8 +94,16 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("name"); - generator.write(this.name); + if (ApiTypeHelper.isDefined(this.embedding)) { + generator.writeKey("embedding"); + generator.writeStartArray(); + for (Float item0 : this.embedding) { + generator.write(item0); + + } + generator.writeEnd(); + + } } @@ -112,17 +115,31 @@ public String toString() { // --------------------------------------------------------------------------------------------- /** - * Builder for {@link Realm}. + * Builder for {@link TextEmbeddingResult}. */ - public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private String name; + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List embedding; + + /** + * Required - API name: {@code embedding} + *

+ * Adds all elements of list to embedding. + */ + public final Builder embedding(List list) { + this.embedding = _listAddAll(this.embedding, list); + return this; + } /** - * Required - API name: {@code name} + * Required - API name: {@code embedding} + *

+ * Adds one or more values to embedding. */ - public final Builder name(String value) { - this.name = value; + public final Builder embedding(Float value, Float... values) { + this.embedding = _listAdd(this.embedding, value, values); return this; } @@ -132,29 +149,30 @@ protected Builder self() { } /** - * Builds a {@link Realm}. + * Builds a {@link TextEmbeddingResult}. * * @throws NullPointerException * if some of the required fields are null. */ - public Realm build() { + public TextEmbeddingResult build() { _checkSingleUse(); - return new Realm(this); + return new TextEmbeddingResult(this); } } // --------------------------------------------------------------------------------------------- /** - * Json deserializer for {@link Realm} + * Json deserializer for {@link TextEmbeddingResult} */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - Realm::setupRealmDeserializer); + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TextEmbeddingResult::setupTextEmbeddingResultDeserializer); - protected static void setupRealmDeserializer(ObjectDeserializer op) { + protected static void setupTextEmbeddingResultDeserializer(ObjectDeserializer op) { - op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::embedding, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.floatDeserializer()), + "embedding"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java index b3e877465..1ec9cc9c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch.ingest; +import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -33,6 +34,7 @@ import java.lang.Long; import java.lang.String; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -71,6 +73,8 @@ public class Pipeline implements JsonpSerializable { @Nullable private final Long version; + private final Map meta; + // --------------------------------------------------------------------------------------------- private Pipeline(Builder builder) { @@ -79,6 +83,7 @@ private Pipeline(Builder builder) { this.onFailure = ApiTypeHelper.unmodifiable(builder.onFailure); this.processors = ApiTypeHelper.unmodifiable(builder.processors); this.version = builder.version; + this.meta = ApiTypeHelper.unmodifiableRequired(builder.meta, this, "meta"); } @@ -125,6 +130,16 @@ public final Long version() { return this.version; } + /** + * Required - Arbitrary metadata about the ingest pipeline. This map is not + * automatically generated by Elasticsearch. + *

+ * API name: {@code _meta} + */ + public final Map meta() { + return this.meta; + } + /** * Serialize this object to JSON. */ @@ -166,6 +181,17 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.version); } + if (ApiTypeHelper.isDefined(this.meta)) { + generator.writeKey("_meta"); + generator.writeStartObject(); + for (Map.Entry item0 : this.meta.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } } @@ -193,6 +219,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long version; + private Map meta; + /** * Description of the ingest pipeline. *

@@ -286,6 +314,32 @@ public final Builder version(@Nullable Long value) { return this; } + /** + * Required - Arbitrary metadata about the ingest pipeline. This map is not + * automatically generated by Elasticsearch. + *

+ * API name: {@code _meta} + *

+ * Adds all entries of map to meta. + */ + public final Builder meta(Map map) { + this.meta = _mapPutAll(this.meta, map); + return this; + } + + /** + * Required - Arbitrary metadata about the ingest pipeline. This map is not + * automatically generated by Elasticsearch. + *

+ * API name: {@code _meta} + *

+ * Adds an entry to meta. + */ + public final Builder meta(String key, JsonData value) { + this.meta = _mapPut(this.meta, key, value); + return this; + } + @Override protected Builder self() { return this; @@ -318,6 +372,7 @@ protected static void setupPipelineDeserializer(ObjectDeserializer rename(Function script(Script v) { + public ObjectBuilder reroute(RerouteProcessor v) { + this._kind = Kind.Reroute; + this._value = v; + return this; + } + + public ObjectBuilder reroute( + Function> fn) { + return this.reroute(fn.apply(new RerouteProcessor.Builder()).build()); + } + + public ObjectBuilder script(ScriptProcessor v) { this._kind = Kind.Script; this._value = v; return this; } - public ObjectBuilder script(Function> fn) { - return this.script(fn.apply(new Script.Builder()).build()); + public ObjectBuilder script(Function> fn) { + return this.script(fn.apply(new ScriptProcessor.Builder()).build()); } public ObjectBuilder set(SetProcessor v) { @@ -1229,7 +1258,8 @@ protected static void setupProcessorDeserializer(ObjectDeserializer op) op.add(Builder::lowercase, LowercaseProcessor._DESERIALIZER, "lowercase"); op.add(Builder::remove, RemoveProcessor._DESERIALIZER, "remove"); op.add(Builder::rename, RenameProcessor._DESERIALIZER, "rename"); - op.add(Builder::script, Script._DESERIALIZER, "script"); + op.add(Builder::reroute, RerouteProcessor._DESERIALIZER, "reroute"); + op.add(Builder::script, ScriptProcessor._DESERIALIZER, "script"); op.add(Builder::set, SetProcessor._DESERIALIZER, "set"); op.add(Builder::sort, SortProcessor._DESERIALIZER, "sort"); op.add(Builder::split, SplitProcessor._DESERIALIZER, "split"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java index 1a1376e82..f5d4c5074 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java @@ -19,7 +19,6 @@ package co.elastic.clients.elasticsearch.ingest; -import co.elastic.clients.elasticsearch._types.Script; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; @@ -407,18 +406,38 @@ public static Processor rename(Function> fn) { + Processor.Builder builder = new Processor.Builder(); + builder.reroute(fn.apply(new RerouteProcessor.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link ScriptProcessor script} {@code Processor} + * variant. */ - public static Script.Builder script() { - return new Script.Builder(); + public static ScriptProcessor.Builder script() { + return new ScriptProcessor.Builder(); } /** - * Creates a Processor of the {@link Script script} {@code Processor} variant. + * Creates a Processor of the {@link ScriptProcessor script} {@code Processor} + * variant. */ - public static Processor script(Function> fn) { + public static Processor script(Function> fn) { Processor.Builder builder = new Processor.Builder(); - builder.script(fn.apply(new Script.Builder()).build()); + builder.script(fn.apply(new ScriptProcessor.Builder()).build()); return builder.build(); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java new file mode 100644 index 000000000..89ea39274 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java @@ -0,0 +1,326 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.ingest; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: ingest._types.RerouteProcessor + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class RerouteProcessor extends ProcessorBase implements ProcessorVariant { + @Nullable + private final String destination; + + private final List dataset; + + private final List namespace; + + // --------------------------------------------------------------------------------------------- + + private RerouteProcessor(Builder builder) { + super(builder); + + this.destination = builder.destination; + this.dataset = ApiTypeHelper.unmodifiable(builder.dataset); + this.namespace = ApiTypeHelper.unmodifiable(builder.namespace); + + } + + public static RerouteProcessor of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Processor variant kind. + */ + @Override + public Processor.Kind _processorKind() { + return Processor.Kind.Reroute; + } + + /** + * A static value for the target. Can’t be set when the dataset or namespace + * option is set. + *

+ * API name: {@code destination} + */ + @Nullable + public final String destination() { + return this.destination; + } + + /** + * Field references or a static value for the dataset part of the data stream + * name. In addition to the criteria for index names, cannot contain - and must + * be no longer than 100 characters. Example values are nginx.access and + * nginx.error. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <dataset> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.dataset}} + *

+ * API name: {@code dataset} + */ + public final List dataset() { + return this.dataset; + } + + /** + * Field references or a static value for the namespace part of the data stream + * name. See the criteria for index names for allowed characters. Must be no + * longer than 100 characters. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <namespace> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.namespace}} + *

+ * API name: {@code namespace} + */ + public final List namespace() { + return this.namespace; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.destination != null) { + generator.writeKey("destination"); + generator.write(this.destination); + + } + if (ApiTypeHelper.isDefined(this.dataset)) { + generator.writeKey("dataset"); + generator.writeStartArray(); + for (String item0 : this.dataset) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.namespace)) { + generator.writeKey("namespace"); + generator.writeStartArray(); + for (String item0 : this.namespace) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RerouteProcessor}. + */ + + public static class Builder extends ProcessorBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String destination; + + @Nullable + private List dataset; + + @Nullable + private List namespace; + + /** + * A static value for the target. Can’t be set when the dataset or namespace + * option is set. + *

+ * API name: {@code destination} + */ + public final Builder destination(@Nullable String value) { + this.destination = value; + return this; + } + + /** + * Field references or a static value for the dataset part of the data stream + * name. In addition to the criteria for index names, cannot contain - and must + * be no longer than 100 characters. Example values are nginx.access and + * nginx.error. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <dataset> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.dataset}} + *

+ * API name: {@code dataset} + *

+ * Adds all elements of list to dataset. + */ + public final Builder dataset(List list) { + this.dataset = _listAddAll(this.dataset, list); + return this; + } + + /** + * Field references or a static value for the dataset part of the data stream + * name. In addition to the criteria for index names, cannot contain - and must + * be no longer than 100 characters. Example values are nginx.access and + * nginx.error. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <dataset> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.dataset}} + *

+ * API name: {@code dataset} + *

+ * Adds one or more values to dataset. + */ + public final Builder dataset(String value, String... values) { + this.dataset = _listAdd(this.dataset, value, values); + return this; + } + + /** + * Field references or a static value for the namespace part of the data stream + * name. See the criteria for index names for allowed characters. Must be no + * longer than 100 characters. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <namespace> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.namespace}} + *

+ * API name: {@code namespace} + *

+ * Adds all elements of list to namespace. + */ + public final Builder namespace(List list) { + this.namespace = _listAddAll(this.namespace, list); + return this; + } + + /** + * Field references or a static value for the namespace part of the data stream + * name. See the criteria for index names for allowed characters. Must be no + * longer than 100 characters. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <namespace> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.namespace}} + *

+ * API name: {@code namespace} + *

+ * Adds one or more values to namespace. + */ + public final Builder namespace(String value, String... values) { + this.namespace = _listAdd(this.namespace, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RerouteProcessor}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RerouteProcessor build() { + _checkSingleUse(); + + return new RerouteProcessor(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RerouteProcessor} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + RerouteProcessor::setupRerouteProcessorDeserializer); + + protected static void setupRerouteProcessorDeserializer(ObjectDeserializer op) { + ProcessorBase.setupProcessorBaseDeserializer(op); + op.add(Builder::destination, JsonpDeserializer.stringDeserializer(), "destination"); + op.add(Builder::dataset, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "dataset"); + op.add(Builder::namespace, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "namespace"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java new file mode 100644 index 000000000..ff8ca34db --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.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. + */ + +package co.elastic.clients.elasticsearch.ingest; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: ingest._types.ScriptProcessor + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ScriptProcessor extends ProcessorBase implements ProcessorVariant { + @Nullable + private final String id; + + @Nullable + private final String lang; + + private final Map params; + + @Nullable + private final String source; + + // --------------------------------------------------------------------------------------------- + + private ScriptProcessor(Builder builder) { + super(builder); + + this.id = builder.id; + this.lang = builder.lang; + this.params = ApiTypeHelper.unmodifiable(builder.params); + this.source = builder.source; + + } + + public static ScriptProcessor of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Processor variant kind. + */ + @Override + public Processor.Kind _processorKind() { + return Processor.Kind.Script; + } + + /** + * ID of a stored script. If no source is specified, this parameter + * is required. + *

+ * API name: {@code id} + */ + @Nullable + public final String id() { + return this.id; + } + + /** + * Script language. + *

+ * API name: {@code lang} + */ + @Nullable + public final String lang() { + return this.lang; + } + + /** + * Object containing parameters for the script. + *

+ * API name: {@code params} + */ + public final Map params() { + return this.params; + } + + /** + * Inline script. If no id is specified, this parameter is + * required. + *

+ * API name: {@code source} + */ + @Nullable + public final String source() { + return this.source; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.id != null) { + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.lang != null) { + generator.writeKey("lang"); + generator.write(this.lang); + + } + if (ApiTypeHelper.isDefined(this.params)) { + generator.writeKey("params"); + generator.writeStartObject(); + for (Map.Entry item0 : this.params.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.source != null) { + generator.writeKey("source"); + generator.write(this.source); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ScriptProcessor}. + */ + + public static class Builder extends ProcessorBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String id; + + @Nullable + private String lang; + + @Nullable + private Map params; + + @Nullable + private String source; + + /** + * ID of a stored script. If no source is specified, this parameter + * is required. + *

+ * API name: {@code id} + */ + public final Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * Script language. + *

+ * API name: {@code lang} + */ + public final Builder lang(@Nullable String value) { + this.lang = value; + return this; + } + + /** + * Object containing parameters for the script. + *

+ * API name: {@code params} + *

+ * Adds all entries of map to params. + */ + public final Builder params(Map map) { + this.params = _mapPutAll(this.params, map); + return this; + } + + /** + * Object containing parameters for the script. + *

+ * API name: {@code params} + *

+ * Adds an entry to params. + */ + public final Builder params(String key, JsonData value) { + this.params = _mapPut(this.params, key, value); + return this; + } + + /** + * Inline script. If no id is specified, this parameter is + * required. + *

+ * API name: {@code source} + */ + public final Builder source(@Nullable String value) { + this.source = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ScriptProcessor}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ScriptProcessor build() { + _checkSingleUse(); + + return new ScriptProcessor(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ScriptProcessor} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ScriptProcessor::setupScriptProcessorDeserializer); + + protected static void setupScriptProcessorDeserializer(ObjectDeserializer op) { + ProcessorBase.setupProcessorBaseDeserializer(op); + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::lang, JsonpDeserializer.stringDeserializer(), "lang"); + op.add(Builder::params, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "params"); + op.add(Builder::source, JsonpDeserializer.stringDeserializer(), "source"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java index 933ca1a7e..148fd4e9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java @@ -134,6 +134,19 @@ public final CompletableFuture getPipeline( return getPipeline(fn.apply(new GetPipelineRequest.Builder()).build()); } + /** + * Retrieves Logstash Pipelines used by Central Management + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getPipeline() { + return this.transport.performRequestAsync(new GetPipelineRequest.Builder().build(), + GetPipelineRequest._ENDPOINT, this.transportOptions); + } + // ----- Endpoint: logstash.put_pipeline /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java index 226ce0313..5b762f278 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java @@ -134,6 +134,19 @@ public final GetPipelineResponse getPipeline( return getPipeline(fn.apply(new GetPipelineRequest.Builder()).build()); } + /** + * Retrieves Logstash Pipelines used by Central Management + * + * @see Documentation + * on elastic.co + */ + + public GetPipelineResponse getPipeline() throws IOException, ElasticsearchException { + return this.transport.performRequest(new GetPipelineRequest.Builder().build(), GetPipelineRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: logstash.put_pipeline /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java index 953b6a522..bedf522d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java @@ -71,7 +71,7 @@ public class GetPipelineRequest extends RequestBase { private GetPipelineRequest(Builder builder) { - this.id = ApiTypeHelper.unmodifiableRequired(builder.id, this, "id"); + this.id = ApiTypeHelper.unmodifiable(builder.id); } @@ -80,7 +80,7 @@ public static GetPipelineRequest of(Function * API name: {@code id} */ @@ -97,10 +97,11 @@ public final List id() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable private List id; /** - * Required - Comma-separated list of pipeline identifiers. + * Comma-separated list of pipeline identifiers. *

* API name: {@code id} *

@@ -112,7 +113,7 @@ public final Builder id(List list) { } /** - * Required - Comma-separated list of pipeline identifiers. + * Comma-separated list of pipeline identifiers. *

* API name: {@code id} *

@@ -161,7 +162,8 @@ public GetPipelineRequest build() { int propsSet = 0; - propsSet |= _id; + if (ApiTypeHelper.isDefined(request.id())) + propsSet |= _id; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -188,7 +190,8 @@ public GetPipelineRequest build() { int propsSet = 0; - propsSet |= _id; + if (ApiTypeHelper.isDefined(request.id())) + propsSet |= _id; if (propsSet == 0) { } 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 7424f0532..933adbbc7 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 @@ -100,6 +100,9 @@ public class PutTrainedModelRequest extends RequestBase implements JsonpSerializ @Nullable private final TrainedModelType modelType; + @Nullable + private final String platformArchitecture; + private final List tags; // --------------------------------------------------------------------------------------------- @@ -116,6 +119,7 @@ private PutTrainedModelRequest(Builder builder) { this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); this.modelSizeBytes = builder.modelSizeBytes; this.modelType = builder.modelType; + this.platformArchitecture = builder.platformArchitecture; this.tags = ApiTypeHelper.unmodifiable(builder.tags); } @@ -233,6 +237,24 @@ public final TrainedModelType modelType() { return this.modelType; } + /** + * The platform architecture (if applicable) of the trained mode. If the model + * only works on one platform, because it is heavily optimized for a particular + * processor architecture and OS combination, then this field specifies which. + * The format of the string must match the platform identifiers used by + * Elasticsearch, so one of, linux-x86_64, + * linux-aarch64, darwin-x86_64, + * darwin-aarch64, or windows-x86_64. For portable + * models (those that work independent of processor architecture or OS + * features), leave this field unset. + *

+ * API name: {@code platform_architecture} + */ + @Nullable + public final String platformArchitecture() { + return this.platformArchitecture; + } + /** * An array of tags to organize the model. *

@@ -292,6 +314,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("model_type"); this.modelType.serialize(generator, mapper); } + if (this.platformArchitecture != null) { + generator.writeKey("platform_architecture"); + generator.write(this.platformArchitecture); + + } if (ApiTypeHelper.isDefined(this.tags)) { generator.writeKey("tags"); generator.writeStartArray(); @@ -343,6 +370,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private TrainedModelType modelType; + @Nullable + private String platformArchitecture; + @Nullable private List tags; @@ -488,6 +518,24 @@ public final Builder modelType(@Nullable TrainedModelType value) { return this; } + /** + * The platform architecture (if applicable) of the trained mode. If the model + * only works on one platform, because it is heavily optimized for a particular + * processor architecture and OS combination, then this field specifies which. + * The format of the string must match the platform identifiers used by + * Elasticsearch, so one of, linux-x86_64, + * linux-aarch64, darwin-x86_64, + * darwin-aarch64, or windows-x86_64. For portable + * models (those that work independent of processor architecture or OS + * features), leave this field unset. + *

+ * API name: {@code platform_architecture} + */ + public final Builder platformArchitecture(@Nullable String value) { + this.platformArchitecture = value; + return this; + } + /** * An array of tags to organize the model. *

@@ -549,6 +597,7 @@ protected static void setupPutTrainedModelRequestDeserializer( op.add(Builder::metadata, JsonData._DESERIALIZER, "metadata"); op.add(Builder::modelSizeBytes, JsonpDeserializer.longDeserializer(), "model_size_bytes"); op.add(Builder::modelType, TrainedModelType._DESERIALIZER, "model_type"); + op.add(Builder::platformArchitecture, JsonpDeserializer.stringDeserializer(), "platform_architecture"); op.add(Builder::tags, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "tags"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java index 8c9fc72ee..04b60e764 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java @@ -32,6 +32,7 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.lang.Double; import java.lang.String; import java.util.Collections; import java.util.HashMap; @@ -74,6 +75,8 @@ public class PutTrainedModelVocabularyRequest extends RequestBase implements Jso private final String modelId; + private final List scores; + private final List vocabulary; // --------------------------------------------------------------------------------------------- @@ -82,6 +85,7 @@ private PutTrainedModelVocabularyRequest(Builder builder) { this.merges = ApiTypeHelper.unmodifiable(builder.merges); this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.scores = ApiTypeHelper.unmodifiable(builder.scores); this.vocabulary = ApiTypeHelper.unmodifiableRequired(builder.vocabulary, this, "vocabulary"); } @@ -109,6 +113,15 @@ public final String modelId() { return this.modelId; } + /** + * The optional vocabulary value scores if required by the tokenizer. + *

+ * API name: {@code scores} + */ + public final List scores() { + return this.scores; + } + /** * Required - The model vocabulary, which must not be empty. *

@@ -138,6 +151,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + } + if (ApiTypeHelper.isDefined(this.scores)) { + generator.writeKey("scores"); + generator.writeStartArray(); + for (Double item0 : this.scores) { + generator.write(item0); + + } + generator.writeEnd(); + } if (ApiTypeHelper.isDefined(this.vocabulary)) { generator.writeKey("vocabulary"); @@ -166,6 +189,9 @@ public static class Builder extends RequestBase.AbstractBuilder private String modelId; + @Nullable + private List scores; + private List vocabulary; /** @@ -202,6 +228,30 @@ public final Builder modelId(String value) { return this; } + /** + * The optional vocabulary value scores if required by the tokenizer. + *

+ * API name: {@code scores} + *

+ * Adds all elements of list to scores. + */ + public final Builder scores(List list) { + this.scores = _listAddAll(this.scores, list); + return this; + } + + /** + * The optional vocabulary value scores if required by the tokenizer. + *

+ * API name: {@code scores} + *

+ * Adds one or more values to scores. + */ + public final Builder scores(Double value, Double... values) { + this.scores = _listAdd(this.scores, value, values); + return this; + } + /** * Required - The model vocabulary, which must not be empty. *

@@ -256,6 +306,7 @@ protected static void setupPutTrainedModelVocabularyRequestDeserializer( ObjectDeserializer op) { op.add(Builder::merges, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "merges"); + op.add(Builder::scores, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.doubleDeserializer()), "scores"); op.add(Builder::vocabulary, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "vocabulary"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java index 695b6ea56..416988bac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java @@ -69,6 +69,9 @@ public class StartTrainedModelDeploymentRequest extends RequestBase { @Nullable private final String cacheSize; + @Nullable + private final String deploymentId; + private final String modelId; @Nullable @@ -94,6 +97,7 @@ public class StartTrainedModelDeploymentRequest extends RequestBase { private StartTrainedModelDeploymentRequest(Builder builder) { this.cacheSize = builder.cacheSize; + this.deploymentId = builder.deploymentId; this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); this.numberOfAllocations = builder.numberOfAllocations; this.priority = builder.priority; @@ -122,6 +126,16 @@ public final String cacheSize() { return this.cacheSize; } + /** + * A unique identifier for the deployment of the model. + *

+ * API name: {@code deployment_id} + */ + @Nullable + public final String deploymentId() { + return this.deploymentId; + } + /** * Required - The unique identifier of the trained model. Currently, only * PyTorch models are supported. @@ -216,6 +230,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String cacheSize; + @Nullable + private String deploymentId; + private String modelId; @Nullable @@ -249,6 +266,16 @@ public final Builder cacheSize(@Nullable String value) { return this; } + /** + * A unique identifier for the deployment of the model. + *

+ * API name: {@code deployment_id} + */ + public final Builder deploymentId(@Nullable String value) { + this.deploymentId = value; + return this; + } + /** * Required - The unique identifier of the trained model. Currently, only * PyTorch models are supported. @@ -419,6 +446,9 @@ public StartTrainedModelDeploymentRequest build() { if (request.threadsPerAllocation != null) { params.put("threads_per_allocation", String.valueOf(request.threadsPerAllocation)); } + if (request.deploymentId != null) { + params.put("deployment_id", request.deploymentId); + } if (request.waitFor != null) { params.put("wait_for", request.waitFor.jsonValue()); } 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 3f4d746c5..7340a8e2f 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 @@ -114,6 +114,9 @@ public class TrainedModelConfig implements JsonpSerializable { @Nullable private final TrainedModelLocation location; + @Nullable + private final TrainedModelPrefixStrings prefixStrings; + // --------------------------------------------------------------------------------------------- protected TrainedModelConfig(AbstractBuilder builder) { @@ -136,6 +139,7 @@ protected TrainedModelConfig(AbstractBuilder builder) { this.metadata = builder.metadata; this.modelSizeBytes = builder.modelSizeBytes; this.location = builder.location; + this.prefixStrings = builder.prefixStrings; } @@ -318,6 +322,14 @@ public final TrainedModelLocation location() { return this.location; } + /** + * API name: {@code prefix_strings} + */ + @Nullable + public final TrainedModelPrefixStrings prefixStrings() { + return this.prefixStrings; + } + /** * Serialize this object to JSON. */ @@ -424,6 +436,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.location.serialize(generator, mapper); } + if (this.prefixStrings != null) { + generator.writeKey("prefix_strings"); + this.prefixStrings.serialize(generator, mapper); + + } } @@ -513,6 +530,9 @@ public abstract static class AbstractBuilder @@ -762,6 +782,22 @@ public final BuilderT location(Function> fn) { + return this.prefixStrings(fn.apply(new TrainedModelPrefixStrings.Builder()).build()); + } + protected abstract BuilderT self(); } @@ -798,6 +834,7 @@ protected static > void setupTrainedM op.add(AbstractBuilder::metadata, TrainedModelConfigMetadata._DESERIALIZER, "metadata"); op.add(AbstractBuilder::modelSizeBytes, JsonpDeserializer.stringDeserializer(), "model_size_bytes"); op.add(AbstractBuilder::location, TrainedModelLocation._DESERIALIZER, "location"); + op.add(AbstractBuilder::prefixStrings, TrainedModelPrefixStrings._DESERIALIZER, "prefix_strings"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java new file mode 100644 index 000000000..4055149d4 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java @@ -0,0 +1,189 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.ml; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: ml._types.TrainedModelPrefixStrings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TrainedModelPrefixStrings implements JsonpSerializable { + private final String ingest; + + private final String search; + + // --------------------------------------------------------------------------------------------- + + private TrainedModelPrefixStrings(Builder builder) { + + this.ingest = ApiTypeHelper.requireNonNull(builder.ingest, this, "ingest"); + this.search = ApiTypeHelper.requireNonNull(builder.search, this, "search"); + + } + + public static TrainedModelPrefixStrings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - String prepended to input at ingest + *

+ * API name: {@code ingest} + */ + public final String ingest() { + return this.ingest; + } + + /** + * Required - String prepended to input at search + *

+ * API name: {@code search} + */ + public final String search() { + return this.search; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("ingest"); + generator.write(this.ingest); + + generator.writeKey("search"); + generator.write(this.search); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TrainedModelPrefixStrings}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String ingest; + + private String search; + + /** + * Required - String prepended to input at ingest + *

+ * API name: {@code ingest} + */ + public final Builder ingest(String value) { + this.ingest = value; + return this; + } + + /** + * Required - String prepended to input at search + *

+ * API name: {@code search} + */ + public final Builder search(String value) { + this.search = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TrainedModelPrefixStrings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TrainedModelPrefixStrings build() { + _checkSingleUse(); + + return new TrainedModelPrefixStrings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TrainedModelPrefixStrings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TrainedModelPrefixStrings::setupTrainedModelPrefixStringsDeserializer); + + protected static void setupTrainedModelPrefixStringsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::ingest, JsonpDeserializer.stringDeserializer(), "ingest"); + op.add(Builder::search, JsonpDeserializer.stringDeserializer(), "search"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java index 9d2035f34..986b3f087 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java @@ -32,10 +32,10 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import jakarta.json.stream.JsonParser; import java.lang.String; 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; @@ -66,16 +66,16 @@ */ @JsonpDeserializable public class PutRequest extends RequestBase implements JsonpSerializable { - private final String rulesetId; + private final List rules; - private final QueryRuleset queryRuleset; + private final String rulesetId; // --------------------------------------------------------------------------------------------- private PutRequest(Builder builder) { + this.rules = ApiTypeHelper.unmodifiableRequired(builder.rules, this, "rules"); this.rulesetId = ApiTypeHelper.requireNonNull(builder.rulesetId, this, "rulesetId"); - this.queryRuleset = ApiTypeHelper.requireNonNull(builder.queryRuleset, this, "queryRuleset"); } @@ -83,6 +83,13 @@ public static PutRequest of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * Required - API name: {@code rules} + */ + public final List rules() { + return this.rules; + } + /** * Required - The unique identifier of the query ruleset to be created or * updated @@ -94,17 +101,26 @@ public final String rulesetId() { } /** - * Required - Request body. + * Serialize this object to JSON. */ - public final QueryRuleset queryRuleset() { - return this.queryRuleset; + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); } - /** - * Serialize this value to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - this.queryRuleset.serialize(generator, mapper); + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.rules)) { + generator.writeKey("rules"); + generator.writeStartArray(); + for (QueryRule item0 : this.rules) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } } @@ -115,42 +131,48 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - private String rulesetId; + private List rules; - private QueryRuleset queryRuleset; + private String rulesetId; /** - * Required - The unique identifier of the query ruleset to be created or - * updated + * Required - API name: {@code rules} *

- * API name: {@code ruleset_id} + * Adds all elements of list to rules. */ - public final Builder rulesetId(String value) { - this.rulesetId = value; + public final Builder rules(List list) { + this.rules = _listAddAll(this.rules, list); return this; } /** - * Required - Request body. + * Required - API name: {@code rules} + *

+ * Adds one or more values to rules. */ - public final Builder queryRuleset(QueryRuleset value) { - this.queryRuleset = value; + public final Builder rules(QueryRule value, QueryRule... values) { + this.rules = _listAdd(this.rules, value, values); return this; } /** - * Required - Request body. + * Required - API name: {@code rules} + *

+ * Adds a value to rules using a builder lambda. */ - public final Builder queryRuleset(Function> fn) { - return this.queryRuleset(fn.apply(new QueryRuleset.Builder()).build()); + public final Builder rules(Function> fn) { + return rules(fn.apply(new QueryRule.Builder()).build()); } - @Override - public Builder withJson(JsonParser parser, JsonpMapper mapper) { - - @SuppressWarnings("unchecked") - QueryRuleset value = (QueryRuleset) QueryRuleset._DESERIALIZER.deserialize(parser, mapper); - return this.queryRuleset(value); + /** + * Required - The unique identifier of the query ruleset to be created or + * updated + *

+ * API name: {@code ruleset_id} + */ + public final Builder rulesetId(String value) { + this.rulesetId = value; + return this; } @Override @@ -171,13 +193,18 @@ public PutRequest build() { } } - public static final JsonpDeserializer _DESERIALIZER = createPutRequestDeserializer(); - protected static JsonpDeserializer createPutRequestDeserializer() { + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutRequest::setupPutRequestDeserializer); + + protected static void setupPutRequestDeserializer(ObjectDeserializer op) { - JsonpDeserializer valueDeserializer = QueryRuleset._DESERIALIZER; + op.add(Builder::rules, JsonpDeserializer.arrayDeserializer(QueryRule._DESERIALIZER), "rules"); - return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() - .queryRuleset(valueDeserializer.deserialize(parser, mapper, event)).build()); } // --------------------------------------------------------------------------------------------- diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleset.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleset.java index c395945ab..6292a7ae5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleset.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleset.java @@ -59,8 +59,8 @@ * "../doc-files/api-spec.html#query_ruleset._types.QueryRuleset">API * specification */ -@JsonpDeserializable -public class QueryRuleset implements JsonpSerializable { + +public abstract class QueryRuleset implements JsonpSerializable { private final String rulesetId; private final List rules; @@ -74,10 +74,6 @@ protected QueryRuleset(AbstractBuilder builder) { } - public static QueryRuleset queryRulesetOf(Function> fn) { - return fn.apply(new Builder()).build(); - } - /** * Required - Query Ruleset unique identifier *

@@ -128,31 +124,6 @@ public String toString() { return JsonpUtils.toString(this); } - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link QueryRuleset}. - */ - - public static class Builder extends QueryRuleset.AbstractBuilder implements ObjectBuilder { - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link QueryRuleset}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public QueryRuleset build() { - _checkSingleUse(); - - return new QueryRuleset(this); - } - } - public abstract static class AbstractBuilder> extends WithJsonObjectBuilderBase { @@ -210,13 +181,6 @@ public final BuilderT rules(Function } // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link QueryRuleset} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - QueryRuleset::setupQueryRulesetDeserializer); - protected static > void setupQueryRulesetDeserializer( ObjectDeserializer op) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java index 7cca7673f..2ed833b94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java @@ -74,7 +74,7 @@ public static AnalyticsCollection of(Function * API name: {@code event_data_stream} */ @@ -115,7 +115,7 @@ public static class Builder extends WithJsonObjectBuilderBase private EventDataStream eventDataStream; /** - * Required - Data stream for the collection + * Required - Data stream for the collection. *

* API name: {@code event_data_stream} */ @@ -125,7 +125,7 @@ public final Builder eventDataStream(EventDataStream value) { } /** - * Required - Data stream for the collection + * Required - Data stream for the collection. *

* API name: {@code event_data_stream} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java index 75253d33f..60e770e46 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java @@ -75,7 +75,7 @@ public ElasticsearchSearchApplicationAsyncClient withTransportOptions(@Nullable * Deletes a search application. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html">Documentation * on elastic.co */ @@ -93,7 +93,7 @@ public CompletableFuture delete(DeleteSearchApp * a function that initializes a builder to create the * {@link DeleteSearchApplicationRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java index 996756435..56b722362 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java @@ -76,7 +76,7 @@ public ElasticsearchSearchApplicationClient withTransportOptions(@Nullable Trans * Deletes a search application. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html">Documentation * on elastic.co */ @@ -95,7 +95,7 @@ public DeleteSearchApplicationResponse delete(DeleteSearchApplicationRequest req * a function that initializes a builder to create the * {@link DeleteSearchApplicationRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java index cf83cc73a..4ed4c98e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java @@ -87,7 +87,7 @@ public static ListRequest of(Function> fn) { } /** - * Starting offset (default: 0) + * Starting offset. *

* API name: {@code from} */ @@ -97,7 +97,7 @@ public final Integer from() { } /** - * Query in the Lucene query string syntax" + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -107,7 +107,7 @@ public final String q() { } /** - * specifies a max number of results to get + * Specifies a max number of results to get. *

* API name: {@code size} */ @@ -133,7 +133,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Integer size; /** - * Starting offset (default: 0) + * Starting offset. *

* API name: {@code from} */ @@ -143,7 +143,7 @@ public final Builder from(@Nullable Integer value) { } /** - * Query in the Lucene query string syntax" + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -153,7 +153,7 @@ public final Builder q(@Nullable String value) { } /** - * specifies a max number of results to get + * Specifies a max number of results to get. *

* API name: {@code size} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java index 6473703b6..110e36e92 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java @@ -56,7 +56,7 @@ // typedef: search_application.put_behavioral_analytics.Request /** - * Creates a behavioral analytics collection + * Creates a behavioral analytics collection. * * @see API @@ -79,7 +79,7 @@ public static PutBehavioralAnalyticsRequest of(Function * API name: {@code name} */ @@ -99,7 +99,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; /** - * Required - The name of the analytics collection to be created or updated + * Required - The name of the analytics collection to be created or updated. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java index 182f2c878..57a8ee602 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java @@ -88,8 +88,8 @@ public static PutRequest of(Function> fn) { } /** - * If true, requires that a search application with the specified resource_id - * does not already exist. (default: false) + * If true, this request cannot replace or update existing Search + * Applications. *

* API name: {@code create} */ @@ -99,7 +99,7 @@ public final Boolean create() { } /** - * Required - The name of the search application to be created or updated + * Required - The name of the search application to be created or updated. *

* API name: {@code name} */ @@ -137,8 +137,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private SearchApplication searchApplication; /** - * If true, requires that a search application with the specified resource_id - * does not already exist. (default: false) + * If true, this request cannot replace or update existing Search + * Applications. *

* API name: {@code create} */ @@ -148,7 +148,7 @@ public final Builder create(@Nullable Boolean value) { } /** - * Required - The name of the search application to be created or updated + * Required - The name of the search application to be created or updated. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java index 3b58e5b15..0e34c6ab7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java @@ -91,7 +91,7 @@ public static SearchApplication searchApplicationOf(Function * API name: {@code name} */ @@ -100,7 +100,7 @@ public final String name() { } /** - * Required - Indices that are part of the Search Application + * Required - Indices that are part of the Search Application. *

* API name: {@code indices} */ @@ -109,7 +109,7 @@ public final List indices() { } /** - * Required - Last time the Search Application was updated + * Required - Last time the Search Application was updated. *

* API name: {@code updated_at_millis} */ @@ -118,7 +118,7 @@ public final long updatedAtMillis() { } /** - * Analytics collection associated to the Search Application + * Analytics collection associated to the Search Application. *

* API name: {@code analytics_collection_name} */ @@ -128,7 +128,7 @@ public final String analyticsCollectionName() { } /** - * Search template to use on search operations + * Search template to use on search operations. *

* API name: {@code template} */ @@ -225,7 +225,7 @@ public abstract static class AbstractBuilder * API name: {@code name} */ @@ -235,7 +235,7 @@ public final BuilderT name(String value) { } /** - * Required - Indices that are part of the Search Application + * Required - Indices that are part of the Search Application. *

* API name: {@code indices} *

@@ -247,7 +247,7 @@ public final BuilderT indices(List list) { } /** - * Required - Indices that are part of the Search Application + * Required - Indices that are part of the Search Application. *

* API name: {@code indices} *

@@ -259,7 +259,7 @@ public final BuilderT indices(String value, String... values) { } /** - * Required - Last time the Search Application was updated + * Required - Last time the Search Application was updated. *

* API name: {@code updated_at_millis} */ @@ -269,7 +269,7 @@ public final BuilderT updatedAtMillis(long value) { } /** - * Analytics collection associated to the Search Application + * Analytics collection associated to the Search Application. *

* API name: {@code analytics_collection_name} */ @@ -279,7 +279,7 @@ public final BuilderT analyticsCollectionName(@Nullable String value) { } /** - * Search template to use on search operations + * Search template to use on search operations. *

* API name: {@code template} */ @@ -289,7 +289,7 @@ public final BuilderT template(@Nullable SearchApplicationTemplate value) { } /** - * Search template to use on search operations + * Search template to use on search operations. *

* API name: {@code template} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java index 1bbe47ba0..aa6834253 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java @@ -59,7 +59,7 @@ // typedef: search_application.search.Request /** - * Perform a search against a search application + * Perform a search against a search application. * * @see API @@ -86,7 +86,7 @@ public static SearchApplicationSearchRequest of( } /** - * Required - The name of the search application to be searched + * Required - The name of the search application to be searched. *

* API name: {@code name} */ @@ -95,6 +95,9 @@ public final String name() { } /** + * Query parameters specific to this request, which will override any defaults + * specified in the template. + *

* API name: {@code params} */ public final Map params() { @@ -141,7 +144,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Map params; /** - * Required - The name of the search application to be searched + * Required - The name of the search application to be searched. *

* API name: {@code name} */ @@ -151,6 +154,9 @@ public final Builder name(String value) { } /** + * Query parameters specific to this request, which will override any defaults + * specified in the template. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -161,6 +167,9 @@ public final Builder params(Map map) { } /** + * Query parameters specific to this request, which will override any defaults + * specified in the template. + *

* API name: {@code params} *

* Adds an entry to params. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java index 84e8c1500..eb23a20d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java @@ -75,7 +75,9 @@ public static SearchApplicationTemplate of(Function + * API name: {@code script} */ public final InlineScript script() { return this.script; @@ -114,7 +116,9 @@ public static class Builder extends WithJsonObjectBuilderBase private InlineScript script; /** - * Required - API name: {@code script} + * Required - The associated mustache template. + *

+ * API name: {@code script} */ public final Builder script(InlineScript value) { this.script = value; @@ -122,7 +126,9 @@ public final Builder script(InlineScript value) { } /** - * Required - API name: {@code script} + * Required - The associated mustache template. + *

+ * API name: {@code script} */ public final Builder script(Function> fn) { return this.script(fn.apply(new InlineScript.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java index 0d29c1b2f..f0b08b58c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java @@ -35,6 +35,7 @@ import java.lang.Boolean; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; @@ -547,6 +548,66 @@ public final Builder sort(FieldValue value, FieldValue... values) { return this; } + /** + * API name: {@code _sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(String value, String... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code _sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(long value, long... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code _sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(double value, double... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code _sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(boolean value, boolean... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + /** * API name: {@code _sort} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRule.java index 1c4346e0f..2fd224224 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRule.java @@ -30,7 +30,7 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.TaggedUnion; +import co.elastic.clients.util.OpenTaggedUnion; import co.elastic.clients.util.TaggedUnionUtils; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; @@ -64,7 +64,7 @@ * specification */ @JsonpDeserializable -public class FieldRule implements TaggedUnion, RoleMappingRuleVariant, JsonpSerializable { +public class FieldRule implements OpenTaggedUnion, RoleMappingRuleVariant, JsonpSerializable { /** * {@link FieldRule} variant kinds. @@ -80,9 +80,8 @@ public enum Kind implements JsonEnum { Groups("groups"), - Metadata("metadata"), - - Realm("realm"), + /** A custom {@code FieldRule} defined by a plugin */ + _Custom(null) ; @@ -123,6 +122,7 @@ public FieldRule(FieldRuleVariant value) { this._kind = ApiTypeHelper.requireNonNull(value._fieldRuleKind(), this, ""); this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; } @@ -130,6 +130,7 @@ private FieldRule(Builder builder) { this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + this._customKind = builder._customKind; } @@ -150,7 +151,7 @@ public boolean isUsername() { * @throws IllegalStateException * if the current variant is not of the {@code username} kind. */ - public String username() { + public List username() { return TaggedUnionUtils.get(this, Kind.Username); } @@ -188,38 +189,33 @@ public List groups() { return TaggedUnionUtils.get(this, Kind.Groups); } - /** - * Is this variant instance of kind {@code metadata}? - */ - public boolean isMetadata() { - return _kind == Kind.Metadata; - } + @Nullable + private final String _customKind; /** - * Get the {@code metadata} variant value. - * - * @throws IllegalStateException - * if the current variant is not of the {@code metadata} kind. + * Is this a custom {@code FieldRule} defined by a plugin? */ - public JsonData metadata() { - return TaggedUnionUtils.get(this, Kind.Metadata); + public boolean _isCustom() { + return _kind == Kind._Custom; } /** - * Is this variant instance of kind {@code realm}? + * Get the actual kind when {@code _kind()} equals {@link Kind#_Custom} + * (plugin-defined variant). */ - public boolean isRealm() { - return _kind == Kind.Realm; + @Nullable + public final String _customKind() { + return _customKind; } /** - * Get the {@code realm} variant value. + * Get the custom plugin-defined variant value. * * @throws IllegalStateException - * if the current variant is not of the {@code realm} kind. + * if the current variant is not {@link Kind#_Custom}. */ - public Realm realm() { - return TaggedUnionUtils.get(this, Kind.Realm); + public JsonData _custom() { + return TaggedUnionUtils.get(this, Kind._Custom); } @Override @@ -228,13 +224,18 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { generator.writeStartObject(); - generator.writeKey(_kind.jsonValue()); + generator.writeKey(_kind == Kind._Custom ? _customKind : _kind.jsonValue()); if (_value instanceof JsonpSerializable) { ((JsonpSerializable) _value).serialize(generator, mapper); } else { switch (_kind) { case Username : - generator.write(((String) this._value)); + generator.writeStartArray(); + for (String item0 : ((List) this._value)) { + generator.write(item0); + + } + generator.writeEnd(); break; case Dn : @@ -254,10 +255,6 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); - break; - case Metadata : - ((JsonData) this._value).serialize(generator, mapper); - break; } } @@ -274,12 +271,13 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Kind _kind; private Object _value; + private String _customKind; @Override protected Builder self() { return this; } - public ObjectBuilder username(String v) { + public ObjectBuilder username(List v) { this._kind = Kind.Username; this._value = v; return this; @@ -297,22 +295,22 @@ public ObjectBuilder groups(List v) { return this; } - public ObjectBuilder metadata(JsonData v) { - this._kind = Kind.Metadata; - this._value = v; + /** + * Define this {@code FieldRule} as a plugin-defined variant. + * + * @param name + * the plugin-defined identifier + * @param data + * the data for this custom {@code FieldRule}. It is converted + * internally to {@link JsonData}. + */ + public ObjectBuilder _custom(String name, Object data) { + this._kind = Kind._Custom; + this._customKind = name; + this._value = JsonData.of(data); return this; } - public ObjectBuilder realm(Realm v) { - this._kind = Kind.Realm; - this._value = v; - return this; - } - - public ObjectBuilder realm(Function> fn) { - return this.realm(fn.apply(new Realm.Builder()).build()); - } - public FieldRule build() { _checkSingleUse(); return new FieldRule(this); @@ -322,11 +320,15 @@ public FieldRule build() { protected static void setupFieldRuleDeserializer(ObjectDeserializer op) { - op.add(Builder::username, JsonpDeserializer.stringDeserializer(), "username"); + op.add(Builder::username, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "username"); op.add(Builder::dn, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "dn"); op.add(Builder::groups, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "groups"); - op.add(Builder::metadata, JsonData._DESERIALIZER, "metadata"); - op.add(Builder::realm, Realm._DESERIALIZER, "realm"); + + op.setUnknownFieldHandler((builder, name, parser, mapper) -> { + JsonpUtils.ensureCustomVariantsAllowed(parser, mapper); + builder._custom(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); + }); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRuleBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRuleBuilders.java index 45f1de17f..a0296ff7e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRuleBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldRuleBuilders.java @@ -41,29 +41,13 @@ /** * Builders for {@link FieldRule} variants. *

- * Variants username, dn, groups, - * metadata are not available here as they don't have a dedicated - * class. Use {@link FieldRule}'s builder for these. + * Variants username, dn, groups are not + * available here as they don't have a dedicated class. Use {@link FieldRule}'s + * builder for these. * */ public class FieldRuleBuilders { private FieldRuleBuilders() { } - /** - * Creates a builder for the {@link Realm realm} {@code FieldRule} variant. - */ - public static Realm.Builder realm() { - return new Realm.Builder(); - } - - /** - * Creates a FieldRule of the {@link Realm realm} {@code FieldRule} variant. - */ - public static FieldRule realm(Function> fn) { - FieldRule.Builder builder = new FieldRule.Builder(); - builder.realm(fn.apply(new Realm.Builder()).build()); - return builder.build(); - } - } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java index 10d1f1df5..4c2b575e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java @@ -68,6 +68,9 @@ */ public class GetApiKeyRequest extends RequestBase { + @Nullable + private final Boolean activeOnly; + @Nullable private final String id; @@ -90,6 +93,7 @@ public class GetApiKeyRequest extends RequestBase { private GetApiKeyRequest(Builder builder) { + this.activeOnly = builder.activeOnly; this.id = builder.id; this.name = builder.name; this.owner = builder.owner; @@ -103,6 +107,21 @@ public static GetApiKeyRequest of(Functionowner or name. If active_only is + * false, the response will include both active and inactive (expired or + * invalidated) keys. + *

+ * API name: {@code active_only} + */ + @Nullable + public final Boolean activeOnly() { + return this.activeOnly; + } + /** * An API key id. This parameter cannot be used with any of name, * realm_name or username. @@ -184,6 +203,9 @@ public final Boolean withLimitedBy() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean activeOnly; + @Nullable private String id; @@ -202,6 +224,21 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean withLimitedBy; + /** + * A boolean flag that can be used to query API keys that are currently active. + * An API key is considered active if it is neither invalidated, nor expired at + * query time. You can specify this together with other parameters such as + * owner or name. If active_only is + * false, the response will include both active and inactive (expired or + * invalidated) keys. + *

+ * API name: {@code active_only} + */ + public final Builder activeOnly(@Nullable Boolean value) { + this.activeOnly = value; + return this; + } + /** * An API key id. This parameter cannot be used with any of name, * realm_name or username. @@ -323,6 +360,9 @@ public GetApiKeyRequest build() { if (request.owner != null) { params.put("owner", String.valueOf(request.owner)); } + if (request.activeOnly != null) { + params.put("active_only", String.valueOf(request.activeOnly)); + } if (request.name != null) { params.put("name", request.name); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java index c3ecab999..392e380eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java @@ -79,6 +79,8 @@ public class PutRoleMappingRequest extends RequestBase implements JsonpSerializa @Nullable private final Refresh refresh; + private final List roleTemplates; + private final List roles; @Nullable @@ -94,6 +96,7 @@ private PutRoleMappingRequest(Builder builder) { this.metadata = ApiTypeHelper.unmodifiable(builder.metadata); this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); this.refresh = builder.refresh; + this.roleTemplates = ApiTypeHelper.unmodifiable(builder.roleTemplates); this.roles = ApiTypeHelper.unmodifiable(builder.roles); this.rules = builder.rules; this.runAs = ApiTypeHelper.unmodifiable(builder.runAs); @@ -141,6 +144,13 @@ public final Refresh refresh() { return this.refresh; } + /** + * API name: {@code role_templates} + */ + public final List roleTemplates() { + return this.roleTemplates; + } + /** * API name: {@code roles} */ @@ -189,6 +199,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + } + if (ApiTypeHelper.isDefined(this.roleTemplates)) { + generator.writeKey("role_templates"); + generator.writeStartArray(); + for (RoleTemplate item0 : this.roleTemplates) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + } if (ApiTypeHelper.isDefined(this.roles)) { generator.writeKey("roles"); @@ -238,6 +258,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Refresh refresh; + @Nullable + private List roleTemplates; + @Nullable private List roles; @@ -298,6 +321,35 @@ public final Builder refresh(@Nullable Refresh value) { return this; } + /** + * API name: {@code role_templates} + *

+ * Adds all elements of list to roleTemplates. + */ + public final Builder roleTemplates(List list) { + this.roleTemplates = _listAddAll(this.roleTemplates, list); + return this; + } + + /** + * API name: {@code role_templates} + *

+ * Adds one or more values to roleTemplates. + */ + public final Builder roleTemplates(RoleTemplate value, RoleTemplate... values) { + this.roleTemplates = _listAdd(this.roleTemplates, value, values); + return this; + } + + /** + * API name: {@code role_templates} + *

+ * Adds a value to roleTemplates using a builder lambda. + */ + public final Builder roleTemplates(Function> fn) { + return roleTemplates(fn.apply(new RoleTemplate.Builder()).build()); + } + /** * API name: {@code roles} *

@@ -383,6 +435,8 @@ protected static void setupPutRoleMappingRequestDeserializer(ObjectDeserializer< op.add(Builder::enabled, JsonpDeserializer.booleanDeserializer(), "enabled"); op.add(Builder::metadata, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "metadata"); + op.add(Builder::roleTemplates, JsonpDeserializer.arrayDeserializer(RoleTemplate._DESERIALIZER), + "role_templates"); op.add(Builder::roles, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "roles"); op.add(Builder::rules, RoleMappingRule._DESERIALIZER, "rules"); op.add(Builder::runAs, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "run_as"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java index f526fc835..954a534f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java @@ -37,6 +37,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.Integer; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; @@ -313,6 +314,74 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * Search after definition + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Search after definition + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Search after definition + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Search after definition + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * Search after definition *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java index 943f61b6e..7dbedb5b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java @@ -19,7 +19,6 @@ package co.elastic.clients.elasticsearch.security; -import co.elastic.clients.elasticsearch.security.get_role.RoleTemplate; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/RoleTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplate.java similarity index 96% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/RoleTemplate.java rename to java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplate.java index b74c2225f..7bca0e042 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/RoleTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplate.java @@ -17,7 +17,7 @@ * under the License. */ -package co.elastic.clients.elasticsearch.security.get_role; +package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.Script; import co.elastic.clients.json.JsonpDeserializable; @@ -50,12 +50,11 @@ // //---------------------------------------------------------------- -// typedef: security.get_role.RoleTemplate +// typedef: security._types.RoleTemplate /** * - * @see API + * @see API * specification */ @JsonpDeserializable diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/TemplateFormat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TemplateFormat.java similarity index 92% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/TemplateFormat.java rename to java-client/src/main/java/co/elastic/clients/elasticsearch/security/TemplateFormat.java index e9db04577..e2cd9dd33 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/TemplateFormat.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TemplateFormat.java @@ -17,7 +17,7 @@ * under the License. */ -package co.elastic.clients.elasticsearch.security.get_role; +package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; @@ -40,8 +40,7 @@ /** * - * @see API + * @see API * specification */ @JsonpDeserializable diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java index 621267e6b..fbaff3b85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java @@ -21,6 +21,7 @@ import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -83,6 +84,9 @@ */ @JsonpDeserializable public class UpdateApiKeyRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final Time expiration; + private final String id; private final Map metadata; @@ -93,6 +97,7 @@ public class UpdateApiKeyRequest extends RequestBase implements JsonpSerializabl private UpdateApiKeyRequest(Builder builder) { + this.expiration = builder.expiration; this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); this.metadata = ApiTypeHelper.unmodifiable(builder.metadata); this.roleDescriptors = ApiTypeHelper.unmodifiable(builder.roleDescriptors); @@ -103,6 +108,16 @@ public static UpdateApiKeyRequest of(Function + * API name: {@code expiration} + */ + @Nullable + public final Time expiration() { + return this.expiration; + } + /** * Required - The ID of the API key to update. *

@@ -150,6 +165,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.expiration != null) { + generator.writeKey("expiration"); + this.expiration.serialize(generator, mapper); + + } if (ApiTypeHelper.isDefined(this.metadata)) { generator.writeKey("metadata"); generator.writeStartObject(); @@ -184,6 +204,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Time expiration; + private String id; @Nullable @@ -192,6 +215,25 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map roleDescriptors; + /** + * Expiration time for the API key. + *

+ * API name: {@code expiration} + */ + public final Builder expiration(@Nullable Time value) { + this.expiration = value; + return this; + } + + /** + * Expiration time for the API key. + *

+ * API name: {@code expiration} + */ + public final Builder expiration(Function> fn) { + return this.expiration(fn.apply(new Time.Builder()).build()); + } + /** * Required - The ID of the API key to update. *

@@ -315,6 +357,7 @@ public UpdateApiKeyRequest build() { protected static void setupUpdateApiKeyRequestDeserializer(ObjectDeserializer op) { + op.add(Builder::expiration, Time._DESERIALIZER, "expiration"); op.add(Builder::metadata, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "metadata"); op.add(Builder::roleDescriptors, JsonpDeserializer.stringMapDeserializer(RoleDescriptor._DESERIALIZER), "role_descriptors"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java index b67b3b16d..19f0f93e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java @@ -21,6 +21,7 @@ import co.elastic.clients.elasticsearch.security.ApplicationPrivileges; import co.elastic.clients.elasticsearch.security.IndicesPrivileges; +import co.elastic.clients.elasticsearch.security.RoleTemplate; import co.elastic.clients.elasticsearch.security.TransientMetadataConfig; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java index 237741864..b2de6cd73 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java @@ -78,7 +78,9 @@ public static ClearCursorRequest of(Function + * API name: {@code cursor} */ public final String cursor() { return this.cursor; @@ -112,7 +114,9 @@ public static class Builder extends RequestBase.AbstractBuilder private String cursor; /** - * Required - API name: {@code cursor} + * Required - Cursor to clear. + *

+ * API name: {@code cursor} */ public final Builder cursor(String value) { this.cursor = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java index 80ac5e499..2563c40b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java @@ -79,7 +79,7 @@ public static DeleteAsyncRequest of(Function * API name: {@code id} */ @@ -99,7 +99,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String id; /** - * Required - The async search ID + * Required - Identifier for the search. *

* API name: {@code id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java index cb83acdd6..7f5ed8074 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java @@ -117,7 +117,7 @@ public final String format() { } /** - * Required - The async search ID + * Required - Identifier for the search. *

* API name: {@code id} */ @@ -191,7 +191,7 @@ public final Builder format(@Nullable String value) { } /** - * Required - The async search ID + * Required - Identifier for the search. *

* API name: {@code id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java index 70223bb9f..f8a91c105 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java @@ -79,7 +79,7 @@ public static GetAsyncStatusRequest of(Function * API name: {@code id} */ @@ -99,7 +99,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String id; /** - * Required - The async search ID + * Required - Identifier for the search. *

* API name: {@code id} */ 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 e301687b9..3b8400706 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 @@ -171,6 +171,10 @@ public final Boolean columnar() { } /** + * Cursor used to retrieve a set of paginated results. If you specify a cursor, + * the API only uses the columnar and time_zone + * request body parameters. It ignores other request body parameters. + *

* API name: {@code cursor} */ @Nullable @@ -201,7 +205,7 @@ public final Boolean fieldMultiValueLeniency() { } /** - * Optional Elasticsearch query DSL for additional filtering. + * Elasticsearch query DSL for additional filtering. *

* API name: {@code filter} */ @@ -211,7 +215,7 @@ public final Query filter() { } /** - * a short version of the Accept header, e.g. json, yaml + * Format for the response. *

* API name: {@code format} */ @@ -272,7 +276,7 @@ public final Map params() { } /** - * SQL query to execute + * SQL query to run. *

* API name: {@code query} */ @@ -302,8 +306,7 @@ public final Map runtimeMappings() { } /** - * Time-zone in ISO 8601 used for executing the query on the server. More - * information available here. + * ISO-8601 time zone ID for the search. *

* API name: {@code time_zone} */ @@ -511,6 +514,10 @@ public final Builder columnar(@Nullable Boolean value) { } /** + * Cursor used to retrieve a set of paginated results. If you specify a cursor, + * the API only uses the columnar and time_zone + * request body parameters. It ignores other request body parameters. + *

* API name: {@code cursor} */ public final Builder cursor(@Nullable String value) { @@ -541,7 +548,7 @@ public final Builder fieldMultiValueLeniency(@Nullable Boolean value) { } /** - * Optional Elasticsearch query DSL for additional filtering. + * Elasticsearch query DSL for additional filtering. *

* API name: {@code filter} */ @@ -551,7 +558,7 @@ public final Builder filter(@Nullable Query value) { } /** - * Optional Elasticsearch query DSL for additional filtering. + * Elasticsearch query DSL for additional filtering. *

* API name: {@code filter} */ @@ -560,7 +567,7 @@ public final Builder filter(Function> fn) { } /** - * a short version of the Accept header, e.g. json, yaml + * Format for the response. *

* API name: {@code format} */ @@ -654,7 +661,7 @@ public final Builder params(String key, JsonData value) { } /** - * SQL query to execute + * SQL query to run. *

* API name: {@code query} */ @@ -722,8 +729,7 @@ public final Builder runtimeMappings(String key, } /** - * Time-zone in ISO 8601 used for executing the query on the server. More - * information available here. + * ISO-8601 time zone ID for the search. *

* API name: {@code time_zone} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java index 577558214..f43365497 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java @@ -92,6 +92,8 @@ public static TranslateRequest of(Function * API name: {@code fetch_size} */ @Nullable @@ -100,6 +102,8 @@ public final Integer fetchSize() { } /** + * Elasticsearch query DSL for additional filtering. + *

* API name: {@code filter} */ @Nullable @@ -108,13 +112,17 @@ public final Query filter() { } /** - * Required - API name: {@code query} + * Required - SQL query to run. + *

+ * API name: {@code query} */ public final String query() { return this.query; } /** + * ISO-8601 time zone ID for the search. + *

* API name: {@code time_zone} */ @Nullable @@ -175,6 +183,8 @@ public static class Builder extends RequestBase.AbstractBuilder private String timeZone; /** + * The maximum number of rows (or entries) to return in one response. + *

* API name: {@code fetch_size} */ public final Builder fetchSize(@Nullable Integer value) { @@ -183,6 +193,8 @@ public final Builder fetchSize(@Nullable Integer value) { } /** + * Elasticsearch query DSL for additional filtering. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Query value) { @@ -191,6 +203,8 @@ public final Builder filter(@Nullable Query value) { } /** + * Elasticsearch query DSL for additional filtering. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -198,7 +212,9 @@ public final Builder filter(Function> fn) { } /** - * Required - API name: {@code query} + * Required - SQL query to run. + *

+ * API name: {@code query} */ public final Builder query(String value) { this.query = value; @@ -206,6 +222,8 @@ public final Builder query(String value) { } /** + * ISO-8601 time zone ID for the search. + *

* API name: {@code time_zone} */ public final Builder timeZone(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java index 3a18ea662..89802a028 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java @@ -35,7 +35,6 @@ import java.lang.String; 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; @@ -71,7 +70,7 @@ public class PutSynonymRuleRequest extends RequestBase implements JsonpSerializa private final String setId; - private final List synonyms; + private final String synonyms; // --------------------------------------------------------------------------------------------- @@ -79,7 +78,7 @@ private PutSynonymRuleRequest(Builder builder) { this.ruleId = ApiTypeHelper.requireNonNull(builder.ruleId, this, "ruleId"); this.setId = ApiTypeHelper.requireNonNull(builder.setId, this, "setId"); - this.synonyms = ApiTypeHelper.unmodifiableRequired(builder.synonyms, this, "synonyms"); + this.synonyms = ApiTypeHelper.requireNonNull(builder.synonyms, this, "synonyms"); } @@ -108,7 +107,7 @@ public final String setId() { /** * Required - API name: {@code synonyms} */ - public final List synonyms() { + public final String synonyms() { return this.synonyms; } @@ -123,16 +122,8 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (ApiTypeHelper.isDefined(this.synonyms)) { - generator.writeKey("synonyms"); - generator.writeStartArray(); - for (String item0 : this.synonyms) { - generator.write(item0); - - } - generator.writeEnd(); - - } + generator.writeKey("synonyms"); + generator.write(this.synonyms); } @@ -149,7 +140,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String setId; - private List synonyms; + private String synonyms; /** * Required - The id of the synonym rule to be updated or created @@ -173,21 +164,9 @@ public final Builder setId(String value) { /** * Required - API name: {@code synonyms} - *

- * Adds all elements of list to synonyms. - */ - public final Builder synonyms(List list) { - this.synonyms = _listAddAll(this.synonyms, list); - return this; - } - - /** - * Required - API name: {@code synonyms} - *

- * Adds one or more values to synonyms. */ - public final Builder synonyms(String value, String... values) { - this.synonyms = _listAdd(this.synonyms, value, values); + public final Builder synonyms(String value) { + this.synonyms = value; return this; } @@ -219,8 +198,7 @@ public PutSynonymRuleRequest build() { protected static void setupPutSynonymRuleRequestDeserializer(ObjectDeserializer op) { - op.add(Builder::synonyms, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "synonyms"); + op.add(Builder::synonyms, JsonpDeserializer.stringDeserializer(), "synonyms"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java index 91aa2393b..f9d5ba574 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java @@ -95,8 +95,8 @@ public static CancelRequest of(Function> f } /** - * A comma-separated list of actions that should be cancelled. Leave empty to - * cancel all. + * Comma-separated list or wildcard expression of actions used to limit the + * request. *

* API name: {@code actions} */ @@ -105,9 +105,7 @@ public final List actions() { } /** - * A comma-separated list of node IDs or names to limit the returned - * information; use _local to return information from the node - * you're connecting to, leave empty to get information from all nodes + * Comma-separated list of node IDs or names used to limit the request. *

* API name: {@code nodes} */ @@ -116,8 +114,7 @@ public final List nodes() { } /** - * Cancel tasks with specified parent task id (node_id:task_number). Set to -1 - * to cancel all. + * Parent task ID used to limit the tasks. *

* API name: {@code parent_task_id} */ @@ -127,7 +124,7 @@ public final String parentTaskId() { } /** - * Cancel the task with specified task id (node_id:task_number) + * ID of the task. *

* API name: {@code task_id} */ @@ -170,8 +167,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Boolean waitForCompletion; /** - * A comma-separated list of actions that should be cancelled. Leave empty to - * cancel all. + * Comma-separated list or wildcard expression of actions used to limit the + * request. *

* API name: {@code actions} *

@@ -183,8 +180,8 @@ public final Builder actions(List list) { } /** - * A comma-separated list of actions that should be cancelled. Leave empty to - * cancel all. + * Comma-separated list or wildcard expression of actions used to limit the + * request. *

* API name: {@code actions} *

@@ -196,9 +193,7 @@ public final Builder actions(String value, String... values) { } /** - * A comma-separated list of node IDs or names to limit the returned - * information; use _local to return information from the node - * you're connecting to, leave empty to get information from all nodes + * Comma-separated list of node IDs or names used to limit the request. *

* API name: {@code nodes} *

@@ -210,9 +205,7 @@ public final Builder nodes(List list) { } /** - * A comma-separated list of node IDs or names to limit the returned - * information; use _local to return information from the node - * you're connecting to, leave empty to get information from all nodes + * Comma-separated list of node IDs or names used to limit the request. *

* API name: {@code nodes} *

@@ -224,8 +217,7 @@ public final Builder nodes(String value, String... values) { } /** - * Cancel tasks with specified parent task id (node_id:task_number). Set to -1 - * to cancel all. + * Parent task ID used to limit the tasks. *

* API name: {@code parent_task_id} */ @@ -235,7 +227,7 @@ public final Builder parentTaskId(@Nullable String value) { } /** - * Cancel the task with specified task id (node_id:task_number) + * ID of the task. *

* API name: {@code task_id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java index 92ac73a70..b5fcabfd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java @@ -87,7 +87,7 @@ public static GetTasksRequest of(Function * API name: {@code task_id} */ @@ -96,7 +96,8 @@ public final String taskId() { } /** - * Explicit operation timeout + * 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} */ @@ -106,7 +107,7 @@ public final Time timeout() { } /** - * Wait for the matching tasks to complete (default: false) + * If true, the request blocks until the task has completed. *

* API name: {@code wait_for_completion} */ @@ -131,7 +132,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Boolean waitForCompletion; /** - * Required - Return the task with specified id (node_id:task_number) + * Required - ID of the task. *

* API name: {@code task_id} */ @@ -141,7 +142,8 @@ public final Builder taskId(String value) { } /** - * Explicit operation timeout + * 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} */ @@ -151,7 +153,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * 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} */ @@ -160,7 +163,7 @@ public final Builder timeout(Function> fn) { } /** - * Wait for the matching tasks to complete (default: false) + * If true, the request blocks until the task has completed. *

* API name: {@code wait_for_completion} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskStatus.java deleted file mode 100644 index b63c341f6..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskStatus.java +++ /dev/null @@ -1,600 +0,0 @@ -/* - * 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.tasks; - -import co.elastic.clients.elasticsearch._types.Retries; -import co.elastic.clients.elasticsearch._types.Time; -import co.elastic.clients.json.JsonpDeserializable; -import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; -import co.elastic.clients.json.ObjectBuilderDeserializer; -import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; -import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; -import jakarta.json.stream.JsonGenerator; -import java.lang.Boolean; -import java.lang.Float; -import java.lang.Long; -import java.lang.String; -import java.util.List; -import java.util.Objects; -import java.util.function.Function; -import javax.annotation.Nullable; - -// typedef: tasks._types.TaskStatus - -/** - * - * @see API - * specification - */ -@JsonpDeserializable -public class TaskStatus implements JsonpSerializable { - private final long batches; - - @Nullable - private final String canceled; - - private final long created; - - private final long deleted; - - private final long noops; - - private final List failures; - - private final float requestsPerSecond; - - private final Retries retries; - - @Nullable - private final Time throttled; - - private final long throttledMillis; - - @Nullable - private final Time throttledUntil; - - private final long throttledUntilMillis; - - @Nullable - private final Boolean timedOut; - - @Nullable - private final Long took; - - private final long total; - - private final long updated; - - private final long versionConflicts; - - // --------------------------------------------------------------------------------------------- - - private TaskStatus(Builder builder) { - - this.batches = ApiTypeHelper.requireNonNull(builder.batches, this, "batches"); - this.canceled = builder.canceled; - this.created = ApiTypeHelper.requireNonNull(builder.created, this, "created"); - this.deleted = ApiTypeHelper.requireNonNull(builder.deleted, this, "deleted"); - this.noops = ApiTypeHelper.requireNonNull(builder.noops, this, "noops"); - this.failures = ApiTypeHelper.unmodifiable(builder.failures); - this.requestsPerSecond = ApiTypeHelper.requireNonNull(builder.requestsPerSecond, this, "requestsPerSecond"); - this.retries = ApiTypeHelper.requireNonNull(builder.retries, this, "retries"); - this.throttled = builder.throttled; - this.throttledMillis = ApiTypeHelper.requireNonNull(builder.throttledMillis, this, "throttledMillis"); - this.throttledUntil = builder.throttledUntil; - this.throttledUntilMillis = ApiTypeHelper.requireNonNull(builder.throttledUntilMillis, this, - "throttledUntilMillis"); - this.timedOut = builder.timedOut; - this.took = builder.took; - this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); - this.updated = ApiTypeHelper.requireNonNull(builder.updated, this, "updated"); - this.versionConflicts = ApiTypeHelper.requireNonNull(builder.versionConflicts, this, "versionConflicts"); - - } - - public static TaskStatus of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * Required - API name: {@code batches} - */ - public final long batches() { - return this.batches; - } - - /** - * API name: {@code canceled} - */ - @Nullable - public final String canceled() { - return this.canceled; - } - - /** - * Required - API name: {@code created} - */ - public final long created() { - return this.created; - } - - /** - * Required - API name: {@code deleted} - */ - public final long deleted() { - return this.deleted; - } - - /** - * Required - API name: {@code noops} - */ - public final long noops() { - return this.noops; - } - - /** - * API name: {@code failures} - */ - public final List failures() { - return this.failures; - } - - /** - * Required - API name: {@code requests_per_second} - */ - public final float requestsPerSecond() { - return this.requestsPerSecond; - } - - /** - * Required - API name: {@code retries} - */ - public final Retries retries() { - return this.retries; - } - - /** - * API name: {@code throttled} - */ - @Nullable - public final Time throttled() { - return this.throttled; - } - - /** - * Required - API name: {@code throttled_millis} - */ - public final long throttledMillis() { - return this.throttledMillis; - } - - /** - * API name: {@code throttled_until} - */ - @Nullable - public final Time throttledUntil() { - return this.throttledUntil; - } - - /** - * Required - API name: {@code throttled_until_millis} - */ - public final long throttledUntilMillis() { - return this.throttledUntilMillis; - } - - /** - * API name: {@code timed_out} - */ - @Nullable - public final Boolean timedOut() { - return this.timedOut; - } - - /** - * API name: {@code took} - */ - @Nullable - public final Long took() { - return this.took; - } - - /** - * Required - API name: {@code total} - */ - public final long total() { - return this.total; - } - - /** - * Required - API name: {@code updated} - */ - public final long updated() { - return this.updated; - } - - /** - * Required - API name: {@code version_conflicts} - */ - public final long versionConflicts() { - return this.versionConflicts; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("batches"); - generator.write(this.batches); - - if (this.canceled != null) { - generator.writeKey("canceled"); - generator.write(this.canceled); - - } - generator.writeKey("created"); - generator.write(this.created); - - generator.writeKey("deleted"); - generator.write(this.deleted); - - generator.writeKey("noops"); - generator.write(this.noops); - - if (ApiTypeHelper.isDefined(this.failures)) { - generator.writeKey("failures"); - generator.writeStartArray(); - for (String item0 : this.failures) { - generator.write(item0); - - } - generator.writeEnd(); - - } - generator.writeKey("requests_per_second"); - generator.write(this.requestsPerSecond); - - generator.writeKey("retries"); - this.retries.serialize(generator, mapper); - - if (this.throttled != null) { - generator.writeKey("throttled"); - this.throttled.serialize(generator, mapper); - - } - generator.writeKey("throttled_millis"); - generator.write(this.throttledMillis); - - if (this.throttledUntil != null) { - generator.writeKey("throttled_until"); - this.throttledUntil.serialize(generator, mapper); - - } - generator.writeKey("throttled_until_millis"); - generator.write(this.throttledUntilMillis); - - if (this.timedOut != null) { - generator.writeKey("timed_out"); - generator.write(this.timedOut); - - } - if (this.took != null) { - generator.writeKey("took"); - generator.write(this.took); - - } - generator.writeKey("total"); - generator.write(this.total); - - generator.writeKey("updated"); - generator.write(this.updated); - - generator.writeKey("version_conflicts"); - generator.write(this.versionConflicts); - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link TaskStatus}. - */ - - public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private Long batches; - - @Nullable - private String canceled; - - private Long created; - - private Long deleted; - - private Long noops; - - @Nullable - private List failures; - - private Float requestsPerSecond; - - private Retries retries; - - @Nullable - private Time throttled; - - private Long throttledMillis; - - @Nullable - private Time throttledUntil; - - private Long throttledUntilMillis; - - @Nullable - private Boolean timedOut; - - @Nullable - private Long took; - - private Long total; - - private Long updated; - - private Long versionConflicts; - - /** - * Required - API name: {@code batches} - */ - public final Builder batches(long value) { - this.batches = value; - return this; - } - - /** - * API name: {@code canceled} - */ - public final Builder canceled(@Nullable String value) { - this.canceled = value; - return this; - } - - /** - * Required - API name: {@code created} - */ - public final Builder created(long value) { - this.created = value; - return this; - } - - /** - * Required - API name: {@code deleted} - */ - public final Builder deleted(long value) { - this.deleted = value; - return this; - } - - /** - * Required - API name: {@code noops} - */ - public final Builder noops(long value) { - this.noops = value; - return this; - } - - /** - * API name: {@code failures} - *

- * Adds all elements of list to failures. - */ - public final Builder failures(List list) { - this.failures = _listAddAll(this.failures, list); - return this; - } - - /** - * API name: {@code failures} - *

- * Adds one or more values to failures. - */ - public final Builder failures(String value, String... values) { - this.failures = _listAdd(this.failures, value, values); - return this; - } - - /** - * Required - API name: {@code requests_per_second} - */ - public final Builder requestsPerSecond(float value) { - this.requestsPerSecond = value; - return this; - } - - /** - * Required - API name: {@code retries} - */ - public final Builder retries(Retries value) { - this.retries = value; - return this; - } - - /** - * Required - API name: {@code retries} - */ - public final Builder retries(Function> fn) { - return this.retries(fn.apply(new Retries.Builder()).build()); - } - - /** - * API name: {@code throttled} - */ - public final Builder throttled(@Nullable Time value) { - this.throttled = value; - return this; - } - - /** - * API name: {@code throttled} - */ - public final Builder throttled(Function> fn) { - return this.throttled(fn.apply(new Time.Builder()).build()); - } - - /** - * Required - API name: {@code throttled_millis} - */ - public final Builder throttledMillis(long value) { - this.throttledMillis = value; - return this; - } - - /** - * API name: {@code throttled_until} - */ - public final Builder throttledUntil(@Nullable Time value) { - this.throttledUntil = value; - return this; - } - - /** - * API name: {@code throttled_until} - */ - public final Builder throttledUntil(Function> fn) { - return this.throttledUntil(fn.apply(new Time.Builder()).build()); - } - - /** - * Required - API name: {@code throttled_until_millis} - */ - public final Builder throttledUntilMillis(long value) { - this.throttledUntilMillis = value; - return this; - } - - /** - * API name: {@code timed_out} - */ - public final Builder timedOut(@Nullable Boolean value) { - this.timedOut = value; - return this; - } - - /** - * API name: {@code took} - */ - public final Builder took(@Nullable Long value) { - this.took = value; - return this; - } - - /** - * Required - API name: {@code total} - */ - public final Builder total(long value) { - this.total = value; - return this; - } - - /** - * Required - API name: {@code updated} - */ - public final Builder updated(long value) { - this.updated = value; - return this; - } - - /** - * Required - API name: {@code version_conflicts} - */ - public final Builder versionConflicts(long value) { - this.versionConflicts = value; - return this; - } - - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link TaskStatus}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public TaskStatus build() { - _checkSingleUse(); - - return new TaskStatus(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link TaskStatus} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - TaskStatus::setupTaskStatusDeserializer); - - protected static void setupTaskStatusDeserializer(ObjectDeserializer op) { - - op.add(Builder::batches, JsonpDeserializer.longDeserializer(), "batches"); - op.add(Builder::canceled, JsonpDeserializer.stringDeserializer(), "canceled"); - op.add(Builder::created, JsonpDeserializer.longDeserializer(), "created"); - op.add(Builder::deleted, JsonpDeserializer.longDeserializer(), "deleted"); - op.add(Builder::noops, JsonpDeserializer.longDeserializer(), "noops"); - op.add(Builder::failures, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "failures"); - op.add(Builder::requestsPerSecond, JsonpDeserializer.floatDeserializer(), "requests_per_second"); - op.add(Builder::retries, Retries._DESERIALIZER, "retries"); - op.add(Builder::throttled, Time._DESERIALIZER, "throttled"); - op.add(Builder::throttledMillis, JsonpDeserializer.longDeserializer(), "throttled_millis"); - op.add(Builder::throttledUntil, Time._DESERIALIZER, "throttled_until"); - op.add(Builder::throttledUntilMillis, JsonpDeserializer.longDeserializer(), "throttled_until_millis"); - op.add(Builder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); - op.add(Builder::took, JsonpDeserializer.longDeserializer(), "took"); - op.add(Builder::total, JsonpDeserializer.longDeserializer(), "total"); - op.add(Builder::updated, JsonpDeserializer.longDeserializer(), "updated"); - op.add(Builder::versionConflicts, JsonpDeserializer.longDeserializer(), "version_conflicts"); - - } - -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java new file mode 100644 index 000000000..a36d05e99 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java @@ -0,0 +1,103 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.text_structure; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the text_structure namespace. + */ +public class ElasticsearchTextStructureAsyncClient + extends + ApiClient { + + public ElasticsearchTextStructureAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchTextStructureAsyncClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchTextStructureAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchTextStructureAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: text_structure.test_grok_pattern + + /** + * Tests a Grok pattern on some text. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture testGrokPattern(TestGrokPatternRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) TestGrokPatternRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Tests a Grok pattern on some text. + * + * @param fn + * a function that initializes a builder to create the + * {@link TestGrokPatternRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture testGrokPattern( + Function> fn) { + return testGrokPattern(fn.apply(new TestGrokPatternRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java new file mode 100644 index 000000000..c74243504 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java @@ -0,0 +1,106 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.text_structure; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the text_structure namespace. + */ +public class ElasticsearchTextStructureClient + extends + ApiClient { + + public ElasticsearchTextStructureClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchTextStructureClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchTextStructureClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchTextStructureClient(this.transport, transportOptions); + } + + // ----- Endpoint: text_structure.test_grok_pattern + + /** + * Tests a Grok pattern on some text. + * + * @see Documentation + * on elastic.co + */ + + public TestGrokPatternResponse testGrokPattern(TestGrokPatternRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) TestGrokPatternRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Tests a Grok pattern on some text. + * + * @param fn + * a function that initializes a builder to create the + * {@link TestGrokPatternRequest} + * @see Documentation + * on elastic.co + */ + + public final TestGrokPatternResponse testGrokPattern( + Function> fn) + throws IOException, ElasticsearchException { + return testGrokPattern(fn.apply(new TestGrokPatternRequest.Builder()).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java new file mode 100644 index 000000000..991d6a88c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java @@ -0,0 +1,276 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.text_structure; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: text_structure.test_grok_pattern.Request + +/** + * Tests a Grok pattern on some text. + * + * @see API + * specification + */ +@JsonpDeserializable +public class TestGrokPatternRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final String ecsCompatibility; + + private final String grokPattern; + + private final List text; + + // --------------------------------------------------------------------------------------------- + + private TestGrokPatternRequest(Builder builder) { + + this.ecsCompatibility = builder.ecsCompatibility; + this.grokPattern = ApiTypeHelper.requireNonNull(builder.grokPattern, this, "grokPattern"); + this.text = ApiTypeHelper.unmodifiableRequired(builder.text, this, "text"); + + } + + public static TestGrokPatternRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * The mode of compatibility with ECS compliant Grok patterns (disabled or v1, + * default: disabled). + *

+ * API name: {@code ecs_compatibility} + */ + @Nullable + public final String ecsCompatibility() { + return this.ecsCompatibility; + } + + /** + * Required - Grok pattern to run on the text. + *

+ * API name: {@code grok_pattern} + */ + public final String grokPattern() { + return this.grokPattern; + } + + /** + * Required - Lines of text to run the Grok pattern on. + *

+ * API name: {@code text} + */ + public final List text() { + return this.text; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("grok_pattern"); + generator.write(this.grokPattern); + + if (ApiTypeHelper.isDefined(this.text)) { + generator.writeKey("text"); + generator.writeStartArray(); + for (String item0 : this.text) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TestGrokPatternRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String ecsCompatibility; + + private String grokPattern; + + private List text; + + /** + * The mode of compatibility with ECS compliant Grok patterns (disabled or v1, + * default: disabled). + *

+ * API name: {@code ecs_compatibility} + */ + public final Builder ecsCompatibility(@Nullable String value) { + this.ecsCompatibility = value; + return this; + } + + /** + * Required - Grok pattern to run on the text. + *

+ * API name: {@code grok_pattern} + */ + public final Builder grokPattern(String value) { + this.grokPattern = value; + return this; + } + + /** + * Required - Lines of text to run the Grok pattern on. + *

+ * API name: {@code text} + *

+ * Adds all elements of list to text. + */ + public final Builder text(List list) { + this.text = _listAddAll(this.text, list); + return this; + } + + /** + * Required - Lines of text to run the Grok pattern on. + *

+ * API name: {@code text} + *

+ * Adds one or more values to text. + */ + public final Builder text(String value, String... values) { + this.text = _listAdd(this.text, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TestGrokPatternRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TestGrokPatternRequest build() { + _checkSingleUse(); + + return new TestGrokPatternRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TestGrokPatternRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TestGrokPatternRequest::setupTestGrokPatternRequestDeserializer); + + protected static void setupTestGrokPatternRequestDeserializer( + ObjectDeserializer op) { + + op.add(Builder::grokPattern, JsonpDeserializer.stringDeserializer(), "grok_pattern"); + op.add(Builder::text, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "text"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code text_structure.test_grok_pattern}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/text_structure.test_grok_pattern", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + return "/_text_structure/test_grok_pattern"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.ecsCompatibility != null) { + params.put("ecs_compatibility", request.ecsCompatibility); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, TestGrokPatternResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternResponse.java new file mode 100644 index 000000000..02f05f36a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternResponse.java @@ -0,0 +1,187 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.text_structure; + +import co.elastic.clients.elasticsearch.text_structure.test_grok_pattern.MatchedText; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: text_structure.test_grok_pattern.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TestGrokPatternResponse implements JsonpSerializable { + private final List matches; + + // --------------------------------------------------------------------------------------------- + + private TestGrokPatternResponse(Builder builder) { + + this.matches = ApiTypeHelper.unmodifiableRequired(builder.matches, this, "matches"); + + } + + public static TestGrokPatternResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code matches} + */ + public final List matches() { + return this.matches; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.matches)) { + generator.writeKey("matches"); + generator.writeStartArray(); + for (MatchedText item0 : this.matches) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TestGrokPatternResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List matches; + + /** + * Required - API name: {@code matches} + *

+ * Adds all elements of list to matches. + */ + public final Builder matches(List list) { + this.matches = _listAddAll(this.matches, list); + return this; + } + + /** + * Required - API name: {@code matches} + *

+ * Adds one or more values to matches. + */ + public final Builder matches(MatchedText value, MatchedText... values) { + this.matches = _listAdd(this.matches, value, values); + return this; + } + + /** + * Required - API name: {@code matches} + *

+ * Adds a value to matches using a builder lambda. + */ + public final Builder matches(Function> fn) { + return matches(fn.apply(new MatchedText.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TestGrokPatternResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TestGrokPatternResponse build() { + _checkSingleUse(); + + return new TestGrokPatternResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TestGrokPatternResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TestGrokPatternResponse::setupTestGrokPatternResponseDeserializer); + + protected static void setupTestGrokPatternResponseDeserializer( + ObjectDeserializer op) { + + op.add(Builder::matches, JsonpDeserializer.arrayDeserializer(MatchedText._DESERIALIZER), "matches"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedField.java new file mode 100644 index 000000000..503466904 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedField.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. + */ + +package co.elastic.clients.elasticsearch.text_structure.test_grok_pattern; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: text_structure.test_grok_pattern.MatchedField + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class MatchedField implements JsonpSerializable { + private final String match; + + private final int offset; + + private final int length; + + // --------------------------------------------------------------------------------------------- + + private MatchedField(Builder builder) { + + this.match = ApiTypeHelper.requireNonNull(builder.match, this, "match"); + this.offset = ApiTypeHelper.requireNonNull(builder.offset, this, "offset"); + this.length = ApiTypeHelper.requireNonNull(builder.length, this, "length"); + + } + + public static MatchedField of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code match} + */ + public final String match() { + return this.match; + } + + /** + * Required - API name: {@code offset} + */ + public final int offset() { + return this.offset; + } + + /** + * Required - API name: {@code length} + */ + public final int length() { + return this.length; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("match"); + generator.write(this.match); + + generator.writeKey("offset"); + generator.write(this.offset); + + generator.writeKey("length"); + generator.write(this.length); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MatchedField}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String match; + + private Integer offset; + + private Integer length; + + /** + * Required - API name: {@code match} + */ + public final Builder match(String value) { + this.match = value; + return this; + } + + /** + * Required - API name: {@code offset} + */ + public final Builder offset(int value) { + this.offset = value; + return this; + } + + /** + * Required - API name: {@code length} + */ + public final Builder length(int value) { + this.length = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MatchedField}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MatchedField build() { + _checkSingleUse(); + + return new MatchedField(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link MatchedField} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + MatchedField::setupMatchedFieldDeserializer); + + protected static void setupMatchedFieldDeserializer(ObjectDeserializer op) { + + op.add(Builder::match, JsonpDeserializer.stringDeserializer(), "match"); + op.add(Builder::offset, JsonpDeserializer.integerDeserializer(), "offset"); + op.add(Builder::length, JsonpDeserializer.integerDeserializer(), "length"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedText.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedText.java new file mode 100644 index 000000000..eb573b86e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedText.java @@ -0,0 +1,211 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.text_structure.test_grok_pattern; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: text_structure.test_grok_pattern.MatchedText + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class MatchedText implements JsonpSerializable { + private final boolean matched; + + private final Map> fields; + + // --------------------------------------------------------------------------------------------- + + private MatchedText(Builder builder) { + + this.matched = ApiTypeHelper.requireNonNull(builder.matched, this, "matched"); + this.fields = ApiTypeHelper.unmodifiable(builder.fields); + + } + + public static MatchedText of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code matched} + */ + public final boolean matched() { + return this.matched; + } + + /** + * API name: {@code fields} + */ + public final Map> fields() { + return this.fields; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("matched"); + generator.write(this.matched); + + if (ApiTypeHelper.isDefined(this.fields)) { + generator.writeKey("fields"); + generator.writeStartObject(); + for (Map.Entry> item0 : this.fields.entrySet()) { + generator.writeKey(item0.getKey()); + generator.writeStartArray(); + if (item0.getValue() != null) { + for (MatchedField item1 : item0.getValue()) { + item1.serialize(generator, mapper); + + } + } + generator.writeEnd(); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MatchedText}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Boolean matched; + + @Nullable + private Map> fields; + + /** + * Required - API name: {@code matched} + */ + public final Builder matched(boolean value) { + this.matched = value; + return this; + } + + /** + * API name: {@code fields} + *

+ * Adds all entries of map to fields. + */ + public final Builder fields(Map> map) { + this.fields = _mapPutAll(this.fields, map); + return this; + } + + /** + * API name: {@code fields} + *

+ * Adds an entry to fields. + */ + public final Builder fields(String key, List value) { + this.fields = _mapPut(this.fields, key, value); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MatchedText}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MatchedText build() { + _checkSingleUse(); + + return new MatchedText(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link MatchedText} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + MatchedText::setupMatchedTextDeserializer); + + protected static void setupMatchedTextDeserializer(ObjectDeserializer op) { + + op.add(Builder::matched, JsonpDeserializer.booleanDeserializer(), "matched"); + op.add(Builder::fields, JsonpDeserializer + .stringMapDeserializer(JsonpDeserializer.arrayDeserializer(MatchedField._DESERIALIZER)), "fields"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java index 577d3b989..c8368e0f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java @@ -65,6 +65,9 @@ */ public class DeleteTransformRequest extends RequestBase { + @Nullable + private final Boolean deleteDestIndex; + @Nullable private final Boolean force; @@ -77,6 +80,7 @@ public class DeleteTransformRequest extends RequestBase { private DeleteTransformRequest(Builder builder) { + this.deleteDestIndex = builder.deleteDestIndex; this.force = builder.force; this.timeout = builder.timeout; this.transformId = ApiTypeHelper.requireNonNull(builder.transformId, this, "transformId"); @@ -87,6 +91,17 @@ public static DeleteTransformRequest of(Function + * API name: {@code delete_dest_index} + */ + @Nullable + public final Boolean deleteDestIndex() { + return this.deleteDestIndex; + } + /** * If this value is false, the transform must be stopped before it can be * deleted. If true, the transform is deleted regardless of its current state. @@ -127,6 +142,9 @@ public final String transformId() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean deleteDestIndex; + @Nullable private Boolean force; @@ -135,6 +153,17 @@ public static class Builder extends RequestBase.AbstractBuilder private String transformId; + /** + * If this value is true, the destination index is deleted together with the + * transform. If false, the destination index will not be deleted + *

+ * API name: {@code delete_dest_index} + */ + public final Builder deleteDestIndex(@Nullable Boolean value) { + this.deleteDestIndex = value; + return this; + } + /** * If this value is false, the transform must be stopped before it can be * deleted. If true, the transform is deleted regardless of its current state. @@ -246,6 +275,9 @@ public DeleteTransformRequest build() { // Request parameters request -> { Map params = new HashMap<>(); + if (request.deleteDestIndex != null) { + params.put("delete_dest_index", String.valueOf(request.deleteDestIndex)); + } if (request.force != null) { params.put("force", String.valueOf(request.force)); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java index 21fbb0a57..f9f2a8da9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java @@ -36,6 +36,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; @@ -270,6 +271,74 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * Optional search After to do pagination using last hit’s sort values. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Optional search After to do pagination using last hit’s sort values. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Optional search After to do pagination using last hit’s sort values. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Optional search After to do pagination using last hit’s sort values. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * Optional search After to do pagination using last hit’s sort values. *

diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/model/UnionTests.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/model/UnionTests.java index 71807dd73..1e1b299b9 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/model/UnionTests.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/model/UnionTests.java @@ -23,8 +23,6 @@ import co.elastic.clients.elasticsearch._types.aggregations.Aggregate; import co.elastic.clients.elasticsearch._types.mapping.Property; import co.elastic.clients.elasticsearch._types.query_dsl.Query; -import co.elastic.clients.elasticsearch._types.query_dsl.SimpleQueryStringFlag; -import co.elastic.clients.elasticsearch._types.query_dsl.SimpleQueryStringFlags; import co.elastic.clients.elasticsearch.core.SearchResponse; import co.elastic.clients.testkit.ModelTestCase; import jakarta.json.Json; @@ -66,19 +64,6 @@ public void testScriptDeserializer() { } } - @Test - public void testSimpleQueryStringFlag() { - // Ambiguous union on strings - - SimpleQueryStringFlags f; - - f= fromJson("\"OR\"", SimpleQueryStringFlags.class); - assertEquals(SimpleQueryStringFlag.Or, f.single()); - - f = fromJson("\"OR|AND\"", SimpleQueryStringFlags.class); - assertEquals("OR|AND", f.multiple()); - } - @Test public void testOpenContainer() { String json = "{\"foo\":{\"bar\":42}}"; From 65aca879d83082f6a036de710927f4d642c3e65d Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Thu, 15 Feb 2024 15:29:33 +0100 Subject: [PATCH 07/25] Update buildkite pipeline branches --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index ceafe95d8..5ef4950da 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -2,7 +2,7 @@ steps: - label: ":java: :elasticsearch: Elasticsearch Java API client - {{matrix.workflow}}" agents: provider: "gcp" - branches: [ "main", "7.17", "8.11", "8.12" ] + branches: [ "main", "7.17", "8.12", "8.13" ] matrix: setup: workflow: From a0c99e8f51834e6be80e9a495fcecd717190bdb5 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Mon, 19 Feb 2024 16:05:02 +0100 Subject: [PATCH 08/25] Bump version --- config/version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/version.txt b/config/version.txt index 35de81485..2a5dd0d63 100644 --- a/config/version.txt +++ b/config/version.txt @@ -1 +1 @@ -8.13.0 +8.14.0 From f0f81a6f4d87ebdcb1d4905a3ceca54b972d3a6f Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Mon, 19 Feb 2024 18:13:59 +0100 Subject: [PATCH 09/25] Bump version in generated code --- .../ElasticsearchAsyncClient.java | 20 +-- .../elasticsearch/ElasticsearchClient.java | 20 +-- .../elasticsearch/_types/SortOptions.java | 2 +- .../_types/analysis/Normalizer.java | 2 +- .../_types/mapping/GeoShapeProperty.java | 2 +- .../_types/mapping/ShapeProperty.java | 2 +- .../elasticsearch/_types/query_dsl/Like.java | 2 +- .../elasticsearch/_types/query_dsl/Query.java | 2 +- .../ElasticsearchAsyncSearchAsyncClient.java | 24 ++-- .../ElasticsearchAsyncSearchClient.java | 24 ++-- .../ElasticsearchAutoscalingAsyncClient.java | 14 +- .../ElasticsearchAutoscalingClient.java | 14 +- .../cat/ElasticsearchCatAsyncClient.java | 126 +++++++++--------- .../cat/ElasticsearchCatClient.java | 126 +++++++++--------- .../ccr/ElasticsearchCcrAsyncClient.java | 52 ++++---- .../ccr/ElasticsearchCcrClient.java | 52 ++++---- .../ElasticsearchClusterAsyncClient.java | 84 ++++++------ .../cluster/ElasticsearchClusterClient.java | 84 ++++++------ .../reroute/CommandAllocateReplicaAction.java | 2 +- ...ankEvalMetricDiscountedCumulativeGain.java | 2 +- .../RankEvalMetricExpectedReciprocalRank.java | 2 +- .../RankEvalMetricMeanReciprocalRank.java | 2 +- .../rank_eval/RankEvalMetricPrecision.java | 2 +- .../core/rank_eval/RankEvalMetricRecall.java | 2 +- .../elasticsearch/core/search/Context.java | 2 +- .../ElasticsearchEnrichAsyncClient.java | 8 +- .../enrich/ElasticsearchEnrichClient.java | 8 +- .../eql/ElasticsearchEqlAsyncClient.java | 12 +- .../eql/ElasticsearchEqlClient.java | 12 +- .../esql/ElasticsearchEsqlAsyncClient.java | 4 +- .../esql/ElasticsearchEsqlClient.java | 4 +- .../graph/ElasticsearchGraphAsyncClient.java | 4 +- .../graph/ElasticsearchGraphClient.java | 4 +- .../ElasticsearchIndicesAsyncClient.java | 40 +++--- .../indices/ElasticsearchIndicesClient.java | 40 +++--- .../elasticsearch/indices/IndexSettings.java | 2 +- .../indices/MappingLimitSettings.java | 2 +- .../ElasticsearchIngestAsyncClient.java | 8 +- .../ingest/ElasticsearchIngestClient.java | 8 +- .../ml/ElasticsearchMlAsyncClient.java | 28 ++-- .../ml/ElasticsearchMlClient.java | 28 ++-- .../nodes/ElasticsearchNodesAsyncClient.java | 24 ++-- .../nodes/ElasticsearchNodesClient.java | 24 ++-- .../tasks/ElasticsearchTasksAsyncClient.java | 16 +-- .../tasks/ElasticsearchTasksClient.java | 16 +-- 45 files changed, 479 insertions(+), 479 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 5d036bb98..81fe4fe20 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 @@ -351,7 +351,7 @@ public ElasticsearchXpackAsyncClient xpack() { * request. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation * on elastic.co */ @@ -370,7 +370,7 @@ public CompletableFuture bulk(BulkRequest request) { * a function that initializes a builder to create the * {@link BulkRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation * on elastic.co */ @@ -383,7 +383,7 @@ public final CompletableFuture bulk(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation * on elastic.co */ @@ -398,7 +398,7 @@ public CompletableFuture bulk() { * Explicitly clears the search context for a scroll. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation * on elastic.co */ @@ -416,7 +416,7 @@ public CompletableFuture clearScroll(ClearScrollRequest req * a function that initializes a builder to create the * {@link ClearScrollRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation * on elastic.co */ @@ -429,7 +429,7 @@ public final CompletableFuture clearScroll( * Explicitly clears the search context for a scroll. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation * on elastic.co */ @@ -444,7 +444,7 @@ public CompletableFuture clearScroll() { * Close a point in time * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation * on elastic.co */ @@ -462,7 +462,7 @@ public CompletableFuture closePointInTime(ClosePointIn * a function that initializes a builder to create the * {@link ClosePointInTimeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation * on elastic.co */ @@ -1500,7 +1500,7 @@ public CompletableFuture mtermvectors() { * Open a point in time that can be used in subsequent searches * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation * on elastic.co */ @@ -1518,7 +1518,7 @@ public CompletableFuture openPointInTime(OpenPointInTim * a function that initializes a builder to create the * {@link OpenPointInTimeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation * on elastic.co */ 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 10e55792c..4d5332c62 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 @@ -352,7 +352,7 @@ public ElasticsearchXpackClient xpack() { * request. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation * on elastic.co */ @@ -371,7 +371,7 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE * a function that initializes a builder to create the * {@link BulkRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation * on elastic.co */ @@ -385,7 +385,7 @@ public final BulkResponse bulk(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-bulk.html">Documentation * on elastic.co */ @@ -400,7 +400,7 @@ public BulkResponse bulk() throws IOException, ElasticsearchException { * Explicitly clears the search context for a scroll. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation * on elastic.co */ @@ -418,7 +418,7 @@ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOExce * a function that initializes a builder to create the * {@link ClearScrollRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation * on elastic.co */ @@ -432,7 +432,7 @@ public final ClearScrollResponse clearScroll( * Explicitly clears the search context for a scroll. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-scroll-api.html">Documentation * on elastic.co */ @@ -447,7 +447,7 @@ public ClearScrollResponse clearScroll() throws IOException, ElasticsearchExcept * Close a point in time * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation * on elastic.co */ @@ -466,7 +466,7 @@ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request * a function that initializes a builder to create the * {@link ClosePointInTimeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation * on elastic.co */ @@ -1526,7 +1526,7 @@ public MtermvectorsResponse mtermvectors() throws IOException, ElasticsearchExce * Open a point in time that can be used in subsequent searches * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation * on elastic.co */ @@ -1545,7 +1545,7 @@ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request) * a function that initializes a builder to create the * {@link OpenPointInTimeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java index a1f6724f2..c723c945a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java @@ -59,7 +59,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/sort-search-results.html">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java index e77e04a35..72a1a4980 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java @@ -57,7 +57,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/analysis-normalizers.html">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java index 94d7cf5a7..27b35a8e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java @@ -53,7 +53,7 @@ * searching with arbitrary geo shapes such as rectangles and polygons. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/geo-shape.html">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java index 278d1173f..c85000e68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java @@ -54,7 +54,7 @@ * polygons. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/shape.html">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Like.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Like.java index 6459ffaab..9a48f7a30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Like.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Like.java @@ -60,7 +60,7 @@ * the text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/query-dsl-mlt-query.html#_document_input_parameters">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index 0da95a9ca..b373897d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java @@ -61,7 +61,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/query-dsl.html">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java index 684840378..7216d1064 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java @@ -76,7 +76,7 @@ public ElasticsearchAsyncSearchAsyncClient withTransportOptions(@Nullable Transp * request will be cancelled. Otherwise, the saved search results are deleted. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -95,7 +95,7 @@ public CompletableFuture delete(DeleteAsyncSearchRequ * a function that initializes a builder to create the * {@link DeleteAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -111,7 +111,7 @@ public final CompletableFuture delete( * its ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -133,7 +133,7 @@ public CompletableFuture> get(GetA * a function that initializes a builder to create the * {@link GetAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -148,7 +148,7 @@ public final CompletableFuture> ge * its ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -170,7 +170,7 @@ public CompletableFuture> get(GetA * a function that initializes a builder to create the * {@link GetAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -186,7 +186,7 @@ public final CompletableFuture> ge * ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -205,7 +205,7 @@ public CompletableFuture status(AsyncSearchStatusRequ * a function that initializes a builder to create the * {@link AsyncSearchStatusRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -220,7 +220,7 @@ public final CompletableFuture status( * Executes a search request asynchronously. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -241,7 +241,7 @@ public CompletableFuture> submit(SubmitReq * a function that initializes a builder to create the * {@link SubmitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -254,7 +254,7 @@ public final CompletableFuture> submit( * Executes a search request asynchronously. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -274,7 +274,7 @@ public CompletableFuture> submit(SubmitReq * a function that initializes a builder to create the * {@link SubmitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchClient.java index 2d9d39c31..e1be22f7f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchClient.java @@ -75,7 +75,7 @@ public ElasticsearchAsyncSearchClient withTransportOptions(@Nullable TransportOp * request will be cancelled. Otherwise, the saved search results are deleted. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -95,7 +95,7 @@ public DeleteAsyncSearchResponse delete(DeleteAsyncSearchRequest request) * a function that initializes a builder to create the * {@link DeleteAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -112,7 +112,7 @@ public final DeleteAsyncSearchResponse delete( * its ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -134,7 +134,7 @@ public GetAsyncSearchResponse get(GetAsyncSearchRequest r * a function that initializes a builder to create the * {@link GetAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -149,7 +149,7 @@ public final GetAsyncSearchResponse get( * its ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -171,7 +171,7 @@ public GetAsyncSearchResponse get(GetAsyncSearchRequest r * a function that initializes a builder to create the * {@link GetAsyncSearchRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -188,7 +188,7 @@ public final GetAsyncSearchResponse get( * ID. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -208,7 +208,7 @@ public AsyncSearchStatusResponse status(AsyncSearchStatusRequest request) * a function that initializes a builder to create the * {@link AsyncSearchStatusRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -224,7 +224,7 @@ public final AsyncSearchStatusResponse status( * Executes a search request asynchronously. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -245,7 +245,7 @@ public SubmitResponse submit(SubmitRequest request, Class * a function that initializes a builder to create the * {@link SubmitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -259,7 +259,7 @@ public final SubmitResponse submit( * Executes a search request asynchronously. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ @@ -280,7 +280,7 @@ public SubmitResponse submit(SubmitRequest request, Type * a function that initializes a builder to create the * {@link SubmitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/async-search.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingAsyncClient.java index a49980466..40661c5d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingAsyncClient.java @@ -74,7 +74,7 @@ public ElasticsearchAutoscalingAsyncClient withTransportOptions(@Nullable Transp * Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-delete-autoscaling-policy.html">Documentation * on elastic.co */ @@ -94,7 +94,7 @@ public CompletableFuture deleteAutoscalingPolic * a function that initializes a builder to create the * {@link DeleteAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-delete-autoscaling-policy.html">Documentation * on elastic.co */ @@ -111,7 +111,7 @@ public final CompletableFuture deleteAutoscalin * supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ public CompletableFuture getAutoscalingCapacity() { @@ -126,7 +126,7 @@ public CompletableFuture getAutoscalingCapacity( * ECK. Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ @@ -145,7 +145,7 @@ public CompletableFuture getAutoscalingPolicy(GetA * a function that initializes a builder to create the * {@link GetAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ @@ -161,7 +161,7 @@ public final CompletableFuture getAutoscalingPolic * ECK. Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-put-autoscaling-policy.html">Documentation * on elastic.co */ @@ -180,7 +180,7 @@ public CompletableFuture putAutoscalingPolicy(PutA * a function that initializes a builder to create the * {@link PutAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-put-autoscaling-policy.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingClient.java index dc456d821..9d25ad71d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/ElasticsearchAutoscalingClient.java @@ -73,7 +73,7 @@ public ElasticsearchAutoscalingClient withTransportOptions(@Nullable TransportOp * Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-delete-autoscaling-policy.html">Documentation * on elastic.co */ @@ -93,7 +93,7 @@ public DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(DeleteAutoscaling * a function that initializes a builder to create the * {@link DeleteAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-delete-autoscaling-policy.html">Documentation * on elastic.co */ @@ -111,7 +111,7 @@ public final DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy( * supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ public GetAutoscalingCapacityResponse getAutoscalingCapacity() throws IOException, ElasticsearchException { @@ -126,7 +126,7 @@ public GetAutoscalingCapacityResponse getAutoscalingCapacity() throws IOExceptio * ECK. Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ @@ -146,7 +146,7 @@ public GetAutoscalingPolicyResponse getAutoscalingPolicy(GetAutoscalingPolicyReq * a function that initializes a builder to create the * {@link GetAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ @@ -163,7 +163,7 @@ public final GetAutoscalingPolicyResponse getAutoscalingPolicy( * ECK. Direct use is not supported. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-put-autoscaling-policy.html">Documentation * on elastic.co */ @@ -183,7 +183,7 @@ public PutAutoscalingPolicyResponse putAutoscalingPolicy(PutAutoscalingPolicyReq * a function that initializes a builder to create the * {@link PutAutoscalingPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/autoscaling-put-autoscaling-policy.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java index 7ad0f01af..122472c52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java @@ -71,7 +71,7 @@ public ElasticsearchCatAsyncClient withTransportOptions(@Nullable TransportOptio * filter and routing infos. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-alias.html">Documentation * on elastic.co */ @@ -90,7 +90,7 @@ public CompletableFuture aliases(AliasesRequest request) { * a function that initializes a builder to create the * {@link AliasesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-alias.html">Documentation * on elastic.co */ @@ -104,7 +104,7 @@ public final CompletableFuture aliases( * filter and routing infos. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-alias.html">Documentation * on elastic.co */ @@ -120,7 +120,7 @@ public CompletableFuture aliases() { * how much disk space they are using. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-allocation.html">Documentation * on elastic.co */ @@ -139,7 +139,7 @@ public CompletableFuture allocation(AllocationRequest reques * a function that initializes a builder to create the * {@link AllocationRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-allocation.html">Documentation * on elastic.co */ @@ -153,7 +153,7 @@ public final CompletableFuture allocation( * how much disk space they are using. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-allocation.html">Documentation * on elastic.co */ @@ -215,7 +215,7 @@ public CompletableFuture componentTemplates() { * individual indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-count.html">Documentation * on elastic.co */ @@ -234,7 +234,7 @@ public CompletableFuture count(CountRequest request) { * a function that initializes a builder to create the * {@link CountRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-count.html">Documentation * on elastic.co */ @@ -248,7 +248,7 @@ public final CompletableFuture count( * individual indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-count.html">Documentation * on elastic.co */ @@ -264,7 +264,7 @@ public CompletableFuture count() { * node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-fielddata.html">Documentation * on elastic.co */ @@ -283,7 +283,7 @@ public CompletableFuture fielddata(FielddataRequest request) * a function that initializes a builder to create the * {@link FielddataRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-fielddata.html">Documentation * on elastic.co */ @@ -297,7 +297,7 @@ public final CompletableFuture fielddata( * node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-fielddata.html">Documentation * on elastic.co */ @@ -312,7 +312,7 @@ public CompletableFuture fielddata() { * Returns a concise representation of the cluster health. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-health.html">Documentation * on elastic.co */ @@ -330,7 +330,7 @@ public CompletableFuture health(HealthRequest request) { * a function that initializes a builder to create the * {@link HealthRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-health.html">Documentation * on elastic.co */ @@ -343,7 +343,7 @@ public final CompletableFuture health( * Returns a concise representation of the cluster health. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-health.html">Documentation * on elastic.co */ @@ -358,7 +358,7 @@ public CompletableFuture health() { * Returns help for the Cat APIs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat.html">Documentation * on elastic.co */ public CompletableFuture help() { @@ -372,7 +372,7 @@ public CompletableFuture help() { * counts, disk size, ... * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-indices.html">Documentation * on elastic.co */ @@ -391,7 +391,7 @@ public CompletableFuture indices(IndicesRequest request) { * a function that initializes a builder to create the * {@link IndicesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-indices.html">Documentation * on elastic.co */ @@ -405,7 +405,7 @@ public final CompletableFuture indices( * counts, disk size, ... * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-indices.html">Documentation * on elastic.co */ @@ -420,7 +420,7 @@ public CompletableFuture indices() { * Returns information about the master node. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-master.html">Documentation * on elastic.co */ public CompletableFuture master() { @@ -434,7 +434,7 @@ public CompletableFuture master() { * Gets configuration and usage information about data frame analytics jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -452,7 +452,7 @@ public CompletableFuture mlDataFrameAnalytics(MlDa * a function that initializes a builder to create the * {@link MlDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -465,7 +465,7 @@ public final CompletableFuture mlDataFrameAnalytic * Gets configuration and usage information about data frame analytics jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -480,7 +480,7 @@ public CompletableFuture mlDataFrameAnalytics() { * Gets configuration and usage information about datafeeds. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-datafeeds.html">Documentation * on elastic.co */ @@ -498,7 +498,7 @@ public CompletableFuture mlDatafeeds(MlDatafeedsRequest req * a function that initializes a builder to create the * {@link MlDatafeedsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-datafeeds.html">Documentation * on elastic.co */ @@ -511,7 +511,7 @@ public final CompletableFuture mlDatafeeds( * Gets configuration and usage information about datafeeds. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-datafeeds.html">Documentation * on elastic.co */ @@ -526,7 +526,7 @@ public CompletableFuture mlDatafeeds() { * Gets configuration and usage information about anomaly detection jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -544,7 +544,7 @@ public CompletableFuture mlJobs(MlJobsRequest request) { * a function that initializes a builder to create the * {@link MlJobsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -557,7 +557,7 @@ public final CompletableFuture mlJobs( * Gets configuration and usage information about anomaly detection jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -572,7 +572,7 @@ public CompletableFuture mlJobs() { * Gets configuration and usage information about inference trained models. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-trained-model.html">Documentation * on elastic.co */ @@ -590,7 +590,7 @@ public CompletableFuture mlTrainedModels(MlTrainedModel * a function that initializes a builder to create the * {@link MlTrainedModelsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-trained-model.html">Documentation * on elastic.co */ @@ -603,7 +603,7 @@ public final CompletableFuture mlTrainedModels( * Gets configuration and usage information about inference trained models. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-trained-model.html">Documentation * on elastic.co */ @@ -618,7 +618,7 @@ public CompletableFuture mlTrainedModels() { * Returns information about custom node attributes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-nodeattrs.html">Documentation * on elastic.co */ public CompletableFuture nodeattrs() { @@ -632,7 +632,7 @@ public CompletableFuture nodeattrs() { * Returns basic statistics about performance of cluster nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-nodes.html">Documentation * on elastic.co */ @@ -650,7 +650,7 @@ public CompletableFuture nodes(NodesRequest request) { * a function that initializes a builder to create the * {@link NodesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-nodes.html">Documentation * on elastic.co */ @@ -663,7 +663,7 @@ public final CompletableFuture nodes( * Returns basic statistics about performance of cluster nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-nodes.html">Documentation * on elastic.co */ @@ -678,7 +678,7 @@ public CompletableFuture nodes() { * Returns a concise representation of the cluster pending tasks. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-pending-tasks.html">Documentation * on elastic.co */ public CompletableFuture pendingTasks() { @@ -692,7 +692,7 @@ public CompletableFuture pendingTasks() { * Returns information about installed plugins across nodes node. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-plugins.html">Documentation * on elastic.co */ public CompletableFuture plugins() { @@ -706,7 +706,7 @@ public CompletableFuture plugins() { * Returns information about index shard recoveries, both on-going completed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-recovery.html">Documentation * on elastic.co */ @@ -724,7 +724,7 @@ public CompletableFuture recovery(RecoveryRequest request) { * a function that initializes a builder to create the * {@link RecoveryRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-recovery.html">Documentation * on elastic.co */ @@ -737,7 +737,7 @@ public final CompletableFuture recovery( * Returns information about index shard recoveries, both on-going completed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-recovery.html">Documentation * on elastic.co */ @@ -752,7 +752,7 @@ public CompletableFuture recovery() { * Returns information about snapshot repositories registered in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-repositories.html">Documentation * on elastic.co */ public CompletableFuture repositories() { @@ -766,7 +766,7 @@ public CompletableFuture repositories() { * Provides low-level information about the segments in the shards of an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-segments.html">Documentation * on elastic.co */ @@ -784,7 +784,7 @@ public CompletableFuture segments(SegmentsRequest request) { * a function that initializes a builder to create the * {@link SegmentsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-segments.html">Documentation * on elastic.co */ @@ -797,7 +797,7 @@ public final CompletableFuture segments( * Provides low-level information about the segments in the shards of an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-segments.html">Documentation * on elastic.co */ @@ -812,7 +812,7 @@ public CompletableFuture segments() { * Provides a detailed view of shard allocation on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-shards.html">Documentation * on elastic.co */ @@ -830,7 +830,7 @@ public CompletableFuture shards(ShardsRequest request) { * a function that initializes a builder to create the * {@link ShardsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-shards.html">Documentation * on elastic.co */ @@ -843,7 +843,7 @@ public final CompletableFuture shards( * Provides a detailed view of shard allocation on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-shards.html">Documentation * on elastic.co */ @@ -858,7 +858,7 @@ public CompletableFuture shards() { * Returns all snapshots in a specific repository. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-snapshots.html">Documentation * on elastic.co */ @@ -876,7 +876,7 @@ public CompletableFuture snapshots(SnapshotsRequest request) * a function that initializes a builder to create the * {@link SnapshotsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-snapshots.html">Documentation * on elastic.co */ @@ -889,7 +889,7 @@ public final CompletableFuture snapshots( * Returns all snapshots in a specific repository. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-snapshots.html">Documentation * on elastic.co */ @@ -905,7 +905,7 @@ public CompletableFuture snapshots() { * in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -924,7 +924,7 @@ public CompletableFuture tasks(TasksRequest request) { * a function that initializes a builder to create the * {@link TasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -938,7 +938,7 @@ public final CompletableFuture tasks( * in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -953,7 +953,7 @@ public CompletableFuture tasks() { * Returns information about existing templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-templates.html">Documentation * on elastic.co */ @@ -971,7 +971,7 @@ public CompletableFuture templates(TemplatesRequest request) * a function that initializes a builder to create the * {@link TemplatesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-templates.html">Documentation * on elastic.co */ @@ -984,7 +984,7 @@ public final CompletableFuture templates( * Returns information about existing templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-templates.html">Documentation * on elastic.co */ @@ -1000,7 +1000,7 @@ public CompletableFuture templates() { * queue and rejected statistics are returned for all thread pools. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1019,7 +1019,7 @@ public CompletableFuture threadPool(ThreadPoolRequest reques * a function that initializes a builder to create the * {@link ThreadPoolRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1033,7 +1033,7 @@ public final CompletableFuture threadPool( * queue and rejected statistics are returned for all thread pools. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1048,7 +1048,7 @@ public CompletableFuture threadPool() { * Gets configuration and usage information about transforms. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-transforms.html">Documentation * on elastic.co */ @@ -1066,7 +1066,7 @@ public CompletableFuture transforms(TransformsRequest reques * a function that initializes a builder to create the * {@link TransformsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-transforms.html">Documentation * on elastic.co */ @@ -1079,7 +1079,7 @@ public final CompletableFuture transforms( * Gets configuration and usage information about transforms. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-transforms.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java index dfe709fc3..cf56e634e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java @@ -72,7 +72,7 @@ public ElasticsearchCatClient withTransportOptions(@Nullable TransportOptions tr * filter and routing infos. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-alias.html">Documentation * on elastic.co */ @@ -91,7 +91,7 @@ public AliasesResponse aliases(AliasesRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link AliasesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-alias.html">Documentation * on elastic.co */ @@ -105,7 +105,7 @@ public final AliasesResponse aliases(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-alias.html">Documentation * on elastic.co */ @@ -121,7 +121,7 @@ public AliasesResponse aliases() throws IOException, ElasticsearchException { * how much disk space they are using. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-allocation.html">Documentation * on elastic.co */ @@ -140,7 +140,7 @@ public AllocationResponse allocation(AllocationRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link AllocationRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-allocation.html">Documentation * on elastic.co */ @@ -154,7 +154,7 @@ public final AllocationResponse allocation(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-allocation.html">Documentation * on elastic.co */ @@ -218,7 +218,7 @@ public ComponentTemplatesResponse componentTemplates() throws IOException, Elast * individual indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-count.html">Documentation * on elastic.co */ @@ -237,7 +237,7 @@ public CountResponse count(CountRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link CountRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-count.html">Documentation * on elastic.co */ @@ -251,7 +251,7 @@ public final CountResponse count(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-count.html">Documentation * on elastic.co */ @@ -267,7 +267,7 @@ public CountResponse count() throws IOException, ElasticsearchException { * node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-fielddata.html">Documentation * on elastic.co */ @@ -286,7 +286,7 @@ public FielddataResponse fielddata(FielddataRequest request) throws IOException, * a function that initializes a builder to create the * {@link FielddataRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-fielddata.html">Documentation * on elastic.co */ @@ -300,7 +300,7 @@ public final FielddataResponse fielddata(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-fielddata.html">Documentation * on elastic.co */ @@ -315,7 +315,7 @@ public FielddataResponse fielddata() throws IOException, ElasticsearchException * Returns a concise representation of the cluster health. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-health.html">Documentation * on elastic.co */ @@ -333,7 +333,7 @@ public HealthResponse health(HealthRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link HealthRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-health.html">Documentation * on elastic.co */ @@ -346,7 +346,7 @@ public final HealthResponse health(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-health.html">Documentation * on elastic.co */ @@ -361,7 +361,7 @@ public HealthResponse health() throws IOException, ElasticsearchException { * Returns help for the Cat APIs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat.html">Documentation * on elastic.co */ public HelpResponse help() throws IOException, ElasticsearchException { @@ -375,7 +375,7 @@ public HelpResponse help() throws IOException, ElasticsearchException { * counts, disk size, ... * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-indices.html">Documentation * on elastic.co */ @@ -394,7 +394,7 @@ public IndicesResponse indices(IndicesRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link IndicesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-indices.html">Documentation * on elastic.co */ @@ -408,7 +408,7 @@ public final IndicesResponse indices(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-indices.html">Documentation * on elastic.co */ @@ -423,7 +423,7 @@ public IndicesResponse indices() throws IOException, ElasticsearchException { * Returns information about the master node. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-master.html">Documentation * on elastic.co */ public MasterResponse master() throws IOException, ElasticsearchException { @@ -436,7 +436,7 @@ public MasterResponse master() throws IOException, ElasticsearchException { * Gets configuration and usage information about data frame analytics jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -455,7 +455,7 @@ public MlDataFrameAnalyticsResponse mlDataFrameAnalytics(MlDataFrameAnalyticsReq * a function that initializes a builder to create the * {@link MlDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -469,7 +469,7 @@ public final MlDataFrameAnalyticsResponse mlDataFrameAnalytics( * Gets configuration and usage information about data frame analytics jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-dfanalytics.html">Documentation * on elastic.co */ @@ -484,7 +484,7 @@ public MlDataFrameAnalyticsResponse mlDataFrameAnalytics() throws IOException, E * Gets configuration and usage information about datafeeds. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-datafeeds.html">Documentation * on elastic.co */ @@ -502,7 +502,7 @@ public MlDatafeedsResponse mlDatafeeds(MlDatafeedsRequest request) throws IOExce * a function that initializes a builder to create the * {@link MlDatafeedsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-datafeeds.html">Documentation * on elastic.co */ @@ -516,7 +516,7 @@ public final MlDatafeedsResponse mlDatafeeds( * Gets configuration and usage information about datafeeds. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-datafeeds.html">Documentation * on elastic.co */ @@ -531,7 +531,7 @@ public MlDatafeedsResponse mlDatafeeds() throws IOException, ElasticsearchExcept * Gets configuration and usage information about anomaly detection jobs. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -549,7 +549,7 @@ public MlJobsResponse mlJobs(MlJobsRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link MlJobsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -562,7 +562,7 @@ public final MlJobsResponse mlJobs(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-anomaly-detectors.html">Documentation * on elastic.co */ @@ -577,7 +577,7 @@ public MlJobsResponse mlJobs() throws IOException, ElasticsearchException { * Gets configuration and usage information about inference trained models. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-trained-model.html">Documentation * on elastic.co */ @@ -596,7 +596,7 @@ public MlTrainedModelsResponse mlTrainedModels(MlTrainedModelsRequest request) * a function that initializes a builder to create the * {@link MlTrainedModelsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-trained-model.html">Documentation * on elastic.co */ @@ -610,7 +610,7 @@ public final MlTrainedModelsResponse mlTrainedModels( * Gets configuration and usage information about inference trained models. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-trained-model.html">Documentation * on elastic.co */ @@ -625,7 +625,7 @@ public MlTrainedModelsResponse mlTrainedModels() throws IOException, Elasticsear * Returns information about custom node attributes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-nodeattrs.html">Documentation * on elastic.co */ public NodeattrsResponse nodeattrs() throws IOException, ElasticsearchException { @@ -639,7 +639,7 @@ public NodeattrsResponse nodeattrs() throws IOException, ElasticsearchException * Returns basic statistics about performance of cluster nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-nodes.html">Documentation * on elastic.co */ @@ -657,7 +657,7 @@ public NodesResponse nodes(NodesRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link NodesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-nodes.html">Documentation * on elastic.co */ @@ -670,7 +670,7 @@ public final NodesResponse nodes(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-nodes.html">Documentation * on elastic.co */ @@ -685,7 +685,7 @@ public NodesResponse nodes() throws IOException, ElasticsearchException { * Returns a concise representation of the cluster pending tasks. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-pending-tasks.html">Documentation * on elastic.co */ public PendingTasksResponse pendingTasks() throws IOException, ElasticsearchException { @@ -699,7 +699,7 @@ public PendingTasksResponse pendingTasks() throws IOException, ElasticsearchExce * Returns information about installed plugins across nodes node. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-plugins.html">Documentation * on elastic.co */ public PluginsResponse plugins() throws IOException, ElasticsearchException { @@ -712,7 +712,7 @@ public PluginsResponse plugins() throws IOException, ElasticsearchException { * Returns information about index shard recoveries, both on-going completed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-recovery.html">Documentation * on elastic.co */ @@ -730,7 +730,7 @@ public RecoveryResponse recovery(RecoveryRequest request) throws IOException, El * a function that initializes a builder to create the * {@link RecoveryRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-recovery.html">Documentation * on elastic.co */ @@ -743,7 +743,7 @@ public final RecoveryResponse recovery(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-recovery.html">Documentation * on elastic.co */ @@ -758,7 +758,7 @@ public RecoveryResponse recovery() throws IOException, ElasticsearchException { * Returns information about snapshot repositories registered in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-repositories.html">Documentation * on elastic.co */ public RepositoriesResponse repositories() throws IOException, ElasticsearchException { @@ -772,7 +772,7 @@ public RepositoriesResponse repositories() throws IOException, ElasticsearchExce * Provides low-level information about the segments in the shards of an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-segments.html">Documentation * on elastic.co */ @@ -790,7 +790,7 @@ public SegmentsResponse segments(SegmentsRequest request) throws IOException, El * a function that initializes a builder to create the * {@link SegmentsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-segments.html">Documentation * on elastic.co */ @@ -803,7 +803,7 @@ public final SegmentsResponse segments(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-segments.html">Documentation * on elastic.co */ @@ -818,7 +818,7 @@ public SegmentsResponse segments() throws IOException, ElasticsearchException { * Provides a detailed view of shard allocation on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-shards.html">Documentation * on elastic.co */ @@ -836,7 +836,7 @@ public ShardsResponse shards(ShardsRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link ShardsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-shards.html">Documentation * on elastic.co */ @@ -849,7 +849,7 @@ public final ShardsResponse shards(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-shards.html">Documentation * on elastic.co */ @@ -864,7 +864,7 @@ public ShardsResponse shards() throws IOException, ElasticsearchException { * Returns all snapshots in a specific repository. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-snapshots.html">Documentation * on elastic.co */ @@ -882,7 +882,7 @@ public SnapshotsResponse snapshots(SnapshotsRequest request) throws IOException, * a function that initializes a builder to create the * {@link SnapshotsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-snapshots.html">Documentation * on elastic.co */ @@ -895,7 +895,7 @@ public final SnapshotsResponse snapshots(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-snapshots.html">Documentation * on elastic.co */ @@ -911,7 +911,7 @@ public SnapshotsResponse snapshots() throws IOException, ElasticsearchException * in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -930,7 +930,7 @@ public TasksResponse tasks(TasksRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link TasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -944,7 +944,7 @@ public final TasksResponse tasks(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -959,7 +959,7 @@ public TasksResponse tasks() throws IOException, ElasticsearchException { * Returns information about existing templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-templates.html">Documentation * on elastic.co */ @@ -977,7 +977,7 @@ public TemplatesResponse templates(TemplatesRequest request) throws IOException, * a function that initializes a builder to create the * {@link TemplatesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-templates.html">Documentation * on elastic.co */ @@ -990,7 +990,7 @@ public final TemplatesResponse templates(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-templates.html">Documentation * on elastic.co */ @@ -1006,7 +1006,7 @@ public TemplatesResponse templates() throws IOException, ElasticsearchException * queue and rejected statistics are returned for all thread pools. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1025,7 +1025,7 @@ public ThreadPoolResponse threadPool(ThreadPoolRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link ThreadPoolRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1039,7 +1039,7 @@ public final ThreadPoolResponse threadPool(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-thread-pool.html">Documentation * on elastic.co */ @@ -1054,7 +1054,7 @@ public ThreadPoolResponse threadPool() throws IOException, ElasticsearchExceptio * Gets configuration and usage information about transforms. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-transforms.html">Documentation * on elastic.co */ @@ -1072,7 +1072,7 @@ public TransformsResponse transforms(TransformsRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link TransformsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-transforms.html">Documentation * on elastic.co */ @@ -1085,7 +1085,7 @@ public final TransformsResponse transforms(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cat-transforms.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java index 8b1852817..5307108f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java @@ -70,7 +70,7 @@ public ElasticsearchCcrAsyncClient withTransportOptions(@Nullable TransportOptio * Deletes auto-follow patterns. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-delete-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -89,7 +89,7 @@ public CompletableFuture deleteAutoFollowPatter * a function that initializes a builder to create the * {@link DeleteAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-delete-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -105,7 +105,7 @@ public final CompletableFuture deleteAutoFollow * index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-follow.html">Documentation * on elastic.co */ @@ -124,7 +124,7 @@ public CompletableFuture follow(FollowRequest request) { * a function that initializes a builder to create the * {@link FollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-follow.html">Documentation * on elastic.co */ @@ -140,7 +140,7 @@ public final CompletableFuture follow( * status for each follower index * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-info.html">Documentation * on elastic.co */ @@ -159,7 +159,7 @@ public CompletableFuture followInfo(FollowInfoRequest reques * a function that initializes a builder to create the * {@link FollowInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-info.html">Documentation * on elastic.co */ @@ -175,7 +175,7 @@ public final CompletableFuture followInfo( * associated with each shard for the specified indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-stats.html">Documentation * on elastic.co */ @@ -194,7 +194,7 @@ public CompletableFuture followStats(FollowStatsRequest req * a function that initializes a builder to create the * {@link FollowStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-stats.html">Documentation * on elastic.co */ @@ -209,7 +209,7 @@ public final CompletableFuture followStats( * Removes the follower retention leases from the leader. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-forget-follower.html">Documentation * on elastic.co */ @@ -227,7 +227,7 @@ public CompletableFuture forgetFollower(ForgetFollowerRe * a function that initializes a builder to create the * {@link ForgetFollowerRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-forget-follower.html">Documentation * on elastic.co */ @@ -243,7 +243,7 @@ public final CompletableFuture forgetFollower( * pattern collection. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -262,7 +262,7 @@ public CompletableFuture getAutoFollowPattern(GetA * a function that initializes a builder to create the * {@link GetAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -276,7 +276,7 @@ public final CompletableFuture getAutoFollowPatter * pattern collection. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -291,7 +291,7 @@ public CompletableFuture getAutoFollowPattern() { * Pauses an auto-follow pattern * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-pause-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -310,7 +310,7 @@ public CompletableFuture pauseAutoFollowPattern( * a function that initializes a builder to create the * {@link PauseAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-pause-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -326,7 +326,7 @@ public final CompletableFuture pauseAutoFollowPa * operations from the leader index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-pause-follow.html">Documentation * on elastic.co */ @@ -345,7 +345,7 @@ public CompletableFuture pauseFollow(PauseFollowRequest req * a function that initializes a builder to create the * {@link PauseFollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-pause-follow.html">Documentation * on elastic.co */ @@ -362,7 +362,7 @@ public final CompletableFuture pauseFollow( * the specified patterns will be automatically configured as follower indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -382,7 +382,7 @@ public CompletableFuture putAutoFollowPattern(PutA * a function that initializes a builder to create the * {@link PutAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -397,7 +397,7 @@ public final CompletableFuture putAutoFollowPatter * Resumes an auto-follow pattern that has been paused * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-resume-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -416,7 +416,7 @@ public CompletableFuture resumeAutoFollowPatter * a function that initializes a builder to create the * {@link ResumeAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-resume-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -431,7 +431,7 @@ public final CompletableFuture resumeAutoFollow * Resumes a follower index that has been paused * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-resume-follow.html">Documentation * on elastic.co */ @@ -449,7 +449,7 @@ public CompletableFuture resumeFollow(ResumeFollowRequest * a function that initializes a builder to create the * {@link ResumeFollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-resume-follow.html">Documentation * on elastic.co */ @@ -464,7 +464,7 @@ public final CompletableFuture resumeFollow( * Gets all stats related to cross-cluster replication. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-stats.html">Documentation * on elastic.co */ public CompletableFuture stats() { @@ -479,7 +479,7 @@ public CompletableFuture stats() { * metadata and settings associated with cross-cluster replication. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-unfollow.html">Documentation * on elastic.co */ @@ -498,7 +498,7 @@ public CompletableFuture unfollow(UnfollowRequest request) { * a function that initializes a builder to create the * {@link UnfollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-unfollow.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java index 97c8e0c42..3b3d4730b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java @@ -71,7 +71,7 @@ public ElasticsearchCcrClient withTransportOptions(@Nullable TransportOptions tr * Deletes auto-follow patterns. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-delete-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -90,7 +90,7 @@ public DeleteAutoFollowPatternResponse deleteAutoFollowPattern(DeleteAutoFollowP * a function that initializes a builder to create the * {@link DeleteAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-delete-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -107,7 +107,7 @@ public final DeleteAutoFollowPatternResponse deleteAutoFollowPattern( * index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-follow.html">Documentation * on elastic.co */ @@ -126,7 +126,7 @@ public FollowResponse follow(FollowRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link FollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-follow.html">Documentation * on elastic.co */ @@ -142,7 +142,7 @@ public final FollowResponse follow(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-info.html">Documentation * on elastic.co */ @@ -161,7 +161,7 @@ public FollowInfoResponse followInfo(FollowInfoRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link FollowInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-info.html">Documentation * on elastic.co */ @@ -177,7 +177,7 @@ public final FollowInfoResponse followInfo(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-stats.html">Documentation * on elastic.co */ @@ -196,7 +196,7 @@ public FollowStatsResponse followStats(FollowStatsRequest request) throws IOExce * a function that initializes a builder to create the * {@link FollowStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-stats.html">Documentation * on elastic.co */ @@ -212,7 +212,7 @@ public final FollowStatsResponse followStats( * Removes the follower retention leases from the leader. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-forget-follower.html">Documentation * on elastic.co */ @@ -231,7 +231,7 @@ public ForgetFollowerResponse forgetFollower(ForgetFollowerRequest request) * a function that initializes a builder to create the * {@link ForgetFollowerRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-forget-follower.html">Documentation * on elastic.co */ @@ -248,7 +248,7 @@ public final ForgetFollowerResponse forgetFollower( * pattern collection. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -268,7 +268,7 @@ public GetAutoFollowPatternResponse getAutoFollowPattern(GetAutoFollowPatternReq * a function that initializes a builder to create the * {@link GetAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -283,7 +283,7 @@ public final GetAutoFollowPatternResponse getAutoFollowPattern( * pattern collection. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -298,7 +298,7 @@ public GetAutoFollowPatternResponse getAutoFollowPattern() throws IOException, E * Pauses an auto-follow pattern * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-pause-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -317,7 +317,7 @@ public PauseAutoFollowPatternResponse pauseAutoFollowPattern(PauseAutoFollowPatt * a function that initializes a builder to create the * {@link PauseAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-pause-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -334,7 +334,7 @@ public final PauseAutoFollowPatternResponse pauseAutoFollowPattern( * operations from the leader index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-pause-follow.html">Documentation * on elastic.co */ @@ -353,7 +353,7 @@ public PauseFollowResponse pauseFollow(PauseFollowRequest request) throws IOExce * a function that initializes a builder to create the * {@link PauseFollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-pause-follow.html">Documentation * on elastic.co */ @@ -371,7 +371,7 @@ public final PauseFollowResponse pauseFollow( * the specified patterns will be automatically configured as follower indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -392,7 +392,7 @@ public PutAutoFollowPatternResponse putAutoFollowPattern(PutAutoFollowPatternReq * a function that initializes a builder to create the * {@link PutAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -408,7 +408,7 @@ public final PutAutoFollowPatternResponse putAutoFollowPattern( * Resumes an auto-follow pattern that has been paused * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-resume-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -427,7 +427,7 @@ public ResumeAutoFollowPatternResponse resumeAutoFollowPattern(ResumeAutoFollowP * a function that initializes a builder to create the * {@link ResumeAutoFollowPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-resume-auto-follow-pattern.html">Documentation * on elastic.co */ @@ -443,7 +443,7 @@ public final ResumeAutoFollowPatternResponse resumeAutoFollowPattern( * Resumes a follower index that has been paused * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-resume-follow.html">Documentation * on elastic.co */ @@ -461,7 +461,7 @@ public ResumeFollowResponse resumeFollow(ResumeFollowRequest request) throws IOE * a function that initializes a builder to create the * {@link ResumeFollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-resume-follow.html">Documentation * on elastic.co */ @@ -477,7 +477,7 @@ public final ResumeFollowResponse resumeFollow( * Gets all stats related to cross-cluster replication. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-stats.html">Documentation * on elastic.co */ public CcrStatsResponse stats() throws IOException, ElasticsearchException { @@ -492,7 +492,7 @@ public CcrStatsResponse stats() throws IOException, ElasticsearchException { * metadata and settings associated with cross-cluster replication. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-unfollow.html">Documentation * on elastic.co */ @@ -511,7 +511,7 @@ public UnfollowResponse unfollow(UnfollowRequest request) throws IOException, El * a function that initializes a builder to create the * {@link UnfollowRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-unfollow.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java index 3fd28d52e..338d437b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java @@ -74,7 +74,7 @@ public ElasticsearchClusterAsyncClient withTransportOptions(@Nullable TransportO * Provides explanations for shard allocations in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -92,7 +92,7 @@ public CompletableFuture allocationExplain(Allocation * a function that initializes a builder to create the * {@link AllocationExplainRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -105,7 +105,7 @@ public final CompletableFuture allocationExplain( * Provides explanations for shard allocations in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -120,7 +120,7 @@ public CompletableFuture allocationExplain() { * Deletes a component template * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -139,7 +139,7 @@ public CompletableFuture deleteComponentTemplat * a function that initializes a builder to create the * {@link DeleteComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -154,7 +154,7 @@ public final CompletableFuture deleteComponentT * Clears cluster voting config exclusions. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -173,7 +173,7 @@ public CompletableFuture deleteVotingConfigExclusions( * a function that initializes a builder to create the * {@link DeleteVotingConfigExclusionsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -186,7 +186,7 @@ public final CompletableFuture deleteVotingConfigExclusions( * Clears cluster voting config exclusions. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -201,7 +201,7 @@ public CompletableFuture deleteVotingConfigExclusions() { * Returns information about whether a particular component template exist * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -219,7 +219,7 @@ public CompletableFuture existsComponentTemplate(ExistsComponen * a function that initializes a builder to create the * {@link ExistsComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -234,7 +234,7 @@ public final CompletableFuture existsComponentTemplate( * Returns one or more component templates * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -252,7 +252,7 @@ public CompletableFuture getComponentTemplate(GetC * a function that initializes a builder to create the * {@link GetComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -265,7 +265,7 @@ public final CompletableFuture getComponentTemplat * Returns one or more component templates * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -280,7 +280,7 @@ public CompletableFuture getComponentTemplate() { * Returns cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-get-settings.html">Documentation * on elastic.co */ @@ -298,7 +298,7 @@ public CompletableFuture getSettings(GetClusterSetti * a function that initializes a builder to create the * {@link GetClusterSettingsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-get-settings.html">Documentation * on elastic.co */ @@ -311,7 +311,7 @@ public final CompletableFuture getSettings( * Returns cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-get-settings.html">Documentation * on elastic.co */ @@ -326,7 +326,7 @@ public CompletableFuture getSettings() { * Returns basic information about the health of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-health.html">Documentation * on elastic.co */ @@ -344,7 +344,7 @@ public CompletableFuture health(HealthRequest request) { * a function that initializes a builder to create the * {@link HealthRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-health.html">Documentation * on elastic.co */ @@ -357,7 +357,7 @@ public final CompletableFuture health( * Returns basic information about the health of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-health.html">Documentation * on elastic.co */ @@ -372,7 +372,7 @@ public CompletableFuture health() { * Returns different information about the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-info.html">Documentation * on elastic.co */ @@ -390,7 +390,7 @@ public CompletableFuture info(ClusterInfoRequest request) { * a function that initializes a builder to create the * {@link ClusterInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-info.html">Documentation * on elastic.co */ @@ -406,7 +406,7 @@ public final CompletableFuture info( * mapping, allocate or fail shard) which have not yet been executed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-pending.html">Documentation * on elastic.co */ @@ -425,7 +425,7 @@ public CompletableFuture pendingTasks(PendingTasksRequest * a function that initializes a builder to create the * {@link PendingTasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-pending.html">Documentation * on elastic.co */ @@ -439,7 +439,7 @@ public final CompletableFuture pendingTasks( * mapping, allocate or fail shard) which have not yet been executed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-pending.html">Documentation * on elastic.co */ @@ -454,7 +454,7 @@ public CompletableFuture pendingTasks() { * Updates the cluster voting config exclusions by node ids or node names. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -472,7 +472,7 @@ public CompletableFuture postVotingConfigExclusions(PostVotingC * a function that initializes a builder to create the * {@link PostVotingConfigExclusionsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -485,7 +485,7 @@ public final CompletableFuture postVotingConfigExclusions( * Updates the cluster voting config exclusions by node ids or node names. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -500,7 +500,7 @@ public CompletableFuture postVotingConfigExclusions() { * Creates or updates a component template * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -518,7 +518,7 @@ public CompletableFuture putComponentTemplate(PutC * a function that initializes a builder to create the * {@link PutComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -533,7 +533,7 @@ public final CompletableFuture putComponentTemplat * Updates the cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-update-settings.html">Documentation * on elastic.co */ @@ -551,7 +551,7 @@ public CompletableFuture putSettings(PutClusterSetti * a function that initializes a builder to create the * {@link PutClusterSettingsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-update-settings.html">Documentation * on elastic.co */ @@ -564,7 +564,7 @@ public final CompletableFuture putSettings( * Updates the cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-update-settings.html">Documentation * on elastic.co */ @@ -579,7 +579,7 @@ public CompletableFuture putSettings() { * Returns the information about configured remote clusters. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-remote-info.html">Documentation * on elastic.co */ public CompletableFuture remoteInfo() { @@ -593,7 +593,7 @@ public CompletableFuture remoteInfo() { * Allows to manually change the allocation of individual shards in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-reroute.html">Documentation * on elastic.co */ @@ -611,7 +611,7 @@ public CompletableFuture reroute(RerouteRequest request) { * a function that initializes a builder to create the * {@link RerouteRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-reroute.html">Documentation * on elastic.co */ @@ -624,7 +624,7 @@ public final CompletableFuture reroute( * Allows to manually change the allocation of individual shards in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-reroute.html">Documentation * on elastic.co */ @@ -639,7 +639,7 @@ public CompletableFuture reroute() { * Returns a comprehensive information about the state of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-state.html">Documentation * on elastic.co */ @@ -657,7 +657,7 @@ public CompletableFuture state(StateRequest request) { * a function that initializes a builder to create the * {@link StateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-state.html">Documentation * on elastic.co */ @@ -670,7 +670,7 @@ public final CompletableFuture state( * Returns a comprehensive information about the state of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-state.html">Documentation * on elastic.co */ @@ -685,7 +685,7 @@ public CompletableFuture state() { * Returns high-level overview of cluster statistics. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-stats.html">Documentation * on elastic.co */ @@ -703,7 +703,7 @@ public CompletableFuture stats(ClusterStatsRequest request * a function that initializes a builder to create the * {@link ClusterStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-stats.html">Documentation * on elastic.co */ @@ -716,7 +716,7 @@ public final CompletableFuture stats( * Returns high-level overview of cluster statistics. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-stats.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java index b67362cce..001a8ef11 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java @@ -72,7 +72,7 @@ public ElasticsearchClusterClient withTransportOptions(@Nullable TransportOption * Provides explanations for shard allocations in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -91,7 +91,7 @@ public AllocationExplainResponse allocationExplain(AllocationExplainRequest requ * a function that initializes a builder to create the * {@link AllocationExplainRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -105,7 +105,7 @@ public final AllocationExplainResponse allocationExplain( * Provides explanations for shard allocations in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -120,7 +120,7 @@ public AllocationExplainResponse allocationExplain() throws IOException, Elastic * Deletes a component template * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -139,7 +139,7 @@ public DeleteComponentTemplateResponse deleteComponentTemplate(DeleteComponentTe * a function that initializes a builder to create the * {@link DeleteComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -155,7 +155,7 @@ public final DeleteComponentTemplateResponse deleteComponentTemplate( * Clears cluster voting config exclusions. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -174,7 +174,7 @@ public BooleanResponse deleteVotingConfigExclusions(DeleteVotingConfigExclusions * a function that initializes a builder to create the * {@link DeleteVotingConfigExclusionsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -188,7 +188,7 @@ public final BooleanResponse deleteVotingConfigExclusions( * Clears cluster voting config exclusions. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -203,7 +203,7 @@ public BooleanResponse deleteVotingConfigExclusions() throws IOException, Elasti * Returns information about whether a particular component template exist * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -222,7 +222,7 @@ public BooleanResponse existsComponentTemplate(ExistsComponentTemplateRequest re * a function that initializes a builder to create the * {@link ExistsComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -238,7 +238,7 @@ public final BooleanResponse existsComponentTemplate( * Returns one or more component templates * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -257,7 +257,7 @@ public GetComponentTemplateResponse getComponentTemplate(GetComponentTemplateReq * a function that initializes a builder to create the * {@link GetComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -271,7 +271,7 @@ public final GetComponentTemplateResponse getComponentTemplate( * Returns one or more component templates * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -286,7 +286,7 @@ public GetComponentTemplateResponse getComponentTemplate() throws IOException, E * Returns cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-get-settings.html">Documentation * on elastic.co */ @@ -305,7 +305,7 @@ public GetClusterSettingsResponse getSettings(GetClusterSettingsRequest request) * a function that initializes a builder to create the * {@link GetClusterSettingsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-get-settings.html">Documentation * on elastic.co */ @@ -319,7 +319,7 @@ public final GetClusterSettingsResponse getSettings( * Returns cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-get-settings.html">Documentation * on elastic.co */ @@ -334,7 +334,7 @@ public GetClusterSettingsResponse getSettings() throws IOException, Elasticsearc * Returns basic information about the health of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-health.html">Documentation * on elastic.co */ @@ -352,7 +352,7 @@ public HealthResponse health(HealthRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link HealthRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-health.html">Documentation * on elastic.co */ @@ -365,7 +365,7 @@ public final HealthResponse health(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-health.html">Documentation * on elastic.co */ @@ -380,7 +380,7 @@ public HealthResponse health() throws IOException, ElasticsearchException { * Returns different information about the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-info.html">Documentation * on elastic.co */ @@ -398,7 +398,7 @@ public ClusterInfoResponse info(ClusterInfoRequest request) throws IOException, * a function that initializes a builder to create the * {@link ClusterInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-info.html">Documentation * on elastic.co */ @@ -414,7 +414,7 @@ public final ClusterInfoResponse info(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-pending.html">Documentation * on elastic.co */ @@ -433,7 +433,7 @@ public PendingTasksResponse pendingTasks(PendingTasksRequest request) throws IOE * a function that initializes a builder to create the * {@link PendingTasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-pending.html">Documentation * on elastic.co */ @@ -448,7 +448,7 @@ public final PendingTasksResponse pendingTasks( * mapping, allocate or fail shard) which have not yet been executed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-pending.html">Documentation * on elastic.co */ @@ -463,7 +463,7 @@ public PendingTasksResponse pendingTasks() throws IOException, ElasticsearchExce * Updates the cluster voting config exclusions by node ids or node names. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -482,7 +482,7 @@ public BooleanResponse postVotingConfigExclusions(PostVotingConfigExclusionsRequ * a function that initializes a builder to create the * {@link PostVotingConfigExclusionsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -496,7 +496,7 @@ public final BooleanResponse postVotingConfigExclusions( * Updates the cluster voting config exclusions by node ids or node names. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/voting-config-exclusions.html">Documentation * on elastic.co */ @@ -511,7 +511,7 @@ public BooleanResponse postVotingConfigExclusions() throws IOException, Elastics * Creates or updates a component template * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -530,7 +530,7 @@ public PutComponentTemplateResponse putComponentTemplate(PutComponentTemplateReq * a function that initializes a builder to create the * {@link PutComponentTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-component-template.html">Documentation * on elastic.co */ @@ -546,7 +546,7 @@ public final PutComponentTemplateResponse putComponentTemplate( * Updates the cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-update-settings.html">Documentation * on elastic.co */ @@ -565,7 +565,7 @@ public PutClusterSettingsResponse putSettings(PutClusterSettingsRequest request) * a function that initializes a builder to create the * {@link PutClusterSettingsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-update-settings.html">Documentation * on elastic.co */ @@ -579,7 +579,7 @@ public final PutClusterSettingsResponse putSettings( * Updates the cluster settings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-update-settings.html">Documentation * on elastic.co */ @@ -594,7 +594,7 @@ public PutClusterSettingsResponse putSettings() throws IOException, Elasticsearc * Returns the information about configured remote clusters. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-remote-info.html">Documentation * on elastic.co */ public RemoteInfoResponse remoteInfo() throws IOException, ElasticsearchException { @@ -608,7 +608,7 @@ public RemoteInfoResponse remoteInfo() throws IOException, ElasticsearchExceptio * Allows to manually change the allocation of individual shards in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-reroute.html">Documentation * on elastic.co */ @@ -626,7 +626,7 @@ public RerouteResponse reroute(RerouteRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link RerouteRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-reroute.html">Documentation * on elastic.co */ @@ -639,7 +639,7 @@ public final RerouteResponse reroute(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-reroute.html">Documentation * on elastic.co */ @@ -654,7 +654,7 @@ public RerouteResponse reroute() throws IOException, ElasticsearchException { * Returns a comprehensive information about the state of the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-state.html">Documentation * on elastic.co */ @@ -672,7 +672,7 @@ public StateResponse state(StateRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link StateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-state.html">Documentation * on elastic.co */ @@ -685,7 +685,7 @@ public final StateResponse state(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-state.html">Documentation * on elastic.co */ @@ -700,7 +700,7 @@ public StateResponse state() throws IOException, ElasticsearchException { * Returns high-level overview of cluster statistics. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-stats.html">Documentation * on elastic.co */ @@ -718,7 +718,7 @@ public ClusterStatsResponse stats(ClusterStatsRequest request) throws IOExceptio * a function that initializes a builder to create the * {@link ClusterStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-stats.html">Documentation * on elastic.co */ @@ -732,7 +732,7 @@ public final ClusterStatsResponse stats( * Returns high-level overview of cluster statistics. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-stats.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java index d3ae2429c..81fd72678 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java @@ -56,7 +56,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/modules-cluster.html">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java index d7c8b0173..bb991c3c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java @@ -52,7 +52,7 @@ * Discounted cumulative gain (DCG) * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-rank-eval.html#_discounted_cumulative_gain_dcg">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java index 43236718b..f6142b716 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java @@ -52,7 +52,7 @@ * Expected Reciprocal Rank (ERR) * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-rank-eval.html#_expected_reciprocal_rank_err">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java index d640044fc..72fe31d6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java @@ -49,7 +49,7 @@ * Mean Reciprocal Rank * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-rank-eval.html#_mean_reciprocal_rank">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java index 6425e1c25..e636452c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java @@ -52,7 +52,7 @@ * Precision at K (P@k) * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-rank-eval.html#k-precision">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java index bfdee4f06..dc727cbfa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java @@ -49,7 +49,7 @@ * Recall at K (R@k) * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-rank-eval.html#k-recall">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Context.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Context.java index 781f83485..120558a1a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Context.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Context.java @@ -62,7 +62,7 @@ * document's field for the text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/query-dsl-mlt-query.html#_document_input_parameters">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java index ae116a523..243ccf945 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java @@ -104,7 +104,7 @@ public final CompletableFuture deletePolicy( * Creates the enrich index for an existing enrich policy. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/execute-enrich-policy-api.html">Documentation * on elastic.co */ @@ -122,7 +122,7 @@ public CompletableFuture executePolicy(ExecutePolicyReque * a function that initializes a builder to create the * {@link ExecutePolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/execute-enrich-policy-api.html">Documentation * on elastic.co */ @@ -183,7 +183,7 @@ public CompletableFuture getPolicy() { * Creates a new enrich policy. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-enrich-policy-api.html">Documentation * on elastic.co */ @@ -201,7 +201,7 @@ public CompletableFuture putPolicy(PutPolicyRequest request) * a function that initializes a builder to create the * {@link PutPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-enrich-policy-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java index d17976e12..0dc4febe4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java @@ -105,7 +105,7 @@ public final DeletePolicyResponse deletePolicy( * Creates the enrich index for an existing enrich policy. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/execute-enrich-policy-api.html">Documentation * on elastic.co */ @@ -124,7 +124,7 @@ public ExecutePolicyResponse executePolicy(ExecutePolicyRequest request) * a function that initializes a builder to create the * {@link ExecutePolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/execute-enrich-policy-api.html">Documentation * on elastic.co */ @@ -186,7 +186,7 @@ public GetPolicyResponse getPolicy() throws IOException, ElasticsearchException * Creates a new enrich policy. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-enrich-policy-api.html">Documentation * on elastic.co */ @@ -204,7 +204,7 @@ public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException, * a function that initializes a builder to create the * {@link PutPolicyRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-enrich-policy-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java index ae0c911fa..01f0b7d37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java @@ -108,7 +108,7 @@ public final CompletableFuture delete( * search * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-search-api.html">Documentation * on elastic.co */ @@ -129,7 +129,7 @@ public CompletableFuture> get(EqlGetRequest requ * a function that initializes a builder to create the * {@link EqlGetRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-search-api.html">Documentation * on elastic.co */ @@ -143,7 +143,7 @@ public final CompletableFuture> get( * search * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-search-api.html">Documentation * on elastic.co */ @@ -164,7 +164,7 @@ public CompletableFuture> get(EqlGetRequest requ * a function that initializes a builder to create the * {@link EqlGetRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-search-api.html">Documentation * on elastic.co */ @@ -180,7 +180,7 @@ public final CompletableFuture> get( * Language (EQL) search * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-status-api.html">Documentation * on elastic.co */ @@ -199,7 +199,7 @@ public CompletableFuture getStatus(GetEqlStatusRequest req * a function that initializes a builder to create the * {@link GetEqlStatusRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-status-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java index 7cfd2420f..0625c876d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java @@ -109,7 +109,7 @@ public final EqlDeleteResponse delete(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-search-api.html">Documentation * on elastic.co */ @@ -131,7 +131,7 @@ public EqlGetResponse get(EqlGetRequest request, Class * a function that initializes a builder to create the * {@link EqlGetRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-search-api.html">Documentation * on elastic.co */ @@ -145,7 +145,7 @@ public final EqlGetResponse get(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-search-api.html">Documentation * on elastic.co */ @@ -167,7 +167,7 @@ public EqlGetResponse get(EqlGetRequest request, Type tEventTyp * a function that initializes a builder to create the * {@link EqlGetRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-search-api.html">Documentation * on elastic.co */ @@ -183,7 +183,7 @@ public final EqlGetResponse get(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-status-api.html">Documentation * on elastic.co */ @@ -202,7 +202,7 @@ public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOExce * a function that initializes a builder to create the * {@link GetEqlStatusRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-async-eql-status-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java index 43034ea3e..023e943fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java @@ -71,7 +71,7 @@ public ElasticsearchEsqlAsyncClient withTransportOptions(@Nullable TransportOpti * Executes an ESQL request * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/esql-rest.html">Documentation * on elastic.co */ @@ -89,7 +89,7 @@ public CompletableFuture query(QueryRequest request) { * a function that initializes a builder to create the * {@link QueryRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/esql-rest.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java index ef7b531d7..d1f81c92f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java @@ -72,7 +72,7 @@ public ElasticsearchEsqlClient withTransportOptions(@Nullable TransportOptions t * Executes an ESQL request * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/esql-rest.html">Documentation * on elastic.co */ @@ -90,7 +90,7 @@ public BinaryResponse query(QueryRequest request) throws IOException, Elasticsea * a function that initializes a builder to create the * {@link QueryRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/esql-rest.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java index 4ec0027ef..a48523077 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java @@ -72,7 +72,7 @@ public ElasticsearchGraphAsyncClient withTransportOptions(@Nullable TransportOpt * an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/graph-explore-api.html">Documentation * on elastic.co */ @@ -91,7 +91,7 @@ public CompletableFuture explore(ExploreRequest request) { * a function that initializes a builder to create the * {@link ExploreRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/graph-explore-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java index e4ac20955..aa7640956 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java @@ -72,7 +72,7 @@ public ElasticsearchGraphClient withTransportOptions(@Nullable TransportOptions * an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/graph-explore-api.html">Documentation * on elastic.co */ @@ -91,7 +91,7 @@ public ExploreResponse explore(ExploreRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link ExploreRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/graph-explore-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index 433316e9b..37a14dd21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java @@ -108,7 +108,7 @@ public final CompletableFuture addBlock( * the text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-analyze.html">Documentation * on elastic.co */ @@ -127,7 +127,7 @@ public CompletableFuture analyze(AnalyzeRequest request) { * a function that initializes a builder to create the * {@link AnalyzeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-analyze.html">Documentation * on elastic.co */ @@ -141,7 +141,7 @@ public final CompletableFuture analyze( * the text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-analyze.html">Documentation * on elastic.co */ @@ -235,7 +235,7 @@ public final CompletableFuture clone( * Closes an index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-close.html">Documentation * on elastic.co */ @@ -253,7 +253,7 @@ public CompletableFuture close(CloseIndexRequest request) { * a function that initializes a builder to create the * {@link CloseIndexRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-close.html">Documentation * on elastic.co */ @@ -268,7 +268,7 @@ public final CompletableFuture close( * Creates an index with optional settings and mappings. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-create-index.html">Documentation * on elastic.co */ @@ -286,7 +286,7 @@ public CompletableFuture create(CreateIndexRequest request) * a function that initializes a builder to create the * {@link CreateIndexRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-create-index.html">Documentation * on elastic.co */ @@ -578,7 +578,7 @@ public final CompletableFuture deleteTemplate( * Analyzes the disk usage of each field of an index or data stream * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-disk-usage.html">Documentation * on elastic.co */ @@ -596,7 +596,7 @@ public CompletableFuture diskUsage(DiskUsageRequest request) * a function that initializes a builder to create the * {@link DiskUsageRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-disk-usage.html">Documentation * on elastic.co */ @@ -611,7 +611,7 @@ public final CompletableFuture diskUsage( * Downsample an index * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-downsample-data-stream.html">Documentation * on elastic.co */ @@ -629,7 +629,7 @@ public CompletableFuture downsample(DownsampleRequest reques * a function that initializes a builder to create the * {@link DownsampleRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-downsample-data-stream.html">Documentation * on elastic.co */ @@ -844,7 +844,7 @@ public final CompletableFuture fieldUsageStats( * Performs the flush operation on one or more indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-flush.html">Documentation * on elastic.co */ @@ -862,7 +862,7 @@ public CompletableFuture flush(FlushRequest request) { * a function that initializes a builder to create the * {@link FlushRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-flush.html">Documentation * on elastic.co */ @@ -875,7 +875,7 @@ public final CompletableFuture flush( * Performs the flush operation on one or more indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-flush.html">Documentation * on elastic.co */ @@ -1815,7 +1815,7 @@ public final CompletableFuture resolveIndex( * considered to be too large or too old. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-rollover-index.html">Documentation * on elastic.co */ @@ -1834,7 +1834,7 @@ public CompletableFuture rollover(RolloverRequest request) { * a function that initializes a builder to create the * {@link RolloverRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-rollover-index.html">Documentation * on elastic.co */ @@ -1941,7 +1941,7 @@ public CompletableFuture shardStores() { * Allow to shrink an existing index into a new index with fewer primary shards. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-shrink-index.html">Documentation * on elastic.co */ @@ -1959,7 +1959,7 @@ public CompletableFuture shrink(ShrinkRequest request) { * a function that initializes a builder to create the * {@link ShrinkRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-shrink-index.html">Documentation * on elastic.co */ @@ -2057,7 +2057,7 @@ public CompletableFuture simulateTemplate() { * shards. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-split-index.html">Documentation * on elastic.co */ @@ -2076,7 +2076,7 @@ public CompletableFuture split(SplitRequest request) { * a function that initializes a builder to create the * {@link SplitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-split-index.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java index 219a066a3..74071de73 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java @@ -106,7 +106,7 @@ public final AddBlockResponse addBlock(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-analyze.html">Documentation * on elastic.co */ @@ -125,7 +125,7 @@ public AnalyzeResponse analyze(AnalyzeRequest request) throws IOException, Elast * a function that initializes a builder to create the * {@link AnalyzeRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-analyze.html">Documentation * on elastic.co */ @@ -139,7 +139,7 @@ public final AnalyzeResponse analyze(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-analyze.html">Documentation * on elastic.co */ @@ -233,7 +233,7 @@ public final CloneIndexResponse clone(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-close.html">Documentation * on elastic.co */ @@ -251,7 +251,7 @@ public CloseIndexResponse close(CloseIndexRequest request) throws IOException, E * a function that initializes a builder to create the * {@link CloseIndexRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-close.html">Documentation * on elastic.co */ @@ -266,7 +266,7 @@ public final CloseIndexResponse close(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-create-index.html">Documentation * on elastic.co */ @@ -284,7 +284,7 @@ public CreateIndexResponse create(CreateIndexRequest request) throws IOException * a function that initializes a builder to create the * {@link CreateIndexRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-create-index.html">Documentation * on elastic.co */ @@ -589,7 +589,7 @@ public final DeleteTemplateResponse deleteTemplate( * Analyzes the disk usage of each field of an index or data stream * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-disk-usage.html">Documentation * on elastic.co */ @@ -607,7 +607,7 @@ public DiskUsageResponse diskUsage(DiskUsageRequest request) throws IOException, * a function that initializes a builder to create the * {@link DiskUsageRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-disk-usage.html">Documentation * on elastic.co */ @@ -622,7 +622,7 @@ public final DiskUsageResponse diskUsage(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-downsample-data-stream.html">Documentation * on elastic.co */ @@ -640,7 +640,7 @@ public DownsampleResponse downsample(DownsampleRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link DownsampleRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-downsample-data-stream.html">Documentation * on elastic.co */ @@ -862,7 +862,7 @@ public final FieldUsageStatsResponse fieldUsageStats( * Performs the flush operation on one or more indices. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-flush.html">Documentation * on elastic.co */ @@ -880,7 +880,7 @@ public FlushResponse flush(FlushRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link FlushRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-flush.html">Documentation * on elastic.co */ @@ -893,7 +893,7 @@ public final FlushResponse flush(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-flush.html">Documentation * on elastic.co */ @@ -1860,7 +1860,7 @@ public final ResolveIndexResponse resolveIndex( * considered to be too large or too old. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-rollover-index.html">Documentation * on elastic.co */ @@ -1879,7 +1879,7 @@ public RolloverResponse rollover(RolloverRequest request) throws IOException, El * a function that initializes a builder to create the * {@link RolloverRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-rollover-index.html">Documentation * on elastic.co */ @@ -1987,7 +1987,7 @@ public ShardStoresResponse shardStores() throws IOException, ElasticsearchExcept * Allow to shrink an existing index into a new index with fewer primary shards. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-shrink-index.html">Documentation * on elastic.co */ @@ -2005,7 +2005,7 @@ public ShrinkResponse shrink(ShrinkRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link ShrinkRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-shrink-index.html">Documentation * on elastic.co */ @@ -2106,7 +2106,7 @@ public SimulateTemplateResponse simulateTemplate() throws IOException, Elasticse * shards. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-split-index.html">Documentation * on elastic.co */ @@ -2125,7 +2125,7 @@ public SplitResponse split(SplitRequest request) throws IOException, Elasticsear * a function that initializes a builder to create the * {@link SplitRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/indices-split-index.html">Documentation * on elastic.co */ 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 edaf0ce75..f13e79d5c 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 @@ -64,7 +64,7 @@ /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/index-modules.html#index-modules-settings">Documentation * on elastic.co * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java index acbb13c0e..82b500380 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java @@ -55,7 +55,7 @@ * Mapping Limit Settings * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/mapping-settings-limit.html">Documentation * on elastic.co * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java index 00b333d17..a7b7f7141 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java @@ -104,7 +104,7 @@ public final CompletableFuture deletePipeline( * Returns statistical information about geoip databases * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/geoip-processor.html">Documentation * on elastic.co */ public CompletableFuture geoIpStats() { @@ -164,7 +164,7 @@ public CompletableFuture getPipeline() { * Returns a list of the built-in patterns. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/grok-processor.html">Documentation * on elastic.co */ public CompletableFuture processorGrok() { @@ -178,7 +178,7 @@ public CompletableFuture processorGrok() { * Creates or updates a pipeline. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ingest.html">Documentation * on elastic.co */ @@ -196,7 +196,7 @@ public CompletableFuture putPipeline(PutPipelineRequest req * a function that initializes a builder to create the * {@link PutPipelineRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ingest.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java index 62bcabee4..e5ca22f4f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java @@ -106,7 +106,7 @@ public final DeletePipelineResponse deletePipeline( * Returns statistical information about geoip databases * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/geoip-processor.html">Documentation * on elastic.co */ public GeoIpStatsResponse geoIpStats() throws IOException, ElasticsearchException { @@ -167,7 +167,7 @@ public GetPipelineResponse getPipeline() throws IOException, ElasticsearchExcept * Returns a list of the built-in patterns. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/grok-processor.html">Documentation * on elastic.co */ public ProcessorGrokResponse processorGrok() throws IOException, ElasticsearchException { @@ -181,7 +181,7 @@ public ProcessorGrokResponse processorGrok() throws IOException, ElasticsearchEx * Creates or updates a pipeline. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ingest.html">Documentation * on elastic.co */ @@ -199,7 +199,7 @@ public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOExce * a function that initializes a builder to create the * {@link PutPipelineRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ingest.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java index 0bfd251bd..dd2422d43 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java @@ -108,7 +108,7 @@ public final CompletableFuture clearTr * multiple times throughout its lifecycle. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-close-job.html">Documentation * on elastic.co */ @@ -127,7 +127,7 @@ public CompletableFuture closeJob(CloseJobRequest request) { * a function that initializes a builder to create the * {@link CloseJobRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-close-job.html">Documentation * on elastic.co */ @@ -142,7 +142,7 @@ public final CompletableFuture closeJob( * Deletes a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar.html">Documentation * on elastic.co */ @@ -160,7 +160,7 @@ public CompletableFuture deleteCalendar(DeleteCalendarRe * a function that initializes a builder to create the * {@link DeleteCalendarRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar.html">Documentation * on elastic.co */ @@ -175,7 +175,7 @@ public final CompletableFuture deleteCalendar( * Deletes scheduled events from a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar-event.html">Documentation * on elastic.co */ @@ -193,7 +193,7 @@ public CompletableFuture deleteCalendarEvent(Delete * a function that initializes a builder to create the * {@link DeleteCalendarEventRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar-event.html">Documentation * on elastic.co */ @@ -208,7 +208,7 @@ public final CompletableFuture deleteCalendarEvent( * Deletes anomaly detection jobs from a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar-job.html">Documentation * on elastic.co */ @@ -226,7 +226,7 @@ public CompletableFuture deleteCalendarJob(DeleteCale * a function that initializes a builder to create the * {@link DeleteCalendarJobRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar-job.html">Documentation * on elastic.co */ @@ -241,7 +241,7 @@ public final CompletableFuture deleteCalendarJob( * Deletes an existing data frame analytics job. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/delete-dfanalytics.html">Documentation * on elastic.co */ @@ -260,7 +260,7 @@ public CompletableFuture deleteDataFrameAnalyt * a function that initializes a builder to create the * {@link DeleteDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/delete-dfanalytics.html">Documentation * on elastic.co */ @@ -275,7 +275,7 @@ public final CompletableFuture deleteDataFrame * Deletes an existing datafeed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-datafeed.html">Documentation * on elastic.co */ @@ -293,7 +293,7 @@ public CompletableFuture deleteDatafeed(DeleteDatafeedRe * a function that initializes a builder to create the * {@link DeleteDatafeedRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-datafeed.html">Documentation * on elastic.co */ @@ -1857,7 +1857,7 @@ public final CompletableFuture putCalendarJob( * Instantiates a data frame analytics job. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-dfanalytics.html">Documentation * on elastic.co */ @@ -1876,7 +1876,7 @@ public CompletableFuture putDataFrameAnalytics( * a function that initializes a builder to create the * {@link PutDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-dfanalytics.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java index 6ee820417..713253154 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java @@ -110,7 +110,7 @@ public final ClearTrainedModelDeploymentCacheResponse clearTrainedModelDeploymen * multiple times throughout its lifecycle. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-close-job.html">Documentation * on elastic.co */ @@ -129,7 +129,7 @@ public CloseJobResponse closeJob(CloseJobRequest request) throws IOException, El * a function that initializes a builder to create the * {@link CloseJobRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-close-job.html">Documentation * on elastic.co */ @@ -144,7 +144,7 @@ public final CloseJobResponse closeJob(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar.html">Documentation * on elastic.co */ @@ -163,7 +163,7 @@ public DeleteCalendarResponse deleteCalendar(DeleteCalendarRequest request) * a function that initializes a builder to create the * {@link DeleteCalendarRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar.html">Documentation * on elastic.co */ @@ -179,7 +179,7 @@ public final DeleteCalendarResponse deleteCalendar( * Deletes scheduled events from a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar-event.html">Documentation * on elastic.co */ @@ -198,7 +198,7 @@ public DeleteCalendarEventResponse deleteCalendarEvent(DeleteCalendarEventReques * a function that initializes a builder to create the * {@link DeleteCalendarEventRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar-event.html">Documentation * on elastic.co */ @@ -214,7 +214,7 @@ public final DeleteCalendarEventResponse deleteCalendarEvent( * Deletes anomaly detection jobs from a calendar. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar-job.html">Documentation * on elastic.co */ @@ -233,7 +233,7 @@ public DeleteCalendarJobResponse deleteCalendarJob(DeleteCalendarJobRequest requ * a function that initializes a builder to create the * {@link DeleteCalendarJobRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-calendar-job.html">Documentation * on elastic.co */ @@ -249,7 +249,7 @@ public final DeleteCalendarJobResponse deleteCalendarJob( * Deletes an existing data frame analytics job. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/delete-dfanalytics.html">Documentation * on elastic.co */ @@ -268,7 +268,7 @@ public DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics(DeleteDataFrame * a function that initializes a builder to create the * {@link DeleteDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/delete-dfanalytics.html">Documentation * on elastic.co */ @@ -284,7 +284,7 @@ public final DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics( * Deletes an existing datafeed. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-datafeed.html">Documentation * on elastic.co */ @@ -303,7 +303,7 @@ public DeleteDatafeedResponse deleteDatafeed(DeleteDatafeedRequest request) * a function that initializes a builder to create the * {@link DeleteDatafeedRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ml-delete-datafeed.html">Documentation * on elastic.co */ @@ -1916,7 +1916,7 @@ public final PutCalendarJobResponse putCalendarJob( * Instantiates a data frame analytics job. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-dfanalytics.html">Documentation * on elastic.co */ @@ -1935,7 +1935,7 @@ public PutDataFrameAnalyticsResponse putDataFrameAnalytics(PutDataFrameAnalytics * a function that initializes a builder to create the * {@link PutDataFrameAnalyticsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-dfanalytics.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java index d08c79d72..ed64b0b64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java @@ -142,7 +142,7 @@ public final CompletableFuture getRepositor * Returns information about hot threads on each node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -160,7 +160,7 @@ public CompletableFuture hotThreads(HotThreadsRequest reques * a function that initializes a builder to create the * {@link HotThreadsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -173,7 +173,7 @@ public final CompletableFuture hotThreads( * Returns information about hot threads on each node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -188,7 +188,7 @@ public CompletableFuture hotThreads() { * Returns information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -206,7 +206,7 @@ public CompletableFuture info(NodesInfoRequest request) { * a function that initializes a builder to create the * {@link NodesInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -219,7 +219,7 @@ public final CompletableFuture info( * Returns information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -280,7 +280,7 @@ public CompletableFuture reloadSecureSettings() { * Returns statistical information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -298,7 +298,7 @@ public CompletableFuture stats(NodesStatsRequest request) { * a function that initializes a builder to create the * {@link NodesStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -311,7 +311,7 @@ public final CompletableFuture stats( * Returns statistical information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -326,7 +326,7 @@ public CompletableFuture stats() { * Returns low-level information about REST actions usage on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-usage.html">Documentation * on elastic.co */ @@ -344,7 +344,7 @@ public CompletableFuture usage(NodesUsageRequest request) { * a function that initializes a builder to create the * {@link NodesUsageRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-usage.html">Documentation * on elastic.co */ @@ -357,7 +357,7 @@ public final CompletableFuture usage( * Returns low-level information about REST actions usage on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-usage.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java index 84db36838..ccbb4850b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java @@ -144,7 +144,7 @@ public final GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo( * Returns information about hot threads on each node in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -162,7 +162,7 @@ public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOExcepti * a function that initializes a builder to create the * {@link HotThreadsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -175,7 +175,7 @@ public final HotThreadsResponse hotThreads(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-hot-threads.html">Documentation * on elastic.co */ @@ -190,7 +190,7 @@ public HotThreadsResponse hotThreads() throws IOException, ElasticsearchExceptio * Returns information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -208,7 +208,7 @@ public NodesInfoResponse info(NodesInfoRequest request) throws IOException, Elas * a function that initializes a builder to create the * {@link NodesInfoRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -221,7 +221,7 @@ public final NodesInfoResponse info(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-info.html">Documentation * on elastic.co */ @@ -284,7 +284,7 @@ public ReloadSecureSettingsResponse reloadSecureSettings() throws IOException, E * Returns statistical information about nodes in the cluster. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -302,7 +302,7 @@ public NodesStatsResponse stats(NodesStatsRequest request) throws IOException, E * a function that initializes a builder to create the * {@link NodesStatsRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -315,7 +315,7 @@ public final NodesStatsResponse stats(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-stats.html">Documentation * on elastic.co */ @@ -330,7 +330,7 @@ public NodesStatsResponse stats() throws IOException, ElasticsearchException { * Returns low-level information about REST actions usage on nodes. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-usage.html">Documentation * on elastic.co */ @@ -348,7 +348,7 @@ public NodesUsageResponse usage(NodesUsageRequest request) throws IOException, E * a function that initializes a builder to create the * {@link NodesUsageRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-usage.html">Documentation * on elastic.co */ @@ -361,7 +361,7 @@ public final NodesUsageResponse usage(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-usage.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java index a917a44f3..f392fa1fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java @@ -71,7 +71,7 @@ public ElasticsearchTasksAsyncClient withTransportOptions(@Nullable TransportOpt * Cancels a task, if it can be cancelled through an API. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -89,7 +89,7 @@ public CompletableFuture cancel(CancelRequest request) { * a function that initializes a builder to create the * {@link CancelRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -102,7 +102,7 @@ public final CompletableFuture cancel( * Cancels a task, if it can be cancelled through an API. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -117,7 +117,7 @@ public CompletableFuture cancel() { * Returns information about a task. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -135,7 +135,7 @@ public CompletableFuture get(GetTasksRequest request) { * a function that initializes a builder to create the * {@link GetTasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -150,7 +150,7 @@ public final CompletableFuture get( * Returns a list of tasks. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -168,7 +168,7 @@ public CompletableFuture list(ListRequest request) { * a function that initializes a builder to create the * {@link ListRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -180,7 +180,7 @@ public final CompletableFuture list(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java index 6c0f8dd4e..046d69827 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java @@ -71,7 +71,7 @@ public ElasticsearchTasksClient withTransportOptions(@Nullable TransportOptions * Cancels a task, if it can be cancelled through an API. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -89,7 +89,7 @@ public CancelResponse cancel(CancelRequest request) throws IOException, Elastics * a function that initializes a builder to create the * {@link CancelRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -102,7 +102,7 @@ public final CancelResponse cancel(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -117,7 +117,7 @@ public CancelResponse cancel() throws IOException, ElasticsearchException { * Returns information about a task. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -135,7 +135,7 @@ public GetTasksResponse get(GetTasksRequest request) throws IOException, Elastic * a function that initializes a builder to create the * {@link GetTasksRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -150,7 +150,7 @@ public final GetTasksResponse get(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -168,7 +168,7 @@ public ListResponse list(ListRequest request) throws IOException, ElasticsearchE * a function that initializes a builder to create the * {@link ListRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -181,7 +181,7 @@ public final ListResponse list(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ From d4baa91cafbdf31644acaab493a1d4b62c8e49a8 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Mon, 19 Feb 2024 19:45:50 +0100 Subject: [PATCH 10/25] Update release highlights --- docs/release-notes/release-highlights.asciidoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/release-notes/release-highlights.asciidoc b/docs/release-notes/release-highlights.asciidoc index bfc2f1324..1fca8fadb 100644 --- a/docs/release-notes/release-highlights.asciidoc +++ b/docs/release-notes/release-highlights.asciidoc @@ -5,6 +5,16 @@ These are the important new features and changes in minor releases. Every releas For a list of detailed changes, including bug fixes, please see the https://github.com/elastic/elasticsearch-java/releases[GitHub project realease notes]. +[discrete] +==== Version 8.13 + +* Add an example SpringBoot application - https://github.com/elastic/elasticsearch-java/pull/737[#737] + +[discrete] +==== Version 8.12 + +* No new feature. + [discrete] ==== Version 8.11 From 25a65cf32e17e32336fe99e24a510bf245755895 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:34:46 +0100 Subject: [PATCH 11/25] fixes-from-pr-2412 (#745) --- .../ElasticsearchAsyncClient.java | 6 +- .../elasticsearch/ElasticsearchClient.java | 6 +- .../_types/analysis/IcuTokenizer.java | 10 +- .../analysis/TokenFilterDefinition.java | 31 -- .../TokenFilterDefinitionBuilders.java | 18 - .../elasticsearch/core/FieldCapsRequest.java | 30 ++ .../elasticsearch/doc-files/api-spec.html | 270 +++++------ .../indices/SettingsSimilarity.java | 437 ++++++++++-------- .../indices/SettingsSimilarityBm25.java | 10 +- .../indices/SettingsSimilarityBuilders.java | 180 ++++++++ .../indices/SettingsSimilarityDfi.java | 10 +- .../indices/SettingsSimilarityDfr.java | 10 +- .../indices/SettingsSimilarityIb.java | 10 +- .../indices/SettingsSimilarityLmd.java | 10 +- .../indices/SettingsSimilarityLmj.java | 10 +- .../SettingsSimilarityScriptedTfidf.java | 10 +- .../indices/SettingsSimilarityVariant.java | 48 ++ .../ingest/AttachmentProcessor.java | 33 ++ .../nodes/info/NodeInfoDiscover.java | 166 ++++++- .../nodes/info/NodeInfoPath.java | 43 +- .../nodes/info/NodeInfoSettings.java | 19 +- .../nodes/info/NodeInfoSettingsCluster.java | 39 +- 22 files changed, 966 insertions(+), 440 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBuilders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.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 81fe4fe20..94f948351 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 @@ -2238,7 +2238,8 @@ public final CompletableFuture updateByQuery(UpdateByQueryReque } /** - * Performs an update on every document in the index without changing the + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the index without changing the * source, for example to pick up a mapping change. * * @param fn 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 4d5332c62..bab5c2406 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 @@ -2283,7 +2283,8 @@ public final UpdateResponse update( // ----- Endpoint: update_by_query /** - * Performs an update on every document in the index without changing the + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the index without changing the * source, for example to pick up a mapping change. * * @see */ @JsonpDeserializable -public class IcuTokenizer extends TokenizerBase implements TokenizerDefinitionVariant, TokenFilterDefinitionVariant { +public class IcuTokenizer extends TokenizerBase implements TokenizerDefinitionVariant { private final String ruleFiles; // --------------------------------------------------------------------------------------------- @@ -79,14 +79,6 @@ public TokenizerDefinition.Kind _tokenizerDefinitionKind() { return TokenizerDefinition.Kind.IcuTokenizer; } - /** - * TokenFilterDefinition variant kind. - */ - @Override - public TokenFilterDefinition.Kind _tokenFilterDefinitionKind() { - return TokenFilterDefinition.Kind.IcuTokenizer; - } - /** * Required - API name: {@code rule_files} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java index 0c4bfdd57..108e4a1d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java @@ -100,8 +100,6 @@ public enum Kind implements JsonEnum { IcuNormalizer("icu_normalizer"), - IcuTokenizer("icu_tokenizer"), - IcuTransform("icu_transform"), Kstem("kstem"), @@ -454,23 +452,6 @@ public IcuNormalizationTokenFilter icuNormalizer() { return TaggedUnionUtils.get(this, Kind.IcuNormalizer); } - /** - * Is this variant instance of kind {@code icu_tokenizer}? - */ - public boolean isIcuTokenizer() { - return _kind == Kind.IcuTokenizer; - } - - /** - * Get the {@code icu_tokenizer} variant value. - * - * @throws IllegalStateException - * if the current variant is not of the {@code icu_tokenizer} kind. - */ - public IcuTokenizer icuTokenizer() { - return TaggedUnionUtils.get(this, Kind.IcuTokenizer); - } - /** * Is this variant instance of kind {@code icu_transform}? */ @@ -1254,17 +1235,6 @@ public ObjectBuilder icuNormalizer( return this.icuNormalizer(fn.apply(new IcuNormalizationTokenFilter.Builder()).build()); } - public ObjectBuilder icuTokenizer(IcuTokenizer v) { - this._kind = Kind.IcuTokenizer; - this._value = v; - return this; - } - - public ObjectBuilder icuTokenizer( - Function> fn) { - return this.icuTokenizer(fn.apply(new IcuTokenizer.Builder()).build()); - } - public ObjectBuilder icuTransform(IcuTransformTokenFilter v) { this._kind = Kind.IcuTransform; this._value = v; @@ -1679,7 +1649,6 @@ protected static void setupTokenFilterDefinitionDeserializer(ObjectDeserializer< op.add(Builder::icuCollation, IcuCollationTokenFilter._DESERIALIZER, "icu_collation"); op.add(Builder::icuFolding, IcuFoldingTokenFilter._DESERIALIZER, "icu_folding"); op.add(Builder::icuNormalizer, IcuNormalizationTokenFilter._DESERIALIZER, "icu_normalizer"); - op.add(Builder::icuTokenizer, IcuTokenizer._DESERIALIZER, "icu_tokenizer"); op.add(Builder::icuTransform, IcuTransformTokenFilter._DESERIALIZER, "icu_transform"); op.add(Builder::kstem, KStemTokenFilter._DESERIALIZER, "kstem"); op.add(Builder::keepTypes, KeepTypesTokenFilter._DESERIALIZER, "keep_types"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java index 3219daec5..3eadfbbad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java @@ -293,24 +293,6 @@ public static TokenFilterDefinition icuNormalizer( return builder.build(); } - /** - * Creates a builder for the {@link IcuTokenizer icu_tokenizer} - * {@code TokenFilterDefinition} variant. - */ - public static IcuTokenizer.Builder icuTokenizer() { - return new IcuTokenizer.Builder(); - } - - /** - * Creates a TokenFilterDefinition of the {@link IcuTokenizer icu_tokenizer} - * {@code TokenFilterDefinition} variant. - */ - public static TokenFilterDefinition icuTokenizer(Function> fn) { - TokenFilterDefinition.Builder builder = new TokenFilterDefinition.Builder(); - builder.icuTokenizer(fn.apply(new IcuTokenizer.Builder()).build()); - return builder.build(); - } - /** * Creates a builder for the {@link IcuTransformTokenFilter icu_transform} * {@code TokenFilterDefinition} variant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java index 64f85d865..1bc9ceb3c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java @@ -87,6 +87,9 @@ public class FieldCapsRequest extends RequestBase implements JsonpSerializable { @Nullable private final Boolean ignoreUnavailable; + @Nullable + private final Boolean includeEmptyFields; + @Nullable private final Boolean includeUnmapped; @@ -108,6 +111,7 @@ private FieldCapsRequest(Builder builder) { this.fields = ApiTypeHelper.unmodifiable(builder.fields); this.filters = builder.filters; this.ignoreUnavailable = builder.ignoreUnavailable; + this.includeEmptyFields = builder.includeEmptyFields; this.includeUnmapped = builder.includeUnmapped; this.index = ApiTypeHelper.unmodifiable(builder.index); this.indexFilter = builder.indexFilter; @@ -178,6 +182,16 @@ public final Boolean ignoreUnavailable() { return this.ignoreUnavailable; } + /** + * If false, empty fields are not included in the response. + *

+ * API name: {@code include_empty_fields} + */ + @Nullable + public final Boolean includeEmptyFields() { + return this.includeEmptyFields; + } + /** * If true, unmapped fields are included in the response. *

@@ -294,6 +308,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean ignoreUnavailable; + @Nullable + private Boolean includeEmptyFields; + @Nullable private Boolean includeUnmapped; @@ -401,6 +418,16 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { return this; } + /** + * If false, empty fields are not included in the response. + *

+ * API name: {@code include_empty_fields} + */ + public final Builder includeEmptyFields(@Nullable Boolean value) { + this.includeEmptyFields = value; + return this; + } + /** * If true, unmapped fields are included in the response. *

@@ -634,6 +661,9 @@ protected static void setupFieldCapsRequestDeserializer(ObjectDeserializer 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/4cb84340eb2908f2e67b44123fe0af08cfb89f9b/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/d792c326a393769cc783482cf209435750d45029/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java index 7f3110357..319cc2eb7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch.indices; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -26,9 +28,13 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.OpenTaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; +import java.lang.Object; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -57,39 +63,74 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarity implements JsonpSerializable { - @Nullable - private final SettingsSimilarityBm25 bm25; +public class SettingsSimilarity implements OpenTaggedUnion, JsonpSerializable { - @Nullable - private final SettingsSimilarityDfi dfi; + /** + * {@link SettingsSimilarity} variant kinds. + * + * @see API + * specification + */ - @Nullable - private final SettingsSimilarityDfr dfr; + public enum Kind implements JsonEnum { + Bm25("bm25"), - @Nullable - private final SettingsSimilarityIb ib; + Dfi("dfi"), - @Nullable - private final SettingsSimilarityLmd lmd; + Dfr("dfr"), - @Nullable - private final SettingsSimilarityLmj lmj; + Ib("ib"), - @Nullable - private final SettingsSimilarityScriptedTfidf scriptedTfidf; + Lmd("lmd"), + + Lmj("lmj"), + + ScriptedTfidf("scripted_tfidf"), + + /** A custom {@code SettingsSimilarity} defined by a plugin */ + _Custom(null) + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } - // --------------------------------------------------------------------------------------------- + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + public SettingsSimilarity(SettingsSimilarityVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._settingsSimilarityKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; + + } private SettingsSimilarity(Builder builder) { - this.bm25 = builder.bm25; - this.dfi = builder.dfi; - this.dfr = builder.dfr; - this.ib = builder.ib; - this.lmd = builder.lmd; - this.lmj = builder.lmj; - this.scriptedTfidf = builder.scriptedTfidf; + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + this._customKind = builder._customKind; } @@ -98,278 +139,285 @@ public static SettingsSimilarity of(Function - implements - ObjectBuilder { - @Nullable - private SettingsSimilarityBm25 bm25; + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { - @Nullable - private SettingsSimilarityDfi dfi; + generator.writeStartObject(); - @Nullable - private SettingsSimilarityDfr dfr; + generator.writeKey(_kind == Kind._Custom ? _customKind : _kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } - @Nullable - private SettingsSimilarityIb ib; + generator.writeEnd(); - @Nullable - private SettingsSimilarityLmd lmd; + } - @Nullable - private SettingsSimilarityLmj lmj; + @Override + public String toString() { + return JsonpUtils.toString(this); + } - @Nullable - private SettingsSimilarityScriptedTfidf scriptedTfidf; + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Kind _kind; + private Object _value; + private String _customKind; - /** - * API name: {@code bm25} - */ - public final Builder bm25(@Nullable SettingsSimilarityBm25 value) { - this.bm25 = value; + @Override + protected Builder self() { + return this; + } + public ObjectBuilder bm25(SettingsSimilarityBm25 v) { + this._kind = Kind.Bm25; + this._value = v; return this; } - /** - * API name: {@code bm25} - */ - public final Builder bm25(Function> fn) { + public ObjectBuilder bm25( + Function> fn) { return this.bm25(fn.apply(new SettingsSimilarityBm25.Builder()).build()); } - /** - * API name: {@code dfi} - */ - public final Builder dfi(@Nullable SettingsSimilarityDfi value) { - this.dfi = value; + public ObjectBuilder dfi(SettingsSimilarityDfi v) { + this._kind = Kind.Dfi; + this._value = v; return this; } - /** - * API name: {@code dfi} - */ - public final Builder dfi(Function> fn) { + public ObjectBuilder dfi( + Function> fn) { return this.dfi(fn.apply(new SettingsSimilarityDfi.Builder()).build()); } - /** - * API name: {@code dfr} - */ - public final Builder dfr(@Nullable SettingsSimilarityDfr value) { - this.dfr = value; + public ObjectBuilder dfr(SettingsSimilarityDfr v) { + this._kind = Kind.Dfr; + this._value = v; return this; } - /** - * API name: {@code dfr} - */ - public final Builder dfr(Function> fn) { + public ObjectBuilder dfr( + Function> fn) { return this.dfr(fn.apply(new SettingsSimilarityDfr.Builder()).build()); } - /** - * API name: {@code ib} - */ - public final Builder ib(@Nullable SettingsSimilarityIb value) { - this.ib = value; + public ObjectBuilder ib(SettingsSimilarityIb v) { + this._kind = Kind.Ib; + this._value = v; return this; } - /** - * API name: {@code ib} - */ - public final Builder ib(Function> fn) { + public ObjectBuilder ib( + Function> fn) { return this.ib(fn.apply(new SettingsSimilarityIb.Builder()).build()); } - /** - * API name: {@code lmd} - */ - public final Builder lmd(@Nullable SettingsSimilarityLmd value) { - this.lmd = value; + public ObjectBuilder lmd(SettingsSimilarityLmd v) { + this._kind = Kind.Lmd; + this._value = v; return this; } - /** - * API name: {@code lmd} - */ - public final Builder lmd(Function> fn) { + public ObjectBuilder lmd( + Function> fn) { return this.lmd(fn.apply(new SettingsSimilarityLmd.Builder()).build()); } - /** - * API name: {@code lmj} - */ - public final Builder lmj(@Nullable SettingsSimilarityLmj value) { - this.lmj = value; + public ObjectBuilder lmj(SettingsSimilarityLmj v) { + this._kind = Kind.Lmj; + this._value = v; return this; } - /** - * API name: {@code lmj} - */ - public final Builder lmj(Function> fn) { + public ObjectBuilder lmj( + Function> fn) { return this.lmj(fn.apply(new SettingsSimilarityLmj.Builder()).build()); } - /** - * API name: {@code scripted_tfidf} - */ - public final Builder scriptedTfidf(@Nullable SettingsSimilarityScriptedTfidf value) { - this.scriptedTfidf = value; + public ObjectBuilder scriptedTfidf(SettingsSimilarityScriptedTfidf v) { + this._kind = Kind.ScriptedTfidf; + this._value = v; return this; } - /** - * API name: {@code scripted_tfidf} - */ - public final Builder scriptedTfidf( + public ObjectBuilder scriptedTfidf( Function> fn) { return this.scriptedTfidf(fn.apply(new SettingsSimilarityScriptedTfidf.Builder()).build()); } - @Override - protected Builder self() { - return this; - } - /** - * Builds a {@link SettingsSimilarity}. + * Define this {@code SettingsSimilarity} as a plugin-defined variant. * - * @throws NullPointerException - * if some of the required fields are null. + * @param name + * the plugin-defined identifier + * @param data + * the data for this custom {@code SettingsSimilarity}. It is + * converted internally to {@link JsonData}. */ + public ObjectBuilder _custom(String name, Object data) { + this._kind = Kind._Custom; + this._customKind = name; + this._value = JsonData.of(data); + return this; + } + public SettingsSimilarity build() { _checkSingleUse(); - return new SettingsSimilarity(this); } - } - - // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for {@link SettingsSimilarity} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, SettingsSimilarity::setupSettingsSimilarityDeserializer); + } - protected static void setupSettingsSimilarityDeserializer(ObjectDeserializer op) { + protected static void setupSettingsSimilarityDeserializer(ObjectDeserializer op) { op.add(Builder::bm25, SettingsSimilarityBm25._DESERIALIZER, "bm25"); op.add(Builder::dfi, SettingsSimilarityDfi._DESERIALIZER, "dfi"); @@ -379,6 +427,13 @@ protected static void setupSettingsSimilarityDeserializer(ObjectDeserializer { + JsonpUtils.ensureCustomVariantsAllowed(parser, mapper); + builder._custom(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); + }); + } + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SettingsSimilarity::setupSettingsSimilarityDeserializer, Builder::build); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java index e9cf76fb4..addd2cfb5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java @@ -59,7 +59,7 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarityBm25 implements JsonpSerializable { +public class SettingsSimilarityBm25 implements SettingsSimilarityVariant, JsonpSerializable { private final double b; private final boolean discountOverlaps; @@ -80,6 +80,14 @@ public static SettingsSimilarityBm25 of(Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.bm25(fn.apply(new SettingsSimilarityBm25.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityDfi dfi} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityDfi.Builder dfi() { + return new SettingsSimilarityDfi.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityDfi dfi} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity dfi( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.dfi(fn.apply(new SettingsSimilarityDfi.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityDfr dfr} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityDfr.Builder dfr() { + return new SettingsSimilarityDfr.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityDfr dfr} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity dfr( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.dfr(fn.apply(new SettingsSimilarityDfr.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityIb ib} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityIb.Builder ib() { + return new SettingsSimilarityIb.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityIb ib} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity ib( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.ib(fn.apply(new SettingsSimilarityIb.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityLmd lmd} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityLmd.Builder lmd() { + return new SettingsSimilarityLmd.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmd lmd} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity lmd( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.lmd(fn.apply(new SettingsSimilarityLmd.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityLmj lmj} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityLmj.Builder lmj() { + return new SettingsSimilarityLmj.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmj lmj} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity lmj( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.lmj(fn.apply(new SettingsSimilarityLmj.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityScriptedTfidf + * scripted_tfidf} {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityScriptedTfidf.Builder scriptedTfidf() { + return new SettingsSimilarityScriptedTfidf.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityScriptedTfidf + * scripted_tfidf} {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity scriptedTfidf( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.scriptedTfidf(fn.apply(new SettingsSimilarityScriptedTfidf.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java index 400b33b01..acc0cfb49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java @@ -59,7 +59,7 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarityDfi implements JsonpSerializable { +public class SettingsSimilarityDfi implements SettingsSimilarityVariant, JsonpSerializable { private final DFIIndependenceMeasure independenceMeasure; // --------------------------------------------------------------------------------------------- @@ -75,6 +75,14 @@ public static SettingsSimilarityDfi of(Function */ @JsonpDeserializable -public class SettingsSimilarityDfr implements JsonpSerializable { +public class SettingsSimilarityDfr implements SettingsSimilarityVariant, JsonpSerializable { private final DFRAfterEffect afterEffect; private final DFRBasicModel basicModel; @@ -82,6 +82,14 @@ public static SettingsSimilarityDfr of(Function */ @JsonpDeserializable -public class SettingsSimilarityIb implements JsonpSerializable { +public class SettingsSimilarityIb implements SettingsSimilarityVariant, JsonpSerializable { private final IBDistribution distribution; private final IBLambda lambda; @@ -82,6 +82,14 @@ public static SettingsSimilarityIb of(Function */ @JsonpDeserializable -public class SettingsSimilarityLmd implements JsonpSerializable { +public class SettingsSimilarityLmd implements SettingsSimilarityVariant, JsonpSerializable { private final int mu; // --------------------------------------------------------------------------------------------- @@ -73,6 +73,14 @@ public static SettingsSimilarityLmd of(Function */ @JsonpDeserializable -public class SettingsSimilarityLmj implements JsonpSerializable { +public class SettingsSimilarityLmj implements SettingsSimilarityVariant, JsonpSerializable { private final double lambda; // --------------------------------------------------------------------------------------------- @@ -73,6 +73,14 @@ public static SettingsSimilarityLmj of(Function */ @JsonpDeserializable -public class SettingsSimilarityScriptedTfidf implements JsonpSerializable { +public class SettingsSimilarityScriptedTfidf implements SettingsSimilarityVariant, JsonpSerializable { private final Script script; // --------------------------------------------------------------------------------------------- @@ -75,6 +75,14 @@ public static SettingsSimilarityScriptedTfidf of( return fn.apply(new Builder()).build(); } + /** + * SettingsSimilarity variant kind. + */ + @Override + public SettingsSimilarity.Kind _settingsSimilarityKind() { + return SettingsSimilarity.Kind.ScriptedTfidf; + } + /** * Required - API name: {@code script} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java new file mode 100644 index 000000000..badfa9446 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link SettingsSimilarity} variants. + */ +public interface SettingsSimilarityVariant { + + SettingsSimilarity.Kind _settingsSimilarityKind(); + + default SettingsSimilarity _toSettingsSimilarity() { + return new SettingsSimilarity(this); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java index 145985311..4cabffb36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java @@ -76,6 +76,9 @@ public class AttachmentProcessor extends ProcessorBase implements ProcessorVaria @Nullable private final String targetField; + @Nullable + private final Boolean removeBinary; + @Nullable private final String resourceName; @@ -90,6 +93,7 @@ private AttachmentProcessor(Builder builder) { this.indexedCharsField = builder.indexedCharsField; this.properties = ApiTypeHelper.unmodifiable(builder.properties); this.targetField = builder.targetField; + this.removeBinary = builder.removeBinary; this.resourceName = builder.resourceName; } @@ -170,6 +174,16 @@ public final String targetField() { return this.targetField; } + /** + * If true, the binary field will be removed from the document + *

+ * API name: {@code remove_binary} + */ + @Nullable + public final Boolean removeBinary() { + return this.removeBinary; + } + /** * Field containing the name of the resource to decode. If specified, the * processor passes this resource name to the underlying Tika library to enable @@ -217,6 +231,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("target_field"); generator.write(this.targetField); + } + if (this.removeBinary != null) { + generator.writeKey("remove_binary"); + generator.write(this.removeBinary); + } if (this.resourceName != null) { generator.writeKey("resource_name"); @@ -252,6 +271,9 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + @Nullable + private Boolean removeBinary; + @Nullable private String resourceName; @@ -338,6 +360,16 @@ public final Builder targetField(@Nullable String value) { return this; } + /** + * If true, the binary field will be removed from the document + *

+ * API name: {@code remove_binary} + */ + public final Builder removeBinary(@Nullable Boolean value) { + this.removeBinary = value; + return this; + } + /** * Field containing the name of the resource to decode. If specified, the * processor passes this resource name to the underlying Tika library to enable @@ -385,6 +417,7 @@ protected static void setupAttachmentProcessorDeserializer(ObjectDeserializer settings; + + private final List seedHosts; + + @Nullable + private final String type; + + private final List seedProviders; // --------------------------------------------------------------------------------------------- private NodeInfoDiscover(Builder builder) { - this.seedHosts = ApiTypeHelper.requireNonNull(builder.seedHosts, this, "seedHosts"); + this.settings = ApiTypeHelper.unmodifiable(builder.settings); + + this.seedHosts = ApiTypeHelper.unmodifiable(builder.seedHosts); + this.type = builder.type; + this.seedProviders = ApiTypeHelper.unmodifiable(builder.seedProviders); } @@ -74,12 +89,34 @@ public static NodeInfoDiscover of(Function settings() { + return this.settings; + } + + /** + * API name: {@code seed_hosts} */ - public final String seedHosts() { + public final List seedHosts() { return this.seedHosts; } + /** + * API name: {@code type} + */ + @Nullable + public final String type() { + return this.type; + } + + /** + * API name: {@code seed_providers} + */ + public final List seedProviders() { + return this.seedProviders; + } + /** * Serialize this object to JSON. */ @@ -91,8 +128,37 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("seed_hosts"); - generator.write(this.seedHosts); + for (Map.Entry item0 : this.settings.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + + if (ApiTypeHelper.isDefined(this.seedHosts)) { + generator.writeKey("seed_hosts"); + generator.writeStartArray(); + for (String item0 : this.seedHosts) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.type != null) { + generator.writeKey("type"); + generator.write(this.type); + + } + if (ApiTypeHelper.isDefined(this.seedProviders)) { + generator.writeKey("seed_providers"); + generator.writeStartArray(); + for (String item0 : this.seedProviders) { + generator.write(item0); + + } + generator.writeEnd(); + + } } @@ -108,13 +174,83 @@ public String toString() { */ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private String seedHosts; + @Nullable + private Map settings = new HashMap<>(); /** - * Required - API name: {@code seed_hosts} + * Additional or alternative settings + *

+ * Adds all entries of map to settings. */ - public final Builder seedHosts(String value) { - this.seedHosts = value; + public final Builder settings(Map map) { + this.settings = _mapPutAll(this.settings, map); + return this; + } + + /** + * Additional or alternative settings + *

+ * Adds an entry to settings. + */ + public final Builder settings(String key, JsonData value) { + this.settings = _mapPut(this.settings, key, value); + return this; + } + + @Nullable + private List seedHosts; + + @Nullable + private String type; + + @Nullable + private List seedProviders; + + /** + * API name: {@code seed_hosts} + *

+ * Adds all elements of list to seedHosts. + */ + public final Builder seedHosts(List list) { + this.seedHosts = _listAddAll(this.seedHosts, list); + return this; + } + + /** + * API name: {@code seed_hosts} + *

+ * Adds one or more values to seedHosts. + */ + public final Builder seedHosts(String value, String... values) { + this.seedHosts = _listAdd(this.seedHosts, value, values); + return this; + } + + /** + * API name: {@code type} + */ + public final Builder type(@Nullable String value) { + this.type = value; + return this; + } + + /** + * API name: {@code seed_providers} + *

+ * Adds all elements of list to seedProviders. + */ + public final Builder seedProviders(List list) { + this.seedProviders = _listAddAll(this.seedProviders, list); + return this; + } + + /** + * API name: {@code seed_providers} + *

+ * Adds one or more values to seedProviders. + */ + public final Builder seedProviders(String value, String... values) { + this.seedProviders = _listAdd(this.seedProviders, value, values); return this; } @@ -146,7 +282,15 @@ public NodeInfoDiscover build() { protected static void setupNodeInfoDiscoverDeserializer(ObjectDeserializer op) { - op.add(Builder::seedHosts, JsonpDeserializer.stringDeserializer(), "seed_hosts"); + op.add(Builder::seedHosts, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "seed_hosts"); + op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type"); + op.add(Builder::seedProviders, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "seed_providers"); + + op.setUnknownFieldHandler((builder, name, parser, mapper) -> { + builder.settings(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); + }); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java index 1074b0778..1cb88dc98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java @@ -60,8 +60,10 @@ */ @JsonpDeserializable public class NodeInfoPath implements JsonpSerializable { + @Nullable private final String logs; + @Nullable private final String home; private final List repo; @@ -72,9 +74,9 @@ public class NodeInfoPath implements JsonpSerializable { private NodeInfoPath(Builder builder) { - this.logs = ApiTypeHelper.requireNonNull(builder.logs, this, "logs"); - this.home = ApiTypeHelper.requireNonNull(builder.home, this, "home"); - this.repo = ApiTypeHelper.unmodifiableRequired(builder.repo, this, "repo"); + this.logs = builder.logs; + this.home = builder.home; + this.repo = ApiTypeHelper.unmodifiable(builder.repo); this.data = ApiTypeHelper.unmodifiable(builder.data); } @@ -84,21 +86,23 @@ public static NodeInfoPath of(Function> fn) } /** - * Required - API name: {@code logs} + * API name: {@code logs} */ + @Nullable public final String logs() { return this.logs; } /** - * Required - API name: {@code home} + * API name: {@code home} */ + @Nullable public final String home() { return this.home; } /** - * Required - API name: {@code repo} + * API name: {@code repo} */ public final List repo() { return this.repo; @@ -122,12 +126,16 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("logs"); - generator.write(this.logs); + if (this.logs != null) { + generator.writeKey("logs"); + generator.write(this.logs); - generator.writeKey("home"); - generator.write(this.home); + } + if (this.home != null) { + generator.writeKey("home"); + generator.write(this.home); + } if (ApiTypeHelper.isDefined(this.repo)) { generator.writeKey("repo"); generator.writeStartArray(); @@ -163,33 +171,36 @@ public String toString() { */ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable private String logs; + @Nullable private String home; + @Nullable private List repo; @Nullable private List data; /** - * Required - API name: {@code logs} + * API name: {@code logs} */ - public final Builder logs(String value) { + public final Builder logs(@Nullable String value) { this.logs = value; return this; } /** - * Required - API name: {@code home} + * API name: {@code home} */ - public final Builder home(String value) { + public final Builder home(@Nullable String value) { this.home = value; return this; } /** - * Required - API name: {@code repo} + * API name: {@code repo} *

* Adds all elements of list to repo. */ @@ -199,7 +210,7 @@ public final Builder repo(List list) { } /** - * Required - API name: {@code repo} + * API name: {@code repo} *

* Adds one or more values to repo. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java index de50a5480..f2caa5182 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java @@ -62,6 +62,7 @@ public class NodeInfoSettings implements JsonpSerializable { private final NodeInfoSettingsNode node; + @Nullable private final NodeInfoPath path; @Nullable @@ -103,7 +104,7 @@ private NodeInfoSettings(Builder builder) { this.cluster = ApiTypeHelper.requireNonNull(builder.cluster, this, "cluster"); this.node = ApiTypeHelper.requireNonNull(builder.node, this, "node"); - this.path = ApiTypeHelper.requireNonNull(builder.path, this, "path"); + this.path = builder.path; this.repositories = builder.repositories; this.discovery = builder.discovery; this.action = builder.action; @@ -138,8 +139,9 @@ public final NodeInfoSettingsNode node() { } /** - * Required - API name: {@code path} + * API name: {@code path} */ + @Nullable public final NodeInfoPath path() { return this.path; } @@ -254,9 +256,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("node"); this.node.serialize(generator, mapper); - generator.writeKey("path"); - this.path.serialize(generator, mapper); + if (this.path != null) { + generator.writeKey("path"); + this.path.serialize(generator, mapper); + } if (this.repositories != null) { generator.writeKey("repositories"); this.repositories.serialize(generator, mapper); @@ -330,6 +334,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private NodeInfoSettingsNode node; + @Nullable private NodeInfoPath path; @Nullable @@ -397,15 +402,15 @@ public final Builder node(Function> fn) { return this.path(fn.apply(new NodeInfoPath.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java index fa83093b4..17c3f2bed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java @@ -32,6 +32,7 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -68,8 +69,7 @@ public class NodeInfoSettingsCluster implements JsonpSerializable { private final NodeInfoSettingsClusterElection election; - @Nullable - private final String initialMasterNodes; + private final List initialMasterNodes; @Nullable private final DeprecationIndexing deprecationIndexing; @@ -81,7 +81,7 @@ private NodeInfoSettingsCluster(Builder builder) { this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); this.routing = builder.routing; this.election = ApiTypeHelper.requireNonNull(builder.election, this, "election"); - this.initialMasterNodes = builder.initialMasterNodes; + this.initialMasterNodes = ApiTypeHelper.unmodifiable(builder.initialMasterNodes); this.deprecationIndexing = builder.deprecationIndexing; } @@ -115,8 +115,7 @@ public final NodeInfoSettingsClusterElection election() { /** * API name: {@code initial_master_nodes} */ - @Nullable - public final String initialMasterNodes() { + public final List initialMasterNodes() { return this.initialMasterNodes; } @@ -150,9 +149,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("election"); this.election.serialize(generator, mapper); - if (this.initialMasterNodes != null) { + if (ApiTypeHelper.isDefined(this.initialMasterNodes)) { generator.writeKey("initial_master_nodes"); - generator.write(this.initialMasterNodes); + generator.writeStartArray(); + for (String item0 : this.initialMasterNodes) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.deprecationIndexing != null) { @@ -185,7 +189,7 @@ public static class Builder extends WithJsonObjectBuilderBase private NodeInfoSettingsClusterElection election; @Nullable - private String initialMasterNodes; + private List initialMasterNodes; @Nullable private DeprecationIndexing deprecationIndexing; @@ -231,9 +235,21 @@ public final Builder election( /** * API name: {@code initial_master_nodes} + *

+ * Adds all elements of list to initialMasterNodes. + */ + public final Builder initialMasterNodes(List list) { + this.initialMasterNodes = _listAddAll(this.initialMasterNodes, list); + return this; + } + + /** + * API name: {@code initial_master_nodes} + *

+ * Adds one or more values to initialMasterNodes. */ - public final Builder initialMasterNodes(@Nullable String value) { - this.initialMasterNodes = value; + public final Builder initialMasterNodes(String value, String... values) { + this.initialMasterNodes = _listAdd(this.initialMasterNodes, value, values); return this; } @@ -285,7 +301,8 @@ protected static void setupNodeInfoSettingsClusterDeserializer( op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); op.add(Builder::routing, IndexRouting._DESERIALIZER, "routing"); op.add(Builder::election, NodeInfoSettingsClusterElection._DESERIALIZER, "election"); - op.add(Builder::initialMasterNodes, JsonpDeserializer.stringDeserializer(), "initial_master_nodes"); + op.add(Builder::initialMasterNodes, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "initial_master_nodes"); op.add(Builder::deprecationIndexing, DeprecationIndexing._DESERIALIZER, "deprecation_indexing"); } From 5c6487ceaf6b7a527921318494a35f57d8ac552b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Thu, 22 Feb 2024 14:46:14 +0100 Subject: [PATCH 12/25] [DOCS] Adds compatibility matrix to docs and README. (#749) --- README.md | 19 +++++++++++++++++++ docs/introduction.asciidoc | 20 ++++++++++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4086d29ad..59a78fb39 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,25 @@ of the getting started documentation. Refer to the [Connecting section](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_connecting) of the getting started documentation. +## Compatibility + +The Elasticsearch client is compatible with currently maintained Java versions. + +The Java client is forward compatible; meaning that the client supports +communicating with greater or equal minor versions of Elasticsearch without +breaking. It does not mean that the client automatically supports new features +of newer Elasticsearch versions; it is only possible after a release of a new +client version. For example, a 8.12 client version won't automatically support +the new features of the 8.13 version of Elasticsearch, the 8.13 client version +is required for that. Elasticsearch language clients are only backwards +compatible with default distributions and without guarantees made. + +| Elasticsearch Version | Elasticsearch-Java Branch | Supported | +| --------------------- | ------------------------- | --------- | +| main | main | | +| 8.x | 8.x | 8.x | +| 7.x | 7.x | 7.17 | + ## Usage - [Creating an index](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/getting-started-java.html#_creating_an_index) diff --git a/docs/introduction.asciidoc b/docs/introduction.asciidoc index 74c7ca351..d283813d8 100644 --- a/docs/introduction.asciidoc +++ b/docs/introduction.asciidoc @@ -20,7 +20,19 @@ provides strongly typed requests and responses for all {es} APIs. [discrete] === Elasticsearch server compatibility policy -The {es} Java client is forward compatible; meaning that the client supports -communicating with greater or equal minor versions of {es}. {es} language -clients are only backwards compatible with default distributions and without -guarantees made. +The {es} Java client is forward compatible; meaning that the client supports +communicating with greater or equal minor versions of {es} without breaking. It +does not mean that the client automatically supports new features of newer +{es} versions; it is only possible after a release of a new client version. For +example, a 8.12 client version won't automatically support the new features of +the 8.13 version of {es}, the 8.13 client version is required for that. {es} +language clients are only backwards compatible with default distributions and +without guarantees made. + +|=== +| Elasticsearch Version | Elasticsearch-Java Branch | Supported + +| main | main | +| 8.x | 8.x | 8.x +| 7.x | 7.x | 7.17 +|=== \ No newline at end of file From e32786189b49b56e5a749c7fede0c5c8cf099172 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:06:12 +0100 Subject: [PATCH 13/25] fixes from api-spec pr 2440 (#756) --- .../_types/ElasticsearchVersionMinInfo.java | 234 +++++++++++ .../elasticsearch/_types/InlineGet.java | 18 +- .../elasticsearch/_types/KnnQuery.java | 54 ++- .../_types/mapping/DenseVectorProperty.java | 22 +- .../_types/mapping/GeoPointProperty.java | 94 +++++ .../_types/mapping/RankFeaturesProperty.java | 32 ++ .../elasticsearch/_types/query_dsl/Query.java | 31 ++ .../_types/query_dsl/QueryBuilders.java | 17 + .../elasticsearch/core/search/InnerHits.java | 38 +- .../elasticsearch/doc-files/api-spec.html | 190 +++++---- .../enrich/ExecutePolicyResponse.java | 20 +- .../indices/DataStreamsStatsResponse.java | 11 +- .../ElasticsearchIndicesAsyncClient.java | 35 ++ .../indices/ElasticsearchIndicesClient.java | 37 ++ .../indices/ResolveClusterRequest.java | 371 ++++++++++++++++++ .../indices/ResolveClusterResponse.java | 192 +++++++++ .../DataStreamsStatsItem.java | 10 +- .../resolve_cluster/ResolveClusterInfo.java | 310 +++++++++++++++ .../inference/DeleteModelRequest.java | 65 +-- .../inference/GetModelRequest.java | 65 +-- .../inference/InferenceRequest.java | 89 +++-- .../inference/PutModelRequest.java | 65 +-- .../elasticsearch/ingest/Pipeline.java | 15 +- .../security/PutRoleRequest.java | 37 +- .../security/RoleDescriptor.java | 37 +- .../security/RoleDescriptorRead.java | 37 +- .../elasticsearch/security/get_role/Role.java | 45 ++- .../snapshot/AzureRepository.java | 157 ++++++++ .../snapshot/AzureRepositorySettings.java | 264 +++++++++++++ .../snapshot/CreateRepositoryRequest.java | 149 ++----- .../elasticsearch/snapshot/GcsRepository.java | 157 ++++++++ .../snapshot/GcsRepositorySettings.java | 259 ++++++++++++ .../snapshot/ReadOnlyUrlRepository.java | 158 ++++++++ .../ReadOnlyUrlRepositorySettings.java | 238 +++++++++++ .../elasticsearch/snapshot/Repository.java | 350 +++++++++++++---- .../snapshot/RepositoryBase.java | 129 ++++++ .../snapshot/RepositoryBuilders.java | 155 ++++++++ .../snapshot/RepositorySettingsBase.java | 220 +++++++++++ .../snapshot/RepositoryVariant.java | 50 +++ .../elasticsearch/snapshot/S3Repository.java | 154 ++++++++ .../snapshot/S3RepositorySettings.java | 346 ++++++++++++++++ .../snapshot/SharedFileSystemRepository.java | 159 ++++++++ .../SharedFileSystemRepositorySettings.java | 205 ++++++++++ .../snapshot/SourceOnlyRepository.java | 158 ++++++++ .../SourceOnlyRepositorySettings.java | 207 ++++++++++ ...ElasticsearchTextStructureAsyncClient.java | 4 +- .../ElasticsearchTextStructureClient.java | 4 +- 47 files changed, 5187 insertions(+), 507 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionMinInfo.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_cluster/ResolveClusterInfo.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepository.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepositorySettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepository.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepositorySettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepository.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepositorySettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryBase.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryBuilders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettingsBase.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVariant.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3Repository.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3RepositorySettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepository.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepositorySettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepository.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepositorySettings.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionMinInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionMinInfo.java new file mode 100644 index 000000000..8b4f7ece4 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionMinInfo.java @@ -0,0 +1,234 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.ElasticsearchVersionMinInfo + +/** + * Reduced (minimal) info ElasticsearchVersion + * + * @see API + * specification + */ +@JsonpDeserializable +public class ElasticsearchVersionMinInfo implements JsonpSerializable { + private final String buildFlavor; + + private final String minimumIndexCompatibilityVersion; + + private final String minimumWireCompatibilityVersion; + + private final String number; + + // --------------------------------------------------------------------------------------------- + + private ElasticsearchVersionMinInfo(Builder builder) { + + this.buildFlavor = ApiTypeHelper.requireNonNull(builder.buildFlavor, this, "buildFlavor"); + this.minimumIndexCompatibilityVersion = ApiTypeHelper.requireNonNull(builder.minimumIndexCompatibilityVersion, + this, "minimumIndexCompatibilityVersion"); + this.minimumWireCompatibilityVersion = ApiTypeHelper.requireNonNull(builder.minimumWireCompatibilityVersion, + this, "minimumWireCompatibilityVersion"); + this.number = ApiTypeHelper.requireNonNull(builder.number, this, "number"); + + } + + public static ElasticsearchVersionMinInfo of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code build_flavor} + */ + public final String buildFlavor() { + return this.buildFlavor; + } + + /** + * Required - API name: {@code minimum_index_compatibility_version} + */ + public final String minimumIndexCompatibilityVersion() { + return this.minimumIndexCompatibilityVersion; + } + + /** + * Required - API name: {@code minimum_wire_compatibility_version} + */ + public final String minimumWireCompatibilityVersion() { + return this.minimumWireCompatibilityVersion; + } + + /** + * Required - API name: {@code number} + */ + public final String number() { + return this.number; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("build_flavor"); + generator.write(this.buildFlavor); + + generator.writeKey("minimum_index_compatibility_version"); + generator.write(this.minimumIndexCompatibilityVersion); + + generator.writeKey("minimum_wire_compatibility_version"); + generator.write(this.minimumWireCompatibilityVersion); + + generator.writeKey("number"); + generator.write(this.number); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ElasticsearchVersionMinInfo}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String buildFlavor; + + private String minimumIndexCompatibilityVersion; + + private String minimumWireCompatibilityVersion; + + private String number; + + /** + * Required - API name: {@code build_flavor} + */ + public final Builder buildFlavor(String value) { + this.buildFlavor = value; + return this; + } + + /** + * Required - API name: {@code minimum_index_compatibility_version} + */ + public final Builder minimumIndexCompatibilityVersion(String value) { + this.minimumIndexCompatibilityVersion = value; + return this; + } + + /** + * Required - API name: {@code minimum_wire_compatibility_version} + */ + public final Builder minimumWireCompatibilityVersion(String value) { + this.minimumWireCompatibilityVersion = value; + return this; + } + + /** + * Required - API name: {@code number} + */ + public final Builder number(String value) { + this.number = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ElasticsearchVersionMinInfo}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ElasticsearchVersionMinInfo build() { + _checkSingleUse(); + + return new ElasticsearchVersionMinInfo(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ElasticsearchVersionMinInfo} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ElasticsearchVersionMinInfo::setupElasticsearchVersionMinInfoDeserializer); + + protected static void setupElasticsearchVersionMinInfoDeserializer( + ObjectDeserializer op) { + + op.add(Builder::buildFlavor, JsonpDeserializer.stringDeserializer(), "build_flavor"); + op.add(Builder::minimumIndexCompatibilityVersion, JsonpDeserializer.stringDeserializer(), + "minimum_index_compatibility_version"); + op.add(Builder::minimumWireCompatibilityVersion, JsonpDeserializer.stringDeserializer(), + "minimum_wire_compatibility_version"); + op.add(Builder::number, JsonpDeserializer.stringDeserializer(), "number"); + + } + +} 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 429f25552..61156fda3 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 @@ -82,6 +82,7 @@ public class InlineGet implements JsonpSerializable { @Nullable private final String routing; + @Nullable private final TDocument source; @Nullable @@ -98,7 +99,7 @@ private InlineGet(Builder builder) { this.seqNo = builder.seqNo; this.primaryTerm = builder.primaryTerm; this.routing = builder.routing; - this.source = ApiTypeHelper.requireNonNull(builder.source, this, "source"); + this.source = builder.source; this.tDocumentSerializer = builder.tDocumentSerializer; } @@ -154,8 +155,9 @@ public final String routing() { } /** - * Required - API name: {@code _source} + * API name: {@code _source} */ + @Nullable public final TDocument source() { return this.source; } @@ -206,8 +208,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.routing); } - generator.writeKey("_source"); - JsonpUtils.serialize(this.source, generator, tDocumentSerializer, mapper); + if (this.source != null) { + generator.writeKey("_source"); + JsonpUtils.serialize(this.source, generator, tDocumentSerializer, mapper); + + } } @@ -262,6 +267,7 @@ public final Builder metadata(String key, JsonData value) { @Nullable private String routing; + @Nullable private TDocument source; @Nullable @@ -320,9 +326,9 @@ public final Builder routing(@Nullable String value) { } /** - * Required - API name: {@code _source} + * API name: {@code _source} */ - public final Builder source(TDocument value) { + public final Builder source(@Nullable TDocument value) { this.source = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java index cadd63349..604190f16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant; +import co.elastic.clients.elasticsearch.core.search.InnerHits; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -62,7 +64,7 @@ * specification */ @JsonpDeserializable -public class KnnQuery implements JsonpSerializable { +public class KnnQuery implements QueryVariant, JsonpSerializable { private final String field; private final List queryVector; @@ -82,6 +84,9 @@ public class KnnQuery implements JsonpSerializable { @Nullable private final Float similarity; + @Nullable + private final InnerHits innerHits; + // --------------------------------------------------------------------------------------------- private KnnQuery(Builder builder) { @@ -94,6 +99,7 @@ private KnnQuery(Builder builder) { this.boost = builder.boost; this.filter = ApiTypeHelper.unmodifiable(builder.filter); this.similarity = builder.similarity; + this.innerHits = builder.innerHits; } @@ -101,6 +107,14 @@ public static KnnQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * Query variant kind. + */ + @Override + public Query.Kind _queryKind() { + return Query.Kind.Knn; + } + /** * Required - The name of the vector field to search against *

@@ -177,6 +191,16 @@ public final Float similarity() { return this.similarity; } + /** + * If defined, each search hit will contain inner hits. + *

+ * API name: {@code inner_hits} + */ + @Nullable + public final InnerHits innerHits() { + return this.innerHits; + } + /** * Serialize this object to JSON. */ @@ -232,6 +256,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.similarity); } + if (this.innerHits != null) { + generator.writeKey("inner_hits"); + this.innerHits.serialize(generator, mapper); + + } } @@ -268,6 +297,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Float similarity; + @Nullable + private InnerHits innerHits; + /** * Required - The name of the vector field to search against *

@@ -399,6 +431,25 @@ public final Builder similarity(@Nullable Float value) { return this; } + /** + * If defined, each search hit will contain inner hits. + *

+ * API name: {@code inner_hits} + */ + public final Builder innerHits(@Nullable InnerHits value) { + this.innerHits = value; + return this; + } + + /** + * If defined, each search hit will contain inner hits. + *

+ * API name: {@code inner_hits} + */ + public final Builder innerHits(Function> fn) { + return this.innerHits(fn.apply(new InnerHits.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -436,6 +487,7 @@ protected static void setupKnnQueryDeserializer(ObjectDeserializer implements ObjectBuilder { + @Nullable private Integer dims; @Nullable @@ -171,9 +175,9 @@ public static class Builder extends PropertyBase.AbstractBuilder private DenseVectorIndexOptions indexOptions; /** - * Required - API name: {@code dims} + * API name: {@code dims} */ - public final Builder dims(int value) { + public final Builder dims(@Nullable Integer value) { this.dims = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.java index 7610ffba0..956f2e502 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.java @@ -20,6 +20,7 @@ package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch._types.GeoLocation; +import co.elastic.clients.elasticsearch._types.Script; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -66,6 +67,15 @@ public class GeoPointProperty extends DocValuesPropertyBase implements PropertyV @Nullable private final GeoLocation nullValue; + @Nullable + private final Boolean index; + + @Nullable + private final OnScriptError onScriptError; + + @Nullable + private final Script script; + // --------------------------------------------------------------------------------------------- private GeoPointProperty(Builder builder) { @@ -74,6 +84,9 @@ private GeoPointProperty(Builder builder) { this.ignoreMalformed = builder.ignoreMalformed; this.ignoreZValue = builder.ignoreZValue; this.nullValue = builder.nullValue; + this.index = builder.index; + this.onScriptError = builder.onScriptError; + this.script = builder.script; } @@ -113,6 +126,30 @@ public final GeoLocation nullValue() { return this.nullValue; } + /** + * API name: {@code index} + */ + @Nullable + public final Boolean index() { + return this.index; + } + + /** + * API name: {@code on_script_error} + */ + @Nullable + public final OnScriptError onScriptError() { + return this.onScriptError; + } + + /** + * API name: {@code script} + */ + @Nullable + public final Script script() { + return this.script; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "geo_point"); @@ -132,6 +169,20 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.nullValue.serialize(generator, mapper); } + if (this.index != null) { + generator.writeKey("index"); + generator.write(this.index); + + } + if (this.onScriptError != null) { + generator.writeKey("on_script_error"); + this.onScriptError.serialize(generator, mapper); + } + if (this.script != null) { + generator.writeKey("script"); + this.script.serialize(generator, mapper); + + } } @@ -153,6 +204,15 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder> fn) { + return this.script(fn.apply(new Script.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -215,6 +306,9 @@ protected static void setupGeoPointPropertyDeserializer(ObjectDeserializer> fn) { @@ -73,10 +80,23 @@ public Property.Kind _propertyKind() { return Property.Kind.RankFeatures; } + /** + * API name: {@code positive_score_impact} + */ + @Nullable + public final Boolean positiveScoreImpact() { + return this.positiveScoreImpact; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "rank_features"); super.serializeInternal(generator, mapper); + if (this.positiveScoreImpact != null) { + generator.writeKey("positive_score_impact"); + generator.write(this.positiveScoreImpact); + + } } @@ -89,6 +109,17 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends PropertyBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean positiveScoreImpact; + + /** + * API name: {@code positive_score_impact} + */ + public final Builder positiveScoreImpact(@Nullable Boolean value) { + this.positiveScoreImpact = value; + return this; + } + @Override protected Builder self() { return this; @@ -117,6 +148,7 @@ public RankFeaturesProperty build() { protected static void setupRankFeaturesPropertyDeserializer(ObjectDeserializer op) { PropertyBase.setupPropertyBaseDeserializer(op); + op.add(Builder::positiveScoreImpact, JsonpDeserializer.booleanDeserializer(), "positive_score_impact"); op.ignore("type"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index b373897d9..fad0416e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch._types.KnnQuery; import co.elastic.clients.elasticsearch._types.aggregations.Aggregation; import co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant; import co.elastic.clients.json.JsonData; @@ -115,6 +116,8 @@ public enum Kind implements JsonEnum { Intervals("intervals"), + Knn("knn"), + Match("match"), MatchAll("match_all"), @@ -560,6 +563,23 @@ public IntervalsQuery intervals() { return TaggedUnionUtils.get(this, Kind.Intervals); } + /** + * Is this variant instance of kind {@code knn}? + */ + public boolean isKnn() { + return _kind == Kind.Knn; + } + + /** + * Get the {@code knn} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code knn} kind. + */ + public KnnQuery knn() { + return TaggedUnionUtils.get(this, Kind.Knn); + } + /** * Is this variant instance of kind {@code match}? */ @@ -1473,6 +1493,16 @@ public ObjectBuilder intervals(Function knn(KnnQuery v) { + this._kind = Kind.Knn; + this._value = v; + return this; + } + + public ObjectBuilder knn(Function> fn) { + return this.knn(fn.apply(new KnnQuery.Builder()).build()); + } + public ObjectBuilder match(MatchQuery v) { this._kind = Kind.Match; this._value = v; @@ -1919,6 +1949,7 @@ protected static void setupQueryDeserializer(ObjectDeserializer op) { op.add(Builder::hasParent, HasParentQuery._DESERIALIZER, "has_parent"); op.add(Builder::ids, IdsQuery._DESERIALIZER, "ids"); op.add(Builder::intervals, IntervalsQuery._DESERIALIZER, "intervals"); + op.add(Builder::knn, KnnQuery._DESERIALIZER, "knn"); op.add(Builder::match, MatchQuery._DESERIALIZER, "match"); op.add(Builder::matchAll, MatchAllQuery._DESERIALIZER, "match_all"); op.add(Builder::matchBoolPrefix, MatchBoolPrefixQuery._DESERIALIZER, "match_bool_prefix"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java index 473535e20..292600e20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch._types.KnnQuery; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; @@ -355,6 +356,22 @@ public static Query intervals(Function> fn) { + Query.Builder builder = new Query.Builder(); + builder.knn(fn.apply(new KnnQuery.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link MatchQuery match} {@code Query} variant. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java index 250b7abf0..503ea8d28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java @@ -102,7 +102,7 @@ public class InnerHits implements JsonpSerializable { @Nullable private final SourceConfig source; - private final List storedField; + private final List storedFields; @Nullable private final Boolean trackScores; @@ -127,7 +127,7 @@ private InnerHits(Builder builder) { this.fields = ApiTypeHelper.unmodifiable(builder.fields); this.sort = ApiTypeHelper.unmodifiable(builder.sort); this.source = builder.source; - this.storedField = ApiTypeHelper.unmodifiable(builder.storedField); + this.storedFields = ApiTypeHelper.unmodifiable(builder.storedFields); this.trackScores = builder.trackScores; this.version = builder.version; @@ -248,10 +248,10 @@ public final SourceConfig source() { } /** - * API name: {@code stored_field} + * API name: {@code stored_fields} */ - public final List storedField() { - return this.storedField; + public final List storedFields() { + return this.storedFields; } /** @@ -367,10 +367,10 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.source.serialize(generator, mapper); } - if (ApiTypeHelper.isDefined(this.storedField)) { - generator.writeKey("stored_field"); + if (ApiTypeHelper.isDefined(this.storedFields)) { + generator.writeKey("stored_fields"); generator.writeStartArray(); - for (String item0 : this.storedField) { + for (String item0 : this.storedFields) { generator.write(item0); } @@ -442,7 +442,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private SourceConfig source; @Nullable - private List storedField; + private List storedFields; @Nullable private Boolean trackScores; @@ -667,22 +667,22 @@ public final Builder source(Function - * Adds all elements of list to storedField. + * Adds all elements of list to storedFields. */ - public final Builder storedField(List list) { - this.storedField = _listAddAll(this.storedField, list); + public final Builder storedFields(List list) { + this.storedFields = _listAddAll(this.storedFields, list); return this; } /** - * API name: {@code stored_field} + * API name: {@code stored_fields} *

- * Adds one or more values to storedField. + * Adds one or more values to storedFields. */ - public final Builder storedField(String value, String... values) { - this.storedField = _listAdd(this.storedField, value, values); + public final Builder storedFields(String value, String... values) { + this.storedFields = _listAdd(this.storedFields, value, values); return this; } @@ -745,8 +745,8 @@ protected static void setupInnerHitsDeserializer(ObjectDeserializer 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/d792c326a393769cc783482cf209435750d45029/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/0a63a19b96834d9bcaad0738cb0c6850dd326d20/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java index 92a390c65..f489217df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java @@ -27,7 +27,6 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; @@ -60,6 +59,7 @@ */ @JsonpDeserializable public class ExecutePolicyResponse implements JsonpSerializable { + @Nullable private final ExecuteEnrichPolicyStatus status; @Nullable @@ -69,7 +69,7 @@ public class ExecutePolicyResponse implements JsonpSerializable { private ExecutePolicyResponse(Builder builder) { - this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); + this.status = builder.status; this.taskId = builder.taskId; } @@ -79,8 +79,9 @@ public static ExecutePolicyResponse of(Function implements ObjectBuilder { + @Nullable private ExecuteEnrichPolicyStatus status; @Nullable private String taskId; /** - * Required - API name: {@code status} + * API name: {@code status} */ - public final Builder status(ExecuteEnrichPolicyStatus value) { + public final Builder status(@Nullable ExecuteEnrichPolicyStatus value) { this.status = value; return this; } /** - * Required - API name: {@code status} + * API name: {@code status} */ public final Builder status( Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java index 021fbc31b..efd8a3023 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java @@ -33,6 +33,7 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.lang.Long; import java.lang.String; import java.util.List; import java.util.Objects; @@ -75,7 +76,7 @@ public class DataStreamsStatsResponse implements JsonpSerializable { @Nullable private final String totalStoreSizes; - private final int totalStoreSizeBytes; + private final long totalStoreSizeBytes; // --------------------------------------------------------------------------------------------- @@ -148,7 +149,7 @@ public final String totalStoreSizes() { *

* API name: {@code total_store_size_bytes} */ - public final int totalStoreSizeBytes() { + public final long totalStoreSizeBytes() { return this.totalStoreSizeBytes; } @@ -217,7 +218,7 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String totalStoreSizes; - private Integer totalStoreSizeBytes; + private Long totalStoreSizeBytes; /** * Required - Contains information about shards that attempted to execute the @@ -312,7 +313,7 @@ public final Builder totalStoreSizes(@Nullable String value) { *

* API name: {@code total_store_size_bytes} */ - public final Builder totalStoreSizeBytes(int value) { + public final Builder totalStoreSizeBytes(long value) { this.totalStoreSizeBytes = value; return this; } @@ -352,7 +353,7 @@ protected static void setupDataStreamsStatsResponseDeserializer( op.add(Builder::dataStreams, JsonpDeserializer.arrayDeserializer(DataStreamsStatsItem._DESERIALIZER), "data_streams"); op.add(Builder::totalStoreSizes, JsonpDeserializer.stringDeserializer(), "total_store_sizes"); - op.add(Builder::totalStoreSizeBytes, JsonpDeserializer.integerDeserializer(), "total_store_size_bytes"); + op.add(Builder::totalStoreSizeBytes, JsonpDeserializer.longDeserializer(), "total_store_size_bytes"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index 37a14dd21..fe3570505 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java @@ -1775,6 +1775,41 @@ public final CompletableFuture reloadSearchAnalyz return reloadSearchAnalyzers(fn.apply(new ReloadSearchAnalyzersRequest.Builder()).build()); } + // ----- Endpoint: indices.resolve_cluster + + /** + * Resolves the specified index expressions to return information about each + * cluster, including the local cluster, if included. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture resolveCluster(ResolveClusterRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ResolveClusterRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Resolves the specified index expressions to return information about each + * cluster, including the local cluster, if included. + * + * @param fn + * a function that initializes a builder to create the + * {@link ResolveClusterRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture resolveCluster( + Function> fn) { + return resolveCluster(fn.apply(new ResolveClusterRequest.Builder()).build()); + } + // ----- Endpoint: indices.resolve_index /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java index 74071de73..05e4eb9fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java @@ -1819,6 +1819,43 @@ public final ReloadSearchAnalyzersResponse reloadSearchAnalyzers( return reloadSearchAnalyzers(fn.apply(new ReloadSearchAnalyzersRequest.Builder()).build()); } + // ----- Endpoint: indices.resolve_cluster + + /** + * Resolves the specified index expressions to return information about each + * cluster, including the local cluster, if included. + * + * @see Documentation + * on elastic.co + */ + + public ResolveClusterResponse resolveCluster(ResolveClusterRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ResolveClusterRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Resolves the specified index expressions to return information about each + * cluster, including the local cluster, if included. + * + * @param fn + * a function that initializes a builder to create the + * {@link ResolveClusterRequest} + * @see Documentation + * on elastic.co + */ + + public final ResolveClusterResponse resolveCluster( + Function> fn) + throws IOException, ElasticsearchException { + return resolveCluster(fn.apply(new ResolveClusterRequest.Builder()).build()); + } + // ----- Endpoint: indices.resolve_index /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterRequest.java new file mode 100644 index 000000000..8656ec355 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterRequest.java @@ -0,0 +1,371 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.ExpandWildcard; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.resolve_cluster.Request + +/** + * Resolves the specified index expressions to return information about each + * cluster, including the local cluster, if included. Multiple patterns and + * remote clusters are supported. + * + * @see API + * specification + */ + +public class ResolveClusterRequest extends RequestBase { + @Nullable + private final Boolean allowNoIndices; + + private final List expandWildcards; + + @Nullable + private final Boolean ignoreThrottled; + + @Nullable + private final Boolean ignoreUnavailable; + + private final List name; + + // --------------------------------------------------------------------------------------------- + + private ResolveClusterRequest(Builder builder) { + + this.allowNoIndices = builder.allowNoIndices; + this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); + this.ignoreThrottled = builder.ignoreThrottled; + this.ignoreUnavailable = builder.ignoreUnavailable; + this.name = ApiTypeHelper.unmodifiableRequired(builder.name, this, "name"); + + } + + public static ResolveClusterRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * If false, the request returns an error if any wildcard expression, index + * alias, or _all value targets only missing or closed indices. This behavior + * 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 + public final Boolean allowNoIndices() { + return this.allowNoIndices; + } + + /** + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. + *

+ * API name: {@code expand_wildcards} + */ + public final List expandWildcards() { + return this.expandWildcards; + } + + /** + * If true, concrete, expanded or aliased indices are ignored when frozen. + * Defaults to false. + *

+ * API name: {@code ignore_throttled} + */ + @Nullable + public final Boolean ignoreThrottled() { + return this.ignoreThrottled; + } + + /** + * If false, the request returns an error if it targets a missing or closed + * index. Defaults to false. + *

+ * API name: {@code ignore_unavailable} + */ + @Nullable + public final Boolean ignoreUnavailable() { + return this.ignoreUnavailable; + } + + /** + * Required - Comma-separated name(s) or index pattern(s) of the indices, + * aliases, and data streams to resolve. Resources on remote clusters can be + * specified using the <cluster>:<name> + * syntax. + *

+ * API name: {@code name} + */ + public final List name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ResolveClusterRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Boolean allowNoIndices; + + @Nullable + private List expandWildcards; + + @Nullable + private Boolean ignoreThrottled; + + @Nullable + private Boolean ignoreUnavailable; + + private List name; + + /** + * If false, the request returns an error if any wildcard expression, index + * alias, or _all value targets only missing or closed indices. This behavior + * 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 final Builder allowNoIndices(@Nullable Boolean value) { + this.allowNoIndices = value; + return this; + } + + /** + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. + *

+ * API name: {@code expand_wildcards} + *

+ * Adds all elements of list to expandWildcards. + */ + public final Builder expandWildcards(List list) { + this.expandWildcards = _listAddAll(this.expandWildcards, list); + return this; + } + + /** + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. + *

+ * API name: {@code expand_wildcards} + *

+ * Adds one or more values to expandWildcards. + */ + public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) { + this.expandWildcards = _listAdd(this.expandWildcards, value, values); + return this; + } + + /** + * If true, concrete, expanded or aliased indices are ignored when frozen. + * Defaults to false. + *

+ * API name: {@code ignore_throttled} + */ + public final Builder ignoreThrottled(@Nullable Boolean value) { + this.ignoreThrottled = value; + return this; + } + + /** + * If false, the request returns an error if it targets a missing or closed + * index. Defaults to false. + *

+ * API name: {@code ignore_unavailable} + */ + public final Builder ignoreUnavailable(@Nullable Boolean value) { + this.ignoreUnavailable = value; + return this; + } + + /** + * Required - Comma-separated name(s) or index pattern(s) of the indices, + * aliases, and data streams to resolve. Resources on remote clusters can be + * specified using the <cluster>:<name> + * syntax. + *

+ * API name: {@code name} + *

+ * Adds all elements of list to name. + */ + public final Builder name(List list) { + this.name = _listAddAll(this.name, list); + return this; + } + + /** + * Required - Comma-separated name(s) or index pattern(s) of the indices, + * aliases, and data streams to resolve. Resources on remote clusters can be + * specified using the <cluster>:<name> + * syntax. + *

+ * API name: {@code name} + *

+ * Adds one or more values to name. + */ + public final Builder name(String value, String... values) { + this.name = _listAdd(this.name, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ResolveClusterRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ResolveClusterRequest build() { + _checkSingleUse(); + + return new ResolveClusterRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.resolve_cluster}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.resolve_cluster", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_resolve"); + buf.append("/cluster"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name.stream().map(v -> v).collect(Collectors.joining(",")), buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (ApiTypeHelper.isDefined(request.expandWildcards)) { + params.put("expand_wildcards", + request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + if (request.ignoreUnavailable != null) { + params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); + } + if (request.allowNoIndices != null) { + params.put("allow_no_indices", String.valueOf(request.allowNoIndices)); + } + if (request.ignoreThrottled != null) { + params.put("ignore_throttled", String.valueOf(request.ignoreThrottled)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, ResolveClusterResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterResponse.java new file mode 100644 index 000000000..f2913258f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterResponse.java @@ -0,0 +1,192 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch.indices.resolve_cluster.ResolveClusterInfo; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.resolve_cluster.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ResolveClusterResponse implements JsonpSerializable { + private final Map result; + + // --------------------------------------------------------------------------------------------- + + private ResolveClusterResponse(Builder builder) { + + this.result = ApiTypeHelper.unmodifiableRequired(builder.result, this, "result"); + + } + + public static ResolveClusterResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Response value. + */ + public final Map result() { + return this.result; + } + + /** + * Get an element of {@code result}. + */ + public final @Nullable ResolveClusterInfo get(String key) { + return this.result.get(key); + } + + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + for (Map.Entry item0 : this.result.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ResolveClusterResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Map result = new HashMap<>(); + + /** + * Required - Response value. + *

+ * Adds all entries of map to result. + */ + public final Builder result(Map map) { + this.result = _mapPutAll(this.result, map); + return this; + } + + /** + * Required - Response value. + *

+ * Adds an entry to result. + */ + public final Builder result(String key, ResolveClusterInfo value) { + this.result = _mapPut(this.result, key, value); + return this; + } + + /** + * Required - Response value. + *

+ * Adds an entry to result using a builder lambda. + */ + public final Builder result(String key, + Function> fn) { + return result(key, fn.apply(new ResolveClusterInfo.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + Map value = (Map) JsonpDeserializer + .stringMapDeserializer(ResolveClusterInfo._DESERIALIZER).deserialize(parser, mapper); + return this.result(value); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ResolveClusterResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ResolveClusterResponse build() { + _checkSingleUse(); + + return new ResolveClusterResponse(this); + } + } + + public static final JsonpDeserializer _DESERIALIZER = createResolveClusterResponseDeserializer(); + protected static JsonpDeserializer createResolveClusterResponseDeserializer() { + + JsonpDeserializer> valueDeserializer = JsonpDeserializer + .stringMapDeserializer(ResolveClusterInfo._DESERIALIZER); + + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .result(valueDeserializer.deserialize(parser, mapper, event)).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java index 329d26d36..1545c0030 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java @@ -71,7 +71,7 @@ public class DataStreamsStatsItem implements JsonpSerializable { @Nullable private final String storeSize; - private final int storeSizeBytes; + private final long storeSizeBytes; // --------------------------------------------------------------------------------------------- @@ -139,7 +139,7 @@ public final String storeSize() { *

* API name: {@code store_size_bytes} */ - public final int storeSizeBytes() { + public final long storeSizeBytes() { return this.storeSizeBytes; } @@ -196,7 +196,7 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String storeSize; - private Integer storeSizeBytes; + private Long storeSizeBytes; /** * Required - Current number of backing indices for the data stream. @@ -251,7 +251,7 @@ public final Builder storeSize(@Nullable String value) { *

* API name: {@code store_size_bytes} */ - public final Builder storeSizeBytes(int value) { + public final Builder storeSizeBytes(long value) { this.storeSizeBytes = value; return this; } @@ -288,7 +288,7 @@ protected static void setupDataStreamsStatsItemDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class ResolveClusterInfo implements JsonpSerializable { + private final boolean connected; + + private final boolean skipUnavailable; + + @Nullable + private final Boolean matchingIndices; + + @Nullable + private final String error; + + @Nullable + private final ElasticsearchVersionMinInfo version; + + // --------------------------------------------------------------------------------------------- + + private ResolveClusterInfo(Builder builder) { + + this.connected = ApiTypeHelper.requireNonNull(builder.connected, this, "connected"); + this.skipUnavailable = ApiTypeHelper.requireNonNull(builder.skipUnavailable, this, "skipUnavailable"); + this.matchingIndices = builder.matchingIndices; + this.error = builder.error; + this.version = builder.version; + + } + + public static ResolveClusterInfo of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Whether the remote cluster is connected to the local (querying) + * cluster. + *

+ * API name: {@code connected} + */ + public final boolean connected() { + return this.connected; + } + + /** + * Required - The skip_unavailable setting for a remote cluster. + *

+ * API name: {@code skip_unavailable} + */ + public final boolean skipUnavailable() { + return this.skipUnavailable; + } + + /** + * Whether the index expression provided in the request matches any indices, + * aliases or data streams on the cluster. + *

+ * API name: {@code matching_indices} + */ + @Nullable + public final Boolean matchingIndices() { + return this.matchingIndices; + } + + /** + * Provides error messages that are likely to occur if you do a search with this + * index expression on the specified cluster (e.g., lack of security privileges + * to query an index). + *

+ * API name: {@code error} + */ + @Nullable + public final String error() { + return this.error; + } + + /** + * Provides version information about the cluster. + *

+ * API name: {@code version} + */ + @Nullable + public final ElasticsearchVersionMinInfo version() { + return this.version; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("connected"); + generator.write(this.connected); + + generator.writeKey("skip_unavailable"); + generator.write(this.skipUnavailable); + + if (this.matchingIndices != null) { + generator.writeKey("matching_indices"); + generator.write(this.matchingIndices); + + } + if (this.error != null) { + generator.writeKey("error"); + generator.write(this.error); + + } + if (this.version != null) { + generator.writeKey("version"); + this.version.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ResolveClusterInfo}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Boolean connected; + + private Boolean skipUnavailable; + + @Nullable + private Boolean matchingIndices; + + @Nullable + private String error; + + @Nullable + private ElasticsearchVersionMinInfo version; + + /** + * Required - Whether the remote cluster is connected to the local (querying) + * cluster. + *

+ * API name: {@code connected} + */ + public final Builder connected(boolean value) { + this.connected = value; + return this; + } + + /** + * Required - The skip_unavailable setting for a remote cluster. + *

+ * API name: {@code skip_unavailable} + */ + public final Builder skipUnavailable(boolean value) { + this.skipUnavailable = value; + return this; + } + + /** + * Whether the index expression provided in the request matches any indices, + * aliases or data streams on the cluster. + *

+ * API name: {@code matching_indices} + */ + public final Builder matchingIndices(@Nullable Boolean value) { + this.matchingIndices = value; + return this; + } + + /** + * Provides error messages that are likely to occur if you do a search with this + * index expression on the specified cluster (e.g., lack of security privileges + * to query an index). + *

+ * API name: {@code error} + */ + public final Builder error(@Nullable String value) { + this.error = value; + return this; + } + + /** + * Provides version information about the cluster. + *

+ * API name: {@code version} + */ + public final Builder version(@Nullable ElasticsearchVersionMinInfo value) { + this.version = value; + return this; + } + + /** + * Provides version information about the cluster. + *

+ * API name: {@code version} + */ + public final Builder version( + Function> fn) { + return this.version(fn.apply(new ElasticsearchVersionMinInfo.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ResolveClusterInfo}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ResolveClusterInfo build() { + _checkSingleUse(); + + return new ResolveClusterInfo(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ResolveClusterInfo} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ResolveClusterInfo::setupResolveClusterInfoDeserializer); + + protected static void setupResolveClusterInfoDeserializer(ObjectDeserializer op) { + + op.add(Builder::connected, JsonpDeserializer.booleanDeserializer(), "connected"); + op.add(Builder::skipUnavailable, JsonpDeserializer.booleanDeserializer(), "skip_unavailable"); + op.add(Builder::matchingIndices, JsonpDeserializer.booleanDeserializer(), "matching_indices"); + op.add(Builder::error, JsonpDeserializer.stringDeserializer(), "error"); + op.add(Builder::version, ElasticsearchVersionMinInfo._DESERIALIZER, "version"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java index a482dcc80..58a8f73c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java @@ -63,16 +63,17 @@ */ public class DeleteModelRequest extends RequestBase { - private final String modelId; + private final String inferenceId; + @Nullable private final TaskType taskType; // --------------------------------------------------------------------------------------------- private DeleteModelRequest(Builder builder) { - this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); - this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = builder.taskType; } @@ -81,19 +82,20 @@ public static DeleteModelRequest of(Function - * API name: {@code model_id} + * API name: {@code inference_id} */ - public final String modelId() { - return this.modelId; + public final String inferenceId() { + return this.inferenceId; } /** - * Required - The model task type + * The task type *

* API name: {@code task_type} */ + @Nullable public final TaskType taskType() { return this.taskType; } @@ -107,26 +109,27 @@ public final TaskType taskType() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - private String modelId; + private String inferenceId; + @Nullable private TaskType taskType; /** - * Required - The unique identifier of the inference model. + * Required - The inference Id *

- * API name: {@code model_id} + * API name: {@code inference_id} */ - public final Builder modelId(String value) { - this.modelId = value; + public final Builder inferenceId(String value) { + this.inferenceId = value; return this; } /** - * Required - The model task type + * The task type *

* API name: {@code task_type} */ - public final Builder taskType(TaskType value) { + public final Builder taskType(@Nullable TaskType value) { this.taskType = value; return this; } @@ -165,21 +168,29 @@ public DeleteModelRequest build() { // Request path request -> { - final int _modelId = 1 << 0; + final int _inferenceId = 1 << 0; final int _taskType = 1 << 1; int propsSet = 0; - propsSet |= _modelId; - propsSet |= _taskType; + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; - if (propsSet == (_taskType | _modelId)) { + if (propsSet == (_inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + if (propsSet == (_taskType | _inferenceId)) { StringBuilder buf = new StringBuilder(); buf.append("/_inference"); buf.append("/"); SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); buf.append("/"); - SimpleEndpoint.pathEncode(request.modelId, buf); + SimpleEndpoint.pathEncode(request.inferenceId, buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -189,17 +200,21 @@ public DeleteModelRequest build() { // Path parameters request -> { Map params = new HashMap<>(); - final int _modelId = 1 << 0; + final int _inferenceId = 1 << 0; final int _taskType = 1 << 1; int propsSet = 0; - propsSet |= _modelId; - propsSet |= _taskType; + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; - if (propsSet == (_taskType | _modelId)) { + if (propsSet == (_inferenceId)) { + params.put("inferenceId", request.inferenceId); + } + if (propsSet == (_taskType | _inferenceId)) { params.put("taskType", request.taskType.jsonValue()); - params.put("modelId", request.modelId); + params.put("inferenceId", request.inferenceId); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java index 54ef93edc..b7ce8d929 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java @@ -63,16 +63,17 @@ */ public class GetModelRequest extends RequestBase { - private final String modelId; + private final String inferenceId; + @Nullable private final TaskType taskType; // --------------------------------------------------------------------------------------------- private GetModelRequest(Builder builder) { - this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); - this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = builder.taskType; } @@ -81,19 +82,20 @@ public static GetModelRequest of(Function - * API name: {@code model_id} + * API name: {@code inference_id} */ - public final String modelId() { - return this.modelId; + public final String inferenceId() { + return this.inferenceId; } /** - * Required - The model task type + * The task type *

* API name: {@code task_type} */ + @Nullable public final TaskType taskType() { return this.taskType; } @@ -105,26 +107,27 @@ public final TaskType taskType() { */ public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - private String modelId; + private String inferenceId; + @Nullable private TaskType taskType; /** - * Required - The unique identifier of the inference model. + * Required - The inference Id *

- * API name: {@code model_id} + * API name: {@code inference_id} */ - public final Builder modelId(String value) { - this.modelId = value; + public final Builder inferenceId(String value) { + this.inferenceId = value; return this; } /** - * Required - The model task type + * The task type *

* API name: {@code task_type} */ - public final Builder taskType(TaskType value) { + public final Builder taskType(@Nullable TaskType value) { this.taskType = value; return this; } @@ -163,21 +166,29 @@ public GetModelRequest build() { // Request path request -> { - final int _modelId = 1 << 0; + final int _inferenceId = 1 << 0; final int _taskType = 1 << 1; int propsSet = 0; - propsSet |= _modelId; - propsSet |= _taskType; + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; - if (propsSet == (_taskType | _modelId)) { + if (propsSet == (_inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + if (propsSet == (_taskType | _inferenceId)) { StringBuilder buf = new StringBuilder(); buf.append("/_inference"); buf.append("/"); SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); buf.append("/"); - SimpleEndpoint.pathEncode(request.modelId, buf); + SimpleEndpoint.pathEncode(request.inferenceId, buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -187,17 +198,21 @@ public GetModelRequest build() { // Path parameters request -> { Map params = new HashMap<>(); - final int _modelId = 1 << 0; + final int _inferenceId = 1 << 0; final int _taskType = 1 << 1; int propsSet = 0; - propsSet |= _modelId; - propsSet |= _taskType; + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; - if (propsSet == (_taskType | _modelId)) { + if (propsSet == (_inferenceId)) { + params.put("inferenceId", request.inferenceId); + } + if (propsSet == (_taskType | _inferenceId)) { params.put("taskType", request.taskType.jsonValue()); - params.put("modelId", request.modelId); + params.put("inferenceId", request.inferenceId); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java index 681895e6b..aaa83cb1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java @@ -67,23 +67,24 @@ */ @JsonpDeserializable public class InferenceRequest extends RequestBase implements JsonpSerializable { - private final List input; + private final String inferenceId; - private final String modelId; + private final List input; @Nullable private final JsonData taskSettings; + @Nullable private final TaskType taskType; // --------------------------------------------------------------------------------------------- private InferenceRequest(Builder builder) { + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); this.input = ApiTypeHelper.unmodifiableRequired(builder.input, this, "input"); - this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); this.taskSettings = builder.taskSettings; - this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + this.taskType = builder.taskType; } @@ -92,21 +93,21 @@ public static InferenceRequest of(Function - * API name: {@code input} + * API name: {@code inference_id} */ - public final List input() { - return this.input; + public final String inferenceId() { + return this.inferenceId; } /** - * Required - The unique identifier of the inference model. + * Required - Text input to the model. Either a string or an array of strings. *

- * API name: {@code model_id} + * API name: {@code input} */ - public final String modelId() { - return this.modelId; + public final List input() { + return this.input; } /** @@ -120,10 +121,11 @@ public final JsonData taskSettings() { } /** - * Required - The model task type + * The task type *

* API name: {@code task_type} */ + @Nullable public final TaskType taskType() { return this.taskType; } @@ -166,15 +168,26 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - private List input; + private String inferenceId; - private String modelId; + private List input; @Nullable private JsonData taskSettings; + @Nullable private TaskType taskType; + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final Builder inferenceId(String value) { + this.inferenceId = value; + return this; + } + /** * Required - Text input to the model. Either a string or an array of strings. *

@@ -199,16 +212,6 @@ public final Builder input(String value, String... values) { return this; } - /** - * Required - The unique identifier of the inference model. - *

- * API name: {@code model_id} - */ - public final Builder modelId(String value) { - this.modelId = value; - return this; - } - /** * Optional task settings *

@@ -220,11 +223,11 @@ public final Builder taskSettings(@Nullable JsonData value) { } /** - * Required - The model task type + * The task type *

* API name: {@code task_type} */ - public final Builder taskType(TaskType value) { + public final Builder taskType(@Nullable TaskType value) { this.taskType = value; return this; } @@ -278,21 +281,29 @@ protected static void setupInferenceRequestDeserializer(ObjectDeserializer { - final int _modelId = 1 << 0; + final int _inferenceId = 1 << 0; final int _taskType = 1 << 1; int propsSet = 0; - propsSet |= _modelId; - propsSet |= _taskType; + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; - if (propsSet == (_taskType | _modelId)) { + if (propsSet == (_inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + if (propsSet == (_taskType | _inferenceId)) { StringBuilder buf = new StringBuilder(); buf.append("/_inference"); buf.append("/"); SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); buf.append("/"); - SimpleEndpoint.pathEncode(request.modelId, buf); + SimpleEndpoint.pathEncode(request.inferenceId, buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -302,17 +313,21 @@ protected static void setupInferenceRequestDeserializer(ObjectDeserializer { Map params = new HashMap<>(); - final int _modelId = 1 << 0; + final int _inferenceId = 1 << 0; final int _taskType = 1 << 1; int propsSet = 0; - propsSet |= _modelId; - propsSet |= _taskType; + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; - if (propsSet == (_taskType | _modelId)) { + if (propsSet == (_inferenceId)) { + params.put("inferenceId", request.inferenceId); + } + if (propsSet == (_taskType | _inferenceId)) { params.put("taskType", request.taskType.jsonValue()); - params.put("modelId", request.modelId); + params.put("inferenceId", request.inferenceId); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java index a1fd000f8..30c31115d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java @@ -66,8 +66,9 @@ */ @JsonpDeserializable public class PutModelRequest extends RequestBase implements JsonpSerializable { - private final String modelId; + private final String inferenceId; + @Nullable private final TaskType taskType; private final ModelConfig modelConfig; @@ -76,8 +77,8 @@ public class PutModelRequest extends RequestBase implements JsonpSerializable { private PutModelRequest(Builder builder) { - this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); - this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = builder.taskType; this.modelConfig = ApiTypeHelper.requireNonNull(builder.modelConfig, this, "modelConfig"); } @@ -87,19 +88,20 @@ public static PutModelRequest of(Function - * API name: {@code model_id} + * API name: {@code inference_id} */ - public final String modelId() { - return this.modelId; + public final String inferenceId() { + return this.inferenceId; } /** - * Required - The model task type + * The task type *

* API name: {@code task_type} */ + @Nullable public final TaskType taskType() { return this.taskType; } @@ -126,28 +128,29 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - private String modelId; + private String inferenceId; + @Nullable private TaskType taskType; private ModelConfig modelConfig; /** - * Required - The unique identifier of the inference model. + * Required - The inference Id *

- * API name: {@code model_id} + * API name: {@code inference_id} */ - public final Builder modelId(String value) { - this.modelId = value; + public final Builder inferenceId(String value) { + this.inferenceId = value; return this; } /** - * Required - The model task type + * The task type *

* API name: {@code task_type} */ - public final Builder taskType(TaskType value) { + public final Builder taskType(@Nullable TaskType value) { this.taskType = value; return this; } @@ -218,21 +221,29 @@ protected static JsonpDeserializer createPutModelRequestDeseria // Request path request -> { - final int _modelId = 1 << 0; + final int _inferenceId = 1 << 0; final int _taskType = 1 << 1; int propsSet = 0; - propsSet |= _modelId; - propsSet |= _taskType; + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; - if (propsSet == (_taskType | _modelId)) { + if (propsSet == (_inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + if (propsSet == (_taskType | _inferenceId)) { StringBuilder buf = new StringBuilder(); buf.append("/_inference"); buf.append("/"); SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); buf.append("/"); - SimpleEndpoint.pathEncode(request.modelId, buf); + SimpleEndpoint.pathEncode(request.inferenceId, buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -242,17 +253,21 @@ protected static JsonpDeserializer createPutModelRequestDeseria // Path parameters request -> { Map params = new HashMap<>(); - final int _modelId = 1 << 0; + final int _inferenceId = 1 << 0; final int _taskType = 1 << 1; int propsSet = 0; - propsSet |= _modelId; - propsSet |= _taskType; + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; - if (propsSet == (_taskType | _modelId)) { + if (propsSet == (_inferenceId)) { + params.put("inferenceId", request.inferenceId); + } + if (propsSet == (_taskType | _inferenceId)) { params.put("taskType", request.taskType.jsonValue()); - params.put("modelId", request.modelId); + params.put("inferenceId", request.inferenceId); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java index 1ec9cc9c2..4b79d2767 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java @@ -83,7 +83,7 @@ private Pipeline(Builder builder) { this.onFailure = ApiTypeHelper.unmodifiable(builder.onFailure); this.processors = ApiTypeHelper.unmodifiable(builder.processors); this.version = builder.version; - this.meta = ApiTypeHelper.unmodifiableRequired(builder.meta, this, "meta"); + this.meta = ApiTypeHelper.unmodifiable(builder.meta); } @@ -131,8 +131,8 @@ public final Long version() { } /** - * Required - Arbitrary metadata about the ingest pipeline. This map is not - * automatically generated by Elasticsearch. + * Arbitrary metadata about the ingest pipeline. This map is not automatically + * generated by Elasticsearch. *

* API name: {@code _meta} */ @@ -219,6 +219,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long version; + @Nullable private Map meta; /** @@ -315,8 +316,8 @@ public final Builder version(@Nullable Long value) { } /** - * Required - Arbitrary metadata about the ingest pipeline. This map is not - * automatically generated by Elasticsearch. + * Arbitrary metadata about the ingest pipeline. This map is not automatically + * generated by Elasticsearch. *

* API name: {@code _meta} *

@@ -328,8 +329,8 @@ public final Builder meta(Map map) { } /** - * Required - Arbitrary metadata about the ingest pipeline. This map is not - * automatically generated by Elasticsearch. + * Arbitrary metadata about the ingest pipeline. This map is not automatically + * generated by Elasticsearch. *

* API name: {@code _meta} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java index c0dd257f5..04466ff0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java @@ -86,8 +86,7 @@ public class PutRoleRequest extends RequestBase implements JsonpSerializable { private final List runAs; - @Nullable - private final TransientMetadataConfig transientMetadata; + private final Map transientMetadata; // --------------------------------------------------------------------------------------------- @@ -101,7 +100,7 @@ private PutRoleRequest(Builder builder) { this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); this.refresh = builder.refresh; this.runAs = ApiTypeHelper.unmodifiable(builder.runAs); - this.transientMetadata = builder.transientMetadata; + this.transientMetadata = ApiTypeHelper.unmodifiable(builder.transientMetadata); } @@ -199,8 +198,7 @@ public final List runAs() { *

* API name: {@code transient_metadata} */ - @Nullable - public final TransientMetadataConfig transientMetadata() { + public final Map transientMetadata() { return this.transientMetadata; } @@ -277,9 +275,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.transientMetadata != null) { + if (ApiTypeHelper.isDefined(this.transientMetadata)) { generator.writeKey("transient_metadata"); - this.transientMetadata.serialize(generator, mapper); + generator.writeStartObject(); + for (Map.Entry item0 : this.transientMetadata.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); } @@ -316,7 +320,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List runAs; @Nullable - private TransientMetadataConfig transientMetadata; + private Map transientMetadata; /** * A list of application privilege entries. @@ -525,9 +529,11 @@ public final Builder runAs(String value, String... values) { * listed in the response from the authenticate API. *

* API name: {@code transient_metadata} + *

+ * Adds all entries of map to transientMetadata. */ - public final Builder transientMetadata(@Nullable TransientMetadataConfig value) { - this.transientMetadata = value; + public final Builder transientMetadata(Map map) { + this.transientMetadata = _mapPutAll(this.transientMetadata, map); return this; } @@ -540,10 +546,12 @@ public final Builder transientMetadata(@Nullable TransientMetadataConfig value) * listed in the response from the authenticate API. *

* API name: {@code transient_metadata} + *

+ * Adds an entry to transientMetadata. */ - public final Builder transientMetadata( - Function> fn) { - return this.transientMetadata(fn.apply(new TransientMetadataConfig.Builder()).build()); + public final Builder transientMetadata(String key, JsonData value) { + this.transientMetadata = _mapPut(this.transientMetadata, key, value); + return this; } @Override @@ -582,7 +590,8 @@ protected static void setupPutRoleRequestDeserializer(ObjectDeserializer runAs; - @Nullable - private final TransientMetadataConfig transientMetadata; + private final Map transientMetadata; // --------------------------------------------------------------------------------------------- @@ -87,7 +86,7 @@ private RoleDescriptor(Builder builder) { this.applications = ApiTypeHelper.unmodifiable(builder.applications); this.metadata = ApiTypeHelper.unmodifiable(builder.metadata); this.runAs = ApiTypeHelper.unmodifiable(builder.runAs); - this.transientMetadata = builder.transientMetadata; + this.transientMetadata = ApiTypeHelper.unmodifiable(builder.transientMetadata); } @@ -156,8 +155,7 @@ public final List runAs() { /** * API name: {@code transient_metadata} */ - @Nullable - public final TransientMetadataConfig transientMetadata() { + public final Map transientMetadata() { return this.transientMetadata; } @@ -233,9 +231,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.transientMetadata != null) { + if (ApiTypeHelper.isDefined(this.transientMetadata)) { generator.writeKey("transient_metadata"); - this.transientMetadata.serialize(generator, mapper); + generator.writeStartObject(); + for (Map.Entry item0 : this.transientMetadata.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); } @@ -272,7 +276,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List runAs; @Nullable - private TransientMetadataConfig transientMetadata; + private Map transientMetadata; /** * A list of cluster privileges. These privileges define the cluster level @@ -464,18 +468,22 @@ public final Builder runAs(String value, String... values) { /** * API name: {@code transient_metadata} + *

+ * Adds all entries of map to transientMetadata. */ - public final Builder transientMetadata(@Nullable TransientMetadataConfig value) { - this.transientMetadata = value; + public final Builder transientMetadata(Map map) { + this.transientMetadata = _mapPutAll(this.transientMetadata, map); return this; } /** * API name: {@code transient_metadata} + *

+ * Adds an entry to transientMetadata. */ - public final Builder transientMetadata( - Function> fn) { - return this.transientMetadata(fn.apply(new TransientMetadataConfig.Builder()).build()); + public final Builder transientMetadata(String key, JsonData value) { + this.transientMetadata = _mapPut(this.transientMetadata, key, value); + return this; } @Override @@ -515,7 +523,8 @@ protected static void setupRoleDescriptorDeserializer(ObjectDeserializer runAs; - @Nullable - private final TransientMetadataConfig transientMetadata; + private final Map transientMetadata; // --------------------------------------------------------------------------------------------- @@ -88,7 +87,7 @@ private RoleDescriptorRead(Builder builder) { this.applications = ApiTypeHelper.unmodifiable(builder.applications); this.metadata = ApiTypeHelper.unmodifiable(builder.metadata); this.runAs = ApiTypeHelper.unmodifiable(builder.runAs); - this.transientMetadata = builder.transientMetadata; + this.transientMetadata = ApiTypeHelper.unmodifiable(builder.transientMetadata); } @@ -157,8 +156,7 @@ public final List runAs() { /** * API name: {@code transient_metadata} */ - @Nullable - public final TransientMetadataConfig transientMetadata() { + public final Map transientMetadata() { return this.transientMetadata; } @@ -234,9 +232,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.transientMetadata != null) { + if (ApiTypeHelper.isDefined(this.transientMetadata)) { generator.writeKey("transient_metadata"); - this.transientMetadata.serialize(generator, mapper); + generator.writeStartObject(); + for (Map.Entry item0 : this.transientMetadata.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); } @@ -273,7 +277,7 @@ public static class Builder extends WithJsonObjectBuilderBase private List runAs; @Nullable - private TransientMetadataConfig transientMetadata; + private Map transientMetadata; /** * Required - A list of cluster privileges. These privileges define the cluster @@ -465,18 +469,22 @@ public final Builder runAs(String value, String... values) { /** * API name: {@code transient_metadata} + *

+ * Adds all entries of map to transientMetadata. */ - public final Builder transientMetadata(@Nullable TransientMetadataConfig value) { - this.transientMetadata = value; + public final Builder transientMetadata(Map map) { + this.transientMetadata = _mapPutAll(this.transientMetadata, map); return this; } /** * API name: {@code transient_metadata} + *

+ * Adds an entry to transientMetadata. */ - public final Builder transientMetadata( - Function> fn) { - return this.transientMetadata(fn.apply(new TransientMetadataConfig.Builder()).build()); + public final Builder transientMetadata(String key, JsonData value) { + this.transientMetadata = _mapPut(this.transientMetadata, key, value); + return this; } @Override @@ -516,7 +524,8 @@ protected static void setupRoleDescriptorReadDeserializer(ObjectDeserializer runAs; - private final TransientMetadataConfig transientMetadata; + private final Map transientMetadata; private final List applications; @@ -90,7 +89,7 @@ private Role(Builder builder) { this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); this.metadata = ApiTypeHelper.unmodifiableRequired(builder.metadata, this, "metadata"); this.runAs = ApiTypeHelper.unmodifiableRequired(builder.runAs, this, "runAs"); - this.transientMetadata = ApiTypeHelper.requireNonNull(builder.transientMetadata, this, "transientMetadata"); + this.transientMetadata = ApiTypeHelper.unmodifiable(builder.transientMetadata); this.applications = ApiTypeHelper.unmodifiableRequired(builder.applications, this, "applications"); this.roleTemplates = ApiTypeHelper.unmodifiable(builder.roleTemplates); this.global = ApiTypeHelper.unmodifiable(builder.global); @@ -130,9 +129,9 @@ public final List runAs() { } /** - * Required - API name: {@code transient_metadata} + * API name: {@code transient_metadata} */ - public final TransientMetadataConfig transientMetadata() { + public final Map transientMetadata() { return this.transientMetadata; } @@ -209,9 +208,17 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - generator.writeKey("transient_metadata"); - this.transientMetadata.serialize(generator, mapper); + if (ApiTypeHelper.isDefined(this.transientMetadata)) { + generator.writeKey("transient_metadata"); + generator.writeStartObject(); + for (Map.Entry item0 : this.transientMetadata.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + } if (ApiTypeHelper.isDefined(this.applications)) { generator.writeKey("applications"); generator.writeStartArray(); @@ -289,7 +296,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List runAs; - private TransientMetadataConfig transientMetadata; + @Nullable + private Map transientMetadata; private List applications; @@ -389,19 +397,23 @@ public final Builder runAs(String value, String... values) { } /** - * Required - API name: {@code transient_metadata} + * API name: {@code transient_metadata} + *

+ * Adds all entries of map to transientMetadata. */ - public final Builder transientMetadata(TransientMetadataConfig value) { - this.transientMetadata = value; + public final Builder transientMetadata(Map map) { + this.transientMetadata = _mapPutAll(this.transientMetadata, map); return this; } /** - * Required - API name: {@code transient_metadata} + * API name: {@code transient_metadata} + *

+ * Adds an entry to transientMetadata. */ - public final Builder transientMetadata( - Function> fn) { - return this.transientMetadata(fn.apply(new TransientMetadataConfig.Builder()).build()); + public final Builder transientMetadata(String key, JsonData value) { + this.transientMetadata = _mapPut(this.transientMetadata, key, value); + return this; } /** @@ -516,7 +528,8 @@ protected static void setupRoleDeserializer(ObjectDeserializer op) op.add(Builder::indices, JsonpDeserializer.arrayDeserializer(IndicesPrivileges._DESERIALIZER), "indices"); op.add(Builder::metadata, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "metadata"); op.add(Builder::runAs, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "run_as"); - op.add(Builder::transientMetadata, TransientMetadataConfig._DESERIALIZER, "transient_metadata"); + op.add(Builder::transientMetadata, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), + "transient_metadata"); op.add(Builder::applications, JsonpDeserializer.arrayDeserializer(ApplicationPrivileges._DESERIALIZER), "applications"); op.add(Builder::roleTemplates, JsonpDeserializer.arrayDeserializer(RoleTemplate._DESERIALIZER), diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepository.java new file mode 100644 index 000000000..68943221d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepository.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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.AzureRepository + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class AzureRepository extends RepositoryBase implements RepositoryVariant { + private final AzureRepositorySettings settings; + + // --------------------------------------------------------------------------------------------- + + private AzureRepository(Builder builder) { + super(builder); + + this.settings = ApiTypeHelper.requireNonNull(builder.settings, this, "settings"); + + } + + public static AzureRepository of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Repository variant kind. + */ + @Override + public Repository.Kind _repositoryKind() { + return Repository.Kind.Azure; + } + + /** + * Required - API name: {@code settings} + */ + public final AzureRepositorySettings settings() { + return this.settings; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "azure"); + super.serializeInternal(generator, mapper); + generator.writeKey("settings"); + this.settings.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AzureRepository}. + */ + + public static class Builder extends RepositoryBase.AbstractBuilder + implements + ObjectBuilder { + private AzureRepositorySettings settings; + + /** + * Required - API name: {@code settings} + */ + public final Builder settings(AzureRepositorySettings value) { + this.settings = value; + return this; + } + + /** + * Required - API name: {@code settings} + */ + public final Builder settings( + Function> fn) { + return this.settings(fn.apply(new AzureRepositorySettings.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link AzureRepository}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AzureRepository build() { + _checkSingleUse(); + + return new AzureRepository(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link AzureRepository} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + AzureRepository::setupAzureRepositoryDeserializer); + + protected static void setupAzureRepositoryDeserializer(ObjectDeserializer op) { + RepositoryBase.setupRepositoryBaseDeserializer(op); + op.add(Builder::settings, AzureRepositorySettings._DESERIALIZER, "settings"); + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepositorySettings.java new file mode 100644 index 000000000..81d342bd2 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepositorySettings.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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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 java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.AzureRepositorySettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class AzureRepositorySettings extends RepositorySettingsBase { + @Nullable + private final String client; + + @Nullable + private final String container; + + @Nullable + private final String basePath; + + @Nullable + private final Boolean readonly; + + @Nullable + private final String locationMode; + + // --------------------------------------------------------------------------------------------- + + private AzureRepositorySettings(Builder builder) { + super(builder); + + this.client = builder.client; + this.container = builder.container; + this.basePath = builder.basePath; + this.readonly = builder.readonly; + this.locationMode = builder.locationMode; + + } + + public static AzureRepositorySettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code client} + */ + @Nullable + public final String client() { + return this.client; + } + + /** + * API name: {@code container} + */ + @Nullable + public final String container() { + return this.container; + } + + /** + * API name: {@code base_path} + */ + @Nullable + public final String basePath() { + return this.basePath; + } + + /** + * API name: {@code readonly} + */ + @Nullable + public final Boolean readonly() { + return this.readonly; + } + + /** + * API name: {@code location_mode} + */ + @Nullable + public final String locationMode() { + return this.locationMode; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.client != null) { + generator.writeKey("client"); + generator.write(this.client); + + } + if (this.container != null) { + generator.writeKey("container"); + generator.write(this.container); + + } + if (this.basePath != null) { + generator.writeKey("base_path"); + generator.write(this.basePath); + + } + if (this.readonly != null) { + generator.writeKey("readonly"); + generator.write(this.readonly); + + } + if (this.locationMode != null) { + generator.writeKey("location_mode"); + generator.write(this.locationMode); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AzureRepositorySettings}. + */ + + public static class Builder extends RepositorySettingsBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String client; + + @Nullable + private String container; + + @Nullable + private String basePath; + + @Nullable + private Boolean readonly; + + @Nullable + private String locationMode; + + /** + * API name: {@code client} + */ + public final Builder client(@Nullable String value) { + this.client = value; + return this; + } + + /** + * API name: {@code container} + */ + public final Builder container(@Nullable String value) { + this.container = value; + return this; + } + + /** + * API name: {@code base_path} + */ + public final Builder basePath(@Nullable String value) { + this.basePath = value; + return this; + } + + /** + * API name: {@code readonly} + */ + public final Builder readonly(@Nullable Boolean value) { + this.readonly = value; + return this; + } + + /** + * API name: {@code location_mode} + */ + public final Builder locationMode(@Nullable String value) { + this.locationMode = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link AzureRepositorySettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AzureRepositorySettings build() { + _checkSingleUse(); + + return new AzureRepositorySettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link AzureRepositorySettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, AzureRepositorySettings::setupAzureRepositorySettingsDeserializer); + + protected static void setupAzureRepositorySettingsDeserializer( + ObjectDeserializer op) { + RepositorySettingsBase.setupRepositorySettingsBaseDeserializer(op); + op.add(Builder::client, JsonpDeserializer.stringDeserializer(), "client"); + op.add(Builder::container, JsonpDeserializer.stringDeserializer(), "container"); + op.add(Builder::basePath, JsonpDeserializer.stringDeserializer(), "base_path"); + op.add(Builder::readonly, JsonpDeserializer.booleanDeserializer(), "readonly"); + op.add(Builder::locationMode, JsonpDeserializer.stringDeserializer(), "location_mode"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java index 10202f902..0bb69501c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java @@ -33,6 +33,7 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; import java.lang.Boolean; import java.lang.String; import java.util.HashMap; @@ -72,30 +73,23 @@ public class CreateRepositoryRequest extends RequestBase implements JsonpSeriali private final String name; - @Nullable - private final Repository repository; - - private final RepositorySettings settings; - @Nullable private final Time timeout; - private final String type; - @Nullable private final Boolean verify; + private final Repository repository; + // --------------------------------------------------------------------------------------------- private CreateRepositoryRequest(Builder builder) { this.masterTimeout = builder.masterTimeout; this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); - this.repository = builder.repository; - this.settings = ApiTypeHelper.requireNonNull(builder.settings, this, "settings"); this.timeout = builder.timeout; - this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); this.verify = builder.verify; + this.repository = ApiTypeHelper.requireNonNull(builder.repository, this, "repository"); } @@ -122,21 +116,6 @@ public final String name() { return this.name; } - /** - * API name: {@code repository} - */ - @Nullable - public final Repository repository() { - return this.repository; - } - - /** - * Required - API name: {@code settings} - */ - public final RepositorySettings settings() { - return this.settings; - } - /** * Explicit operation timeout *

@@ -147,13 +126,6 @@ public final Time timeout() { return this.timeout; } - /** - * Required - API name: {@code type} - */ - public final String type() { - return this.type; - } - /** * Whether to verify the repository after creation *

@@ -165,26 +137,17 @@ public final Boolean verify() { } /** - * Serialize this object to JSON. + * Required - Request body. */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); + public final Repository repository() { + return this.repository; } - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (this.repository != null) { - generator.writeKey("repository"); - this.repository.serialize(generator, mapper); - - } - generator.writeKey("settings"); - this.settings.serialize(generator, mapper); - - generator.writeKey("type"); - generator.write(this.type); + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + this.repository.serialize(generator, mapper); } @@ -202,19 +165,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; - @Nullable - private Repository repository; - - private RepositorySettings settings; - @Nullable private Time timeout; - private String type; - @Nullable private Boolean verify; + private Repository repository; + /** * Explicit operation timeout for connection to master node *

@@ -244,36 +202,6 @@ public final Builder name(String value) { return this; } - /** - * API name: {@code repository} - */ - public final Builder repository(@Nullable Repository value) { - this.repository = value; - return this; - } - - /** - * API name: {@code repository} - */ - public final Builder repository(Function> fn) { - return this.repository(fn.apply(new Repository.Builder()).build()); - } - - /** - * Required - API name: {@code settings} - */ - public final Builder settings(RepositorySettings value) { - this.settings = value; - return this; - } - - /** - * Required - API name: {@code settings} - */ - public final Builder settings(Function> fn) { - return this.settings(fn.apply(new RepositorySettings.Builder()).build()); - } - /** * Explicit operation timeout *

@@ -293,14 +221,6 @@ public final Builder timeout(Function> fn) { return this.timeout(fn.apply(new Time.Builder()).build()); } - /** - * Required - API name: {@code type} - */ - public final Builder type(String value) { - this.type = value; - return this; - } - /** * Whether to verify the repository after creation *

@@ -311,6 +231,29 @@ public final Builder verify(@Nullable Boolean value) { return this; } + /** + * Required - Request body. + */ + public final Builder repository(Repository value) { + this.repository = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder repository(Function> fn) { + return this.repository(fn.apply(new Repository.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + Repository value = (Repository) Repository._DESERIALIZER.deserialize(parser, mapper); + return this.repository(value); + } + @Override protected Builder self() { return this; @@ -329,21 +272,13 @@ public CreateRepositoryRequest build() { } } - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link CreateRepositoryRequest} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, CreateRepositoryRequest::setupCreateRepositoryRequestDeserializer); - - protected static void setupCreateRepositoryRequestDeserializer( - ObjectDeserializer op) { + public static final JsonpDeserializer _DESERIALIZER = createCreateRepositoryRequestDeserializer(); + protected static JsonpDeserializer createCreateRepositoryRequestDeserializer() { - op.add(Builder::repository, Repository._DESERIALIZER, "repository"); - op.add(Builder::settings, RepositorySettings._DESERIALIZER, "settings"); - op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type"); + JsonpDeserializer valueDeserializer = Repository._DESERIALIZER; + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .repository(valueDeserializer.deserialize(parser, mapper, event)).build()); } // --------------------------------------------------------------------------------------------- diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepository.java new file mode 100644 index 000000000..786d6a220 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepository.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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.GcsRepository + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GcsRepository extends RepositoryBase implements RepositoryVariant { + private final GcsRepositorySettings settings; + + // --------------------------------------------------------------------------------------------- + + private GcsRepository(Builder builder) { + super(builder); + + this.settings = ApiTypeHelper.requireNonNull(builder.settings, this, "settings"); + + } + + public static GcsRepository of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Repository variant kind. + */ + @Override + public Repository.Kind _repositoryKind() { + return Repository.Kind.Gcs; + } + + /** + * Required - API name: {@code settings} + */ + public final GcsRepositorySettings settings() { + return this.settings; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "gcs"); + super.serializeInternal(generator, mapper); + generator.writeKey("settings"); + this.settings.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GcsRepository}. + */ + + public static class Builder extends RepositoryBase.AbstractBuilder + implements + ObjectBuilder { + private GcsRepositorySettings settings; + + /** + * Required - API name: {@code settings} + */ + public final Builder settings(GcsRepositorySettings value) { + this.settings = value; + return this; + } + + /** + * Required - API name: {@code settings} + */ + public final Builder settings( + Function> fn) { + return this.settings(fn.apply(new GcsRepositorySettings.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GcsRepository}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GcsRepository build() { + _checkSingleUse(); + + return new GcsRepository(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GcsRepository} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + GcsRepository::setupGcsRepositoryDeserializer); + + protected static void setupGcsRepositoryDeserializer(ObjectDeserializer op) { + RepositoryBase.setupRepositoryBaseDeserializer(op); + op.add(Builder::settings, GcsRepositorySettings._DESERIALIZER, "settings"); + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepositorySettings.java new file mode 100644 index 000000000..3bf19af9d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepositorySettings.java @@ -0,0 +1,259 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.GcsRepositorySettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GcsRepositorySettings extends RepositorySettingsBase { + private final String bucket; + + @Nullable + private final String client; + + @Nullable + private final String basePath; + + @Nullable + private final Boolean readonly; + + @Nullable + private final String applicationName; + + // --------------------------------------------------------------------------------------------- + + private GcsRepositorySettings(Builder builder) { + super(builder); + + this.bucket = ApiTypeHelper.requireNonNull(builder.bucket, this, "bucket"); + this.client = builder.client; + this.basePath = builder.basePath; + this.readonly = builder.readonly; + this.applicationName = builder.applicationName; + + } + + public static GcsRepositorySettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code bucket} + */ + public final String bucket() { + return this.bucket; + } + + /** + * API name: {@code client} + */ + @Nullable + public final String client() { + return this.client; + } + + /** + * API name: {@code base_path} + */ + @Nullable + public final String basePath() { + return this.basePath; + } + + /** + * API name: {@code readonly} + */ + @Nullable + public final Boolean readonly() { + return this.readonly; + } + + /** + * API name: {@code application_name} + */ + @Nullable + public final String applicationName() { + return this.applicationName; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("bucket"); + generator.write(this.bucket); + + if (this.client != null) { + generator.writeKey("client"); + generator.write(this.client); + + } + if (this.basePath != null) { + generator.writeKey("base_path"); + generator.write(this.basePath); + + } + if (this.readonly != null) { + generator.writeKey("readonly"); + generator.write(this.readonly); + + } + if (this.applicationName != null) { + generator.writeKey("application_name"); + generator.write(this.applicationName); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GcsRepositorySettings}. + */ + + public static class Builder extends RepositorySettingsBase.AbstractBuilder + implements + ObjectBuilder { + private String bucket; + + @Nullable + private String client; + + @Nullable + private String basePath; + + @Nullable + private Boolean readonly; + + @Nullable + private String applicationName; + + /** + * Required - API name: {@code bucket} + */ + public final Builder bucket(String value) { + this.bucket = value; + return this; + } + + /** + * API name: {@code client} + */ + public final Builder client(@Nullable String value) { + this.client = value; + return this; + } + + /** + * API name: {@code base_path} + */ + public final Builder basePath(@Nullable String value) { + this.basePath = value; + return this; + } + + /** + * API name: {@code readonly} + */ + public final Builder readonly(@Nullable Boolean value) { + this.readonly = value; + return this; + } + + /** + * API name: {@code application_name} + */ + public final Builder applicationName(@Nullable String value) { + this.applicationName = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GcsRepositorySettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GcsRepositorySettings build() { + _checkSingleUse(); + + return new GcsRepositorySettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GcsRepositorySettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GcsRepositorySettings::setupGcsRepositorySettingsDeserializer); + + protected static void setupGcsRepositorySettingsDeserializer(ObjectDeserializer op) { + RepositorySettingsBase.setupRepositorySettingsBaseDeserializer(op); + op.add(Builder::bucket, JsonpDeserializer.stringDeserializer(), "bucket"); + op.add(Builder::client, JsonpDeserializer.stringDeserializer(), "client"); + op.add(Builder::basePath, JsonpDeserializer.stringDeserializer(), "base_path"); + op.add(Builder::readonly, JsonpDeserializer.booleanDeserializer(), "readonly"); + op.add(Builder::applicationName, JsonpDeserializer.stringDeserializer(), "application_name"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepository.java new file mode 100644 index 000000000..000230998 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepository.java @@ -0,0 +1,158 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.ReadOnlyUrlRepository + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ReadOnlyUrlRepository extends RepositoryBase implements RepositoryVariant { + private final ReadOnlyUrlRepositorySettings settings; + + // --------------------------------------------------------------------------------------------- + + private ReadOnlyUrlRepository(Builder builder) { + super(builder); + + this.settings = ApiTypeHelper.requireNonNull(builder.settings, this, "settings"); + + } + + public static ReadOnlyUrlRepository of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Repository variant kind. + */ + @Override + public Repository.Kind _repositoryKind() { + return Repository.Kind.Url; + } + + /** + * Required - API name: {@code settings} + */ + public final ReadOnlyUrlRepositorySettings settings() { + return this.settings; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "url"); + super.serializeInternal(generator, mapper); + generator.writeKey("settings"); + this.settings.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ReadOnlyUrlRepository}. + */ + + public static class Builder extends RepositoryBase.AbstractBuilder + implements + ObjectBuilder { + private ReadOnlyUrlRepositorySettings settings; + + /** + * Required - API name: {@code settings} + */ + public final Builder settings(ReadOnlyUrlRepositorySettings value) { + this.settings = value; + return this; + } + + /** + * Required - API name: {@code settings} + */ + public final Builder settings( + Function> fn) { + return this.settings(fn.apply(new ReadOnlyUrlRepositorySettings.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ReadOnlyUrlRepository}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ReadOnlyUrlRepository build() { + _checkSingleUse(); + + return new ReadOnlyUrlRepository(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ReadOnlyUrlRepository} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ReadOnlyUrlRepository::setupReadOnlyUrlRepositoryDeserializer); + + protected static void setupReadOnlyUrlRepositoryDeserializer(ObjectDeserializer op) { + RepositoryBase.setupRepositoryBaseDeserializer(op); + op.add(Builder::settings, ReadOnlyUrlRepositorySettings._DESERIALIZER, "settings"); + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepositorySettings.java new file mode 100644 index 000000000..1383a93af --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepositorySettings.java @@ -0,0 +1,238 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.ReadOnlyUrlRepositorySettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ReadOnlyUrlRepositorySettings extends RepositorySettingsBase { + @Nullable + private final Integer httpMaxRetries; + + @Nullable + private final Time httpSocketTimeout; + + @Nullable + private final Integer maxNumberOfSnapshots; + + private final String url; + + // --------------------------------------------------------------------------------------------- + + private ReadOnlyUrlRepositorySettings(Builder builder) { + super(builder); + + this.httpMaxRetries = builder.httpMaxRetries; + this.httpSocketTimeout = builder.httpSocketTimeout; + this.maxNumberOfSnapshots = builder.maxNumberOfSnapshots; + this.url = ApiTypeHelper.requireNonNull(builder.url, this, "url"); + + } + + public static ReadOnlyUrlRepositorySettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code http_max_retries} + */ + @Nullable + public final Integer httpMaxRetries() { + return this.httpMaxRetries; + } + + /** + * API name: {@code http_socket_timeout} + */ + @Nullable + public final Time httpSocketTimeout() { + return this.httpSocketTimeout; + } + + /** + * API name: {@code max_number_of_snapshots} + */ + @Nullable + public final Integer maxNumberOfSnapshots() { + return this.maxNumberOfSnapshots; + } + + /** + * Required - API name: {@code url} + */ + public final String url() { + return this.url; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.httpMaxRetries != null) { + generator.writeKey("http_max_retries"); + generator.write(this.httpMaxRetries); + + } + if (this.httpSocketTimeout != null) { + generator.writeKey("http_socket_timeout"); + this.httpSocketTimeout.serialize(generator, mapper); + + } + if (this.maxNumberOfSnapshots != null) { + generator.writeKey("max_number_of_snapshots"); + generator.write(this.maxNumberOfSnapshots); + + } + generator.writeKey("url"); + generator.write(this.url); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ReadOnlyUrlRepositorySettings}. + */ + + public static class Builder extends RepositorySettingsBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Integer httpMaxRetries; + + @Nullable + private Time httpSocketTimeout; + + @Nullable + private Integer maxNumberOfSnapshots; + + private String url; + + /** + * API name: {@code http_max_retries} + */ + public final Builder httpMaxRetries(@Nullable Integer value) { + this.httpMaxRetries = value; + return this; + } + + /** + * API name: {@code http_socket_timeout} + */ + public final Builder httpSocketTimeout(@Nullable Time value) { + this.httpSocketTimeout = value; + return this; + } + + /** + * API name: {@code http_socket_timeout} + */ + public final Builder httpSocketTimeout(Function> fn) { + return this.httpSocketTimeout(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code max_number_of_snapshots} + */ + public final Builder maxNumberOfSnapshots(@Nullable Integer value) { + this.maxNumberOfSnapshots = value; + return this; + } + + /** + * Required - API name: {@code url} + */ + public final Builder url(String value) { + this.url = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ReadOnlyUrlRepositorySettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ReadOnlyUrlRepositorySettings build() { + _checkSingleUse(); + + return new ReadOnlyUrlRepositorySettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ReadOnlyUrlRepositorySettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ReadOnlyUrlRepositorySettings::setupReadOnlyUrlRepositorySettingsDeserializer); + + protected static void setupReadOnlyUrlRepositorySettingsDeserializer( + ObjectDeserializer op) { + RepositorySettingsBase.setupRepositorySettingsBaseDeserializer(op); + op.add(Builder::httpMaxRetries, JsonpDeserializer.integerDeserializer(), "http_max_retries"); + op.add(Builder::httpSocketTimeout, Time._DESERIALIZER, "http_socket_timeout"); + op.add(Builder::maxNumberOfSnapshots, JsonpDeserializer.integerDeserializer(), "max_number_of_snapshots"); + op.add(Builder::url, JsonpDeserializer.stringDeserializer(), "url"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Repository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Repository.java index 30f5fcf32..466cc939f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Repository.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Repository.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch.snapshot; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -28,9 +30,11 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.OpenTaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; -import java.lang.String; +import java.lang.Object; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -58,21 +62,71 @@ * specification */ @JsonpDeserializable -public class Repository implements JsonpSerializable { - private final String type; +public class Repository implements OpenTaggedUnion, JsonpSerializable { - @Nullable - private final String uuid; + /** + * {@link Repository} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + Azure("azure"), + + Gcs("gcs"), + + Url("url"), + + S3("s3"), + + Fs("fs"), + + Source("source"), + + /** A custom {@code Repository} defined by a plugin */ + _Custom(null) + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; - private final RepositorySettings settings; + @Override + public final Kind _kind() { + return _kind; + } - // --------------------------------------------------------------------------------------------- + @Override + public final Object _get() { + return _value; + } + + public Repository(RepositoryVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._repositoryKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; + + } private Repository(Builder builder) { - this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); - this.uuid = builder.uuid; - this.settings = ApiTypeHelper.requireNonNull(builder.settings, this, "settings"); + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + this._customKind = builder._customKind; } @@ -81,133 +135,271 @@ public static Repository of(Function> fn) { } /** - * Required - API name: {@code type} + * Build a custom plugin-defined {@code Repository}, given its kind and some + * JSON data */ - public final String type() { - return this.type; + public Repository(String kind, JsonData value) { + this._kind = Kind._Custom; + this._value = value; + this._customKind = kind; } /** - * API name: {@code uuid} + * Is this variant instance of kind {@code azure}? */ - @Nullable - public final String uuid() { - return this.uuid; + public boolean isAzure() { + return _kind == Kind.Azure; } /** - * Required - API name: {@code settings} + * Get the {@code azure} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code azure} kind. */ - public final RepositorySettings settings() { - return this.settings; + public AzureRepository azure() { + return TaggedUnionUtils.get(this, Kind.Azure); } /** - * Serialize this object to JSON. + * Is this variant instance of kind {@code gcs}? */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); + public boolean isGcs() { + return _kind == Kind.Gcs; + } + + /** + * Get the {@code gcs} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code gcs} kind. + */ + public GcsRepository gcs() { + return TaggedUnionUtils.get(this, Kind.Gcs); } - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + /** + * Is this variant instance of kind {@code url}? + */ + public boolean isUrl() { + return _kind == Kind.Url; + } - generator.writeKey("type"); - generator.write(this.type); + /** + * Get the {@code url} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code url} kind. + */ + public ReadOnlyUrlRepository url() { + return TaggedUnionUtils.get(this, Kind.Url); + } - if (this.uuid != null) { - generator.writeKey("uuid"); - generator.write(this.uuid); + /** + * Is this variant instance of kind {@code s3}? + */ + public boolean isS3() { + return _kind == Kind.S3; + } - } - generator.writeKey("settings"); - this.settings.serialize(generator, mapper); + /** + * Get the {@code s3} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code s3} kind. + */ + public S3Repository s3() { + return TaggedUnionUtils.get(this, Kind.S3); + } + /** + * Is this variant instance of kind {@code fs}? + */ + public boolean isFs() { + return _kind == Kind.Fs; } - @Override - public String toString() { - return JsonpUtils.toString(this); + /** + * Get the {@code fs} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code fs} kind. + */ + public SharedFileSystemRepository fs() { + return TaggedUnionUtils.get(this, Kind.Fs); + } + + /** + * Is this variant instance of kind {@code source}? + */ + public boolean isSource() { + return _kind == Kind.Source; + } + + /** + * Get the {@code source} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code source} kind. + */ + public SourceOnlyRepository source() { + return TaggedUnionUtils.get(this, Kind.Source); } - // --------------------------------------------------------------------------------------------- + @Nullable + private final String _customKind; + + /** + * Is this a custom {@code Repository} defined by a plugin? + */ + public boolean _isCustom() { + return _kind == Kind._Custom; + } /** - * Builder for {@link Repository}. + * Get the actual kind when {@code _kind()} equals {@link Kind#_Custom} + * (plugin-defined variant). */ + @Nullable + public final String _customKind() { + return _customKind; + } + + /** + * Get the custom plugin-defined variant value. + * + * @throws IllegalStateException + * if the current variant is not {@link Kind#_Custom}. + */ + public JsonData _custom() { + return TaggedUnionUtils.get(this, Kind._Custom); + } + + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + mapper.serialize(_value, generator); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private String type; + private Kind _kind; + private Object _value; + private String _customKind; + + @Override + protected Builder self() { + return this; + } + public ObjectBuilder azure(AzureRepository v) { + this._kind = Kind.Azure; + this._value = v; + return this; + } - @Nullable - private String uuid; + public ObjectBuilder azure(Function> fn) { + return this.azure(fn.apply(new AzureRepository.Builder()).build()); + } - private RepositorySettings settings; + public ObjectBuilder gcs(GcsRepository v) { + this._kind = Kind.Gcs; + this._value = v; + return this; + } - /** - * Required - API name: {@code type} - */ - public final Builder type(String value) { - this.type = value; + public ObjectBuilder gcs(Function> fn) { + return this.gcs(fn.apply(new GcsRepository.Builder()).build()); + } + + public ObjectBuilder url(ReadOnlyUrlRepository v) { + this._kind = Kind.Url; + this._value = v; return this; } - /** - * API name: {@code uuid} - */ - public final Builder uuid(@Nullable String value) { - this.uuid = value; + public ObjectBuilder url( + Function> fn) { + return this.url(fn.apply(new ReadOnlyUrlRepository.Builder()).build()); + } + + public ObjectBuilder s3(S3Repository v) { + this._kind = Kind.S3; + this._value = v; return this; } - /** - * Required - API name: {@code settings} - */ - public final Builder settings(RepositorySettings value) { - this.settings = value; + public ObjectBuilder s3(Function> fn) { + return this.s3(fn.apply(new S3Repository.Builder()).build()); + } + + public ObjectBuilder fs(SharedFileSystemRepository v) { + this._kind = Kind.Fs; + this._value = v; return this; } - /** - * Required - API name: {@code settings} - */ - public final Builder settings(Function> fn) { - return this.settings(fn.apply(new RepositorySettings.Builder()).build()); + public ObjectBuilder fs( + Function> fn) { + return this.fs(fn.apply(new SharedFileSystemRepository.Builder()).build()); } - @Override - protected Builder self() { + public ObjectBuilder source(SourceOnlyRepository v) { + this._kind = Kind.Source; + this._value = v; return this; } + public ObjectBuilder source( + Function> fn) { + return this.source(fn.apply(new SourceOnlyRepository.Builder()).build()); + } + /** - * Builds a {@link Repository}. + * Define this {@code Repository} as a plugin-defined variant. * - * @throws NullPointerException - * if some of the required fields are null. + * @param name + * the plugin-defined identifier + * @param data + * the data for this custom {@code Repository}. It is converted + * internally to {@link JsonData}. */ + public ObjectBuilder _custom(String name, Object data) { + this._kind = Kind._Custom; + this._customKind = name; + this._value = JsonData.of(data); + return this; + } + public Repository build() { _checkSingleUse(); - return new Repository(this); } + } - // --------------------------------------------------------------------------------------------- + protected static void setupRepositoryDeserializer(ObjectDeserializer op) { - /** - * Json deserializer for {@link Repository} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - Repository::setupRepositoryDeserializer); + op.add(Builder::azure, AzureRepository._DESERIALIZER, "azure"); + op.add(Builder::gcs, GcsRepository._DESERIALIZER, "gcs"); + op.add(Builder::url, ReadOnlyUrlRepository._DESERIALIZER, "url"); + op.add(Builder::s3, S3Repository._DESERIALIZER, "s3"); + op.add(Builder::fs, SharedFileSystemRepository._DESERIALIZER, "fs"); + op.add(Builder::source, SourceOnlyRepository._DESERIALIZER, "source"); - protected static void setupRepositoryDeserializer(ObjectDeserializer op) { + op.setUnknownFieldHandler((builder, name, parser, mapper) -> { + JsonpUtils.ensureCustomVariantsAllowed(parser, mapper); + builder._custom(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); + }); - op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type"); - op.add(Builder::uuid, JsonpDeserializer.stringDeserializer(), "uuid"); - op.add(Builder::settings, RepositorySettings._DESERIALIZER, "settings"); + op.setTypeProperty("type", null); } + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Repository::setupRepositoryDeserializer, Builder::build); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryBase.java new file mode 100644 index 000000000..e1d203b85 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryBase.java @@ -0,0 +1,129 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.RepositoryBase + +/** + * + * @see API + * specification + */ + +public abstract class RepositoryBase implements JsonpSerializable { + @Nullable + private final String uuid; + + // --------------------------------------------------------------------------------------------- + + protected RepositoryBase(AbstractBuilder builder) { + + this.uuid = builder.uuid; + + } + + /** + * API name: {@code uuid} + */ + @Nullable + public final String uuid() { + return this.uuid; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.uuid != null) { + generator.writeKey("uuid"); + generator.write(this.uuid); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + @Nullable + private String uuid; + + /** + * API name: {@code uuid} + */ + public final BuilderT uuid(@Nullable String value) { + this.uuid = value; + return self(); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupRepositoryBaseDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::uuid, JsonpDeserializer.stringDeserializer(), "uuid"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryBuilders.java new file mode 100644 index 000000000..fc37c5046 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryBuilders.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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Builders for {@link Repository} variants. + */ +public class RepositoryBuilders { + private RepositoryBuilders() { + } + + /** + * Creates a builder for the {@link AzureRepository azure} {@code Repository} + * variant. + */ + public static AzureRepository.Builder azure() { + return new AzureRepository.Builder(); + } + + /** + * Creates a Repository of the {@link AzureRepository azure} {@code Repository} + * variant. + */ + public static Repository azure(Function> fn) { + Repository.Builder builder = new Repository.Builder(); + builder.azure(fn.apply(new AzureRepository.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link GcsRepository gcs} {@code Repository} + * variant. + */ + public static GcsRepository.Builder gcs() { + return new GcsRepository.Builder(); + } + + /** + * Creates a Repository of the {@link GcsRepository gcs} {@code Repository} + * variant. + */ + public static Repository gcs(Function> fn) { + Repository.Builder builder = new Repository.Builder(); + builder.gcs(fn.apply(new GcsRepository.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link ReadOnlyUrlRepository url} + * {@code Repository} variant. + */ + public static ReadOnlyUrlRepository.Builder url() { + return new ReadOnlyUrlRepository.Builder(); + } + + /** + * Creates a Repository of the {@link ReadOnlyUrlRepository url} + * {@code Repository} variant. + */ + public static Repository url(Function> fn) { + Repository.Builder builder = new Repository.Builder(); + builder.url(fn.apply(new ReadOnlyUrlRepository.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link S3Repository s3} {@code Repository} variant. + */ + public static S3Repository.Builder s3() { + return new S3Repository.Builder(); + } + + /** + * Creates a Repository of the {@link S3Repository s3} {@code Repository} + * variant. + */ + public static Repository s3(Function> fn) { + Repository.Builder builder = new Repository.Builder(); + builder.s3(fn.apply(new S3Repository.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SharedFileSystemRepository fs} + * {@code Repository} variant. + */ + public static SharedFileSystemRepository.Builder fs() { + return new SharedFileSystemRepository.Builder(); + } + + /** + * Creates a Repository of the {@link SharedFileSystemRepository fs} + * {@code Repository} variant. + */ + public static Repository fs( + Function> fn) { + Repository.Builder builder = new Repository.Builder(); + builder.fs(fn.apply(new SharedFileSystemRepository.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SourceOnlyRepository source} + * {@code Repository} variant. + */ + public static SourceOnlyRepository.Builder source() { + return new SourceOnlyRepository.Builder(); + } + + /** + * Creates a Repository of the {@link SourceOnlyRepository source} + * {@code Repository} variant. + */ + public static Repository source(Function> fn) { + Repository.Builder builder = new Repository.Builder(); + builder.source(fn.apply(new SourceOnlyRepository.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettingsBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettingsBase.java new file mode 100644 index 000000000..772913e94 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettingsBase.java @@ -0,0 +1,220 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.RepositorySettingsBase + +/** + * + * @see API + * specification + */ + +public abstract class RepositorySettingsBase implements JsonpSerializable { + @Nullable + private final String chunkSize; + + @Nullable + private final Boolean compress; + + @Nullable + private final String maxRestoreBytesPerSec; + + @Nullable + private final String maxSnapshotBytesPerSec; + + // --------------------------------------------------------------------------------------------- + + protected RepositorySettingsBase(AbstractBuilder builder) { + + this.chunkSize = builder.chunkSize; + this.compress = builder.compress; + this.maxRestoreBytesPerSec = builder.maxRestoreBytesPerSec; + this.maxSnapshotBytesPerSec = builder.maxSnapshotBytesPerSec; + + } + + /** + * API name: {@code chunk_size} + */ + @Nullable + public final String chunkSize() { + return this.chunkSize; + } + + /** + * API name: {@code compress} + */ + @Nullable + public final Boolean compress() { + return this.compress; + } + + /** + * API name: {@code max_restore_bytes_per_sec} + */ + @Nullable + public final String maxRestoreBytesPerSec() { + return this.maxRestoreBytesPerSec; + } + + /** + * API name: {@code max_snapshot_bytes_per_sec} + */ + @Nullable + public final String maxSnapshotBytesPerSec() { + return this.maxSnapshotBytesPerSec; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.chunkSize != null) { + generator.writeKey("chunk_size"); + generator.write(this.chunkSize); + + } + if (this.compress != null) { + generator.writeKey("compress"); + generator.write(this.compress); + + } + if (this.maxRestoreBytesPerSec != null) { + generator.writeKey("max_restore_bytes_per_sec"); + generator.write(this.maxRestoreBytesPerSec); + + } + if (this.maxSnapshotBytesPerSec != null) { + generator.writeKey("max_snapshot_bytes_per_sec"); + generator.write(this.maxSnapshotBytesPerSec); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + @Nullable + private String chunkSize; + + @Nullable + private Boolean compress; + + @Nullable + private String maxRestoreBytesPerSec; + + @Nullable + private String maxSnapshotBytesPerSec; + + /** + * API name: {@code chunk_size} + */ + public final BuilderT chunkSize(@Nullable String value) { + this.chunkSize = value; + return self(); + } + + /** + * API name: {@code compress} + */ + public final BuilderT compress(@Nullable Boolean value) { + this.compress = value; + return self(); + } + + /** + * API name: {@code max_restore_bytes_per_sec} + */ + public final BuilderT maxRestoreBytesPerSec(@Nullable String value) { + this.maxRestoreBytesPerSec = value; + return self(); + } + + /** + * API name: {@code max_snapshot_bytes_per_sec} + */ + public final BuilderT maxSnapshotBytesPerSec(@Nullable String value) { + this.maxSnapshotBytesPerSec = value; + return self(); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupRepositorySettingsBaseDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::chunkSize, JsonpDeserializer.stringDeserializer(), "chunk_size"); + op.add(AbstractBuilder::compress, JsonpDeserializer.booleanDeserializer(), "compress"); + op.add(AbstractBuilder::maxRestoreBytesPerSec, JsonpDeserializer.stringDeserializer(), + "max_restore_bytes_per_sec"); + op.add(AbstractBuilder::maxSnapshotBytesPerSec, JsonpDeserializer.stringDeserializer(), + "max_snapshot_bytes_per_sec"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVariant.java new file mode 100644 index 000000000..1ac913457 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVariant.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpSerializable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link Repository} variants. + */ +public interface RepositoryVariant extends JsonpSerializable { + + Repository.Kind _repositoryKind(); + + default Repository _toRepository() { + return new Repository(this); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3Repository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3Repository.java new file mode 100644 index 000000000..8e8e359a3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3Repository.java @@ -0,0 +1,154 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.S3Repository + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class S3Repository extends RepositoryBase implements RepositoryVariant { + private final S3RepositorySettings settings; + + // --------------------------------------------------------------------------------------------- + + private S3Repository(Builder builder) { + super(builder); + + this.settings = ApiTypeHelper.requireNonNull(builder.settings, this, "settings"); + + } + + public static S3Repository of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Repository variant kind. + */ + @Override + public Repository.Kind _repositoryKind() { + return Repository.Kind.S3; + } + + /** + * Required - API name: {@code settings} + */ + public final S3RepositorySettings settings() { + return this.settings; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "s3"); + super.serializeInternal(generator, mapper); + generator.writeKey("settings"); + this.settings.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link S3Repository}. + */ + + public static class Builder extends RepositoryBase.AbstractBuilder implements ObjectBuilder { + private S3RepositorySettings settings; + + /** + * Required - API name: {@code settings} + */ + public final Builder settings(S3RepositorySettings value) { + this.settings = value; + return this; + } + + /** + * Required - API name: {@code settings} + */ + public final Builder settings(Function> fn) { + return this.settings(fn.apply(new S3RepositorySettings.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link S3Repository}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public S3Repository build() { + _checkSingleUse(); + + return new S3Repository(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link S3Repository} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + S3Repository::setupS3RepositoryDeserializer); + + protected static void setupS3RepositoryDeserializer(ObjectDeserializer op) { + RepositoryBase.setupRepositoryBaseDeserializer(op); + op.add(Builder::settings, S3RepositorySettings._DESERIALIZER, "settings"); + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3RepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3RepositorySettings.java new file mode 100644 index 000000000..3b1b6928c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3RepositorySettings.java @@ -0,0 +1,346 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.S3RepositorySettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class S3RepositorySettings extends RepositorySettingsBase { + private final String bucket; + + @Nullable + private final String client; + + @Nullable + private final String basePath; + + @Nullable + private final Boolean readonly; + + @Nullable + private final Boolean serverSideEncryption; + + @Nullable + private final String bufferSize; + + @Nullable + private final String cannedAcl; + + @Nullable + private final String storageClass; + + // --------------------------------------------------------------------------------------------- + + private S3RepositorySettings(Builder builder) { + super(builder); + + this.bucket = ApiTypeHelper.requireNonNull(builder.bucket, this, "bucket"); + this.client = builder.client; + this.basePath = builder.basePath; + this.readonly = builder.readonly; + this.serverSideEncryption = builder.serverSideEncryption; + this.bufferSize = builder.bufferSize; + this.cannedAcl = builder.cannedAcl; + this.storageClass = builder.storageClass; + + } + + public static S3RepositorySettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code bucket} + */ + public final String bucket() { + return this.bucket; + } + + /** + * API name: {@code client} + */ + @Nullable + public final String client() { + return this.client; + } + + /** + * API name: {@code base_path} + */ + @Nullable + public final String basePath() { + return this.basePath; + } + + /** + * API name: {@code readonly} + */ + @Nullable + public final Boolean readonly() { + return this.readonly; + } + + /** + * API name: {@code server_side_encryption} + */ + @Nullable + public final Boolean serverSideEncryption() { + return this.serverSideEncryption; + } + + /** + * API name: {@code buffer_size} + */ + @Nullable + public final String bufferSize() { + return this.bufferSize; + } + + /** + * API name: {@code canned_acl} + */ + @Nullable + public final String cannedAcl() { + return this.cannedAcl; + } + + /** + * API name: {@code storage_class} + */ + @Nullable + public final String storageClass() { + return this.storageClass; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("bucket"); + generator.write(this.bucket); + + if (this.client != null) { + generator.writeKey("client"); + generator.write(this.client); + + } + if (this.basePath != null) { + generator.writeKey("base_path"); + generator.write(this.basePath); + + } + if (this.readonly != null) { + generator.writeKey("readonly"); + generator.write(this.readonly); + + } + if (this.serverSideEncryption != null) { + generator.writeKey("server_side_encryption"); + generator.write(this.serverSideEncryption); + + } + if (this.bufferSize != null) { + generator.writeKey("buffer_size"); + generator.write(this.bufferSize); + + } + if (this.cannedAcl != null) { + generator.writeKey("canned_acl"); + generator.write(this.cannedAcl); + + } + if (this.storageClass != null) { + generator.writeKey("storage_class"); + generator.write(this.storageClass); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link S3RepositorySettings}. + */ + + public static class Builder extends RepositorySettingsBase.AbstractBuilder + implements + ObjectBuilder { + private String bucket; + + @Nullable + private String client; + + @Nullable + private String basePath; + + @Nullable + private Boolean readonly; + + @Nullable + private Boolean serverSideEncryption; + + @Nullable + private String bufferSize; + + @Nullable + private String cannedAcl; + + @Nullable + private String storageClass; + + /** + * Required - API name: {@code bucket} + */ + public final Builder bucket(String value) { + this.bucket = value; + return this; + } + + /** + * API name: {@code client} + */ + public final Builder client(@Nullable String value) { + this.client = value; + return this; + } + + /** + * API name: {@code base_path} + */ + public final Builder basePath(@Nullable String value) { + this.basePath = value; + return this; + } + + /** + * API name: {@code readonly} + */ + public final Builder readonly(@Nullable Boolean value) { + this.readonly = value; + return this; + } + + /** + * API name: {@code server_side_encryption} + */ + public final Builder serverSideEncryption(@Nullable Boolean value) { + this.serverSideEncryption = value; + return this; + } + + /** + * API name: {@code buffer_size} + */ + public final Builder bufferSize(@Nullable String value) { + this.bufferSize = value; + return this; + } + + /** + * API name: {@code canned_acl} + */ + public final Builder cannedAcl(@Nullable String value) { + this.cannedAcl = value; + return this; + } + + /** + * API name: {@code storage_class} + */ + public final Builder storageClass(@Nullable String value) { + this.storageClass = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link S3RepositorySettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public S3RepositorySettings build() { + _checkSingleUse(); + + return new S3RepositorySettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link S3RepositorySettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, S3RepositorySettings::setupS3RepositorySettingsDeserializer); + + protected static void setupS3RepositorySettingsDeserializer(ObjectDeserializer op) { + RepositorySettingsBase.setupRepositorySettingsBaseDeserializer(op); + op.add(Builder::bucket, JsonpDeserializer.stringDeserializer(), "bucket"); + op.add(Builder::client, JsonpDeserializer.stringDeserializer(), "client"); + op.add(Builder::basePath, JsonpDeserializer.stringDeserializer(), "base_path"); + op.add(Builder::readonly, JsonpDeserializer.booleanDeserializer(), "readonly"); + op.add(Builder::serverSideEncryption, JsonpDeserializer.booleanDeserializer(), "server_side_encryption"); + op.add(Builder::bufferSize, JsonpDeserializer.stringDeserializer(), "buffer_size"); + op.add(Builder::cannedAcl, JsonpDeserializer.stringDeserializer(), "canned_acl"); + op.add(Builder::storageClass, JsonpDeserializer.stringDeserializer(), "storage_class"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepository.java new file mode 100644 index 000000000..03ba8f085 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepository.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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.SharedFileSystemRepository + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SharedFileSystemRepository extends RepositoryBase implements RepositoryVariant { + private final SharedFileSystemRepositorySettings settings; + + // --------------------------------------------------------------------------------------------- + + private SharedFileSystemRepository(Builder builder) { + super(builder); + + this.settings = ApiTypeHelper.requireNonNull(builder.settings, this, "settings"); + + } + + public static SharedFileSystemRepository of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Repository variant kind. + */ + @Override + public Repository.Kind _repositoryKind() { + return Repository.Kind.Fs; + } + + /** + * Required - API name: {@code settings} + */ + public final SharedFileSystemRepositorySettings settings() { + return this.settings; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "fs"); + super.serializeInternal(generator, mapper); + generator.writeKey("settings"); + this.settings.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SharedFileSystemRepository}. + */ + + public static class Builder extends RepositoryBase.AbstractBuilder + implements + ObjectBuilder { + private SharedFileSystemRepositorySettings settings; + + /** + * Required - API name: {@code settings} + */ + public final Builder settings(SharedFileSystemRepositorySettings value) { + this.settings = value; + return this; + } + + /** + * Required - API name: {@code settings} + */ + public final Builder settings( + Function> fn) { + return this.settings(fn.apply(new SharedFileSystemRepositorySettings.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SharedFileSystemRepository}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SharedFileSystemRepository build() { + _checkSingleUse(); + + return new SharedFileSystemRepository(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SharedFileSystemRepository} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SharedFileSystemRepository::setupSharedFileSystemRepositoryDeserializer); + + protected static void setupSharedFileSystemRepositoryDeserializer( + ObjectDeserializer op) { + RepositoryBase.setupRepositoryBaseDeserializer(op); + op.add(Builder::settings, SharedFileSystemRepositorySettings._DESERIALIZER, "settings"); + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepositorySettings.java new file mode 100644 index 000000000..dfe78cebc --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepositorySettings.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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.SharedFileSystemRepositorySettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SharedFileSystemRepositorySettings extends RepositorySettingsBase { + private final String location; + + @Nullable + private final Integer maxNumberOfSnapshots; + + @Nullable + private final Boolean readonly; + + // --------------------------------------------------------------------------------------------- + + private SharedFileSystemRepositorySettings(Builder builder) { + super(builder); + + this.location = ApiTypeHelper.requireNonNull(builder.location, this, "location"); + this.maxNumberOfSnapshots = builder.maxNumberOfSnapshots; + this.readonly = builder.readonly; + + } + + public static SharedFileSystemRepositorySettings of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code location} + */ + public final String location() { + return this.location; + } + + /** + * API name: {@code max_number_of_snapshots} + */ + @Nullable + public final Integer maxNumberOfSnapshots() { + return this.maxNumberOfSnapshots; + } + + /** + * API name: {@code readonly} + */ + @Nullable + public final Boolean readonly() { + return this.readonly; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("location"); + generator.write(this.location); + + if (this.maxNumberOfSnapshots != null) { + generator.writeKey("max_number_of_snapshots"); + generator.write(this.maxNumberOfSnapshots); + + } + if (this.readonly != null) { + generator.writeKey("readonly"); + generator.write(this.readonly); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SharedFileSystemRepositorySettings}. + */ + + public static class Builder extends RepositorySettingsBase.AbstractBuilder + implements + ObjectBuilder { + private String location; + + @Nullable + private Integer maxNumberOfSnapshots; + + @Nullable + private Boolean readonly; + + /** + * Required - API name: {@code location} + */ + public final Builder location(String value) { + this.location = value; + return this; + } + + /** + * API name: {@code max_number_of_snapshots} + */ + public final Builder maxNumberOfSnapshots(@Nullable Integer value) { + this.maxNumberOfSnapshots = value; + return this; + } + + /** + * API name: {@code readonly} + */ + public final Builder readonly(@Nullable Boolean value) { + this.readonly = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SharedFileSystemRepositorySettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SharedFileSystemRepositorySettings build() { + _checkSingleUse(); + + return new SharedFileSystemRepositorySettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SharedFileSystemRepositorySettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, + SharedFileSystemRepositorySettings::setupSharedFileSystemRepositorySettingsDeserializer); + + protected static void setupSharedFileSystemRepositorySettingsDeserializer( + ObjectDeserializer op) { + RepositorySettingsBase.setupRepositorySettingsBaseDeserializer(op); + op.add(Builder::location, JsonpDeserializer.stringDeserializer(), "location"); + op.add(Builder::maxNumberOfSnapshots, JsonpDeserializer.integerDeserializer(), "max_number_of_snapshots"); + op.add(Builder::readonly, JsonpDeserializer.booleanDeserializer(), "readonly"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepository.java new file mode 100644 index 000000000..97a29ae24 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepository.java @@ -0,0 +1,158 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.SourceOnlyRepository + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SourceOnlyRepository extends RepositoryBase implements RepositoryVariant { + private final SourceOnlyRepositorySettings settings; + + // --------------------------------------------------------------------------------------------- + + private SourceOnlyRepository(Builder builder) { + super(builder); + + this.settings = ApiTypeHelper.requireNonNull(builder.settings, this, "settings"); + + } + + public static SourceOnlyRepository of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Repository variant kind. + */ + @Override + public Repository.Kind _repositoryKind() { + return Repository.Kind.Source; + } + + /** + * Required - API name: {@code settings} + */ + public final SourceOnlyRepositorySettings settings() { + return this.settings; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "source"); + super.serializeInternal(generator, mapper); + generator.writeKey("settings"); + this.settings.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SourceOnlyRepository}. + */ + + public static class Builder extends RepositoryBase.AbstractBuilder + implements + ObjectBuilder { + private SourceOnlyRepositorySettings settings; + + /** + * Required - API name: {@code settings} + */ + public final Builder settings(SourceOnlyRepositorySettings value) { + this.settings = value; + return this; + } + + /** + * Required - API name: {@code settings} + */ + public final Builder settings( + Function> fn) { + return this.settings(fn.apply(new SourceOnlyRepositorySettings.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SourceOnlyRepository}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SourceOnlyRepository build() { + _checkSingleUse(); + + return new SourceOnlyRepository(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SourceOnlyRepository} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SourceOnlyRepository::setupSourceOnlyRepositoryDeserializer); + + protected static void setupSourceOnlyRepositoryDeserializer(ObjectDeserializer op) { + RepositoryBase.setupRepositoryBaseDeserializer(op); + op.add(Builder::settings, SourceOnlyRepositorySettings._DESERIALIZER, "settings"); + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepositorySettings.java new file mode 100644 index 000000000..9230140c0 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepositorySettings.java @@ -0,0 +1,207 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.snapshot; + +import co.elastic.clients.json.JsonpDeserializable; +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.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: snapshot._types.SourceOnlyRepositorySettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SourceOnlyRepositorySettings extends RepositorySettingsBase { + @Nullable + private final String delegateType; + + @Nullable + private final Integer maxNumberOfSnapshots; + + @Nullable + private final Boolean readOnly; + + // --------------------------------------------------------------------------------------------- + + private SourceOnlyRepositorySettings(Builder builder) { + super(builder); + + this.delegateType = builder.delegateType; + this.maxNumberOfSnapshots = builder.maxNumberOfSnapshots; + this.readOnly = builder.readOnly; + + } + + public static SourceOnlyRepositorySettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code delegate_type} + */ + @Nullable + public final String delegateType() { + return this.delegateType; + } + + /** + * API name: {@code max_number_of_snapshots} + */ + @Nullable + public final Integer maxNumberOfSnapshots() { + return this.maxNumberOfSnapshots; + } + + /** + * API name: {@code read_only} + */ + @Nullable + public final Boolean readOnly() { + return this.readOnly; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.delegateType != null) { + generator.writeKey("delegate_type"); + generator.write(this.delegateType); + + } + if (this.maxNumberOfSnapshots != null) { + generator.writeKey("max_number_of_snapshots"); + generator.write(this.maxNumberOfSnapshots); + + } + if (this.readOnly != null) { + generator.writeKey("read_only"); + generator.write(this.readOnly); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SourceOnlyRepositorySettings}. + */ + + public static class Builder extends RepositorySettingsBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String delegateType; + + @Nullable + private Integer maxNumberOfSnapshots; + + @Nullable + private Boolean readOnly; + + /** + * API name: {@code delegate_type} + */ + public final Builder delegateType(@Nullable String value) { + this.delegateType = value; + return this; + } + + /** + * API name: {@code max_number_of_snapshots} + */ + public final Builder maxNumberOfSnapshots(@Nullable Integer value) { + this.maxNumberOfSnapshots = value; + return this; + } + + /** + * API name: {@code read_only} + */ + public final Builder readOnly(@Nullable Boolean value) { + this.readOnly = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SourceOnlyRepositorySettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SourceOnlyRepositorySettings build() { + _checkSingleUse(); + + return new SourceOnlyRepositorySettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SourceOnlyRepositorySettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SourceOnlyRepositorySettings::setupSourceOnlyRepositorySettingsDeserializer); + + protected static void setupSourceOnlyRepositorySettingsDeserializer( + ObjectDeserializer op) { + RepositorySettingsBase.setupRepositorySettingsBaseDeserializer(op); + op.add(Builder::delegateType, JsonpDeserializer.stringDeserializer(), "delegate_type"); + op.add(Builder::maxNumberOfSnapshots, JsonpDeserializer.integerDeserializer(), "max_number_of_snapshots"); + op.add(Builder::readOnly, JsonpDeserializer.booleanDeserializer(), "read_only", "readonly"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java index a36d05e99..023a616f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java @@ -73,7 +73,7 @@ public ElasticsearchTextStructureAsyncClient withTransportOptions(@Nullable Tran * Tests a Grok pattern on some text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/test-grok-pattern.html">Documentation * on elastic.co */ @@ -91,7 +91,7 @@ public CompletableFuture testGrokPattern(TestGrokPatter * a function that initializes a builder to create the * {@link TestGrokPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/test-grok-pattern.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java index c74243504..6fabfaaaa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java @@ -74,7 +74,7 @@ public ElasticsearchTextStructureClient withTransportOptions(@Nullable Transport * Tests a Grok pattern on some text. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/test-grok-pattern.html">Documentation * on elastic.co */ @@ -93,7 +93,7 @@ public TestGrokPatternResponse testGrokPattern(TestGrokPatternRequest request) * a function that initializes a builder to create the * {@link TestGrokPatternRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/test-grok-pattern.html">Documentation * on elastic.co */ From 1c7fce1cff1a7fca9afd0dad5964b1eaddb6d0d6 Mon Sep 17 00:00:00 2001 From: Laura Date: Thu, 7 Mar 2024 11:13:42 +0100 Subject: [PATCH 14/25] removed unused classes --- .../security/TransientMetadataConfig.java | 156 ---------- .../snapshot/RepositorySettings.java | 274 ------------------ 2 files changed, 430 deletions(-) delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java delete mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettings.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java deleted file mode 100644 index 8387f6083..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * 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. - */ - -package co.elastic.clients.elasticsearch.security; - -import co.elastic.clients.json.JsonpDeserializable; -import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; -import co.elastic.clients.json.ObjectBuilderDeserializer; -import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; -import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; -import jakarta.json.stream.JsonGenerator; -import java.lang.Boolean; -import java.util.Objects; -import java.util.function.Function; - -//---------------------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------------------- -// -// This code is generated from the Elasticsearch API specification -// at https://github.com/elastic/elasticsearch-specification -// -// Manual updates to this file will be lost when the code is -// re-generated. -// -// If you find a property that is missing or wrongly typed, please -// open an issue or a PR on the API specification repository. -// -//---------------------------------------------------------------- - -// typedef: security._types.TransientMetadataConfig - -/** - * - * @see API - * specification - */ -@JsonpDeserializable -public class TransientMetadataConfig implements JsonpSerializable { - private final boolean enabled; - - // --------------------------------------------------------------------------------------------- - - private TransientMetadataConfig(Builder builder) { - - this.enabled = ApiTypeHelper.requireNonNull(builder.enabled, this, "enabled"); - - } - - public static TransientMetadataConfig of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * Required - API name: {@code enabled} - */ - public final boolean enabled() { - return this.enabled; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("enabled"); - generator.write(this.enabled); - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link TransientMetadataConfig}. - */ - - public static class Builder extends WithJsonObjectBuilderBase - implements - ObjectBuilder { - private Boolean enabled; - - /** - * Required - API name: {@code enabled} - */ - public final Builder enabled(boolean value) { - this.enabled = value; - return this; - } - - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link TransientMetadataConfig}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public TransientMetadataConfig build() { - _checkSingleUse(); - - return new TransientMetadataConfig(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link TransientMetadataConfig} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, TransientMetadataConfig::setupTransientMetadataConfigDeserializer); - - protected static void setupTransientMetadataConfigDeserializer( - ObjectDeserializer op) { - - op.add(Builder::enabled, JsonpDeserializer.booleanDeserializer(), "enabled"); - - } - -} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettings.java deleted file mode 100644 index 7bf11843a..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettings.java +++ /dev/null @@ -1,274 +0,0 @@ -/* - * 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. - */ - -package co.elastic.clients.elasticsearch.snapshot; - -import co.elastic.clients.json.JsonpDeserializable; -import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; -import co.elastic.clients.json.ObjectBuilderDeserializer; -import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; -import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; -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; - -//---------------------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------------------- -// -// This code is generated from the Elasticsearch API specification -// at https://github.com/elastic/elasticsearch-specification -// -// Manual updates to this file will be lost when the code is -// re-generated. -// -// If you find a property that is missing or wrongly typed, please -// open an issue or a PR on the API specification repository. -// -//---------------------------------------------------------------- - -// typedef: snapshot._types.RepositorySettings - -/** - * - * @see API - * specification - */ -@JsonpDeserializable -public class RepositorySettings implements JsonpSerializable { - @Nullable - private final String chunkSize; - - @Nullable - private final Boolean compress; - - @Nullable - private final String concurrentStreams; - - private final String location; - - @Nullable - private final Boolean readOnly; - - // --------------------------------------------------------------------------------------------- - - private RepositorySettings(Builder builder) { - - this.chunkSize = builder.chunkSize; - this.compress = builder.compress; - this.concurrentStreams = builder.concurrentStreams; - this.location = ApiTypeHelper.requireNonNull(builder.location, this, "location"); - this.readOnly = builder.readOnly; - - } - - public static RepositorySettings of(Function> fn) { - return fn.apply(new Builder()).build(); - } - - /** - * API name: {@code chunk_size} - */ - @Nullable - public final String chunkSize() { - return this.chunkSize; - } - - /** - * API name: {@code compress} - */ - @Nullable - public final Boolean compress() { - return this.compress; - } - - /** - * API name: {@code concurrent_streams} - */ - @Nullable - public final String concurrentStreams() { - return this.concurrentStreams; - } - - /** - * Required - API name: {@code location} - */ - public final String location() { - return this.location; - } - - /** - * API name: {@code read_only} - */ - @Nullable - public final Boolean readOnly() { - return this.readOnly; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (this.chunkSize != null) { - generator.writeKey("chunk_size"); - generator.write(this.chunkSize); - - } - if (this.compress != null) { - generator.writeKey("compress"); - generator.write(this.compress); - - } - if (this.concurrentStreams != null) { - generator.writeKey("concurrent_streams"); - generator.write(this.concurrentStreams); - - } - generator.writeKey("location"); - generator.write(this.location); - - if (this.readOnly != null) { - generator.writeKey("read_only"); - generator.write(this.readOnly); - - } - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link RepositorySettings}. - */ - - public static class Builder extends WithJsonObjectBuilderBase - implements - ObjectBuilder { - @Nullable - private String chunkSize; - - @Nullable - private Boolean compress; - - @Nullable - private String concurrentStreams; - - private String location; - - @Nullable - private Boolean readOnly; - - /** - * API name: {@code chunk_size} - */ - public final Builder chunkSize(@Nullable String value) { - this.chunkSize = value; - return this; - } - - /** - * API name: {@code compress} - */ - public final Builder compress(@Nullable Boolean value) { - this.compress = value; - return this; - } - - /** - * API name: {@code concurrent_streams} - */ - public final Builder concurrentStreams(@Nullable String value) { - this.concurrentStreams = value; - return this; - } - - /** - * Required - API name: {@code location} - */ - public final Builder location(String value) { - this.location = value; - return this; - } - - /** - * API name: {@code read_only} - */ - public final Builder readOnly(@Nullable Boolean value) { - this.readOnly = value; - return this; - } - - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link RepositorySettings}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public RepositorySettings build() { - _checkSingleUse(); - - return new RepositorySettings(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link RepositorySettings} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, RepositorySettings::setupRepositorySettingsDeserializer); - - protected static void setupRepositorySettingsDeserializer(ObjectDeserializer op) { - - op.add(Builder::chunkSize, JsonpDeserializer.stringDeserializer(), "chunk_size"); - op.add(Builder::compress, JsonpDeserializer.booleanDeserializer(), "compress"); - op.add(Builder::concurrentStreams, JsonpDeserializer.stringDeserializer(), "concurrent_streams"); - op.add(Builder::location, JsonpDeserializer.stringDeserializer(), "location"); - op.add(Builder::readOnly, JsonpDeserializer.booleanDeserializer(), "read_only", "readonly"); - - } - -} From d2b3b065ccee9634cdf5450bbc0e73190a1a678f Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Tue, 12 Mar 2024 19:22:21 +0100 Subject: [PATCH 15/25] [codegen] Update serveless code --- .../ElasticsearchAsyncClient.java | 161 +++- .../elasticsearch/ElasticsearchClient.java | 171 +++- .../_types/AcknowledgedResponseBase.java | 19 +- .../_types/BulkIndexByScrollFailure.java | 19 +- .../clients/elasticsearch/_types/Bytes.java | 19 +- .../elasticsearch/_types/ClusterDetails.java | 29 +- .../_types/ClusterInfoTarget.java | 19 +- .../_types/ClusterSearchStatus.java | 72 ++ .../_types/ClusterStatistics.java | 91 +- .../elasticsearch/_types/Conflicts.java | 19 +- .../elasticsearch/_types/CoordsGeoBounds.java | 19 +- .../_types/DFIIndependenceMeasure.java | 19 +- .../elasticsearch/_types/DFRAfterEffect.java | 19 +- .../elasticsearch/_types/DFRBasicModel.java | 19 +- .../elasticsearch/_types/DistanceUnit.java | 19 +- .../_types/ElasticsearchVersionInfo.java | 19 +- .../elasticsearch/_types/EmptyObject.java | 19 +- .../elasticsearch/_types/ErrorCause.java | 19 +- .../elasticsearch/_types/ErrorResponse.java | 19 +- .../elasticsearch/_types/ExpandWildcard.java | 19 +- .../elasticsearch/_types/FieldSort.java | 19 +- .../_types/FieldSortNumericType.java | 19 +- .../elasticsearch/_types/GeoBounds.java | 19 +- .../_types/GeoBoundsBuilders.java | 19 +- .../elasticsearch/_types/GeoDistanceSort.java | 19 +- .../elasticsearch/_types/GeoDistanceType.java | 19 +- .../elasticsearch/_types/GeoHashLocation.java | 19 +- .../_types/GeoHashPrecision.java | 19 +- .../_types/GeoHashPrecisionBuilders.java | 19 +- .../clients/elasticsearch/_types/GeoLine.java | 19 +- .../elasticsearch/_types/GeoLocation.java | 19 +- .../_types/GeoLocationBuilders.java | 19 +- .../_types/GeoShapeRelation.java | 19 +- .../elasticsearch/_types/HealthStatus.java | 19 +- .../elasticsearch/_types/IBDistribution.java | 19 +- .../elasticsearch/_types/IBLambda.java | 19 +- .../elasticsearch/_types/IndicesOptions.java | 19 +- .../_types/IndicesResponseBase.java | 19 +- .../elasticsearch/_types/InlineGet.java | 37 +- .../elasticsearch/_types/InlineScript.java | 19 +- .../elasticsearch/_types/KnnQuery.java | 106 ++- .../_types/LatLonGeoLocation.java | 19 +- .../elasticsearch/_types/NestedSortValue.java | 19 +- .../elasticsearch/_types/Normalization.java | 19 +- .../clients/elasticsearch/_types/OpType.java | 19 +- .../_types/QueryVectorBuilder.java | 19 +- .../_types/QueryVectorBuilderBuilders.java | 19 +- .../_types/QueryVectorBuilderVariant.java | 19 +- .../clients/elasticsearch/_types/Rank.java | 19 +- .../elasticsearch/_types/RankBase.java | 19 +- .../elasticsearch/_types/RankBuilders.java | 19 +- .../elasticsearch/_types/RankVariant.java | 19 +- .../clients/elasticsearch/_types/Refresh.java | 19 +- .../elasticsearch/_types/RequestBase.java | 19 +- .../clients/elasticsearch/_types/Result.java | 19 +- .../clients/elasticsearch/_types/Retries.java | 19 +- .../clients/elasticsearch/_types/RrfRank.java | 19 +- .../elasticsearch/_types/ScoreSort.java | 19 +- .../clients/elasticsearch/_types/Script.java | 19 +- .../elasticsearch/_types/ScriptBase.java | 19 +- .../elasticsearch/_types/ScriptBuilders.java | 19 +- .../elasticsearch/_types/ScriptField.java | 19 +- .../elasticsearch/_types/ScriptLanguage.java | 19 +- .../elasticsearch/_types/ScriptSort.java | 19 +- .../elasticsearch/_types/ScriptSortType.java | 19 +- .../elasticsearch/_types/SearchType.java | 19 +- .../elasticsearch/_types/ShardFailure.java | 19 +- .../elasticsearch/_types/ShardStatistics.java | 19 +- .../_types/ShardsOperationResponseBase.java | 132 +++ .../elasticsearch/_types/SlicedScroll.java | 19 +- .../clients/elasticsearch/_types/Slices.java | 19 +- .../elasticsearch/_types/SlicesBuilders.java | 19 +- .../_types/SlicesCalculation.java | 19 +- .../elasticsearch/_types/SortMode.java | 19 +- .../elasticsearch/_types/SortOptions.java | 19 +- .../_types/SortOptionsBuilders.java | 19 +- .../_types/SortOptionsVariant.java | 19 +- .../elasticsearch/_types/SortOrder.java | 19 +- .../elasticsearch/_types/StoredScript.java | 19 +- .../elasticsearch/_types/StoredScriptId.java | 19 +- .../elasticsearch/_types/SuggestMode.java | 19 +- .../elasticsearch/_types/TextEmbedding.java | 19 +- .../clients/elasticsearch/_types/Time.java | 19 +- .../elasticsearch/_types/TimeBuilders.java | 19 +- .../elasticsearch/_types/TimeUnit.java | 19 +- .../_types/TopLeftBottomRightGeoBounds.java | 19 +- .../_types/TopRightBottomLeftGeoBounds.java | 19 +- .../elasticsearch/_types/VersionType.java | 19 +- .../_types/WaitForActiveShardOptions.java | 19 +- .../_types/WaitForActiveShards.java | 19 +- .../_types/WaitForActiveShardsBuilders.java | 19 +- .../elasticsearch/_types/WktGeoBounds.java | 19 +- .../_types/WriteResponseBase.java | 19 +- .../AdjacencyMatrixAggregate.java | 19 +- .../AdjacencyMatrixAggregation.java | 19 +- .../aggregations/AdjacencyMatrixBucket.java | 19 +- .../_types/aggregations/Aggregate.java | 19 +- .../_types/aggregations/AggregateBase.java | 19 +- .../aggregations/AggregateBuilders.java | 19 +- .../_types/aggregations/AggregateVariant.java | 19 +- .../_types/aggregations/Aggregation.java | 19 +- .../_types/aggregations/AggregationBase.java | 19 +- .../aggregations/AggregationBuilders.java | 19 +- .../_types/aggregations/AggregationRange.java | 19 +- .../aggregations/AggregationVariant.java | 19 +- .../aggregations/ArrayPercentilesItem.java | 19 +- .../AutoDateHistogramAggregate.java | 19 +- .../AutoDateHistogramAggregation.java | 19 +- .../aggregations/AverageAggregation.java | 19 +- .../AverageBucketAggregation.java | 19 +- .../_types/aggregations/AvgAggregate.java | 19 +- .../_types/aggregations/BoxPlotAggregate.java | 19 +- .../aggregations/BoxplotAggregation.java | 19 +- .../aggregations/BucketAggregationBase.java | 19 +- .../BucketCorrelationAggregation.java | 19 +- .../BucketCorrelationFunction.java | 19 +- ...etCorrelationFunctionCountCorrelation.java | 19 +- ...tionFunctionCountCorrelationIndicator.java | 19 +- .../aggregations/BucketKsAggregation.java | 19 +- .../BucketMetricValueAggregate.java | 19 +- .../aggregations/BucketPathAggregation.java | 19 +- .../aggregations/BucketScriptAggregation.java | 19 +- .../BucketSelectorAggregation.java | 19 +- .../aggregations/BucketSortAggregation.java | 19 +- .../_types/aggregations/Buckets.java | 19 +- .../_types/aggregations/BucketsBuilders.java | 19 +- .../_types/aggregations/BucketsPath.java | 19 +- .../aggregations/BucketsPathBuilders.java | 19 +- .../_types/aggregations/CalendarInterval.java | 19 +- .../aggregations/CardinalityAggregate.java | 19 +- .../aggregations/CardinalityAggregation.java | 19 +- .../CardinalityExecutionMode.java | 19 +- .../CategorizeTextAggregation.java | 19 +- .../aggregations/CategorizeTextAnalyzer.java | 19 +- .../CategorizeTextAnalyzerBuilders.java | 19 +- .../aggregations/ChiSquareHeuristic.java | 19 +- .../aggregations/ChildrenAggregate.java | 19 +- .../aggregations/ChildrenAggregation.java | 19 +- .../aggregations/CompositeAggregate.java | 19 +- .../aggregations/CompositeAggregation.java | 19 +- .../CompositeAggregationBase.java | 19 +- .../CompositeAggregationSource.java | 19 +- .../_types/aggregations/CompositeBucket.java | 19 +- .../CompositeDateHistogramAggregation.java | 19 +- .../CompositeGeoTileGridAggregation.java | 19 +- .../CompositeHistogramAggregation.java | 19 +- .../CompositeTermsAggregation.java | 19 +- .../CumulativeCardinalityAggregate.java | 19 +- .../CumulativeCardinalityAggregation.java | 19 +- .../CumulativeSumAggregation.java | 19 +- .../CustomCategorizeTextAnalyzer.java | 19 +- .../aggregations/DateHistogramAggregate.java | 19 +- .../DateHistogramAggregation.java | 19 +- .../aggregations/DateHistogramBucket.java | 19 +- .../aggregations/DateRangeAggregate.java | 19 +- .../aggregations/DateRangeAggregation.java | 19 +- .../aggregations/DateRangeExpression.java | 19 +- .../aggregations/DerivativeAggregate.java | 19 +- .../aggregations/DerivativeAggregation.java | 19 +- .../DiversifiedSamplerAggregation.java | 19 +- .../aggregations/DoubleTermsAggregate.java | 19 +- .../aggregations/DoubleTermsBucket.java | 19 +- .../aggregations/EwmaModelSettings.java | 19 +- .../EwmaMovingAverageAggregation.java | 19 +- .../_types/aggregations/ExtendedBounds.java | 19 +- .../aggregations/ExtendedStatsAggregate.java | 19 +- .../ExtendedStatsAggregation.java | 19 +- .../ExtendedStatsBucketAggregate.java | 19 +- .../ExtendedStatsBucketAggregation.java | 19 +- .../_types/aggregations/FieldDateMath.java | 19 +- .../aggregations/FieldDateMathBuilders.java | 19 +- .../_types/aggregations/FilterAggregate.java | 19 +- .../_types/aggregations/FiltersAggregate.java | 19 +- .../aggregations/FiltersAggregation.java | 19 +- .../_types/aggregations/FiltersBucket.java | 19 +- .../FormatMetricAggregationBase.java | 19 +- .../FormattableMetricAggregation.java | 19 +- .../FrequentItemSetsAggregate.java | 19 +- .../FrequentItemSetsAggregation.java | 19 +- .../aggregations/FrequentItemSetsBucket.java | 19 +- .../aggregations/FrequentItemSetsField.java | 90 +- .../_types/aggregations/GapPolicy.java | 19 +- .../aggregations/GeoBoundsAggregate.java | 19 +- .../aggregations/GeoBoundsAggregation.java | 19 +- .../aggregations/GeoCentroidAggregate.java | 19 +- .../aggregations/GeoCentroidAggregation.java | 19 +- .../aggregations/GeoDistanceAggregate.java | 19 +- .../aggregations/GeoDistanceAggregation.java | 19 +- .../aggregations/GeoHashGridAggregate.java | 19 +- .../aggregations/GeoHashGridAggregation.java | 19 +- .../aggregations/GeoHashGridBucket.java | 19 +- .../aggregations/GeoHexGridAggregate.java | 19 +- .../_types/aggregations/GeoHexGridBucket.java | 19 +- .../_types/aggregations/GeoLineAggregate.java | 19 +- .../aggregations/GeoLineAggregation.java | 19 +- .../_types/aggregations/GeoLinePoint.java | 19 +- .../_types/aggregations/GeoLineSort.java | 19 +- .../aggregations/GeoTileGridAggregate.java | 19 +- .../aggregations/GeoTileGridAggregation.java | 19 +- .../aggregations/GeoTileGridBucket.java | 19 +- .../aggregations/GeohexGridAggregation.java | 19 +- .../_types/aggregations/GlobalAggregate.java | 19 +- .../aggregations/GlobalAggregation.java | 19 +- .../GoogleNormalizedDistanceHeuristic.java | 19 +- .../_types/aggregations/HdrMethod.java | 19 +- .../HdrPercentileRanksAggregate.java | 19 +- .../aggregations/HdrPercentilesAggregate.java | 19 +- .../aggregations/HistogramAggregate.java | 19 +- .../aggregations/HistogramAggregation.java | 19 +- .../_types/aggregations/HistogramBucket.java | 19 +- .../aggregations/HoltLinearModelSettings.java | 19 +- .../HoltMovingAverageAggregation.java | 19 +- .../HoltWintersModelSettings.java | 19 +- .../HoltWintersMovingAverageAggregation.java | 19 +- .../_types/aggregations/HoltWintersType.java | 19 +- .../aggregations/InferenceAggregate.java | 19 +- .../aggregations/InferenceAggregation.java | 19 +- .../InferenceClassImportance.java | 19 +- .../_types/aggregations/InferenceConfig.java | 19 +- .../aggregations/InferenceConfigBuilders.java | 19 +- .../aggregations/InferenceConfigVariant.java | 19 +- .../InferenceFeatureImportance.java | 19 +- .../aggregations/InferenceTopClassEntry.java | 19 +- .../aggregations/IpPrefixAggregate.java | 19 +- .../aggregations/IpPrefixAggregation.java | 19 +- .../_types/aggregations/IpPrefixBucket.java | 19 +- .../_types/aggregations/IpRangeAggregate.java | 19 +- .../aggregations/IpRangeAggregation.java | 19 +- .../aggregations/IpRangeAggregationRange.java | 19 +- .../_types/aggregations/IpRangeBucket.java | 19 +- .../LinearMovingAverageAggregation.java | 19 +- .../aggregations/LongRareTermsAggregate.java | 19 +- .../aggregations/LongRareTermsBucket.java | 19 +- .../aggregations/LongTermsAggregate.java | 19 +- .../_types/aggregations/LongTermsBucket.java | 19 +- .../aggregations/MatrixAggregation.java | 19 +- .../aggregations/MatrixStatsAggregate.java | 19 +- .../aggregations/MatrixStatsAggregation.java | 19 +- .../aggregations/MatrixStatsFields.java | 19 +- .../_types/aggregations/MaxAggregate.java | 19 +- .../_types/aggregations/MaxAggregation.java | 19 +- .../aggregations/MaxBucketAggregation.java | 19 +- .../MedianAbsoluteDeviationAggregate.java | 19 +- .../MedianAbsoluteDeviationAggregation.java | 19 +- .../aggregations/MetricAggregationBase.java | 19 +- .../_types/aggregations/MinAggregate.java | 19 +- .../_types/aggregations/MinAggregation.java | 19 +- .../aggregations/MinBucketAggregation.java | 19 +- .../_types/aggregations/MinimumInterval.java | 19 +- .../_types/aggregations/MissingAggregate.java | 19 +- .../aggregations/MissingAggregation.java | 19 +- .../_types/aggregations/MissingOrder.java | 19 +- .../MovingAverageAggregation.java | 19 +- .../MovingAverageAggregationBase.java | 19 +- .../MovingAverageAggregationBuilders.java | 19 +- .../MovingAverageAggregationVariant.java | 19 +- .../MovingFunctionAggregation.java | 19 +- .../MovingPercentilesAggregation.java | 19 +- .../MultiBucketAggregateBase.java | 19 +- .../_types/aggregations/MultiBucketBase.java | 19 +- .../_types/aggregations/MultiTermLookup.java | 19 +- .../aggregations/MultiTermsAggregate.java | 19 +- .../aggregations/MultiTermsAggregation.java | 19 +- .../_types/aggregations/MultiTermsBucket.java | 80 +- .../MutualInformationHeuristic.java | 19 +- .../_types/aggregations/NestedAggregate.java | 19 +- .../aggregations/NestedAggregation.java | 19 +- .../aggregations/NormalizeAggregation.java | 19 +- .../_types/aggregations/NormalizeMethod.java | 19 +- .../_types/aggregations/ParentAggregate.java | 19 +- .../aggregations/ParentAggregation.java | 19 +- .../PercentageScoreHeuristic.java | 19 +- .../PercentileRanksAggregation.java | 19 +- .../_types/aggregations/Percentiles.java | 19 +- .../PercentilesAggregateBase.java | 19 +- .../aggregations/PercentilesAggregation.java | 19 +- .../PercentilesBucketAggregate.java | 19 +- .../PercentilesBucketAggregation.java | 19 +- .../aggregations/PercentilesBuilders.java | 19 +- .../aggregations/PipelineAggregationBase.java | 19 +- .../_types/aggregations/RangeAggregate.java | 19 +- .../_types/aggregations/RangeAggregation.java | 19 +- .../_types/aggregations/RangeBucket.java | 19 +- .../aggregations/RareTermsAggregation.java | 19 +- .../_types/aggregations/RateAggregate.java | 19 +- .../_types/aggregations/RateAggregation.java | 19 +- .../_types/aggregations/RateMode.java | 19 +- .../aggregations/ReverseNestedAggregate.java | 19 +- .../ReverseNestedAggregation.java | 19 +- .../_types/aggregations/SamplerAggregate.java | 19 +- .../aggregations/SamplerAggregation.java | 19 +- .../SamplerAggregationExecutionHint.java | 19 +- .../aggregations/ScriptedHeuristic.java | 19 +- .../aggregations/ScriptedMetricAggregate.java | 19 +- .../ScriptedMetricAggregation.java | 19 +- .../SerialDifferencingAggregation.java | 19 +- .../SignificantLongTermsAggregate.java | 19 +- .../SignificantLongTermsBucket.java | 19 +- .../SignificantStringTermsAggregate.java | 19 +- .../SignificantStringTermsBucket.java | 19 +- .../SignificantTermsAggregateBase.java | 19 +- .../SignificantTermsAggregation.java | 19 +- .../SignificantTermsBucketBase.java | 19 +- .../SignificantTextAggregation.java | 54 +- .../SimpleMovingAverageAggregation.java | 19 +- .../aggregations/SimpleValueAggregate.java | 19 +- .../SingleBucketAggregateBase.java | 19 +- .../SingleMetricAggregateBase.java | 19 +- .../aggregations/StandardDeviationBounds.java | 19 +- .../StandardDeviationBoundsAsString.java | 19 +- .../_types/aggregations/StatsAggregate.java | 19 +- .../_types/aggregations/StatsAggregation.java | 19 +- .../aggregations/StatsBucketAggregate.java | 19 +- .../aggregations/StatsBucketAggregation.java | 19 +- .../StringRareTermsAggregate.java | 19 +- .../aggregations/StringRareTermsBucket.java | 19 +- .../aggregations/StringStatsAggregate.java | 19 +- .../aggregations/StringStatsAggregation.java | 19 +- .../aggregations/StringTermsAggregate.java | 19 +- .../aggregations/StringTermsBucket.java | 19 +- .../_types/aggregations/SumAggregate.java | 19 +- .../_types/aggregations/SumAggregation.java | 19 +- .../aggregations/SumBucketAggregation.java | 19 +- .../_types/aggregations/TDigest.java | 19 +- .../TDigestPercentileRanksAggregate.java | 19 +- .../TDigestPercentilesAggregate.java | 19 +- .../_types/aggregations/TTestAggregate.java | 19 +- .../_types/aggregations/TTestAggregation.java | 19 +- .../_types/aggregations/TTestType.java | 19 +- .../aggregations/TermsAggregateBase.java | 19 +- .../_types/aggregations/TermsAggregation.java | 19 +- .../TermsAggregationCollectMode.java | 19 +- .../TermsAggregationExecutionHint.java | 19 +- .../_types/aggregations/TermsBucketBase.java | 19 +- .../_types/aggregations/TermsExclude.java | 19 +- .../aggregations/TermsExcludeBuilders.java | 19 +- .../_types/aggregations/TermsInclude.java | 19 +- .../aggregations/TermsIncludeBuilders.java | 19 +- .../_types/aggregations/TermsPartition.java | 19 +- .../_types/aggregations/TestPopulation.java | 19 +- .../_types/aggregations/TopHitsAggregate.java | 19 +- .../aggregations/TopHitsAggregation.java | 19 +- .../_types/aggregations/TopMetrics.java | 80 +- .../aggregations/TopMetricsAggregate.java | 19 +- .../aggregations/TopMetricsAggregation.java | 19 +- .../_types/aggregations/TopMetricsValue.java | 19 +- .../UnmappedRareTermsAggregate.java | 19 +- .../UnmappedSamplerAggregate.java | 19 +- .../UnmappedSignificantTermsAggregate.java | 19 +- .../aggregations/UnmappedTermsAggregate.java | 19 +- .../aggregations/ValueCountAggregate.java | 19 +- .../aggregations/ValueCountAggregation.java | 19 +- .../_types/aggregations/ValueType.java | 19 +- .../VariableWidthHistogramAggregate.java | 19 +- .../VariableWidthHistogramAggregation.java | 19 +- .../VariableWidthHistogramBucket.java | 19 +- .../WeightedAverageAggregation.java | 19 +- .../aggregations/WeightedAverageValue.java | 19 +- .../aggregations/WeightedAvgAggregate.java | 19 +- .../_types/analysis/Analyzer.java | 19 +- .../_types/analysis/AnalyzerBuilders.java | 19 +- .../_types/analysis/AnalyzerVariant.java | 19 +- .../analysis/AsciiFoldingTokenFilter.java | 19 +- .../_types/analysis/CharFilter.java | 19 +- .../_types/analysis/CharFilterBase.java | 19 +- .../_types/analysis/CharFilterBuilders.java | 19 +- .../_types/analysis/CharFilterDefinition.java | 19 +- .../CharFilterDefinitionBuilders.java | 19 +- .../analysis/CharFilterDefinitionVariant.java | 19 +- .../_types/analysis/CharGroupTokenizer.java | 19 +- .../analysis/CommonGramsTokenFilter.java | 19 +- .../analysis/CompoundWordTokenFilterBase.java | 19 +- .../_types/analysis/ConditionTokenFilter.java | 19 +- .../_types/analysis/CustomAnalyzer.java | 19 +- .../_types/analysis/CustomNormalizer.java | 19 +- .../analysis/DelimitedPayloadEncoding.java | 19 +- .../analysis/DelimitedPayloadTokenFilter.java | 19 +- .../DictionaryDecompounderTokenFilter.java | 19 +- .../_types/analysis/DutchAnalyzer.java | 19 +- .../_types/analysis/EdgeNGramSide.java | 19 +- .../_types/analysis/EdgeNGramTokenFilter.java | 19 +- .../_types/analysis/EdgeNGramTokenizer.java | 19 +- .../_types/analysis/ElisionTokenFilter.java | 19 +- .../_types/analysis/FingerprintAnalyzer.java | 19 +- .../analysis/FingerprintTokenFilter.java | 19 +- .../_types/analysis/HtmlStripCharFilter.java | 19 +- .../_types/analysis/HunspellTokenFilter.java | 19 +- .../HyphenationDecompounderTokenFilter.java | 19 +- .../_types/analysis/IcuAnalyzer.java | 19 +- .../analysis/IcuCollationAlternate.java | 19 +- .../analysis/IcuCollationCaseFirst.java | 19 +- .../analysis/IcuCollationDecomposition.java | 19 +- .../_types/analysis/IcuCollationStrength.java | 19 +- .../analysis/IcuCollationTokenFilter.java | 19 +- .../analysis/IcuFoldingTokenFilter.java | 19 +- .../analysis/IcuNormalizationCharFilter.java | 19 +- .../_types/analysis/IcuNormalizationMode.java | 19 +- .../analysis/IcuNormalizationTokenFilter.java | 19 +- .../_types/analysis/IcuNormalizationType.java | 19 +- .../_types/analysis/IcuTokenizer.java | 29 +- .../analysis/IcuTransformDirection.java | 19 +- .../analysis/IcuTransformTokenFilter.java | 19 +- .../_types/analysis/KStemTokenFilter.java | 19 +- .../_types/analysis/KeepTypesMode.java | 19 +- .../_types/analysis/KeepTypesTokenFilter.java | 19 +- .../_types/analysis/KeepWordsTokenFilter.java | 19 +- .../_types/analysis/KeywordAnalyzer.java | 19 +- .../analysis/KeywordMarkerTokenFilter.java | 19 +- .../_types/analysis/KeywordTokenizer.java | 19 +- .../_types/analysis/KuromojiAnalyzer.java | 19 +- .../KuromojiIterationMarkCharFilter.java | 19 +- .../KuromojiPartOfSpeechTokenFilter.java | 19 +- .../KuromojiReadingFormTokenFilter.java | 19 +- .../analysis/KuromojiStemmerTokenFilter.java | 19 +- .../analysis/KuromojiTokenizationMode.java | 19 +- .../_types/analysis/KuromojiTokenizer.java | 19 +- .../_types/analysis/Language.java | 19 +- .../_types/analysis/LanguageAnalyzer.java | 19 +- .../_types/analysis/LengthTokenFilter.java | 19 +- .../_types/analysis/LetterTokenizer.java | 19 +- .../analysis/LimitTokenCountTokenFilter.java | 19 +- .../_types/analysis/LowercaseNormalizer.java | 19 +- .../_types/analysis/LowercaseTokenFilter.java | 19 +- .../_types/analysis/LowercaseTokenizer.java | 19 +- .../_types/analysis/MappingCharFilter.java | 19 +- .../analysis/MultiplexerTokenFilter.java | 19 +- .../_types/analysis/NGramTokenFilter.java | 19 +- .../_types/analysis/NGramTokenizer.java | 19 +- .../_types/analysis/NoriAnalyzer.java | 19 +- .../_types/analysis/NoriDecompoundMode.java | 19 +- .../analysis/NoriPartOfSpeechTokenFilter.java | 19 +- .../_types/analysis/NoriTokenizer.java | 19 +- .../_types/analysis/Normalizer.java | 19 +- .../_types/analysis/NormalizerBuilders.java | 19 +- .../_types/analysis/NormalizerVariant.java | 19 +- .../analysis/PathHierarchyTokenizer.java | 118 ++- .../_types/analysis/PatternAnalyzer.java | 19 +- .../analysis/PatternCaptureTokenFilter.java | 19 +- .../analysis/PatternReplaceCharFilter.java | 19 +- .../analysis/PatternReplaceTokenFilter.java | 19 +- .../_types/analysis/PatternTokenizer.java | 19 +- .../_types/analysis/PhoneticEncoder.java | 19 +- .../_types/analysis/PhoneticLanguage.java | 19 +- .../_types/analysis/PhoneticNameType.java | 19 +- .../_types/analysis/PhoneticRuleType.java | 19 +- .../_types/analysis/PhoneticTokenFilter.java | 19 +- .../analysis/PorterStemTokenFilter.java | 19 +- .../_types/analysis/PredicateTokenFilter.java | 19 +- .../analysis/RemoveDuplicatesTokenFilter.java | 19 +- .../_types/analysis/ReverseTokenFilter.java | 19 +- .../_types/analysis/ShingleTokenFilter.java | 19 +- .../_types/analysis/SimpleAnalyzer.java | 19 +- .../_types/analysis/SnowballAnalyzer.java | 19 +- .../_types/analysis/SnowballLanguage.java | 19 +- .../_types/analysis/SnowballTokenFilter.java | 19 +- .../_types/analysis/StandardAnalyzer.java | 19 +- .../_types/analysis/StandardTokenizer.java | 19 +- .../analysis/StemmerOverrideTokenFilter.java | 19 +- .../_types/analysis/StemmerTokenFilter.java | 19 +- .../_types/analysis/StopAnalyzer.java | 19 +- .../_types/analysis/StopTokenFilter.java | 19 +- .../_types/analysis/SynonymFormat.java | 19 +- .../analysis/SynonymGraphTokenFilter.java | 19 +- .../_types/analysis/SynonymTokenFilter.java | 19 +- .../_types/analysis/TokenChar.java | 19 +- .../_types/analysis/TokenFilter.java | 19 +- .../_types/analysis/TokenFilterBase.java | 19 +- .../_types/analysis/TokenFilterBuilders.java | 19 +- .../analysis/TokenFilterDefinition.java | 50 +- .../TokenFilterDefinitionBuilders.java | 37 +- .../TokenFilterDefinitionVariant.java | 19 +- .../_types/analysis/Tokenizer.java | 19 +- .../_types/analysis/TokenizerBase.java | 19 +- .../_types/analysis/TokenizerBuilders.java | 19 +- .../_types/analysis/TokenizerDefinition.java | 19 +- .../analysis/TokenizerDefinitionBuilders.java | 19 +- .../analysis/TokenizerDefinitionVariant.java | 19 +- .../_types/analysis/TrimTokenFilter.java | 19 +- .../_types/analysis/TruncateTokenFilter.java | 19 +- .../_types/analysis/UaxEmailUrlTokenizer.java | 19 +- .../_types/analysis/UniqueTokenFilter.java | 19 +- .../_types/analysis/UppercaseTokenFilter.java | 19 +- .../_types/analysis/WhitespaceAnalyzer.java | 19 +- .../_types/analysis/WhitespaceTokenizer.java | 19 +- .../WordDelimiterGraphTokenFilter.java | 19 +- .../analysis/WordDelimiterTokenFilter.java | 19 +- .../AggregateMetricDoubleProperty.java | 19 +- .../_types/mapping/AllField.java | 19 +- .../_types/mapping/BinaryProperty.java | 19 +- .../_types/mapping/BooleanProperty.java | 19 +- .../_types/mapping/ByteNumberProperty.java | 19 +- .../_types/mapping/CompletionProperty.java | 19 +- .../mapping/ConstantKeywordProperty.java | 19 +- .../_types/mapping/CorePropertyBase.java | 19 +- .../_types/mapping/DataStreamTimestamp.java | 19 +- .../_types/mapping/DateNanosProperty.java | 19 +- .../_types/mapping/DateProperty.java | 19 +- .../_types/mapping/DateRangeProperty.java | 19 +- .../mapping/DenseVectorIndexOptions.java | 19 +- .../_types/mapping/DenseVectorProperty.java | 41 +- .../_types/mapping/DocValuesPropertyBase.java | 19 +- .../_types/mapping/DoubleNumberProperty.java | 19 +- .../_types/mapping/DoubleRangeProperty.java | 19 +- .../_types/mapping/DynamicMapping.java | 19 +- .../_types/mapping/DynamicProperty.java | 19 +- .../_types/mapping/DynamicTemplate.java | 19 +- .../_types/mapping/FieldAliasProperty.java | 19 +- .../_types/mapping/FieldNamesField.java | 19 +- .../_types/mapping/FieldType.java | 21 +- .../_types/mapping/FlattenedProperty.java | 19 +- .../_types/mapping/FloatNumberProperty.java | 19 +- .../_types/mapping/FloatRangeProperty.java | 19 +- .../_types/mapping/GeoOrientation.java | 19 +- .../_types/mapping/GeoPointProperty.java | 113 ++- .../_types/mapping/GeoShapeProperty.java | 19 +- .../_types/mapping/GeoStrategy.java | 19 +- .../mapping/HalfFloatNumberProperty.java | 19 +- .../_types/mapping/HistogramProperty.java | 19 +- .../_types/mapping/IndexField.java | 19 +- .../_types/mapping/IndexOptions.java | 19 +- .../_types/mapping/IntegerNumberProperty.java | 19 +- .../_types/mapping/IntegerRangeProperty.java | 19 +- .../_types/mapping/IpProperty.java | 19 +- .../_types/mapping/IpRangeProperty.java | 19 +- .../_types/mapping/JoinProperty.java | 19 +- .../_types/mapping/KeywordProperty.java | 19 +- .../_types/mapping/LongNumberProperty.java | 19 +- .../_types/mapping/LongRangeProperty.java | 19 +- .../_types/mapping/MatchOnlyTextProperty.java | 19 +- .../_types/mapping/MatchType.java | 19 +- .../_types/mapping/Murmur3HashProperty.java | 19 +- .../_types/mapping/NestedProperty.java | 19 +- .../_types/mapping/NumberPropertyBase.java | 19 +- .../_types/mapping/ObjectProperty.java | 19 +- .../_types/mapping/OnScriptError.java | 19 +- .../_types/mapping/PercolatorProperty.java | 19 +- .../_types/mapping/PointProperty.java | 19 +- .../_types/mapping/Property.java | 50 +- .../_types/mapping/PropertyBase.java | 19 +- .../_types/mapping/PropertyBuilders.java | 38 +- .../_types/mapping/PropertyVariant.java | 19 +- .../_types/mapping/RangePropertyBase.java | 19 +- .../_types/mapping/RankFeatureProperty.java | 19 +- .../_types/mapping/RankFeaturesProperty.java | 51 +- .../_types/mapping/RoutingField.java | 19 +- .../_types/mapping/RuntimeField.java | 19 +- .../mapping/RuntimeFieldFetchFields.java | 19 +- .../_types/mapping/RuntimeFieldType.java | 19 +- .../mapping/ScaledFloatNumberProperty.java | 19 +- .../mapping/SearchAsYouTypeProperty.java | 19 +- .../_types/mapping/ShapeProperty.java | 19 +- .../_types/mapping/ShortNumberProperty.java | 19 +- .../_types/mapping/SizeField.java | 19 +- .../_types/mapping/SourceField.java | 19 +- .../_types/mapping/SourceFieldMode.java | 19 +- .../_types/mapping/SparseVectorProperty.java | 124 +++ .../_types/mapping/SuggestContext.java | 19 +- .../_types/mapping/TermVectorOption.java | 19 +- .../_types/mapping/TextIndexPrefixes.java | 19 +- .../_types/mapping/TextProperty.java | 19 +- .../_types/mapping/TimeSeriesMetricType.java | 19 +- .../_types/mapping/TokenCountProperty.java | 19 +- .../_types/mapping/TypeMapping.java | 19 +- .../mapping/UnsignedLongNumberProperty.java | 19 +- .../_types/mapping/VersionProperty.java | 19 +- .../_types/mapping/WildcardProperty.java | 19 +- .../_types/query_dsl/BoolQuery.java | 19 +- .../_types/query_dsl/BoostingQuery.java | 19 +- .../_types/query_dsl/ChildScoreMode.java | 19 +- .../query_dsl/CombinedFieldsOperator.java | 19 +- .../_types/query_dsl/CombinedFieldsQuery.java | 19 +- .../query_dsl/CombinedFieldsZeroTerms.java | 19 +- .../_types/query_dsl/CommonTermsQuery.java | 19 +- .../_types/query_dsl/ConstantScoreQuery.java | 19 +- .../_types/query_dsl/DecayFunction.java | 19 +- .../_types/query_dsl/DecayFunctionBase.java | 19 +- .../_types/query_dsl/DecayPlacement.java | 19 +- .../_types/query_dsl/DisMaxQuery.java | 19 +- .../query_dsl/DistanceFeatureQuery.java | 19 +- .../_types/query_dsl/ExistsQuery.java | 19 +- .../_types/query_dsl/FieldAndFormat.java | 19 +- .../_types/query_dsl/FieldLookup.java | 19 +- .../query_dsl/FieldValueFactorModifier.java | 19 +- .../FieldValueFactorScoreFunction.java | 19 +- .../_types/query_dsl/FunctionBoostMode.java | 19 +- .../_types/query_dsl/FunctionScore.java | 19 +- .../query_dsl/FunctionScoreBuilders.java | 19 +- .../_types/query_dsl/FunctionScoreMode.java | 19 +- .../_types/query_dsl/FunctionScoreQuery.java | 19 +- .../query_dsl/FunctionScoreVariant.java | 19 +- .../_types/query_dsl/FuzzyQuery.java | 19 +- .../_types/query_dsl/GeoBoundingBoxQuery.java | 19 +- .../_types/query_dsl/GeoDistanceQuery.java | 57 +- .../_types/query_dsl/GeoExecution.java | 19 +- .../_types/query_dsl/GeoPolygonPoints.java | 19 +- .../_types/query_dsl/GeoPolygonQuery.java | 19 +- .../_types/query_dsl/GeoShapeFieldQuery.java | 19 +- .../_types/query_dsl/GeoShapeQuery.java | 19 +- .../_types/query_dsl/GeoValidationMethod.java | 19 +- .../_types/query_dsl/HasChildQuery.java | 19 +- .../_types/query_dsl/HasParentQuery.java | 19 +- .../_types/query_dsl/IdsQuery.java | 19 +- .../_types/query_dsl/Intervals.java | 19 +- .../_types/query_dsl/IntervalsAllOf.java | 19 +- .../_types/query_dsl/IntervalsAnyOf.java | 19 +- .../_types/query_dsl/IntervalsBuilders.java | 19 +- .../_types/query_dsl/IntervalsFilter.java | 19 +- .../query_dsl/IntervalsFilterBuilders.java | 19 +- .../query_dsl/IntervalsFilterVariant.java | 19 +- .../_types/query_dsl/IntervalsFuzzy.java | 19 +- .../_types/query_dsl/IntervalsMatch.java | 19 +- .../_types/query_dsl/IntervalsPrefix.java | 19 +- .../_types/query_dsl/IntervalsQuery.java | 19 +- .../query_dsl/IntervalsQueryBuilders.java | 19 +- .../query_dsl/IntervalsQueryVariant.java | 19 +- .../_types/query_dsl/IntervalsVariant.java | 19 +- .../_types/query_dsl/IntervalsWildcard.java | 19 +- .../elasticsearch/_types/query_dsl/Like.java | 19 +- .../_types/query_dsl/LikeBuilders.java | 19 +- .../_types/query_dsl/LikeDocument.java | 19 +- .../_types/query_dsl/MatchAllQuery.java | 19 +- .../query_dsl/MatchBoolPrefixQuery.java | 19 +- .../_types/query_dsl/MatchNoneQuery.java | 19 +- .../query_dsl/MatchPhrasePrefixQuery.java | 19 +- .../_types/query_dsl/MatchPhraseQuery.java | 19 +- .../_types/query_dsl/MatchQuery.java | 19 +- .../_types/query_dsl/MoreLikeThisQuery.java | 19 +- .../_types/query_dsl/MultiMatchQuery.java | 19 +- .../_types/query_dsl/MultiValueMode.java | 19 +- .../_types/query_dsl/NestedQuery.java | 19 +- .../_types/query_dsl/Operator.java | 19 +- .../_types/query_dsl/ParentIdQuery.java | 19 +- .../_types/query_dsl/PercolateQuery.java | 19 +- .../_types/query_dsl/PinnedDoc.java | 19 +- .../_types/query_dsl/PinnedQuery.java | 19 +- .../_types/query_dsl/PinnedQueryBuilders.java | 19 +- .../_types/query_dsl/PinnedQueryVariant.java | 19 +- .../_types/query_dsl/PrefixQuery.java | 19 +- .../elasticsearch/_types/query_dsl/Query.java | 82 +- .../_types/query_dsl/QueryBase.java | 19 +- .../_types/query_dsl/QueryBuilders.java | 54 +- .../_types/query_dsl/QueryStringQuery.java | 19 +- .../_types/query_dsl/QueryVariant.java | 19 +- .../_types/query_dsl/RandomScoreFunction.java | 19 +- .../_types/query_dsl/RangeQuery.java | 19 +- .../_types/query_dsl/RangeQueryBase.java | 19 +- .../_types/query_dsl/RangeRelation.java | 19 +- .../_types/query_dsl/RankFeatureFunction.java | 19 +- .../query_dsl/RankFeatureFunctionLinear.java | 19 +- .../RankFeatureFunctionLogarithm.java | 19 +- .../RankFeatureFunctionSaturation.java | 19 +- .../query_dsl/RankFeatureFunctionSigmoid.java | 19 +- .../_types/query_dsl/RankFeatureQuery.java | 19 +- .../_types/query_dsl/RegexpQuery.java | 19 +- .../_types/query_dsl/RuleQuery.java | 19 +- .../_types/query_dsl/ScriptQuery.java | 19 +- .../_types/query_dsl/ScriptScoreFunction.java | 19 +- .../_types/query_dsl/ScriptScoreQuery.java | 19 +- .../_types/query_dsl/ShapeFieldQuery.java | 19 +- .../_types/query_dsl/ShapeQuery.java | 19 +- .../query_dsl/SimpleQueryStringFlag.java | 19 +- .../query_dsl/SimpleQueryStringQuery.java | 19 +- .../_types/query_dsl/SpanContainingQuery.java | 19 +- .../query_dsl/SpanFieldMaskingQuery.java | 19 +- .../_types/query_dsl/SpanFirstQuery.java | 19 +- .../_types/query_dsl/SpanMultiTermQuery.java | 19 +- .../_types/query_dsl/SpanNearQuery.java | 19 +- .../_types/query_dsl/SpanNotQuery.java | 19 +- .../_types/query_dsl/SpanOrQuery.java | 19 +- .../_types/query_dsl/SpanQuery.java | 19 +- .../_types/query_dsl/SpanQueryBuilders.java | 19 +- .../_types/query_dsl/SpanQueryVariant.java | 19 +- .../_types/query_dsl/SpanTermQuery.java | 19 +- .../_types/query_dsl/SpanWithinQuery.java | 19 +- .../_types/query_dsl/TermQuery.java | 19 +- .../_types/query_dsl/TermsLookup.java | 19 +- .../_types/query_dsl/TermsQuery.java | 19 +- .../_types/query_dsl/TermsQueryField.java | 19 +- .../query_dsl/TermsQueryFieldBuilders.java | 19 +- .../_types/query_dsl/TermsSetQuery.java | 19 +- .../_types/query_dsl/TextExpansionQuery.java | 62 +- .../_types/query_dsl/TextQueryType.java | 19 +- .../_types/query_dsl/TokenPruningConfig.java | 240 +++++ .../_types/query_dsl/TypeQuery.java | 19 +- .../_types/query_dsl/WeightedTokensQuery.java | 247 +++++ .../_types/query_dsl/WildcardQuery.java | 19 +- .../_types/query_dsl/WrapperQuery.java | 19 +- .../_types/query_dsl/ZeroTermsQuery.java | 19 +- .../async_search/AsyncSearch.java | 19 +- .../AsyncSearchDocumentResponseBase.java | 19 +- .../async_search/AsyncSearchResponseBase.java | 19 +- .../AsyncSearchStatusRequest.java | 19 +- .../AsyncSearchStatusResponse.java | 19 +- .../DeleteAsyncSearchRequest.java | 19 +- .../DeleteAsyncSearchResponse.java | 19 +- .../ElasticsearchAsyncSearchAsyncClient.java | 19 +- .../ElasticsearchAsyncSearchClient.java | 19 +- .../async_search/GetAsyncSearchRequest.java | 19 +- .../async_search/GetAsyncSearchResponse.java | 19 +- .../async_search/SubmitRequest.java | 80 +- .../async_search/SubmitResponse.java | 19 +- .../status/StatusResponseBase.java | 19 +- .../elasticsearch/cat/AliasesRequest.java | 19 +- .../elasticsearch/cat/AliasesResponse.java | 19 +- .../cat/CatAnomalyDetectorColumn.java | 19 +- .../elasticsearch/cat/CatDatafeedColumn.java | 19 +- .../elasticsearch/cat/CatDfaColumn.java | 19 +- .../elasticsearch/cat/CatRequestBase.java | 19 +- .../cat/CatTrainedModelsColumn.java | 19 +- .../elasticsearch/cat/CatTransformColumn.java | 19 +- .../cat/ComponentTemplatesRequest.java | 19 +- .../cat/ComponentTemplatesResponse.java | 19 +- .../elasticsearch/cat/CountRequest.java | 19 +- .../elasticsearch/cat/CountResponse.java | 19 +- .../cat/ElasticsearchCatAsyncClient.java | 19 +- .../cat/ElasticsearchCatClient.java | 19 +- .../elasticsearch/cat/HelpRequest.java | 19 +- .../elasticsearch/cat/HelpResponse.java | 19 +- .../elasticsearch/cat/IndicesRequest.java | 19 +- .../elasticsearch/cat/IndicesResponse.java | 19 +- .../cat/MlDataFrameAnalyticsRequest.java | 19 +- .../cat/MlDataFrameAnalyticsResponse.java | 19 +- .../elasticsearch/cat/MlDatafeedsRequest.java | 19 +- .../cat/MlDatafeedsResponse.java | 19 +- .../elasticsearch/cat/MlJobsRequest.java | 19 +- .../elasticsearch/cat/MlJobsResponse.java | 19 +- .../cat/MlTrainedModelsRequest.java | 19 +- .../cat/MlTrainedModelsResponse.java | 19 +- .../elasticsearch/cat/TransformsRequest.java | 19 +- .../elasticsearch/cat/TransformsResponse.java | 19 +- .../cat/aliases/AliasesRecord.java | 19 +- .../ComponentTemplate.java | 19 +- .../elasticsearch/cat/count/CountRecord.java | 19 +- .../elasticsearch/cat/help/HelpRecord.java | 19 +- .../cat/indices/IndicesRecord.java | 19 +- .../DataFrameAnalyticsRecord.java | 19 +- .../cat/ml_datafeeds/DatafeedsRecord.java | 19 +- .../elasticsearch/cat/ml_jobs/JobsRecord.java | 19 +- .../TrainedModelsRecord.java | 19 +- .../cat/transforms/TransformsRecord.java | 19 +- .../cluster/ClusterInfoRequest.java | 19 +- .../cluster/ClusterInfoResponse.java | 19 +- .../cluster/ComponentTemplate.java | 19 +- .../cluster/ComponentTemplateNode.java | 19 +- .../cluster/ComponentTemplateSummary.java | 19 +- .../DeleteComponentTemplateRequest.java | 19 +- .../DeleteComponentTemplateResponse.java | 19 +- .../ElasticsearchClusterAsyncClient.java | 206 +---- .../cluster/ElasticsearchClusterClient.java | 212 +---- .../ExistsComponentTemplateRequest.java | 19 +- .../cluster/GetComponentTemplateRequest.java | 19 +- .../cluster/GetComponentTemplateResponse.java | 19 +- .../cluster/PutComponentTemplateRequest.java | 19 +- .../cluster/PutComponentTemplateResponse.java | 19 +- .../elasticsearch/core/BulkRequest.java | 128 +-- .../elasticsearch/core/BulkResponse.java | 19 +- .../core/ClearScrollRequest.java | 27 +- .../core/ClearScrollResponse.java | 19 +- .../core/ClosePointInTimeRequest.java | 29 +- .../core/ClosePointInTimeResponse.java | 19 +- .../elasticsearch/core/CountRequest.java | 161 ++-- .../elasticsearch/core/CountResponse.java | 19 +- .../elasticsearch/core/CreateRequest.java | 119 ++- .../elasticsearch/core/CreateResponse.java | 19 +- .../core/DeleteByQueryRequest.java | 279 +++--- .../core/DeleteByQueryResponse.java | 19 +- .../elasticsearch/core/DeleteRequest.java | 103 ++- .../elasticsearch/core/DeleteResponse.java | 19 +- .../core/DeleteScriptRequest.java | 43 +- .../core/DeleteScriptResponse.java | 19 +- .../elasticsearch/core/ExistsRequest.java | 99 +- .../core/ExistsSourceRequest.java | 87 +- .../elasticsearch/core/ExplainRequest.java | 717 ++++++++++++++ .../elasticsearch/core/ExplainResponse.java | 314 +++++++ .../elasticsearch/core/FieldCapsRequest.java | 49 +- .../elasticsearch/core/FieldCapsResponse.java | 19 +- .../elasticsearch/core/GetRequest.java | 35 +- .../elasticsearch/core/GetResponse.java | 19 +- .../elasticsearch/core/GetScriptRequest.java | 25 +- .../elasticsearch/core/GetScriptResponse.java | 19 +- .../elasticsearch/core/GetSourceRequest.java | 19 +- .../elasticsearch/core/GetSourceResponse.java | 19 +- .../elasticsearch/core/IndexRequest.java | 144 +-- .../elasticsearch/core/IndexResponse.java | 19 +- .../elasticsearch/core/InfoRequest.java | 19 +- .../elasticsearch/core/InfoResponse.java | 19 +- .../elasticsearch/core/MgetRequest.java | 19 +- .../elasticsearch/core/MgetResponse.java | 19 +- .../elasticsearch/core/MsearchRequest.java | 19 +- .../elasticsearch/core/MsearchResponse.java | 19 +- .../core/MsearchTemplateRequest.java | 51 +- .../core/MsearchTemplateResponse.java | 19 +- .../core/MtermvectorsRequest.java | 130 +-- .../core/MtermvectorsResponse.java | 19 +- .../core/OpenPointInTimeRequest.java | 69 +- .../core/OpenPointInTimeResponse.java | 19 +- .../elasticsearch/core/PingRequest.java | 19 +- .../elasticsearch/core/PutScriptRequest.java | 66 +- .../elasticsearch/core/PutScriptResponse.java | 19 +- .../elasticsearch/core/RankEvalRequest.java | 19 +- .../elasticsearch/core/RankEvalResponse.java | 19 +- .../elasticsearch/core/ReindexRequest.java | 678 ++++++++++++++ .../elasticsearch/core/ReindexResponse.java | 634 +++++++++++++ .../core/RenderSearchTemplateRequest.java | 46 +- .../core/RenderSearchTemplateResponse.java | 19 +- .../core/ScriptsPainlessExecuteRequest.java | 37 +- .../core/ScriptsPainlessExecuteResponse.java | 19 +- .../elasticsearch/core/ScrollRequest.java | 19 +- .../elasticsearch/core/ScrollResponse.java | 19 +- .../elasticsearch/core/SearchMvtRequest.java | 19 +- .../elasticsearch/core/SearchRequest.java | 92 +- .../elasticsearch/core/SearchResponse.java | 19 +- .../core/SearchTemplateRequest.java | 114 ++- .../core/SearchTemplateResponse.java | 19 +- .../elasticsearch/core/TermsEnumRequest.java | 19 +- .../elasticsearch/core/TermsEnumResponse.java | 19 +- .../core/TermvectorsRequest.java | 112 ++- .../core/TermvectorsResponse.java | 19 +- .../core/UpdateByQueryRequest.java | 305 +++--- .../core/UpdateByQueryResponse.java | 19 +- .../elasticsearch/core/UpdateRequest.java | 19 +- .../elasticsearch/core/UpdateResponse.java | 19 +- .../core/bulk/BulkOperation.java | 19 +- .../core/bulk/BulkOperationBase.java | 31 +- .../core/bulk/BulkOperationBuilders.java | 19 +- .../core/bulk/BulkOperationVariant.java | 19 +- .../core/bulk/BulkResponseItem.java | 82 +- .../core/bulk/CreateOperation.java | 19 +- .../core/bulk/DeleteOperation.java | 19 +- .../core/bulk/IndexOperation.java | 19 +- .../core/bulk/OperationType.java | 19 +- .../elasticsearch/core/bulk/UpdateAction.java | 19 +- .../core/bulk/UpdateOperation.java | 23 +- .../core/bulk/WriteOperation.java | 53 +- .../core/explain/Explanation.java | 19 +- .../core/explain/ExplanationDetail.java | 19 +- .../core/field_caps/FieldCapability.java | 19 +- .../elasticsearch/core/get/GetResult.java | 19 +- .../core/mget/MultiGetError.java | 19 +- .../core/mget/MultiGetOperation.java | 19 +- .../core/mget/MultiGetResponseItem.java | 19 +- .../mget/MultiGetResponseItemBuilders.java | 19 +- .../core/msearch/MultiSearchItem.java | 19 +- .../core/msearch/MultiSearchResponseItem.java | 19 +- .../MultiSearchResponseItemBuilders.java | 19 +- .../core/msearch/MultiSearchResult.java | 19 +- .../core/msearch/MultisearchBody.java | 80 +- .../core/msearch/MultisearchHeader.java | 19 +- .../core/msearch/RequestItem.java | 19 +- .../core/msearch_template/RequestItem.java | 19 +- .../core/msearch_template/TemplateConfig.java | 38 +- .../MultiTermVectorsOperation.java | 92 +- .../mtermvectors/MultiTermVectorsResult.java | 19 +- .../core/rank_eval/DocumentRating.java | 19 +- .../core/rank_eval/RankEvalHit.java | 19 +- .../core/rank_eval/RankEvalHitItem.java | 19 +- .../core/rank_eval/RankEvalMetric.java | 19 +- .../core/rank_eval/RankEvalMetricBase.java | 19 +- .../core/rank_eval/RankEvalMetricDetail.java | 19 +- ...ankEvalMetricDiscountedCumulativeGain.java | 19 +- .../RankEvalMetricExpectedReciprocalRank.java | 19 +- .../RankEvalMetricMeanReciprocalRank.java | 19 +- .../rank_eval/RankEvalMetricPrecision.java | 19 +- .../RankEvalMetricRatingTreshold.java | 19 +- .../core/rank_eval/RankEvalMetricRecall.java | 19 +- .../core/rank_eval/RankEvalQuery.java | 19 +- .../core/rank_eval/RankEvalRequestItem.java | 19 +- .../core/rank_eval/UnratedDocument.java | 19 +- .../core/reindex/Destination.java | 19 +- .../core/reindex/RemoteSource.java | 19 +- .../elasticsearch/core/reindex/Source.java | 19 +- .../PainlessContextSetup.java | 53 +- .../core/search/AggregationBreakdown.java | 19 +- .../core/search/AggregationProfile.java | 19 +- .../core/search/AggregationProfileDebug.java | 19 +- ...AggregationProfileDelegateDebugFilter.java | 19 +- .../core/search/BoundaryScanner.java | 19 +- .../elasticsearch/core/search/Collector.java | 19 +- .../core/search/CompletionContext.java | 19 +- .../core/search/CompletionSuggest.java | 19 +- .../core/search/CompletionSuggestOption.java | 19 +- .../core/search/CompletionSuggester.java | 19 +- .../elasticsearch/core/search/Context.java | 19 +- .../core/search/ContextBuilders.java | 19 +- .../core/search/DirectGenerator.java | 19 +- .../core/search/FetchProfile.java | 19 +- .../core/search/FetchProfileBreakdown.java | 19 +- .../core/search/FetchProfileDebug.java | 19 +- .../core/search/FieldCollapse.java | 19 +- .../core/search/FieldSuggester.java | 19 +- .../core/search/FieldSuggesterBuilders.java | 19 +- .../core/search/FieldSuggesterVariant.java | 19 +- .../elasticsearch/core/search/Highlight.java | 19 +- .../core/search/HighlightBase.java | 19 +- .../core/search/HighlightField.java | 19 +- .../core/search/HighlighterEncoder.java | 19 +- .../core/search/HighlighterFragmenter.java | 19 +- .../core/search/HighlighterOrder.java | 19 +- .../core/search/HighlighterTagsSchema.java | 19 +- .../core/search/HighlighterType.java | 19 +- .../elasticsearch/core/search/Hit.java | 80 +- .../core/search/HitsMetadata.java | 19 +- .../elasticsearch/core/search/InnerHits.java | 57 +- .../core/search/InnerHitsResult.java | 19 +- .../core/search/LaplaceSmoothingModel.java | 19 +- .../LinearInterpolationSmoothingModel.java | 19 +- .../core/search/NestedIdentity.java | 19 +- .../core/search/PhraseSuggest.java | 19 +- .../core/search/PhraseSuggestCollate.java | 19 +- .../search/PhraseSuggestCollateQuery.java | 19 +- .../core/search/PhraseSuggestHighlight.java | 19 +- .../core/search/PhraseSuggestOption.java | 19 +- .../core/search/PhraseSuggester.java | 19 +- .../core/search/PointInTimeReference.java | 19 +- .../elasticsearch/core/search/Profile.java | 19 +- .../core/search/QueryBreakdown.java | 19 +- .../core/search/QueryProfile.java | 19 +- .../core/search/RegexOptions.java | 19 +- .../elasticsearch/core/search/Rescore.java | 19 +- .../core/search/RescoreQuery.java | 19 +- .../core/search/ResponseBody.java | 19 +- .../elasticsearch/core/search/ScoreMode.java | 19 +- .../core/search/SearchProfile.java | 19 +- .../core/search/ShardProfile.java | 19 +- .../core/search/SmoothingModel.java | 19 +- .../core/search/SmoothingModelBuilders.java | 19 +- .../core/search/SmoothingModelVariant.java | 19 +- .../core/search/SourceConfig.java | 19 +- .../core/search/SourceConfigBuilders.java | 19 +- .../core/search/SourceConfigParam.java | 19 +- .../search/SourceConfigParamBuilders.java | 19 +- .../core/search/SourceFilter.java | 19 +- .../core/search/StringDistance.java | 19 +- .../search/StupidBackoffSmoothingModel.java | 19 +- .../core/search/SuggestBase.java | 19 +- .../core/search/SuggestFuzziness.java | 19 +- .../core/search/SuggestSort.java | 19 +- .../elasticsearch/core/search/Suggester.java | 19 +- .../core/search/SuggesterBase.java | 19 +- .../elasticsearch/core/search/Suggestion.java | 19 +- .../core/search/SuggestionBuilders.java | 19 +- .../core/search/SuggestionVariant.java | 19 +- .../core/search/TermSuggest.java | 19 +- .../core/search/TermSuggestOption.java | 19 +- .../core/search/TermSuggester.java | 19 +- .../elasticsearch/core/search/TotalHits.java | 19 +- .../core/search/TotalHitsRelation.java | 19 +- .../elasticsearch/core/search/TrackHits.java | 19 +- .../core/search/TrackHitsBuilders.java | 19 +- .../core/search_mvt/GridAggregationType.java | 19 +- .../core/search_mvt/GridType.java | 19 +- .../core/termvectors/FieldStatistics.java | 19 +- .../core/termvectors/Filter.java | 51 +- .../elasticsearch/core/termvectors/Term.java | 19 +- .../core/termvectors/TermVector.java | 19 +- .../elasticsearch/core/termvectors/Token.java | 19 +- .../core/update/UpdateWriteResponseBase.java | 19 +- .../elasticsearch/doc-files/api-spec.html | 620 +++++++------ .../enrich/DeletePolicyRequest.java | 19 +- .../enrich/DeletePolicyResponse.java | 19 +- .../ElasticsearchEnrichAsyncClient.java | 19 +- .../enrich/ElasticsearchEnrichClient.java | 19 +- .../elasticsearch/enrich/EnrichPolicy.java | 39 +- .../enrich/EnrichPolicyType.java | 19 +- .../enrich/EnrichStatsRequest.java | 19 +- .../enrich/EnrichStatsResponse.java | 19 +- .../elasticsearch/enrich/EnrichSummary.java | 19 +- .../enrich/ExecutePolicyRequest.java | 19 +- .../enrich/ExecutePolicyResponse.java | 39 +- .../enrich/GetPolicyRequest.java | 19 +- .../enrich/GetPolicyResponse.java | 19 +- .../enrich/PutPolicyRequest.java | 19 +- .../enrich/PutPolicyResponse.java | 19 +- .../execute_policy/EnrichPolicyPhase.java | 19 +- .../ExecuteEnrichPolicyStatus.java | 19 +- .../enrich/stats/CacheStats.java | 19 +- .../enrich/stats/CoordinatorStats.java | 19 +- .../enrich/stats/ExecutingPolicy.java | 19 +- .../eql/ElasticsearchEqlAsyncClient.java | 280 ++++++ .../eql/ElasticsearchEqlClient.java | 287 ++++++ .../elasticsearch/eql/EqlDeleteRequest.java | 189 ++++ .../elasticsearch/eql/EqlDeleteResponse.java | 107 +++ .../elasticsearch/eql/EqlGetRequest.java | 273 ++++++ .../elasticsearch/eql/EqlGetResponse.java | 121 +++ .../clients/elasticsearch/eql/EqlHits.java | 341 +++++++ .../elasticsearch/eql/EqlSearchRequest.java | 875 ++++++++++++++++++ .../elasticsearch/eql/EqlSearchResponse.java | 121 +++ .../eql/EqlSearchResponseBase.java | 326 +++++++ .../eql/GetEqlStatusRequest.java | 184 ++++ .../eql/GetEqlStatusResponse.java | 332 +++++++ .../clients/elasticsearch/eql/HitsEvent.java | 306 ++++++ .../elasticsearch/eql/HitsSequence.java | 282 ++++++ .../eql/search/ResultPosition.java | 72 ++ .../elasticsearch/graph/Connection.java | 19 +- .../graph/ElasticsearchGraphAsyncClient.java | 19 +- .../graph/ElasticsearchGraphClient.java | 19 +- .../elasticsearch/graph/ExploreControls.java | 19 +- .../elasticsearch/graph/ExploreRequest.java | 19 +- .../elasticsearch/graph/ExploreResponse.java | 19 +- .../clients/elasticsearch/graph/Hop.java | 19 +- .../elasticsearch/graph/SampleDiversity.java | 19 +- .../clients/elasticsearch/graph/Vertex.java | 19 +- .../elasticsearch/graph/VertexDefinition.java | 19 +- .../elasticsearch/graph/VertexInclude.java | 19 +- .../indices/AddBlockRequest.java | 406 ++++++++ .../indices/AddBlockResponse.java | 233 +++++ .../clients/elasticsearch/indices/Alias.java | 19 +- .../indices/AliasDefinition.java | 19 +- .../elasticsearch/indices/AnalyzeRequest.java | 19 +- .../indices/AnalyzeResponse.java | 19 +- .../elasticsearch/indices/CacheQueries.java | 19 +- .../indices/CreateDataStreamRequest.java | 19 +- .../indices/CreateDataStreamResponse.java | 19 +- .../indices/CreateIndexRequest.java | 19 +- .../indices/CreateIndexResponse.java | 19 +- .../elasticsearch/indices/DataStream.java | 79 +- .../indices/DataStreamIndex.java | 112 ++- .../indices/DataStreamLifecycle.java | 56 +- .../DataStreamLifecycleDownsampling.java | 199 ++++ ...DataStreamLifecycleRolloverConditions.java | 19 +- .../DataStreamLifecycleWithRollover.java | 65 +- .../indices/DataStreamTimestampField.java | 19 +- .../indices/DataStreamVisibility.java | 19 +- .../indices/DataStreamsStatsRequest.java | 19 +- .../indices/DataStreamsStatsResponse.java | 30 +- .../indices/DeleteAliasRequest.java | 19 +- .../indices/DeleteAliasResponse.java | 19 +- .../indices/DeleteDataLifecycleRequest.java | 19 +- .../indices/DeleteDataLifecycleResponse.java | 19 +- .../indices/DeleteDataStreamRequest.java | 19 +- .../indices/DeleteDataStreamResponse.java | 19 +- .../indices/DeleteIndexRequest.java | 19 +- .../indices/DeleteIndexResponse.java | 19 +- .../indices/DeleteIndexTemplateRequest.java | 19 +- .../indices/DeleteIndexTemplateResponse.java | 19 +- .../indices/DownsampleConfig.java | 166 ++++ .../indices/DownsamplingRound.java | 207 +++++ .../ElasticsearchIndicesAsyncClient.java | 275 +++--- .../indices/ElasticsearchIndicesClient.java | 279 +++--- .../indices/ExistsAliasRequest.java | 19 +- .../indices/ExistsIndexTemplateRequest.java | 19 +- .../elasticsearch/indices/ExistsRequest.java | 19 +- .../indices/ExplainDataLifecycleRequest.java | 19 +- .../indices/ExplainDataLifecycleResponse.java | 19 +- .../indices/FielddataFrequencyFilter.java | 19 +- .../indices/GetAliasRequest.java | 19 +- .../indices/GetAliasResponse.java | 19 +- .../indices/GetDataLifecycleRequest.java | 19 +- .../indices/GetDataLifecycleResponse.java | 19 +- .../indices/GetDataStreamRequest.java | 19 +- .../indices/GetDataStreamResponse.java | 19 +- .../indices/GetIndexRequest.java | 19 +- .../indices/GetIndexResponse.java | 19 +- .../indices/GetIndexTemplateRequest.java | 19 +- .../indices/GetIndexTemplateResponse.java | 19 +- .../indices/GetIndicesSettingsRequest.java | 19 +- .../indices/GetIndicesSettingsResponse.java | 19 +- .../indices/GetMappingRequest.java | 19 +- .../indices/GetMappingResponse.java | 19 +- .../indices/IndexCheckOnStartup.java | 19 +- .../elasticsearch/indices/IndexRouting.java | 19 +- .../indices/IndexRoutingAllocation.java | 19 +- .../indices/IndexRoutingAllocationDisk.java | 19 +- .../IndexRoutingAllocationInclude.java | 19 +- ...IndexRoutingAllocationInitialRecovery.java | 19 +- .../IndexRoutingAllocationOptions.java | 19 +- .../indices/IndexRoutingRebalance.java | 19 +- .../indices/IndexRoutingRebalanceOptions.java | 19 +- .../indices/IndexSegmentSort.java | 19 +- .../indices/IndexSettingBlocks.java | 19 +- .../elasticsearch/indices/IndexSettings.java | 48 +- .../indices/IndexSettingsAnalysis.java | 19 +- .../indices/IndexSettingsLifecycle.java | 19 +- .../indices/IndexSettingsLifecycleStep.java | 19 +- .../indices/IndexSettingsTimeSeries.java | 19 +- .../elasticsearch/indices/IndexState.java | 19 +- .../elasticsearch/indices/IndexTemplate.java | 19 +- .../IndexTemplateDataStreamConfiguration.java | 19 +- .../indices/IndexTemplateSummary.java | 19 +- .../indices/IndexVersioning.java | 19 +- .../indices/IndexingPressure.java | 19 +- .../indices/IndexingPressureMemory.java | 19 +- .../indices/IndexingSlowlogSettings.java | 19 +- .../indices/IndexingSlowlogTresholds.java | 19 +- .../elasticsearch/indices/ManagedBy.java | 68 ++ .../indices/MappingLimitSettings.java | 19 +- .../indices/MappingLimitSettingsDepth.java | 19 +- .../MappingLimitSettingsDimensionFields.java | 31 +- .../MappingLimitSettingsFieldNameLength.java | 19 +- .../MappingLimitSettingsNestedFields.java | 19 +- .../MappingLimitSettingsNestedObjects.java | 19 +- .../MappingLimitSettingsTotalFields.java | 19 +- .../clients/elasticsearch/indices/Merge.java | 19 +- .../elasticsearch/indices/MergeScheduler.java | 19 +- .../indices/MigrateToDataStreamRequest.java | 19 +- .../indices/MigrateToDataStreamResponse.java | 19 +- .../indices/ModifyDataStreamRequest.java | 19 +- .../indices/ModifyDataStreamResponse.java | 19 +- .../indices/NumericFielddata.java | 19 +- .../indices/NumericFielddataFormat.java | 19 +- .../indices/PutAliasRequest.java | 19 +- .../indices/PutAliasResponse.java | 19 +- .../indices/PutDataLifecycleRequest.java | 68 +- .../indices/PutDataLifecycleResponse.java | 19 +- .../indices/PutIndexTemplateRequest.java | 19 +- .../indices/PutIndexTemplateResponse.java | 19 +- .../indices/PutIndicesSettingsRequest.java | 19 +- .../indices/PutIndicesSettingsResponse.java | 19 +- .../indices/PutMappingRequest.java | 19 +- .../indices/PutMappingResponse.java | 19 +- .../indices/PutTemplateRequest.java | 19 +- .../indices/PutTemplateResponse.java | 19 +- .../elasticsearch/indices/Queries.java | 19 +- .../elasticsearch/indices/RefreshRequest.java | 341 +++++++ .../indices/RefreshResponse.java | 107 +++ .../indices/ResolveIndexRequest.java | 19 +- .../indices/ResolveIndexResponse.java | 19 +- .../elasticsearch/indices/RetentionLease.java | 19 +- .../indices/RolloverRequest.java | 19 +- .../indices/RolloverResponse.java | 19 +- .../elasticsearch/indices/SearchIdle.java | 19 +- .../indices/SegmentSortMissing.java | 19 +- .../indices/SegmentSortMode.java | 19 +- .../indices/SegmentSortOrder.java | 19 +- .../indices/SettingsAnalyze.java | 19 +- .../indices/SettingsHighlight.java | 19 +- .../indices/SettingsQueryString.java | 19 +- .../elasticsearch/indices/SettingsSearch.java | 19 +- .../indices/SettingsSimilarity.java | 456 +++++---- .../indices/SettingsSimilarityBm25.java | 29 +- .../indices/SettingsSimilarityBuilders.java | 180 ++++ .../indices/SettingsSimilarityDfi.java | 29 +- .../indices/SettingsSimilarityDfr.java | 29 +- .../indices/SettingsSimilarityIb.java | 29 +- .../indices/SettingsSimilarityLmd.java | 29 +- .../indices/SettingsSimilarityLmj.java | 29 +- .../SettingsSimilarityScriptedTfidf.java | 29 +- .../indices/SettingsSimilarityVariant.java | 48 + .../indices/SimulateIndexTemplateRequest.java | 19 +- .../SimulateIndexTemplateResponse.java | 19 +- .../indices/SimulateTemplateRequest.java | 19 +- .../indices/SimulateTemplateResponse.java | 19 +- .../indices/SlowlogSettings.java | 19 +- .../indices/SlowlogTresholdLevels.java | 19 +- .../indices/SlowlogTresholds.java | 19 +- .../elasticsearch/indices/SoftDeletes.java | 19 +- .../elasticsearch/indices/Storage.java | 19 +- .../elasticsearch/indices/StorageType.java | 19 +- .../elasticsearch/indices/Translog.java | 19 +- .../indices/TranslogDurability.java | 19 +- .../indices/TranslogRetention.java | 19 +- .../indices/UpdateAliasesRequest.java | 19 +- .../indices/UpdateAliasesResponse.java | 19 +- .../indices/ValidateQueryRequest.java | 19 +- .../indices/ValidateQueryResponse.java | 19 +- .../add_block/IndicesBlockOptions.java | 71 ++ .../indices/add_block/IndicesBlockStatus.java | 181 ++++ .../indices/analyze/AnalyzeDetail.java | 19 +- .../indices/analyze/AnalyzeToken.java | 19 +- .../indices/analyze/AnalyzerDetail.java | 19 +- .../indices/analyze/CharFilterDetail.java | 19 +- .../indices/analyze/ExplainAnalyzeToken.java | 19 +- .../indices/analyze/TokenDetail.java | 19 +- .../DataStreamsStatsItem.java | 29 +- .../DataStreamLifecycleExplain.java | 19 +- .../elasticsearch/indices/get/Feature.java | 19 +- .../indices/get_alias/IndexAliases.java | 19 +- .../DataStreamWithLifecycle.java | 19 +- .../get_index_template/IndexTemplateItem.java | 19 +- .../get_mapping/IndexMappingRecord.java | 19 +- .../indices/modify_data_stream/Action.java | 19 +- .../modify_data_stream/ActionBuilders.java | 19 +- .../modify_data_stream/ActionVariant.java | 19 +- .../IndexAndDataStreamAction.java | 19 +- .../IndexTemplateMapping.java | 19 +- .../ReloadDetails.java | 19 +- .../reload_search_analyzers/ReloadResult.java | 85 +- .../resolve_index/ResolveIndexAliasItem.java | 19 +- .../ResolveIndexDataStreamsItem.java | 19 +- .../resolve_index/ResolveIndexItem.java | 19 +- .../indices/rollover/RolloverConditions.java | 19 +- .../simulate_template/Overlapping.java | 19 +- .../indices/simulate_template/Template.java | 19 +- .../indices/update_aliases/Action.java | 19 +- .../update_aliases/ActionBuilders.java | 19 +- .../indices/update_aliases/ActionVariant.java | 19 +- .../indices/update_aliases/AddAction.java | 19 +- .../indices/update_aliases/RemoveAction.java | 19 +- .../update_aliases/RemoveIndexAction.java | 19 +- .../IndicesValidationExplanation.java | 19 +- .../inference/DeleteModelRequest.java | 227 +++++ .../inference/DeleteModelResponse.java | 107 +++ .../ElasticsearchInferenceAsyncClient.java | 202 ++++ .../ElasticsearchInferenceClient.java | 201 ++++ .../inference/GetModelRequest.java | 225 +++++ .../inference/GetModelResponse.java | 182 ++++ .../inference/InferenceRequest.java | 340 +++++++ .../inference/InferenceResponse.java | 155 ++++ .../inference/InferenceResult.java | 278 ++++++ .../inference/InferenceResultBuilders.java | 52 ++ .../inference/InferenceResultVariant.java | 48 + .../elasticsearch/inference/ModelConfig.java | 223 +++++ .../inference/ModelConfigContainer.java | 182 ++++ .../inference/PutModelRequest.java | 280 ++++++ .../inference/PutModelResponse.java | 106 +++ .../inference/SparseEmbeddingResult.java | 180 ++++ .../elasticsearch/inference/TaskType.java | 65 ++ .../inference/TextEmbeddingByteResult.java | 180 ++++ .../inference/TextEmbeddingResult.java | 179 ++++ .../elasticsearch/ingest/AppendProcessor.java | 19 +- .../ingest/AttachmentProcessor.java | 52 +- .../elasticsearch/ingest/BytesProcessor.java | 19 +- .../elasticsearch/ingest/CircleProcessor.java | 19 +- .../ingest/ConvertProcessor.java | 19 +- .../elasticsearch/ingest/ConvertType.java | 19 +- .../elasticsearch/ingest/CsvProcessor.java | 19 +- .../ingest/DateIndexNameProcessor.java | 19 +- .../elasticsearch/ingest/DateProcessor.java | 19 +- .../ingest/DeletePipelineRequest.java | 19 +- .../ingest/DeletePipelineResponse.java | 19 +- .../ingest/DissectProcessor.java | 19 +- .../ingest/DotExpanderProcessor.java | 19 +- .../elasticsearch/ingest/DropProcessor.java | 19 +- .../ElasticsearchIngestAsyncClient.java | 19 +- .../ingest/ElasticsearchIngestClient.java | 19 +- .../elasticsearch/ingest/EnrichProcessor.java | 19 +- .../elasticsearch/ingest/FailProcessor.java | 19 +- .../ingest/ForeachProcessor.java | 19 +- .../elasticsearch/ingest/GeoIpProcessor.java | 19 +- .../ingest/GetPipelineRequest.java | 19 +- .../ingest/GetPipelineResponse.java | 19 +- .../elasticsearch/ingest/GrokProcessor.java | 19 +- .../elasticsearch/ingest/GsubProcessor.java | 19 +- .../elasticsearch/ingest/InferenceConfig.java | 19 +- .../ingest/InferenceConfigBuilders.java | 19 +- .../ingest/InferenceConfigClassification.java | 19 +- .../ingest/InferenceConfigRegression.java | 19 +- .../ingest/InferenceConfigVariant.java | 19 +- .../ingest/InferenceProcessor.java | 19 +- .../elasticsearch/ingest/JoinProcessor.java | 19 +- .../elasticsearch/ingest/JsonProcessor.java | 19 +- .../ingest/JsonProcessorConflictStrategy.java | 19 +- .../ingest/KeyValueProcessor.java | 19 +- .../ingest/LowercaseProcessor.java | 19 +- .../elasticsearch/ingest/Pipeline.java | 75 +- .../ingest/PipelineProcessor.java | 19 +- .../elasticsearch/ingest/Processor.java | 61 +- .../elasticsearch/ingest/ProcessorBase.java | 19 +- .../ingest/ProcessorBuilders.java | 52 +- .../ingest/ProcessorGrokRequest.java | 19 +- .../ingest/ProcessorGrokResponse.java | 19 +- .../ingest/ProcessorVariant.java | 19 +- .../ingest/PutPipelineRequest.java | 19 +- .../ingest/PutPipelineResponse.java | 19 +- .../elasticsearch/ingest/RemoveProcessor.java | 19 +- .../elasticsearch/ingest/RenameProcessor.java | 19 +- .../ingest/RerouteProcessor.java | 326 +++++++ .../elasticsearch/ingest/ScriptProcessor.java | 281 ++++++ .../elasticsearch/ingest/SetProcessor.java | 19 +- .../ingest/SetSecurityUserProcessor.java | 19 +- .../elasticsearch/ingest/ShapeType.java | 19 +- .../elasticsearch/ingest/SimulateRequest.java | 19 +- .../ingest/SimulateResponse.java | 19 +- .../elasticsearch/ingest/SortProcessor.java | 19 +- .../elasticsearch/ingest/SplitProcessor.java | 19 +- .../elasticsearch/ingest/TrimProcessor.java | 19 +- .../ingest/UppercaseProcessor.java | 19 +- .../ingest/UrlDecodeProcessor.java | 19 +- .../ingest/UserAgentProcessor.java | 19 +- .../ingest/UserAgentProperty.java | 19 +- .../ingest/simulate/Document.java | 19 +- .../ingest/simulate/DocumentSimulation.java | 19 +- .../elasticsearch/ingest/simulate/Ingest.java | 19 +- .../ingest/simulate/PipelineSimulation.java | 19 +- .../ElasticsearchLicenseAsyncClient.java | 116 +++ .../license/ElasticsearchLicenseClient.java | 114 +++ .../license/GetLicenseRequest.java | 215 +++++ .../license/GetLicenseResponse.java | 162 ++++ .../elasticsearch/license/LicenseStatus.java | 70 ++ .../elasticsearch/license/LicenseType.java | 80 ++ .../license/get/LicenseInformation.java | 444 +++++++++ .../logstash/DeletePipelineRequest.java | 19 +- .../ElasticsearchLogstashAsyncClient.java | 32 +- .../logstash/ElasticsearchLogstashClient.java | 32 +- .../logstash/GetPipelineRequest.java | 34 +- .../logstash/GetPipelineResponse.java | 19 +- .../elasticsearch/logstash/Pipeline.java | 19 +- .../logstash/PipelineMetadata.java | 19 +- .../logstash/PipelineSettings.java | 19 +- .../logstash/PutPipelineRequest.java | 19 +- .../elasticsearch/ml/AnalysisConfig.java | 19 +- .../elasticsearch/ml/AnalysisConfigRead.java | 19 +- .../elasticsearch/ml/AnalysisLimits.java | 19 +- .../elasticsearch/ml/AnalysisMemoryLimit.java | 19 +- .../elasticsearch/ml/ApiKeyAuthorization.java | 19 +- .../clients/elasticsearch/ml/AppliesTo.java | 19 +- .../elasticsearch/ml/CalendarEvent.java | 19 +- .../ml/CategorizationAnalyzer.java | 19 +- .../ml/CategorizationAnalyzerBuilders.java | 19 +- .../ml/CategorizationAnalyzerDefinition.java | 19 +- .../ml/CategorizationStatus.java | 19 +- .../elasticsearch/ml/ChunkingConfig.java | 19 +- .../elasticsearch/ml/ChunkingMode.java | 19 +- .../ml/ClassificationInferenceOptions.java | 19 +- .../elasticsearch/ml/CloseJobRequest.java | 19 +- .../elasticsearch/ml/CloseJobResponse.java | 19 +- .../elasticsearch/ml/ConditionOperator.java | 19 +- .../clients/elasticsearch/ml/DataCounts.java | 19 +- .../elasticsearch/ml/DataDescription.java | 19 +- .../clients/elasticsearch/ml/Datafeed.java | 19 +- .../ml/DatafeedAuthorization.java | 19 +- .../elasticsearch/ml/DatafeedConfig.java | 19 +- .../ml/DatafeedRunningState.java | 19 +- .../elasticsearch/ml/DatafeedState.java | 19 +- .../elasticsearch/ml/DatafeedStats.java | 19 +- .../elasticsearch/ml/DatafeedTimingStats.java | 19 +- .../elasticsearch/ml/DataframeAnalysis.java | 19 +- .../ml/DataframeAnalysisAnalyzedFields.java | 19 +- .../ml/DataframeAnalysisBase.java | 19 +- .../ml/DataframeAnalysisBuilders.java | 19 +- .../ml/DataframeAnalysisClassification.java | 19 +- .../ml/DataframeAnalysisFeatureProcessor.java | 19 +- ...frameAnalysisFeatureProcessorBuilders.java | 19 +- ...ysisFeatureProcessorFrequencyEncoding.java | 19 +- ...AnalysisFeatureProcessorMultiEncoding.java | 19 +- ...AnalysisFeatureProcessorNGramEncoding.java | 19 +- ...nalysisFeatureProcessorOneHotEncoding.java | 19 +- ...sisFeatureProcessorTargetMeanEncoding.java | 19 +- ...aframeAnalysisFeatureProcessorVariant.java | 19 +- .../ml/DataframeAnalysisOutlierDetection.java | 19 +- .../ml/DataframeAnalysisRegression.java | 19 +- .../ml/DataframeAnalysisVariant.java | 19 +- .../elasticsearch/ml/DataframeAnalytics.java | 19 +- .../ml/DataframeAnalyticsAuthorization.java | 19 +- .../ml/DataframeAnalyticsDestination.java | 19 +- .../ml/DataframeAnalyticsSource.java | 19 +- .../ml/DataframeAnalyticsStats.java | 19 +- .../ml/DataframeAnalyticsStatsBuilders.java | 19 +- .../ml/DataframeAnalyticsStatsDataCounts.java | 19 +- ...ataframeAnalyticsStatsHyperparameters.java | 19 +- .../DataframeAnalyticsStatsMemoryUsage.java | 19 +- ...taframeAnalyticsStatsOutlierDetection.java | 19 +- .../ml/DataframeAnalyticsStatsProgress.java | 19 +- .../ml/DataframeAnalyticsStatsVariant.java | 19 +- .../ml/DataframeAnalyticsSummary.java | 19 +- .../elasticsearch/ml/DataframeEvaluation.java | 19 +- .../ml/DataframeEvaluationBuilders.java | 19 +- .../ml/DataframeEvaluationClassification.java | 19 +- ...aframeEvaluationClassificationMetrics.java | 19 +- ...EvaluationClassificationMetricsAucRoc.java | 19 +- .../ml/DataframeEvaluationMetrics.java | 19 +- .../DataframeEvaluationOutlierDetection.java | 19 +- ...rameEvaluationOutlierDetectionMetrics.java | 19 +- .../ml/DataframeEvaluationRegression.java | 19 +- .../DataframeEvaluationRegressionMetrics.java | 19 +- ...frameEvaluationRegressionMetricsHuber.java | 19 +- ...aframeEvaluationRegressionMetricsMsle.java | 19 +- .../ml/DataframeEvaluationVariant.java | 19 +- .../elasticsearch/ml/DataframeState.java | 19 +- .../ml/DelayedDataCheckConfig.java | 19 +- .../ml/DeleteCalendarEventRequest.java | 19 +- .../ml/DeleteCalendarEventResponse.java | 19 +- .../ml/DeleteCalendarJobRequest.java | 19 +- .../ml/DeleteCalendarJobResponse.java | 19 +- .../ml/DeleteCalendarRequest.java | 19 +- .../ml/DeleteCalendarResponse.java | 19 +- .../ml/DeleteDataFrameAnalyticsRequest.java | 19 +- .../ml/DeleteDataFrameAnalyticsResponse.java | 19 +- .../ml/DeleteDatafeedRequest.java | 19 +- .../ml/DeleteDatafeedResponse.java | 19 +- .../elasticsearch/ml/DeleteFilterRequest.java | 19 +- .../ml/DeleteFilterResponse.java | 19 +- .../elasticsearch/ml/DeleteJobRequest.java | 19 +- .../elasticsearch/ml/DeleteJobResponse.java | 19 +- .../ml/DeleteTrainedModelAliasRequest.java | 19 +- .../ml/DeleteTrainedModelAliasResponse.java | 19 +- .../ml/DeleteTrainedModelRequest.java | 19 +- .../ml/DeleteTrainedModelResponse.java | 19 +- .../ml/DeploymentAllocationState.java | 19 +- .../ml/DeploymentAssignmentState.java | 19 +- .../elasticsearch/ml/DeploymentState.java | 19 +- .../elasticsearch/ml/DetectionRule.java | 19 +- .../clients/elasticsearch/ml/Detector.java | 19 +- .../elasticsearch/ml/DetectorRead.java | 19 +- .../ml/ElasticsearchMlAsyncClient.java | 19 +- .../ml/ElasticsearchMlClient.java | 19 +- .../ml/EstimateModelMemoryRequest.java | 19 +- .../ml/EstimateModelMemoryResponse.java | 19 +- .../ml/EvaluateDataFrameRequest.java | 19 +- .../ml/EvaluateDataFrameResponse.java | 19 +- .../elasticsearch/ml/ExcludeFrequent.java | 19 +- .../ml/FillMaskInferenceOptions.java | 19 +- .../ml/FillMaskInferenceUpdateOptions.java | 19 +- .../clients/elasticsearch/ml/Filter.java | 19 +- .../clients/elasticsearch/ml/FilterRef.java | 19 +- .../clients/elasticsearch/ml/FilterType.java | 19 +- .../elasticsearch/ml/FlushJobRequest.java | 19 +- .../elasticsearch/ml/FlushJobResponse.java | 19 +- .../ml/GetCalendarEventsRequest.java | 19 +- .../ml/GetCalendarEventsResponse.java | 19 +- .../elasticsearch/ml/GetCalendarsRequest.java | 19 +- .../ml/GetCalendarsResponse.java | 19 +- .../ml/GetDataFrameAnalyticsRequest.java | 19 +- .../ml/GetDataFrameAnalyticsResponse.java | 19 +- .../ml/GetDataFrameAnalyticsStatsRequest.java | 19 +- .../GetDataFrameAnalyticsStatsResponse.java | 19 +- .../ml/GetDatafeedStatsRequest.java | 19 +- .../ml/GetDatafeedStatsResponse.java | 19 +- .../elasticsearch/ml/GetDatafeedsRequest.java | 19 +- .../ml/GetDatafeedsResponse.java | 19 +- .../elasticsearch/ml/GetFiltersRequest.java | 19 +- .../elasticsearch/ml/GetFiltersResponse.java | 19 +- .../elasticsearch/ml/GetJobStatsRequest.java | 19 +- .../elasticsearch/ml/GetJobStatsResponse.java | 19 +- .../elasticsearch/ml/GetJobsRequest.java | 19 +- .../elasticsearch/ml/GetJobsResponse.java | 19 +- .../ml/GetOverallBucketsRequest.java | 19 +- .../ml/GetOverallBucketsResponse.java | 19 +- .../ml/GetTrainedModelsRequest.java | 19 +- .../ml/GetTrainedModelsResponse.java | 19 +- .../ml/GetTrainedModelsStatsRequest.java | 19 +- .../ml/GetTrainedModelsStatsResponse.java | 19 +- .../elasticsearch/ml/Hyperparameter.java | 19 +- .../elasticsearch/ml/Hyperparameters.java | 19 +- .../clients/elasticsearch/ml/Include.java | 19 +- .../ml/InferTrainedModelRequest.java | 19 +- .../ml/InferTrainedModelResponse.java | 19 +- .../ml/InferenceConfigCreate.java | 19 +- .../ml/InferenceConfigCreateBuilders.java | 19 +- .../ml/InferenceConfigCreateVariant.java | 19 +- .../ml/InferenceConfigUpdate.java | 19 +- .../ml/InferenceConfigUpdateBuilders.java | 19 +- .../ml/InferenceConfigUpdateVariant.java | 19 +- .../ml/InferenceResponseResult.java | 19 +- .../elastic/clients/elasticsearch/ml/Job.java | 19 +- .../clients/elasticsearch/ml/JobBlocked.java | 19 +- .../elasticsearch/ml/JobBlockedReason.java | 19 +- .../clients/elasticsearch/ml/JobConfig.java | 19 +- .../ml/JobForecastStatistics.java | 19 +- .../clients/elasticsearch/ml/JobState.java | 19 +- .../elasticsearch/ml/JobStatistics.java | 19 +- .../clients/elasticsearch/ml/JobStats.java | 19 +- .../elasticsearch/ml/JobTimingStats.java | 19 +- .../elasticsearch/ml/MemoryStatus.java | 19 +- .../elasticsearch/ml/ModelPlotConfig.java | 19 +- .../elasticsearch/ml/ModelSizeStats.java | 19 +- .../elasticsearch/ml/NerInferenceOptions.java | 19 +- .../ml/NerInferenceUpdateOptions.java | 19 +- .../ml/NlpBertTokenizationConfig.java | 19 +- .../ml/NlpRobertaTokenizationConfig.java | 19 +- .../ml/NlpTokenizationUpdateOptions.java | 19 +- .../elasticsearch/ml/OpenJobRequest.java | 19 +- .../elasticsearch/ml/OpenJobResponse.java | 19 +- .../ml/OutlierDetectionParameters.java | 19 +- .../elasticsearch/ml/OverallBucket.java | 19 +- .../elasticsearch/ml/OverallBucketJob.java | 19 +- .../clients/elasticsearch/ml/Page.java | 19 +- .../ml/PassThroughInferenceOptions.java | 19 +- .../ml/PassThroughInferenceUpdateOptions.java | 19 +- .../ml/PerPartitionCategorization.java | 19 +- .../ml/PostCalendarEventsRequest.java | 19 +- .../ml/PostCalendarEventsResponse.java | 19 +- .../ml/PreviewDataFrameAnalyticsRequest.java | 19 +- .../ml/PreviewDataFrameAnalyticsResponse.java | 19 +- .../ml/PreviewDatafeedRequest.java | 19 +- .../ml/PreviewDatafeedResponse.java | 19 +- .../ml/PutCalendarJobRequest.java | 19 +- .../ml/PutCalendarJobResponse.java | 19 +- .../elasticsearch/ml/PutCalendarRequest.java | 19 +- .../elasticsearch/ml/PutCalendarResponse.java | 19 +- .../ml/PutDataFrameAnalyticsRequest.java | 19 +- .../ml/PutDataFrameAnalyticsResponse.java | 19 +- .../elasticsearch/ml/PutDatafeedRequest.java | 19 +- .../elasticsearch/ml/PutDatafeedResponse.java | 19 +- .../elasticsearch/ml/PutFilterRequest.java | 19 +- .../elasticsearch/ml/PutFilterResponse.java | 19 +- .../elasticsearch/ml/PutJobRequest.java | 19 +- .../elasticsearch/ml/PutJobResponse.java | 19 +- .../ml/PutTrainedModelAliasRequest.java | 19 +- .../ml/PutTrainedModelAliasResponse.java | 19 +- .../PutTrainedModelDefinitionPartRequest.java | 19 +- ...PutTrainedModelDefinitionPartResponse.java | 19 +- .../ml/PutTrainedModelRequest.java | 68 +- .../ml/PutTrainedModelResponse.java | 19 +- .../ml/PutTrainedModelVocabularyRequest.java | 70 +- .../ml/PutTrainedModelVocabularyResponse.java | 19 +- .../ml/QuestionAnsweringInferenceOptions.java | 19 +- ...estionAnsweringInferenceUpdateOptions.java | 19 +- .../ml/RegressionInferenceOptions.java | 19 +- .../elasticsearch/ml/ResetJobRequest.java | 19 +- .../elasticsearch/ml/ResetJobResponse.java | 19 +- .../elasticsearch/ml/RoutingState.java | 19 +- .../clients/elasticsearch/ml/RuleAction.java | 19 +- .../elasticsearch/ml/RuleCondition.java | 19 +- .../ml/RunningStateSearchInterval.java | 19 +- .../ml/StartDataFrameAnalyticsRequest.java | 19 +- .../ml/StartDataFrameAnalyticsResponse.java | 19 +- .../ml/StartDatafeedRequest.java | 19 +- .../ml/StartDatafeedResponse.java | 19 +- .../StartTrainedModelDeploymentRequest.java | 19 +- .../StartTrainedModelDeploymentResponse.java | 19 +- .../ml/StopDataFrameAnalyticsRequest.java | 19 +- .../ml/StopDataFrameAnalyticsResponse.java | 19 +- .../elasticsearch/ml/StopDatafeedRequest.java | 19 +- .../ml/StopDatafeedResponse.java | 19 +- .../ml/StopTrainedModelDeploymentRequest.java | 19 +- .../StopTrainedModelDeploymentResponse.java | 19 +- .../TextClassificationInferenceOptions.java | 19 +- ...tClassificationInferenceUpdateOptions.java | 19 +- .../ml/TextEmbeddingInferenceOptions.java | 19 +- .../TextEmbeddingInferenceUpdateOptions.java | 19 +- .../ml/TextExpansionInferenceOptions.java | 19 +- .../TextExpansionInferenceUpdateOptions.java | 19 +- .../clients/elasticsearch/ml/TimingStats.java | 19 +- .../elasticsearch/ml/TokenizationConfig.java | 19 +- .../ml/TokenizationConfigBuilders.java | 19 +- .../ml/TokenizationConfigVariant.java | 19 +- .../ml/TokenizationTruncate.java | 19 +- .../elasticsearch/ml/TopClassEntry.java | 19 +- .../ml/TotalFeatureImportance.java | 19 +- .../ml/TotalFeatureImportanceClass.java | 19 +- .../ml/TotalFeatureImportanceStatistics.java | 19 +- .../ml/TrainedModelAssignment.java | 19 +- .../TrainedModelAssignmentRoutingTable.java | 19 +- .../TrainedModelAssignmentTaskParameters.java | 19 +- .../elasticsearch/ml/TrainedModelConfig.java | 56 +- .../ml/TrainedModelConfigInput.java | 19 +- .../ml/TrainedModelConfigMetadata.java | 19 +- ...rainedModelDeploymentAllocationStatus.java | 19 +- .../ml/TrainedModelDeploymentNodesStats.java | 19 +- .../ml/TrainedModelDeploymentStats.java | 19 +- .../ml/TrainedModelEntities.java | 19 +- .../TrainedModelInferenceClassImportance.java | 19 +- ...rainedModelInferenceFeatureImportance.java | 19 +- .../ml/TrainedModelInferenceStats.java | 19 +- .../ml/TrainedModelLocation.java | 19 +- .../ml/TrainedModelLocationIndex.java | 19 +- .../ml/TrainedModelPrefixStrings.java | 189 ++++ .../ml/TrainedModelSizeStats.java | 19 +- .../elasticsearch/ml/TrainedModelStats.java | 19 +- .../elasticsearch/ml/TrainedModelType.java | 19 +- .../elasticsearch/ml/TrainingPriority.java | 19 +- .../ml/TransformAuthorization.java | 19 +- .../ml/UpdateDataFrameAnalyticsRequest.java | 19 +- .../ml/UpdateDataFrameAnalyticsResponse.java | 19 +- .../ml/UpdateDatafeedRequest.java | 19 +- .../ml/UpdateDatafeedResponse.java | 19 +- .../elasticsearch/ml/UpdateFilterRequest.java | 19 +- .../ml/UpdateFilterResponse.java | 19 +- .../elasticsearch/ml/UpdateJobRequest.java | 19 +- .../elasticsearch/ml/UpdateJobResponse.java | 19 +- .../elasticsearch/ml/ValidationLoss.java | 19 +- .../clients/elasticsearch/ml/Vocabulary.java | 19 +- ...eroShotClassificationInferenceOptions.java | 19 +- ...tClassificationInferenceUpdateOptions.java | 19 +- .../ConfusionMatrixItem.java | 19 +- .../ConfusionMatrixPrediction.java | 19 +- .../ConfusionMatrixThreshold.java | 19 +- .../DataframeClassificationSummary.java | 19 +- ...ataframeClassificationSummaryAccuracy.java | 19 +- ...ationSummaryMulticlassConfusionMatrix.java | 19 +- ...taframeClassificationSummaryPrecision.java | 19 +- .../DataframeClassificationSummaryRecall.java | 19 +- .../DataframeEvaluationClass.java | 19 +- .../DataframeEvaluationSummaryAucRoc.java | 19 +- ...frameEvaluationSummaryAucRocCurveItem.java | 19 +- .../DataframeEvaluationValue.java | 19 +- .../DataframeOutlierDetectionSummary.java | 19 +- .../DataframeRegressionSummary.java | 19 +- .../ml/get_calendars/Calendar.java | 19 +- .../DataframePreviewConfig.java | 19 +- .../ml/put_trained_model/AggregateOutput.java | 19 +- .../ml/put_trained_model/Definition.java | 19 +- .../ml/put_trained_model/Ensemble.java | 19 +- .../FrequencyEncodingPreprocessor.java | 19 +- .../ml/put_trained_model/Input.java | 19 +- .../OneHotEncodingPreprocessor.java | 19 +- .../ml/put_trained_model/Preprocessor.java | 19 +- .../PreprocessorBuilders.java | 19 +- .../PreprocessorVariant.java | 19 +- .../TargetMeanEncodingPreprocessor.java | 19 +- .../ml/put_trained_model/TrainedModel.java | 19 +- .../put_trained_model/TrainedModelTree.java | 19 +- .../TrainedModelTreeNode.java | 19 +- .../ml/put_trained_model/Weights.java | 19 +- .../clients/elasticsearch/nodes/Client.java | 19 +- .../clients/elasticsearch/nodes/Context.java | 19 +- .../clients/elasticsearch/nodes/Http.java | 19 +- .../clients/elasticsearch/nodes/Ingest.java | 19 +- .../elasticsearch/nodes/IngestTotal.java | 19 +- .../elasticsearch/nodes/KeyedProcessor.java | 19 +- .../elasticsearch/nodes/Processor.java | 19 +- .../elasticsearch/nodes/Scripting.java | 19 +- .../elasticsearch/nodes/ThreadCount.java | 19 +- .../DeleteQueryRulesetRequest.java | 19 +- .../DeleteQueryRulesetResponse.java | 19 +- .../ElasticsearchQueryRulesetAsyncClient.java | 19 +- .../ElasticsearchQueryRulesetClient.java | 19 +- .../query_ruleset/GetQueryRulesetRequest.java | 19 +- .../GetQueryRulesetResponse.java | 19 +- .../query_ruleset/ListRequest.java | 19 +- .../query_ruleset/ListResponse.java | 19 +- .../query_ruleset/PutRequest.java | 118 ++- .../query_ruleset/PutResponse.java | 19 +- .../query_ruleset/QueryRule.java | 19 +- .../query_ruleset/QueryRuleActions.java | 19 +- .../query_ruleset/QueryRuleCriteria.java | 19 +- .../query_ruleset/QueryRuleCriteriaType.java | 19 +- .../query_ruleset/QueryRuleType.java | 19 +- .../query_ruleset/QueryRuleset.java | 59 +- .../list/QueryRulesetListItem.java | 19 +- .../AnalyticsCollection.java | 25 +- .../DeleteBehavioralAnalyticsRequest.java | 19 +- .../DeleteBehavioralAnalyticsResponse.java | 19 +- .../DeleteSearchApplicationRequest.java | 19 +- .../DeleteSearchApplicationResponse.java | 19 +- ...ticsearchSearchApplicationAsyncClient.java | 23 +- .../ElasticsearchSearchApplicationClient.java | 23 +- .../search_application/EventDataStream.java | 19 +- .../GetBehavioralAnalyticsRequest.java | 19 +- .../GetBehavioralAnalyticsResponse.java | 19 +- .../GetSearchApplicationRequest.java | 19 +- .../GetSearchApplicationResponse.java | 19 +- .../search_application/ListRequest.java | 31 +- .../search_application/ListResponse.java | 19 +- .../PutBehavioralAnalyticsRequest.java | 25 +- .../PutBehavioralAnalyticsResponse.java | 19 +- .../search_application/PutRequest.java | 31 +- .../search_application/PutResponse.java | 19 +- .../search_application/SearchApplication.java | 43 +- .../SearchApplicationSearchRequest.java | 34 +- .../SearchApplicationSearchResponse.java | 19 +- .../SearchApplicationTemplate.java | 31 +- .../list/SearchApplicationListItem.java | 19 +- .../AnalyticsAcknowledgeResponseBase.java | 19 +- .../elasticsearch/security/ApiKey.java | 80 +- .../ApplicationGlobalUserPrivileges.java | 19 +- .../security/ApplicationPrivileges.java | 19 +- .../security/AuthenticateRequest.java | 19 +- .../security/AuthenticateResponse.java | 19 +- .../security/ClusterPrivilege.java | 137 +++ .../security/CreateApiKeyRequest.java | 19 +- .../security/CreateApiKeyResponse.java | 19 +- .../ElasticsearchSecurityAsyncClient.java | 98 +- .../security/ElasticsearchSecurityClient.java | 102 +- .../elasticsearch/security/FieldSecurity.java | 19 +- .../security/GetApiKeyRequest.java | 59 +- .../security/GetApiKeyResponse.java | 19 +- .../security/GlobalPrivilege.java | 19 +- .../security/HasPrivilegesRequest.java | 388 ++++++++ .../security/HasPrivilegesResponse.java | 343 +++++++ .../security/IndexPrivilege.java | 19 +- .../security/IndicesPrivileges.java | 19 +- .../security/InvalidateApiKeyRequest.java | 19 +- .../security/InvalidateApiKeyResponse.java | 19 +- .../security/ManageUserPrivileges.java | 19 +- .../security/QueryApiKeysRequest.java | 88 +- .../security/QueryApiKeysResponse.java | 19 +- .../elasticsearch/security/RealmInfo.java | 19 +- .../security/RoleDescriptor.java | 56 +- .../security/RoleTemplateInlineQuery.java | 19 +- .../RoleTemplateInlineQueryBuilders.java | 19 +- .../security/RoleTemplateInlineScript.java | 19 +- .../security/RoleTemplateScript.java | 19 +- .../security/RoleTemplateScriptBuilders.java | 19 +- .../security/UpdateApiKeyRequest.java | 62 +- .../security/UpdateApiKeyResponse.java | 19 +- .../security/authenticate/ServiceToken.java | 19 +- .../ApplicationPrivilegesCheck.java | 272 ++++++ .../has_privileges/IndexPrivilegesCheck.java | 283 ++++++ .../elasticsearch/sql/ClearCursorRequest.java | 188 ++++ .../sql/ClearCursorResponse.java | 154 +++ .../clients/elasticsearch/sql/Column.java | 176 ++++ .../elasticsearch/sql/DeleteAsyncRequest.java | 184 ++++ .../sql/DeleteAsyncResponse.java | 107 +++ .../sql/ElasticsearchSqlAsyncClient.java | 284 ++++++ .../sql/ElasticsearchSqlClient.java | 289 ++++++ .../elasticsearch/sql/GetAsyncRequest.java | 330 +++++++ .../elasticsearch/sql/GetAsyncResponse.java | 395 ++++++++ .../sql/GetAsyncStatusRequest.java | 184 ++++ .../sql/GetAsyncStatusResponse.java | 328 +++++++ .../elasticsearch/sql/QueryRequest.java | 846 +++++++++++++++++ .../elasticsearch/sql/QueryResponse.java | 408 ++++++++ .../elasticsearch/sql/TranslateRequest.java | 299 ++++++ .../elasticsearch/sql/TranslateResponse.java | 400 ++++++++ .../synonyms/DeleteSynonymRequest.java | 19 +- .../synonyms/DeleteSynonymResponse.java | 19 +- .../synonyms/DeleteSynonymRuleRequest.java | 19 +- .../synonyms/DeleteSynonymRuleResponse.java | 19 +- .../ElasticsearchSynonymsAsyncClient.java | 19 +- .../synonyms/ElasticsearchSynonymsClient.java | 19 +- .../synonyms/GetSynonymRequest.java | 19 +- .../synonyms/GetSynonymResponse.java | 19 +- .../synonyms/GetSynonymRuleRequest.java | 19 +- .../synonyms/GetSynonymRuleResponse.java | 19 +- .../synonyms/GetSynonymsSetsRequest.java | 19 +- .../synonyms/GetSynonymsSetsResponse.java | 19 +- .../synonyms/PutSynonymRequest.java | 19 +- .../synonyms/PutSynonymResponse.java | 19 +- .../synonyms/PutSynonymRuleRequest.java | 59 +- .../synonyms/PutSynonymRuleResponse.java | 19 +- .../elasticsearch/synonyms/SynonymRule.java | 19 +- .../synonyms/SynonymRuleRead.java | 19 +- .../synonyms/SynonymsUpdateResult.java | 19 +- .../get_synonyms_sets/SynonymsSetItem.java | 19 +- .../tasks/ElasticsearchTasksAsyncClient.java | 101 ++ .../tasks/ElasticsearchTasksClient.java | 101 ++ .../elasticsearch/tasks/GetTasksRequest.java | 253 +++++ .../elasticsearch/tasks/GetTasksResponse.java | 252 +++++ .../clients/elasticsearch/tasks/TaskInfo.java | 153 +-- .../transform/DeleteTransformRequest.java | 51 +- .../transform/DeleteTransformResponse.java | 19 +- .../elasticsearch/transform/Destination.java | 19 +- .../ElasticsearchTransformAsyncClient.java | 19 +- .../ElasticsearchTransformClient.java | 19 +- .../transform/GetTransformRequest.java | 19 +- .../transform/GetTransformResponse.java | 19 +- .../transform/GetTransformStatsRequest.java | 19 +- .../transform/GetTransformStatsResponse.java | 19 +- .../elasticsearch/transform/Latest.java | 19 +- .../elasticsearch/transform/Pivot.java | 19 +- .../elasticsearch/transform/PivotGroupBy.java | 19 +- .../transform/PivotGroupByBuilders.java | 19 +- .../transform/PivotGroupByVariant.java | 19 +- .../transform/PreviewTransformRequest.java | 19 +- .../transform/PreviewTransformResponse.java | 19 +- .../transform/PutTransformRequest.java | 19 +- .../transform/PutTransformResponse.java | 19 +- .../transform/ResetTransformRequest.java | 19 +- .../transform/ResetTransformResponse.java | 19 +- .../transform/RetentionPolicy.java | 19 +- .../transform/RetentionPolicyBuilders.java | 19 +- .../transform/RetentionPolicyVariant.java | 19 +- .../ScheduleNowTransformRequest.java | 19 +- .../ScheduleNowTransformResponse.java | 19 +- .../elasticsearch/transform/Settings.java | 19 +- .../elasticsearch/transform/Source.java | 19 +- .../transform/StartTransformRequest.java | 19 +- .../transform/StartTransformResponse.java | 19 +- .../transform/StopTransformRequest.java | 19 +- .../transform/StopTransformResponse.java | 19 +- .../clients/elasticsearch/transform/Sync.java | 19 +- .../elasticsearch/transform/SyncBuilders.java | 19 +- .../elasticsearch/transform/SyncVariant.java | 19 +- .../transform/TimeRetentionPolicy.java | 19 +- .../elasticsearch/transform/TimeSync.java | 19 +- .../transform/UpdateTransformRequest.java | 19 +- .../transform/UpdateTransformResponse.java | 19 +- .../get_transform/TransformSummary.java | 19 +- .../get_transform_stats/CheckpointStats.java | 19 +- .../get_transform_stats/Checkpointing.java | 19 +- .../TransformIndexerStats.java | 19 +- .../TransformProgress.java | 19 +- .../get_transform_stats/TransformStats.java | 19 +- .../TransformStatsHealth.java | 19 +- .../watcher/ActionStatusOptions.java | 19 +- 1756 files changed, 51286 insertions(+), 9242 deletions(-) create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardsOperationResponseBase.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TokenPruningConfig.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExplainResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/search/ResultPosition.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ManagedBy.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBuilders.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/IndicesBlockOptions.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/IndicesBlockStatus.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultVariant.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfig.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfigContainer.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/LicenseStatus.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/LicenseType.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ClusterPrivilege.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/ApplicationPrivilegesCheck.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/QueryResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateResponse.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java create mode 100644 java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksResponse.java diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index e632b612a..77b7cb210 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch; import co.elastic.clients.ApiClient; @@ -46,6 +42,8 @@ import co.elastic.clients.elasticsearch.core.DeleteScriptResponse; import co.elastic.clients.elasticsearch.core.ExistsRequest; import co.elastic.clients.elasticsearch.core.ExistsSourceRequest; +import co.elastic.clients.elasticsearch.core.ExplainRequest; +import co.elastic.clients.elasticsearch.core.ExplainResponse; import co.elastic.clients.elasticsearch.core.FieldCapsRequest; import co.elastic.clients.elasticsearch.core.FieldCapsResponse; import co.elastic.clients.elasticsearch.core.GetRequest; @@ -73,6 +71,8 @@ import co.elastic.clients.elasticsearch.core.PutScriptResponse; import co.elastic.clients.elasticsearch.core.RankEvalRequest; import co.elastic.clients.elasticsearch.core.RankEvalResponse; +import co.elastic.clients.elasticsearch.core.ReindexRequest; +import co.elastic.clients.elasticsearch.core.ReindexResponse; import co.elastic.clients.elasticsearch.core.RenderSearchTemplateRequest; import co.elastic.clients.elasticsearch.core.RenderSearchTemplateResponse; import co.elastic.clients.elasticsearch.core.ScriptsPainlessExecuteRequest; @@ -93,15 +93,20 @@ import co.elastic.clients.elasticsearch.core.UpdateRequest; import co.elastic.clients.elasticsearch.core.UpdateResponse; import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichAsyncClient; +import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlAsyncClient; import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphAsyncClient; import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesAsyncClient; +import co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceAsyncClient; import co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestAsyncClient; +import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseAsyncClient; import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashAsyncClient; import co.elastic.clients.elasticsearch.ml.ElasticsearchMlAsyncClient; import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetAsyncClient; import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationAsyncClient; import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityAsyncClient; +import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlAsyncClient; import co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsAsyncClient; +import co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksAsyncClient; import co.elastic.clients.elasticsearch.transform.ElasticsearchTransformAsyncClient; import co.elastic.clients.transport.ElasticsearchTransport; import co.elastic.clients.transport.Endpoint; @@ -117,6 +122,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the namespace. */ @@ -153,6 +173,10 @@ public ElasticsearchEnrichAsyncClient enrich() { return new ElasticsearchEnrichAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchEqlAsyncClient eql() { + return new ElasticsearchEqlAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchGraphAsyncClient graph() { return new ElasticsearchGraphAsyncClient(this.transport, this.transportOptions); } @@ -161,10 +185,18 @@ public ElasticsearchIndicesAsyncClient indices() { return new ElasticsearchIndicesAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchInferenceAsyncClient inference() { + return new ElasticsearchInferenceAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchIngestAsyncClient ingest() { return new ElasticsearchIngestAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchLicenseAsyncClient license() { + return new ElasticsearchLicenseAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchLogstashAsyncClient logstash() { return new ElasticsearchLogstashAsyncClient(this.transport, this.transportOptions); } @@ -185,10 +217,18 @@ public ElasticsearchSecurityAsyncClient security() { return new ElasticsearchSecurityAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchSqlAsyncClient sql() { + return new ElasticsearchSqlAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchSynonymsAsyncClient synonyms() { return new ElasticsearchSynonymsAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchTasksAsyncClient tasks() { + return new ElasticsearchTasksAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchTransformAsyncClient transform() { return new ElasticsearchTransformAsyncClient(this.transport, this.transportOptions); } @@ -570,6 +610,76 @@ public final CompletableFuture existsSource( return existsSource(fn.apply(new ExistsSourceRequest.Builder()).build()); } + // ----- Endpoint: explain + + /** + * Returns information about why a specific matches (or doesn't match) a query. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture> explain(ExplainRequest request, + Class tDocumentClass) { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) ExplainRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, + "co.elastic.clients:Deserializer:_global.explain.TDocument", getDeserializer(tDocumentClass)); + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns information about why a specific matches (or doesn't match) a query. + * + * @param fn + * a function that initializes a builder to create the + * {@link ExplainRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture> explain( + Function> fn, Class tDocumentClass) { + return explain(fn.apply(new ExplainRequest.Builder()).build(), tDocumentClass); + } + + /** + * Returns information about why a specific matches (or doesn't match) a query. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture> explain(ExplainRequest request, + Type tDocumentType) { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) ExplainRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, + "co.elastic.clients:Deserializer:_global.explain.TDocument", getDeserializer(tDocumentType)); + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns information about why a specific matches (or doesn't match) a query. + * + * @param fn + * a function that initializes a builder to create the + * {@link ExplainRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture> explain( + Function> fn, Type tDocumentType) { + return explain(fn.apply(new ExplainRequest.Builder()).build(), tDocumentType); + } + // ----- Endpoint: field_caps /** @@ -1207,6 +1317,43 @@ public final CompletableFuture rankEval( return rankEval(fn.apply(new RankEvalRequest.Builder()).build()); } + // ----- Endpoint: reindex + + /** + * 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 Documentation + * on elastic.co + */ + + public CompletableFuture reindex(ReindexRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ReindexRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * 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. + * + * @param fn + * a function that initializes a builder to create the + * {@link ReindexRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture reindex( + Function> fn) { + return reindex(fn.apply(new ReindexRequest.Builder()).build()); + } + // ----- Endpoint: render_search_template /** @@ -1718,7 +1865,8 @@ public final CompletableFuture updateByQuery(UpdateByQueryReque } /** - * Performs an update on every document in the index without changing the + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the index without changing the * source, for example to pick up a mapping change. * * @param fn diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java index fde39006f..9a67f064f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch; import co.elastic.clients.ApiClient; @@ -47,6 +43,8 @@ import co.elastic.clients.elasticsearch.core.DeleteScriptResponse; import co.elastic.clients.elasticsearch.core.ExistsRequest; import co.elastic.clients.elasticsearch.core.ExistsSourceRequest; +import co.elastic.clients.elasticsearch.core.ExplainRequest; +import co.elastic.clients.elasticsearch.core.ExplainResponse; import co.elastic.clients.elasticsearch.core.FieldCapsRequest; import co.elastic.clients.elasticsearch.core.FieldCapsResponse; import co.elastic.clients.elasticsearch.core.GetRequest; @@ -74,6 +72,8 @@ import co.elastic.clients.elasticsearch.core.PutScriptResponse; import co.elastic.clients.elasticsearch.core.RankEvalRequest; import co.elastic.clients.elasticsearch.core.RankEvalResponse; +import co.elastic.clients.elasticsearch.core.ReindexRequest; +import co.elastic.clients.elasticsearch.core.ReindexResponse; import co.elastic.clients.elasticsearch.core.RenderSearchTemplateRequest; import co.elastic.clients.elasticsearch.core.RenderSearchTemplateResponse; import co.elastic.clients.elasticsearch.core.ScriptsPainlessExecuteRequest; @@ -94,15 +94,20 @@ import co.elastic.clients.elasticsearch.core.UpdateRequest; import co.elastic.clients.elasticsearch.core.UpdateResponse; import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichClient; +import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlClient; import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphClient; import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient; +import co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceClient; import co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestClient; +import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseClient; import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashClient; import co.elastic.clients.elasticsearch.ml.ElasticsearchMlClient; import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetClient; import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationClient; import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityClient; +import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient; import co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsClient; +import co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksClient; import co.elastic.clients.elasticsearch.transform.ElasticsearchTransformClient; import co.elastic.clients.transport.ElasticsearchTransport; import co.elastic.clients.transport.Endpoint; @@ -112,25 +117,32 @@ import co.elastic.clients.transport.endpoints.BinaryResponse; import co.elastic.clients.transport.endpoints.BooleanResponse; import co.elastic.clients.transport.endpoints.EndpointWithResponseMapperAttr; -import co.elastic.clients.util.DuplicateResourceFinder; import co.elastic.clients.util.ObjectBuilder; - import java.io.IOException; import java.lang.reflect.Type; import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the namespace. */ public class ElasticsearchClient extends ApiClient { - static { - // Make sure we don't have several versions of this class. This may happen if - // several flavors of the client (Stack and Serverless) are present in the classpath. - DuplicateResourceFinder.ensureClassUniqueness(ElasticsearchClient.class); - } - public ElasticsearchClient(ElasticsearchTransport transport) { super(transport, null); } @@ -162,6 +174,10 @@ public ElasticsearchEnrichClient enrich() { return new ElasticsearchEnrichClient(this.transport, this.transportOptions); } + public ElasticsearchEqlClient eql() { + return new ElasticsearchEqlClient(this.transport, this.transportOptions); + } + public ElasticsearchGraphClient graph() { return new ElasticsearchGraphClient(this.transport, this.transportOptions); } @@ -170,10 +186,18 @@ public ElasticsearchIndicesClient indices() { return new ElasticsearchIndicesClient(this.transport, this.transportOptions); } + public ElasticsearchInferenceClient inference() { + return new ElasticsearchInferenceClient(this.transport, this.transportOptions); + } + public ElasticsearchIngestClient ingest() { return new ElasticsearchIngestClient(this.transport, this.transportOptions); } + public ElasticsearchLicenseClient license() { + return new ElasticsearchLicenseClient(this.transport, this.transportOptions); + } + public ElasticsearchLogstashClient logstash() { return new ElasticsearchLogstashClient(this.transport, this.transportOptions); } @@ -194,10 +218,18 @@ public ElasticsearchSecurityClient security() { return new ElasticsearchSecurityClient(this.transport, this.transportOptions); } + public ElasticsearchSqlClient sql() { + return new ElasticsearchSqlClient(this.transport, this.transportOptions); + } + public ElasticsearchSynonymsClient synonyms() { return new ElasticsearchSynonymsClient(this.transport, this.transportOptions); } + public ElasticsearchTasksClient tasks() { + return new ElasticsearchTasksClient(this.transport, this.transportOptions); + } + public ElasticsearchTransformClient transform() { return new ElasticsearchTransformClient(this.transport, this.transportOptions); } @@ -589,6 +621,78 @@ public final BooleanResponse existsSource( return existsSource(fn.apply(new ExistsSourceRequest.Builder()).build()); } + // ----- Endpoint: explain + + /** + * Returns information about why a specific matches (or doesn't match) a query. + * + * @see Documentation + * on elastic.co + */ + + public ExplainResponse explain(ExplainRequest request, Class tDocumentClass) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) ExplainRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, + "co.elastic.clients:Deserializer:_global.explain.TDocument", getDeserializer(tDocumentClass)); + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns information about why a specific matches (or doesn't match) a query. + * + * @param fn + * a function that initializes a builder to create the + * {@link ExplainRequest} + * @see Documentation + * on elastic.co + */ + + public final ExplainResponse explain( + Function> fn, Class tDocumentClass) + throws IOException, ElasticsearchException { + return explain(fn.apply(new ExplainRequest.Builder()).build(), tDocumentClass); + } + + /** + * Returns information about why a specific matches (or doesn't match) a query. + * + * @see Documentation + * on elastic.co + */ + + public ExplainResponse explain(ExplainRequest request, Type tDocumentType) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) ExplainRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, + "co.elastic.clients:Deserializer:_global.explain.TDocument", getDeserializer(tDocumentType)); + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns information about why a specific matches (or doesn't match) a query. + * + * @param fn + * a function that initializes a builder to create the + * {@link ExplainRequest} + * @see Documentation + * on elastic.co + */ + + public final ExplainResponse explain( + Function> fn, Type tDocumentType) + throws IOException, ElasticsearchException { + return explain(fn.apply(new ExplainRequest.Builder()).build(), tDocumentType); + } + // ----- Endpoint: field_caps /** @@ -1237,6 +1341,43 @@ public final RankEvalResponse rankEval(FunctionDocumentation + * on elastic.co + */ + + public ReindexResponse reindex(ReindexRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ReindexRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * 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. + * + * @param fn + * a function that initializes a builder to create the + * {@link ReindexRequest} + * @see Documentation + * on elastic.co + */ + + public final ReindexResponse reindex(Function> fn) + throws IOException, ElasticsearchException { + return reindex(fn.apply(new ReindexRequest.Builder()).build()); + } + // ----- Endpoint: render_search_template /** @@ -1762,7 +1903,8 @@ public final UpdateResponse update( // ----- Endpoint: update_by_query /** - * Performs an update on every document in the index without changing the + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the index without changing the * source, for example to pick up a mapping change. * * @see API specification diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java index b20e194d4..d7991c598 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ClusterDetails /** @@ -51,7 +62,7 @@ */ @JsonpDeserializable public class ClusterDetails implements JsonpSerializable { - private final ClusterSearchStatusEnum status; + private final ClusterSearchStatus status; private final String indices; @@ -85,7 +96,7 @@ public static ClusterDetails of(Function> /** * Required - API name: {@code status} */ - public final ClusterSearchStatusEnum status() { + public final ClusterSearchStatus status() { return this.status; } @@ -180,7 +191,7 @@ public String toString() { */ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private ClusterSearchStatusEnum status; + private ClusterSearchStatus status; private String indices; @@ -198,7 +209,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement /** * Required - API name: {@code status} */ - public final Builder status(ClusterSearchStatusEnum value) { + public final Builder status(ClusterSearchStatus value) { this.status = value; return this; } @@ -299,7 +310,7 @@ public ClusterDetails build() { protected static void setupClusterDetailsDeserializer(ObjectDeserializer op) { - op.add(Builder::status, ClusterSearchStatusEnum._DESERIALIZER, "status"); + op.add(Builder::status, ClusterSearchStatus._DESERIALIZER, "status"); op.add(Builder::indices, JsonpDeserializer.stringDeserializer(), "indices"); op.add(Builder::took, JsonpDeserializer.longDeserializer(), "took"); op.add(Builder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java index 490c4f1c5..586d2ca64 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.java new file mode 100644 index 000000000..2ba0d100d --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterSearchStatus.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. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum ClusterSearchStatus implements JsonEnum { + Running("running"), + + Successful("successful"), + + Partial("partial"), + + Skipped("skipped"), + + Failed("failed"), + + ; + + private final String jsonValue; + + ClusterSearchStatus(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ClusterSearchStatus.values()); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java index b763db074..40c028dcf 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ClusterStatistics /** @@ -56,6 +67,12 @@ public class ClusterStatistics implements JsonpSerializable { private final int total; + private final int running; + + private final int partial; + + private final int failed; + private final Map details; // --------------------------------------------------------------------------------------------- @@ -65,6 +82,9 @@ private ClusterStatistics(Builder builder) { this.skipped = ApiTypeHelper.requireNonNull(builder.skipped, this, "skipped"); this.successful = ApiTypeHelper.requireNonNull(builder.successful, this, "successful"); this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); + this.running = ApiTypeHelper.requireNonNull(builder.running, this, "running"); + this.partial = ApiTypeHelper.requireNonNull(builder.partial, this, "partial"); + this.failed = ApiTypeHelper.requireNonNull(builder.failed, this, "failed"); this.details = ApiTypeHelper.unmodifiable(builder.details); } @@ -94,6 +114,27 @@ public final int total() { return this.total; } + /** + * Required - API name: {@code running} + */ + public final int running() { + return this.running; + } + + /** + * Required - API name: {@code partial} + */ + public final int partial() { + return this.partial; + } + + /** + * Required - API name: {@code failed} + */ + public final int failed() { + return this.failed; + } + /** * API name: {@code details} */ @@ -121,6 +162,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("total"); generator.write(this.total); + generator.writeKey("running"); + generator.write(this.running); + + generator.writeKey("partial"); + generator.write(this.partial); + + generator.writeKey("failed"); + generator.write(this.failed); + if (ApiTypeHelper.isDefined(this.details)) { generator.writeKey("details"); generator.writeStartObject(); @@ -153,6 +203,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer total; + private Integer running; + + private Integer partial; + + private Integer failed; + @Nullable private Map details; @@ -180,6 +236,30 @@ public final Builder total(int value) { return this; } + /** + * Required - API name: {@code running} + */ + public final Builder running(int value) { + this.running = value; + return this; + } + + /** + * Required - API name: {@code partial} + */ + public final Builder partial(int value) { + this.partial = value; + return this; + } + + /** + * Required - API name: {@code failed} + */ + public final Builder failed(int value) { + this.failed = value; + return this; + } + /** * API name: {@code details} *

@@ -240,6 +320,9 @@ protected static void setupClusterStatisticsDeserializer(ObjectDeserializerAPI diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java index a20fd4ea1..031fab42e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.CoordsGeoBounds /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFIIndependenceMeasure.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFIIndependenceMeasure.java index 66c93bed6..71bc959d4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFIIndependenceMeasure.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFIIndependenceMeasure.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFRAfterEffect.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFRAfterEffect.java index 6cd3ce876..b5004f87b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFRAfterEffect.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFRAfterEffect.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFRBasicModel.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFRBasicModel.java index 9f6e732ee..83d456825 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFRBasicModel.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DFRBasicModel.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java index 5f443dcff..a6b908b9b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java index d5d1a0d98..ac2c58313 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ElasticsearchVersionInfo /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java index 38470a72f..c0b97a9a9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -30,6 +26,21 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * For empty Class assignments * diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java index 1dbe92c22..4a9156c7d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ErrorCause /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java index 947137910..aa9bdfcbc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ErrorResponseBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java index decf357a9..29e214ce6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java index 66d427725..a0b377a02 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch._types.mapping.FieldType; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.FieldSort /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java index 1cb572300..a1117ce30 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java index 552e336c6..514b2f8b5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoBounds /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBoundsBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBoundsBuilders.java index 8a57ea128..c1b3f2e30 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBoundsBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBoundsBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link GeoBounds} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java index 21504e4ec..d9cd9b786 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoDistanceSort /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java index 1a7de8d2e..7bae7004c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java index a42647a35..262704160 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoHashLocation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java index de2957117..a0661a79d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoHashPrecision /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecisionBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecisionBuilders.java index abffd65dc..cb2a78226 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecisionBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecisionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link GeoHashPrecision} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java index ef58346ea..9c5f892ba 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoLine /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java index 1022ff213..5b59638a3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.GeoLocation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocationBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocationBuilders.java index fad7f71e1..2a6abee76 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocationBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocationBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.lang.Double; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link GeoLocation} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java index c779ac81b..4e43da4a9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/HealthStatus.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/HealthStatus.java index aaa804eab..60b09e818 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/HealthStatus.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/HealthStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IBDistribution.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IBDistribution.java index 728e1831d..e8c0f5283 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IBDistribution.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IBDistribution.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IBLambda.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IBLambda.java index 321f0be62..1ed99e56e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IBLambda.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IBLambda.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java index 13857ec39..1bb5d1a6b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.IndicesOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesResponseBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesResponseBase.java index de3ccc81d..3ab0d7365 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesResponseBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.IndicesResponseBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java index dedba1ba1..61156fda3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonData; @@ -47,6 +43,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.InlineGet /** @@ -71,6 +82,7 @@ public class InlineGet implements JsonpSerializable { @Nullable private final String routing; + @Nullable private final TDocument source; @Nullable @@ -87,7 +99,7 @@ private InlineGet(Builder builder) { this.seqNo = builder.seqNo; this.primaryTerm = builder.primaryTerm; this.routing = builder.routing; - this.source = ApiTypeHelper.requireNonNull(builder.source, this, "source"); + this.source = builder.source; this.tDocumentSerializer = builder.tDocumentSerializer; } @@ -143,8 +155,9 @@ public final String routing() { } /** - * Required - API name: {@code _source} + * API name: {@code _source} */ + @Nullable public final TDocument source() { return this.source; } @@ -195,8 +208,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.routing); } - generator.writeKey("_source"); - JsonpUtils.serialize(this.source, generator, tDocumentSerializer, mapper); + if (this.source != null) { + generator.writeKey("_source"); + JsonpUtils.serialize(this.source, generator, tDocumentSerializer, mapper); + + } } @@ -251,6 +267,7 @@ public final Builder metadata(String key, JsonData value) { @Nullable private String routing; + @Nullable private TDocument source; @Nullable @@ -309,9 +326,9 @@ public final Builder routing(@Nullable String value) { } /** - * Required - API name: {@code _source} + * API name: {@code _source} */ - public final Builder source(TDocument value) { + public final Builder source(@Nullable TDocument value) { this.source = value; return this; } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java index a468589e4..a5218423b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/InlineScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.InlineScript /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java index da8fbe0cf..604190f16 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java @@ -17,13 +17,11 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant; +import co.elastic.clients.elasticsearch.core.search.InnerHits; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -43,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.KnnQuery /** @@ -51,7 +64,7 @@ * specification */ @JsonpDeserializable -public class KnnQuery implements JsonpSerializable { +public class KnnQuery implements QueryVariant, JsonpSerializable { private final String field; private final List queryVector; @@ -68,6 +81,12 @@ public class KnnQuery implements JsonpSerializable { private final List filter; + @Nullable + private final Float similarity; + + @Nullable + private final InnerHits innerHits; + // --------------------------------------------------------------------------------------------- private KnnQuery(Builder builder) { @@ -79,6 +98,8 @@ private KnnQuery(Builder builder) { this.numCandidates = ApiTypeHelper.requireNonNull(builder.numCandidates, this, "numCandidates"); this.boost = builder.boost; this.filter = ApiTypeHelper.unmodifiable(builder.filter); + this.similarity = builder.similarity; + this.innerHits = builder.innerHits; } @@ -86,6 +107,14 @@ public static KnnQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * Query variant kind. + */ + @Override + public Query.Kind _queryKind() { + return Query.Kind.Knn; + } + /** * Required - The name of the vector field to search against *

@@ -152,6 +181,26 @@ public final List filter() { return this.filter; } + /** + * The minimum similarity for a vector to be considered a match + *

+ * API name: {@code similarity} + */ + @Nullable + public final Float similarity() { + return this.similarity; + } + + /** + * If defined, each search hit will contain inner hits. + *

+ * API name: {@code inner_hits} + */ + @Nullable + public final InnerHits innerHits() { + return this.innerHits; + } + /** * Serialize this object to JSON. */ @@ -202,6 +251,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } + if (this.similarity != null) { + generator.writeKey("similarity"); + generator.write(this.similarity); + + } + if (this.innerHits != null) { + generator.writeKey("inner_hits"); + this.innerHits.serialize(generator, mapper); + + } } @@ -235,6 +294,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List filter; + @Nullable + private Float similarity; + + @Nullable + private InnerHits innerHits; + /** * Required - The name of the vector field to search against *

@@ -356,6 +421,35 @@ public final Builder filter(Function> fn) { return filter(fn.apply(new Query.Builder()).build()); } + /** + * The minimum similarity for a vector to be considered a match + *

+ * API name: {@code similarity} + */ + public final Builder similarity(@Nullable Float value) { + this.similarity = value; + return this; + } + + /** + * If defined, each search hit will contain inner hits. + *

+ * API name: {@code inner_hits} + */ + public final Builder innerHits(@Nullable InnerHits value) { + this.innerHits = value; + return this; + } + + /** + * If defined, each search hit will contain inner hits. + *

+ * API name: {@code inner_hits} + */ + public final Builder innerHits(Function> fn) { + return this.innerHits(fn.apply(new InnerHits.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -392,6 +486,8 @@ protected static void setupKnnQueryDeserializer(ObjectDeserializerAPI diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/OpType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/OpType.java index 5d56f5e2a..563769454 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/OpType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/OpType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API specification diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilder.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilder.java index bb8be5122..808b04c57 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilder.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilder.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.QueryVectorBuilder /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java index 79ef8372e..521debc0c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link QueryVectorBuilder} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java index b56403be9..ac17ab51e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link QueryVectorBuilder} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java index 43d26d43e..b1dbca7c3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RankContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java index 89e7bc8f8..53880c72a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import jakarta.json.stream.JsonGenerator; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RankBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java index 1ec42a03c..6e2200c4b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Rank} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java index 9c3fcd31b..296815a42 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Rank} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Refresh.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Refresh.java index 99dccc0fc..3543cfa5e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Refresh.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Refresh.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -29,6 +25,21 @@ import co.elastic.clients.json.JsonpMapper; import jakarta.json.stream.JsonGenerator; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java index c1469bfd2..81ae1f3f7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RequestBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Result.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Result.java index 9cdfc3c0b..04a2b6c32 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Result.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Result.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API specification diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java index c0c711b40..d81d2dc77 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.Retries /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java index 01bfbfb6b..bd0153929 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.RrfRank /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java index 4e1853727..d5f8567b9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScoreSort /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java index 1f2130c06..2a48a2ea6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.Script /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java index ec217ce6b..e72dc07a3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScriptBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBuilders.java index 90a5b1286..00bb95e6e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Script} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java index 6fbb7c2a7..5473d38b1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScriptField /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java index a8252dafa..3f98cd4dc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptLanguage.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java index 1f0e990e8..a83149ef2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ScriptSort /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSortType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSortType.java index 09996bdc4..99780e810 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSortType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSortType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SearchType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SearchType.java index 0cb2db29e..071091064 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SearchType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SearchType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java index 3543d2965..a021940fd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ShardFailure /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java index f7edf4971..41eb3c418 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.ShardStatistics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardsOperationResponseBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardsOperationResponseBase.java new file mode 100644 index 000000000..a2064e050 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ShardsOperationResponseBase.java @@ -0,0 +1,132 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.ShardsOperationResponseBase + +/** + * + * @see API + * specification + */ + +public abstract class ShardsOperationResponseBase implements JsonpSerializable { + private final ShardStatistics shards; + + // --------------------------------------------------------------------------------------------- + + protected ShardsOperationResponseBase(AbstractBuilder builder) { + + this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); + + } + + /** + * Required - API name: {@code _shards} + */ + public final ShardStatistics shards() { + return this.shards; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("_shards"); + this.shards.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private ShardStatistics shards; + + /** + * Required - API name: {@code _shards} + */ + public final BuilderT shards(ShardStatistics value) { + this.shards = value; + return self(); + } + + /** + * Required - API name: {@code _shards} + */ + public final BuilderT shards(Function> fn) { + return this.shards(fn.apply(new ShardStatistics.Builder()).build()); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupShardsOperationResponseBaseDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::shards, ShardStatistics._DESERIALIZER, "_shards"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java index 704f9b75b..3bc77e302 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.SlicedScroll /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Slices.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Slices.java index e56355c30..d50266a07 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Slices.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Slices.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.Slices /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesBuilders.java index acfc50b48..c91027e04 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Slices} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesCalculation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesCalculation.java index 70b42b0a8..ac2e5c270 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesCalculation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SlicesCalculation.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortMode.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortMode.java index c9b03c4b4..3152cf3e3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortMode.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java index b83d435c7..73ae819e6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.SortOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsBuilders.java index facd47a2c..70bdbda8a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link SortOptions} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsVariant.java index 5ca5fcda5..367f576f7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOptionsVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link SortOptions} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java index b88600b35..857ddc57d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SortOrder.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java index 2d6c3d88b..e4bb2de82 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.StoredScript /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java index 7332d826e..6b9573148 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScriptId.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.StoredScriptId /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SuggestMode.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SuggestMode.java index 4aa95324e..8ff3106a0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SuggestMode.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/SuggestMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java index 949a1641d..35a269181 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TextEmbedding /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Time.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Time.java index ae97518e2..e4bcef500 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Time.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/Time.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.Duration /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TimeBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TimeBuilders.java index 651971913..29448e249 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TimeBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TimeBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Time} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TimeUnit.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TimeUnit.java index 51fa1772b..6050083e4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TimeUnit.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TimeUnit.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java index 1dad66a0f..ebbd8e63b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TopLeftBottomRightGeoBounds /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java index 4ccb6019e..60c2463c2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.TopRightBottomLeftGeoBounds /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/VersionType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/VersionType.java index c7261fff8..ca05b9a43 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/VersionType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/VersionType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForActiveShardOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForActiveShardOptions.java index ae9c348a8..583027d70 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForActiveShardOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WaitForActiveShardOptions.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java index e837cc92c..7992ed706 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.WktGeoBounds /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WriteResponseBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WriteResponseBase.java index dfc77148f..c179f9dc1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WriteResponseBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/WriteResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.WriteResponseBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java index 8f781f990..75c73a4e0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AdjacencyMatrixAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java index 3eaa567a1..fc0f53c8e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AdjacencyMatrixAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java index 5ca8afa51..0a95047d5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AdjacencyMatrixBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java index 4da91d505..f2bf9ae81 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.ExternallyTaggedUnion; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.Aggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBase.java index e45a2d326..19f88a630 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AggregateBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java index 58cec4c99..a0aa76d87 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Aggregate} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateVariant.java index c3dcd54ba..d9bcbac23 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Aggregate} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java index e96d32a20..7a52d03b1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AggregationContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java index 2db11117e..5320a33e0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.Aggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java index 4e0fd80b8..f35032bf6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Aggregation} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java index 6a0c88104..d7826ed49 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AggregationRange /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationVariant.java index 6ea6f22f9..a412e8dd0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Aggregation} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java index 35352e11a..e8f1106b3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ArrayPercentilesItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java index e2935db16..3d9e1bf02 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Time; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AutoDateHistogramAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java index a7acfd64f..0c35472c1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AutoDateHistogramAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java index c43ac5cd4..4c122cb80 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AverageAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java index b506beff4..f03ecb6ac 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AverageBucketAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java index 255057c51..90c2b9470 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.AvgAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java index 2f5d5524e..d4959d043 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BoxPlotAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java index 9ffa2ab3f..06573f746 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BoxplotAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java index f75350c05..46043eda6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import jakarta.json.stream.JsonGenerator; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketAggregationBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java index 568c72b43..656e63e80 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketCorrelationAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java index aa2449928..63914d982 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketCorrelationFunction /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java index 757110ccb..e01217af7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketCorrelationFunctionCountCorrelation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java index 87ce14dcf..72e632784 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketCorrelationFunctionCountCorrelationIndicator /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java index 2eaff70a6..5b2d3d29d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketKsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketMetricValueAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketMetricValueAggregate.java index 693afda75..c2c855f38 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketMetricValueAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketMetricValueAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketMetricValueAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java index ceb42b140..db624a98d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketPathAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java index 1781f11a8..82ece1fa0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketScriptAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java index 642f07424..9b2896be1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketSelectorAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java index b24043943..7e39b692a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.SortOptions; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketSortAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Buckets.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Buckets.java index 04d76ab30..9d28c6db9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Buckets.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Buckets.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.Buckets /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsBuilders.java index 59a4456af..4d2c16455 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Buckets} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPath.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPath.java index 4185ad060..a55d5bd11 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPath.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPath.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.BucketsPath /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPathBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPathBuilders.java index 5d4b7d360..5ae0da8e4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPathBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketsPathBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link BucketsPath} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CalendarInterval.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CalendarInterval.java index d5806df82..199d6ccd5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CalendarInterval.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CalendarInterval.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java index 2b56755b5..74b1635bf 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ChiSquareHeuristic /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java index ade01b678..14d18b02b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ChildrenAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java index bdbeb3b20..9c7fd0152 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ChildrenAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java index a4186c33c..c7bff08d6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java index 7643281a6..6d37f9eb8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java index f18ac814d..5600a528f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeAggregationBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java index 6916d1718..f3e7dc6c1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregationSource.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeAggregationSource /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java index d0a4af090..3b3ff8fea 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java index 9baf2bb00..cae91fc5b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Time; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeDateHistogramAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java index 53ded69f6..42f507e59 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeGeoTileGridAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.GeoBounds; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeGeoTileGridAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java index 8fb5ca271..676a502c8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeHistogramAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeHistogramAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java index af5130627..d198f7636 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CompositeTermsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java index 86704d3b9..49009d1e4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CumulativeCardinalityAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java index 1666b2ff5..3bbfa9360 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CumulativeCardinalityAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java index 189eeee1b..9dada9a72 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CumulativeSumAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java index ffa0d9aed..d8f4ef9eb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.CustomCategorizeTextAnalyzer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java index 435ab9362..8a6401a0c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateHistogramAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java index d45361554..dcc79c260 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateHistogramAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java index f5db7fb49..eb925d7c4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateHistogramBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java index 1a41558fc..539c1e932 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateRangeAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java index e0a47460a..3eeeee615 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateRangeAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java index af40b3541..f6e6a8235 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DateRangeExpression /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java index 065619569..168f4dff5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DerivativeAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregation.java index d3fcb5d7b..fa5ff0a1d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DerivativeAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java index 4ac3262dc..21d3957e5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DiversifiedSamplerAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java index 39d1aa757..ad5ed709e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DoubleTermsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java index 0a96a5e43..7e343bf7c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.DoubleTermsBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java index 108da3649..b8be5e5da 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.EwmaModelSettings /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java index ff32272ee..5350f8f8f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.EwmaMovingAverageAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java index cb1739631..d008aacd8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedBounds /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregate.java index a0e22135e..bf0f89543 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedStatsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java index 4bcdd0bea..a3e957afb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedStatsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java index 6020c33d0..9e2f75ece 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedStatsBucketAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java index 3a6a15ec4..6257c90af 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ExtendedStatsBucketAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMath.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMath.java index 897859ac2..b1b6f2bde 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMath.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMath.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FieldDateMath /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMathBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMathBuilders.java index 48ed39dd7..d7b8c2fdc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMathBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FieldDateMathBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link FieldDateMath} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java index bec520510..9b8e65a29 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FilterAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java index 5a51c2c6c..b5cd960c1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FiltersAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java index cc55fda88..72b0cd4a3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FiltersAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java index b3133248b..7d4d92e89 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FiltersBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormatMetricAggregationBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormatMetricAggregationBase.java index fe10f7f95..0f330e398 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormatMetricAggregationBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormatMetricAggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FormatMetricAggregationBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormattableMetricAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormattableMetricAggregation.java index a26217e69..72c4b6aae 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormattableMetricAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FormattableMetricAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FormattableMetricAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java index 511baf251..2d72276ee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FrequentItemSetsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java index e9d9e2d1f..d44302a5f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FrequentItemSetsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java index 2bb435b06..ce1e1fd85 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FrequentItemSetsBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java index 3439f164f..fd444596d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,11 +31,25 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.String; -import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.FrequentItemSetsField /** @@ -52,17 +62,19 @@ public class FrequentItemSetsField implements JsonpSerializable { private final String field; - private final List exclude; + @Nullable + private final TermsExclude exclude; - private final List include; + @Nullable + private final TermsInclude include; // --------------------------------------------------------------------------------------------- private FrequentItemSetsField(Builder builder) { this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); - this.exclude = ApiTypeHelper.unmodifiable(builder.exclude); - this.include = ApiTypeHelper.unmodifiable(builder.include); + this.exclude = builder.exclude; + this.include = builder.include; } @@ -83,7 +95,8 @@ public final String field() { *

* API name: {@code exclude} */ - public final List exclude() { + @Nullable + public final TermsExclude exclude() { return this.exclude; } @@ -93,7 +106,8 @@ public final List exclude() { *

* API name: {@code include} */ - public final List include() { + @Nullable + public final TermsInclude include() { return this.include; } @@ -111,24 +125,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("field"); generator.write(this.field); - if (ApiTypeHelper.isDefined(this.exclude)) { + if (this.exclude != null) { generator.writeKey("exclude"); - generator.writeStartArray(); - for (String item0 : this.exclude) { - generator.write(item0); - - } - generator.writeEnd(); + this.exclude.serialize(generator, mapper); } - if (ApiTypeHelper.isDefined(this.include)) { + if (this.include != null) { generator.writeKey("include"); - generator.writeStartArray(); - for (String item0 : this.include) { - generator.write(item0); - - } - generator.writeEnd(); + this.include.serialize(generator, mapper); } @@ -151,10 +155,10 @@ public static class Builder extends WithJsonObjectBuilderBase private String field; @Nullable - private List exclude; + private TermsExclude exclude; @Nullable - private List include; + private TermsInclude include; /** * Required - API name: {@code field} @@ -169,11 +173,9 @@ public final Builder field(String value) { * exact terms. *

* API name: {@code exclude} - *

- * Adds all elements of list to exclude. */ - public final Builder exclude(List list) { - this.exclude = _listAddAll(this.exclude, list); + public final Builder exclude(@Nullable TermsExclude value) { + this.exclude = value; return this; } @@ -182,12 +184,9 @@ public final Builder exclude(List list) { * exact terms. *

* API name: {@code exclude} - *

- * Adds one or more values to exclude. */ - public final Builder exclude(String value, String... values) { - this.exclude = _listAdd(this.exclude, value, values); - return this; + public final Builder exclude(Function> fn) { + return this.exclude(fn.apply(new TermsExclude.Builder()).build()); } /** @@ -195,11 +194,9 @@ public final Builder exclude(String value, String... values) { * exact terms. *

* API name: {@code include} - *

- * Adds all elements of list to include. */ - public final Builder include(List list) { - this.include = _listAddAll(this.include, list); + public final Builder include(@Nullable TermsInclude value) { + this.include = value; return this; } @@ -208,12 +205,9 @@ public final Builder include(List list) { * exact terms. *

* API name: {@code include} - *

- * Adds one or more values to include. */ - public final Builder include(String value, String... values) { - this.include = _listAdd(this.include, value, values); - return this; + public final Builder include(Function> fn) { + return this.include(fn.apply(new TermsInclude.Builder()).build()); } @Override @@ -245,10 +239,8 @@ public FrequentItemSetsField build() { protected static void setupFrequentItemSetsFieldDeserializer(ObjectDeserializer op) { op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); - op.add(Builder::exclude, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "exclude"); - op.add(Builder::include, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "include"); + op.add(Builder::exclude, TermsExclude._DESERIALIZER, "exclude"); + op.add(Builder::include, TermsInclude._DESERIALIZER, "include"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GapPolicy.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GapPolicy.java index 419a42026..4bf935738 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GapPolicy.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GapPolicy.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see + * Adds all passed values to key. + */ + public final Builder key(String value, String... values) { + this.key = _listAdd(this.key, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.key = _listAddAll(this.key, fieldValues); + return this; + } + + /** + * Required - API name: {@code key} + *

+ * Adds all passed values to key. + */ + public final Builder key(long value, long... values) { + this.key = _listAdd(this.key, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.key = _listAddAll(this.key, fieldValues); + return this; + } + + /** + * Required - API name: {@code key} + *

+ * Adds all passed values to key. + */ + public final Builder key(double value, double... values) { + this.key = _listAdd(this.key, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.key = _listAddAll(this.key, fieldValues); + return this; + } + + /** + * Required - API name: {@code key} + *

+ * Adds all passed values to key. + */ + public final Builder key(boolean value, boolean... values) { + this.key = _listAdd(this.key, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.key = _listAddAll(this.key, fieldValues); + return this; + } + /** * Required - API name: {@code key} *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java index f23d8b773..170de8c9c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.MutualInformationHeuristic /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java index 7a713bc8c..7bdc08556 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.NestedAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java index f05ffea34..a42eef7d7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.NestedAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java index c0321f6e4..0bfb8a2d6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.NormalizeAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeMethod.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeMethod.java index 2f666a1e8..1fefa3867 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeMethod.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeMethod.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java index ba0bd3d20..41c37f834 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PipelineAggregationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.PipelineAggregationBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java index 72de34efd..72ee7748c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RangeAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java index b1f2a8a59..ae98f4715 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RangeAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java index 67accb316..36d36113b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RangeBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java index dd2f7f4ea..6aa5dea0b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RareTermsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java index 760a7eed2..bae249f9b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RateAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java index 7746a7aeb..45c0d609d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.RateAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateMode.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateMode.java index 56950e404..1254f1634 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateMode.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java index 6a38449cf..6df35fae6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ReverseNestedAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java index 06fda3ce2..30399376d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ReverseNestedAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregate.java index 9af3a9754..d8af6f596 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SamplerAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java index 790c34827..f93a9b838 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SamplerAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java index 86937b045..ff947a03b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregationExecutionHint.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see include; + @Nullable + private final TermsInclude include; @Nullable private final EmptyObject jlh; @@ -113,7 +125,7 @@ private SignificantTextAggregation(Builder builder) { this.field = builder.field; this.filterDuplicateText = builder.filterDuplicateText; this.gnd = builder.gnd; - this.include = ApiTypeHelper.unmodifiable(builder.include); + this.include = builder.include; this.jlh = builder.jlh; this.minDocCount = builder.minDocCount; this.mutualInformation = builder.mutualInformation; @@ -217,7 +229,8 @@ public final GoogleNormalizedDistanceHeuristic gnd() { *

* API name: {@code include} */ - public final List include() { + @Nullable + public final TermsInclude include() { return this.include; } @@ -356,14 +369,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.gnd.serialize(generator, mapper); } - if (ApiTypeHelper.isDefined(this.include)) { + if (this.include != null) { generator.writeKey("include"); - generator.writeStartArray(); - for (String item0 : this.include) { - generator.write(item0); - - } - generator.writeEnd(); + this.include.serialize(generator, mapper); } if (this.jlh != null) { @@ -450,7 +458,7 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder include; + private TermsInclude include; @Nullable private EmptyObject jlh; @@ -597,11 +605,9 @@ public final Builder gnd( * Values to include. *

* API name: {@code include} - *

- * Adds all elements of list to include. */ - public final Builder include(List list) { - this.include = _listAddAll(this.include, list); + public final Builder include(@Nullable TermsInclude value) { + this.include = value; return this; } @@ -609,12 +615,9 @@ public final Builder include(List list) { * Values to include. *

* API name: {@code include} - *

- * Adds one or more values to include. */ - public final Builder include(String value, String... values) { - this.include = _listAdd(this.include, value, values); - return this; + public final Builder include(Function> fn) { + return this.include(fn.apply(new TermsInclude.Builder()).build()); } /** @@ -807,8 +810,7 @@ protected static void setupSignificantTextAggregationDeserializer( op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::filterDuplicateText, JsonpDeserializer.booleanDeserializer(), "filter_duplicate_text"); op.add(Builder::gnd, GoogleNormalizedDistanceHeuristic._DESERIALIZER, "gnd"); - op.add(Builder::include, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "include"); + op.add(Builder::include, TermsInclude._DESERIALIZER, "include"); op.add(Builder::jlh, EmptyObject._DESERIALIZER, "jlh"); op.add(Builder::minDocCount, JsonpDeserializer.longDeserializer(), "min_doc_count"); op.add(Builder::mutualInformation, MutualInformationHeuristic._DESERIALIZER, "mutual_information"); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java index 6a4f5a0ca..b870a76ba 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.EmptyObject; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SimpleMovingAverageAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java index 2fdff42a0..ef748e947 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SimpleValueAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleBucketAggregateBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleBucketAggregateBase.java index 3a32c32c0..9664e0ec7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleBucketAggregateBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleBucketAggregateBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.ExternallyTaggedUnion; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SingleBucketAggregateBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleMetricAggregateBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleMetricAggregateBase.java index 28da55a5a..6044cb5b8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleMetricAggregateBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleMetricAggregateBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SingleMetricAggregateBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java index 8fea33e90..4303392ae 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StandardDeviationBounds /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java index 55f4711d9..b6d34c3d9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StandardDeviationBoundsAsString /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregate.java index 4279e3309..e3dc4e1c5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StatsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java index c38516342..5f300140e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StatsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java index dea4572d1..06f98a03d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StatsBucketAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java index 42ecab777..a1f061f07 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StatsBucketAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java index 14a7ac98d..8e3c74945 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StringRareTermsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java index c4ca114bf..7dca9897c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StringRareTermsBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java index 7c6f581f7..dacf4b2c3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StringStatsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java index c7543645e..e7e296cb2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StringStatsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java index 105482df1..2bccc1369 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StringTermsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java index 4480ecfbe..edfe47d60 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.StringTermsBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java index 2ad859823..44df5dd0e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SumAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java index 3250fb8d9..accede1ec 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SumAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java index f9587d22c..b49bd7776 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.SumBucketAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java index 8b3fce9b5..5a0442d3e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TDigest /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java index cc7662d87..4711d34a5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TDigestPercentileRanksAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java index 4bdd7cead..e8fc25abb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TDigestPercentilesAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java index f7ff5731c..026729fa1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TTestAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java index ebab06841..57ffa3df2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TTestAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestType.java index d05c41288..1e9aa752d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsInclude.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsInclude.java index b9f13febc..fac69560f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsInclude.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsInclude.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TermsInclude /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsIncludeBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsIncludeBuilders.java index e034dc70c..613875b04 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsIncludeBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsIncludeBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TermsInclude} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsPartition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsPartition.java index e691a3207..15929d139 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsPartition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsPartition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TermsPartition /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java index 34a1991f3..3fb4ceefc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TestPopulation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java index aff4809ed..0a86676b3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch.core.search.HitsMetadata; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopHitsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java index 40a7e457d..f07d1ae5d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.ScriptField; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopHitsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java index daa20e982..0b768b3ea 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -36,12 +32,28 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopMetrics /** @@ -154,6 +166,66 @@ public final Builder sort(FieldValue value, FieldValue... values) { return this; } + /** + * Required - API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(String value, String... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * Required - API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(long value, long... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * Required - API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(double value, double... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * Required - API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(boolean value, boolean... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + /** * Required - API name: {@code sort} *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java index 37ce0bfdc..4c76b8958 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopMetricsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java index 138eb84c5..e83c3c05c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.SortOptions; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopMetricsAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java index a63e963cd..31ab70f10 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.TopMetricsValue /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java index 282f18ffd..221f09193 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.UnmappedRareTermsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java index deab7ff26..4ab95e382 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.UnmappedSamplerAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java index 538054895..6bded6bc0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.UnmappedSignificantTermsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java index 411826800..005f3ebec 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.UnmappedTermsAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java index fe3c035fb..dfc389349 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ValueCountAggregate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java index cc2e1b79a..dc95726b5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.aggregations.ValueCountAggregation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueType.java index 6d762e60c..97ade1815 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinition.java index e2d49ab99..0a07e43bd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CharFilterDefinition /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionBuilders.java index 8cd7b7963..97d9bc821 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link CharFilterDefinition} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionVariant.java index 319d77bfb..4935ffc2b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterDefinitionVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link CharFilterDefinition} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java index b10684ffc..0c44bd1ea 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CharGroupTokenizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java index eb32dfa35..059445d40 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CommonGramsTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CompoundWordTokenFilterBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CompoundWordTokenFilterBase.java index e6e73bfd5..68cf0afe3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CompoundWordTokenFilterBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CompoundWordTokenFilterBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CompoundWordTokenFilterBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java index 1bded00de..725eaeaa1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.elasticsearch._types.Script; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.ConditionTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java index 4df704c2b..c92cfdf6c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CustomAnalyzer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java index 4f9588168..ba2b6c4fc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.CustomNormalizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadEncoding.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadEncoding.java index 869115c31..dd8d7b596 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadEncoding.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadEncoding.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see */ @JsonpDeserializable -public class IcuTokenizer extends TokenizerBase implements TokenizerDefinitionVariant, TokenFilterDefinitionVariant { +public class IcuTokenizer extends TokenizerBase implements TokenizerDefinitionVariant { private final String ruleFiles; // --------------------------------------------------------------------------------------------- @@ -68,14 +79,6 @@ public TokenizerDefinition.Kind _tokenizerDefinitionKind() { return TokenizerDefinition.Kind.IcuTokenizer; } - /** - * TokenFilterDefinition variant kind. - */ - @Override - public TokenFilterDefinition.Kind _tokenFilterDefinitionKind() { - return TokenFilterDefinition.Kind.IcuTokenizer; - } - /** * Required - API name: {@code rule_files} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformDirection.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformDirection.java index b2a7a6be9..fb10c8887 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformDirection.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformDirection.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LanguageAnalyzer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LanguageAnalyzer.java index 148e53414..af4a4aced 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LanguageAnalyzer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LanguageAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LanguageAnalyzer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java index 0d6f69e13..8b4f51409 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LengthTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java index fc4ee32f2..6169a79d6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LetterTokenizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java index e035c944d..eb0e0468e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LimitTokenCountTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java index 5720801a6..fa1128603 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LowercaseNormalizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java index 139725bd0..c77f9797c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LowercaseTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java index 9e62554b8..cd0560506 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.LowercaseTokenizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java index ea69ce323..8b622f27a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.MappingCharFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java index 8a221a22d..3cb4fbc0c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.MultiplexerTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java index a499fd734..57809563b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.NGramTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java index 77061085b..d7b874c81 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.NGramTokenizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java index a0c6b6562..4e4c0f6a8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.NoriAnalyzer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriDecompoundMode.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriDecompoundMode.java index 69432113a..cd38d998a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriDecompoundMode.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriDecompoundMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see implements ObjectBuilder { + @Nullable private Integer bufferSize; + @Nullable private String delimiter; + @Nullable private String replacement; + @Nullable private Boolean reverse; + @Nullable private Integer skip; /** - * Required - API name: {@code buffer_size} + * API name: {@code buffer_size} */ - public final Builder bufferSize(int value) { + public final Builder bufferSize(@Nullable Integer value) { this.bufferSize = value; return this; } /** - * Required - API name: {@code delimiter} + * API name: {@code delimiter} */ - public final Builder delimiter(String value) { + public final Builder delimiter(@Nullable String value) { this.delimiter = value; return this; } /** - * Required - API name: {@code replacement} + * API name: {@code replacement} */ - public final Builder replacement(String value) { + public final Builder replacement(@Nullable String value) { this.replacement = value; return this; } /** - * Required - API name: {@code reverse} + * API name: {@code reverse} */ - public final Builder reverse(boolean value) { + public final Builder reverse(@Nullable Boolean value) { this.reverse = value; return this; } /** - * Required - API name: {@code skip} + * API name: {@code skip} */ - public final Builder skip(int value) { + public final Builder skip(@Nullable Integer value) { this.skip = value; return this; } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java index 3a5b42bb6..08397529e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.PatternAnalyzer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java index 5b2d569de..f4d8c5d68 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.PatternCaptureTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java index 6386fff7a..32af830bc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.PatternReplaceCharFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java index 81778fbc4..1af9a7b8a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.PatternReplaceTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java index c378d434c..8199d1a5b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.PatternTokenizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticEncoder.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticEncoder.java index 11c709f4c..07d0f4398 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticEncoder.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticEncoder.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilter.java index ad378e8e6..3f1be7568 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBase.java index b245883a7..b7e20e60e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenFilterBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBuilders.java index 5dbb700f9..36876a3cd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TokenFilter} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java index 47f16358a..108e4a1d5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenFilterDefinition /** @@ -89,8 +100,6 @@ public enum Kind implements JsonEnum { IcuNormalizer("icu_normalizer"), - IcuTokenizer("icu_tokenizer"), - IcuTransform("icu_transform"), Kstem("kstem"), @@ -443,23 +452,6 @@ public IcuNormalizationTokenFilter icuNormalizer() { return TaggedUnionUtils.get(this, Kind.IcuNormalizer); } - /** - * Is this variant instance of kind {@code icu_tokenizer}? - */ - public boolean isIcuTokenizer() { - return _kind == Kind.IcuTokenizer; - } - - /** - * Get the {@code icu_tokenizer} variant value. - * - * @throws IllegalStateException - * if the current variant is not of the {@code icu_tokenizer} kind. - */ - public IcuTokenizer icuTokenizer() { - return TaggedUnionUtils.get(this, Kind.IcuTokenizer); - } - /** * Is this variant instance of kind {@code icu_transform}? */ @@ -1243,17 +1235,6 @@ public ObjectBuilder icuNormalizer( return this.icuNormalizer(fn.apply(new IcuNormalizationTokenFilter.Builder()).build()); } - public ObjectBuilder icuTokenizer(IcuTokenizer v) { - this._kind = Kind.IcuTokenizer; - this._value = v; - return this; - } - - public ObjectBuilder icuTokenizer( - Function> fn) { - return this.icuTokenizer(fn.apply(new IcuTokenizer.Builder()).build()); - } - public ObjectBuilder icuTransform(IcuTransformTokenFilter v) { this._kind = Kind.IcuTransform; this._value = v; @@ -1668,7 +1649,6 @@ protected static void setupTokenFilterDefinitionDeserializer(ObjectDeserializer< op.add(Builder::icuCollation, IcuCollationTokenFilter._DESERIALIZER, "icu_collation"); op.add(Builder::icuFolding, IcuFoldingTokenFilter._DESERIALIZER, "icu_folding"); op.add(Builder::icuNormalizer, IcuNormalizationTokenFilter._DESERIALIZER, "icu_normalizer"); - op.add(Builder::icuTokenizer, IcuTokenizer._DESERIALIZER, "icu_tokenizer"); op.add(Builder::icuTransform, IcuTransformTokenFilter._DESERIALIZER, "icu_transform"); op.add(Builder::kstem, KStemTokenFilter._DESERIALIZER, "kstem"); op.add(Builder::keepTypes, KeepTypesTokenFilter._DESERIALIZER, "keep_types"); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java index 2729b8e69..3eadfbbad 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TokenFilterDefinition} variants. */ @@ -282,24 +293,6 @@ public static TokenFilterDefinition icuNormalizer( return builder.build(); } - /** - * Creates a builder for the {@link IcuTokenizer icu_tokenizer} - * {@code TokenFilterDefinition} variant. - */ - public static IcuTokenizer.Builder icuTokenizer() { - return new IcuTokenizer.Builder(); - } - - /** - * Creates a TokenFilterDefinition of the {@link IcuTokenizer icu_tokenizer} - * {@code TokenFilterDefinition} variant. - */ - public static TokenFilterDefinition icuTokenizer(Function> fn) { - TokenFilterDefinition.Builder builder = new TokenFilterDefinition.Builder(); - builder.icuTokenizer(fn.apply(new IcuTokenizer.Builder()).build()); - return builder.build(); - } - /** * Creates a builder for the {@link IcuTransformTokenFilter icu_transform} * {@code TokenFilterDefinition} variant. diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionVariant.java index 300b3d7cd..b52c6c4a2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenFilterDefinitionVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link TokenFilterDefinition} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Tokenizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Tokenizer.java index 551ea6818..028e3e600 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Tokenizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Tokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.Tokenizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBase.java index b4ae6313e..8f5a47d94 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenizerBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBuilders.java index 5cad6c035..983680fc2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Tokenizer} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinition.java index 270dd798f..6c1c9e4cf 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TokenizerDefinition /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionBuilders.java index 40ea87537..3861c49c6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TokenizerDefinition} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionVariant.java index d858803dc..57868aa86 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TokenizerDefinitionVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link TokenizerDefinition} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java index 2f473ecb9..71cc22738 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TrimTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java index c297f59f1..e3d783a77 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.TruncateTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java index 7b27a100c..3781e52e7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.UaxEmailUrlTokenizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java index b3ebaf560..95ea4e631 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.UniqueTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java index 397c6e2d9..7e64d0ba7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.UppercaseTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java index 6618f2993..4cab1b870 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.WhitespaceAnalyzer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java index 47d91b8d4..997a15eee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.WhitespaceTokenizer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java index 895538835..e6b92b46e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.WordDelimiterGraphTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java index 0d6c11a5a..fb98273e5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.analysis; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.analysis.WordDelimiterTokenFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java index 1e096fd88..6dbbca3a4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.AggregateMetricDoubleProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java index 062331a74..66c901f75 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.AllField /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java index 98c37842a..e8f26b4b7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.BinaryProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java index 847298073..06967d0e8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch.indices.NumericFielddata; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.BooleanProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ByteNumberProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ByteNumberProperty.java index 0e68ee36e..107a56fef 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ByteNumberProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ByteNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.ByteNumberProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java index d2740f681..9519b6f68 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.CompletionProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java index cb8a3cbaa..10aa443e5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonData; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.ConstantKeywordProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CorePropertyBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CorePropertyBase.java index c72887473..fef280357 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CorePropertyBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CorePropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.CorePropertyBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java index f5663bbaf..05e315db7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DataStreamTimestamp /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java index ebf45d55d..75e8993e4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DateNanosProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateProperty.java index a0aba2e12..200dd9202 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch.indices.NumericFielddata; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DateProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateRangeProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateRangeProperty.java index e128a89b5..bafeed5dd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateRangeProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DateRangeProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java index 623af03dd..b25057df5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DenseVectorIndexOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java index 2d2ee7345..ff85c4f63 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -28,7 +24,6 @@ import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; @@ -38,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DenseVectorProperty /** @@ -48,7 +58,8 @@ */ @JsonpDeserializable public class DenseVectorProperty extends PropertyBase implements PropertyVariant { - private final int dims; + @Nullable + private final Integer dims; @Nullable private final String similarity; @@ -64,7 +75,7 @@ public class DenseVectorProperty extends PropertyBase implements PropertyVariant private DenseVectorProperty(Builder builder) { super(builder); - this.dims = ApiTypeHelper.requireNonNull(builder.dims, this, "dims"); + this.dims = builder.dims; this.similarity = builder.similarity; this.index = builder.index; this.indexOptions = builder.indexOptions; @@ -84,9 +95,10 @@ public Property.Kind _propertyKind() { } /** - * Required - API name: {@code dims} + * API name: {@code dims} */ - public final int dims() { + @Nullable + public final Integer dims() { return this.dims; } @@ -118,9 +130,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "dense_vector"); super.serializeInternal(generator, mapper); - generator.writeKey("dims"); - generator.write(this.dims); + if (this.dims != null) { + generator.writeKey("dims"); + generator.write(this.dims); + } if (this.similarity != null) { generator.writeKey("similarity"); generator.write(this.similarity); @@ -148,6 +162,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends PropertyBase.AbstractBuilder implements ObjectBuilder { + @Nullable private Integer dims; @Nullable @@ -160,9 +175,9 @@ public static class Builder extends PropertyBase.AbstractBuilder private DenseVectorIndexOptions indexOptions; /** - * Required - API name: {@code dims} + * API name: {@code dims} */ - public final Builder dims(int value) { + public final Builder dims(@Nullable Integer value) { this.dims = value; return this; } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DocValuesPropertyBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DocValuesPropertyBase.java index abe737d3d..e4951f0c7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DocValuesPropertyBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DocValuesPropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DocValuesPropertyBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java index 208e96189..ec3c92e18 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DoubleNumberProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java index 0731bcee5..0f6c63040 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.DoubleRangeProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicMapping.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicMapping.java index fbbd17d2f..8ad82f3bd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicMapping.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicMapping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; @@ -29,6 +25,21 @@ import co.elastic.clients.json.JsonpMapper; import jakarta.json.stream.JsonGenerator; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API @@ -116,6 +127,8 @@ public enum FieldType implements JsonEnum { DenseVector("dense_vector"), + SparseVector("sparse_vector"), + MatchOnlyText("match_only_text"), ; diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java index 65c31e308..d3e5d2024 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.FlattenedProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java index 8c4fa0a74..5834ff284 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.FloatNumberProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java index 9478c0c76..750247656 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.FloatRangeProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoOrientation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoOrientation.java index d9e493141..769276ffc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoOrientation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoOrientation.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see > fn) { + return this.script(fn.apply(new Script.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -204,6 +306,9 @@ protected static void setupGeoPointPropertyDeserializer(ObjectDeserializerAPI diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HalfFloatNumberProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HalfFloatNumberProperty.java index b3103bc8f..f64684660 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HalfFloatNumberProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HalfFloatNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.HalfFloatNumberProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java index 7f816c50f..f20c76f04 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.HistogramProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexField.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexField.java index 8d3e59727..3bcae0b83 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexField.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IndexField /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexOptions.java index 5b1d71fc3..3431165bb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IndexOptions.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java index 5906b6629..2d038d824 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IntegerNumberProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java index 050481bdf..d98b7b117 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IntegerRangeProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java index 2edb1727b..264101c82 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch._types.Script; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IpProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpRangeProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpRangeProperty.java index 35ade3ea1..c9b074aa6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpRangeProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.IpRangeProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java index 973573482..24a820e72 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.JoinProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java index 299b1757b..1442a3279 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.KeywordProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongNumberProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongNumberProperty.java index 87c2bfe4f..f53cb87a0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongNumberProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongNumberProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.LongNumberProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java index ff289b4fc..72566225c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.LongRangeProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java index 4e26080fb..e74c6c88e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.MatchOnlyTextProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchType.java index 4f50aaa6b..465e1b6eb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java index 3bcf85241..4fa64a614 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.Murmur3HashProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java index a9204cbf5..203b4395a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.NestedProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NumberPropertyBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NumberPropertyBase.java index add816ebc..474f3aef8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NumberPropertyBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NumberPropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch._types.Script; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.NumberPropertyBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java index 3540d329b..4d281df08 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.ObjectProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/OnScriptError.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/OnScriptError.java index 42a1b12a3..0e6776083 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/OnScriptError.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/OnScriptError.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java index f5373269a..bd3625e41 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.PercolatorProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java index 2a6a679ed..844e66ce8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.PointProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java index 38551035e..327e9fad0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.Property /** @@ -143,6 +154,8 @@ public enum Kind implements JsonEnum { Short("short"), + SparseVector("sparse_vector"), + Text("text"), TokenCount("token_count"), @@ -915,6 +928,23 @@ public ShortNumberProperty short_() { return TaggedUnionUtils.get(this, Kind.Short); } + /** + * Is this variant instance of kind {@code sparse_vector}? + */ + public boolean isSparseVector() { + return _kind == Kind.SparseVector; + } + + /** + * Get the {@code sparse_vector} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code sparse_vector} kind. + */ + public SparseVectorProperty sparseVector() { + return TaggedUnionUtils.get(this, Kind.SparseVector); + } + /** * Is this variant instance of kind {@code text}? */ @@ -1490,6 +1520,17 @@ public ObjectBuilder short_( return this.short_(fn.apply(new ShortNumberProperty.Builder()).build()); } + public ObjectBuilder sparseVector(SparseVectorProperty v) { + this._kind = Kind.SparseVector; + this._value = v; + return this; + } + + public ObjectBuilder sparseVector( + Function> fn) { + return this.sparseVector(fn.apply(new SparseVectorProperty.Builder()).build()); + } + public ObjectBuilder text(TextProperty v) { this._kind = Kind.Text; this._value = v; @@ -1609,6 +1650,7 @@ protected static void setupPropertyDeserializer(ObjectDeserializer op) op.add(Builder::searchAsYouType, SearchAsYouTypeProperty._DESERIALIZER, "search_as_you_type"); op.add(Builder::shape, ShapeProperty._DESERIALIZER, "shape"); op.add(Builder::short_, ShortNumberProperty._DESERIALIZER, "short"); + op.add(Builder::sparseVector, SparseVectorProperty._DESERIALIZER, "sparse_vector"); op.add(Builder::text, TextProperty._DESERIALIZER, "text"); op.add(Builder::tokenCount, TokenCountProperty._DESERIALIZER, "token_count"); op.add(Builder::unsignedLong, UnsignedLongNumberProperty._DESERIALIZER, "unsigned_long"); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBase.java index 8164f9b66..bb366a817 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.PropertyBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java index 6c8ad3a6f..0c2a12553 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Property} variants. */ @@ -773,6 +784,25 @@ public static Property short_(Function> fn) { + Property.Builder builder = new Property.Builder(); + builder.sparseVector(fn.apply(new SparseVectorProperty.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link TextProperty text} {@code Property} variant. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyVariant.java index 133475261..485c6af6f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyVariant.java @@ -17,14 +17,25 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpSerializable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Property} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RangePropertyBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RangePropertyBase.java index 8a9d37afa..74b06609b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RangePropertyBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RangePropertyBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RangePropertyBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeatureProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeatureProperty.java index dba48d6fa..79803e323 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeatureProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeatureProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RankFeatureProperty /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java index fe6e5e3e6..50ed41633 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -30,8 +26,25 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; import java.util.Objects; import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- // typedef: _types.mapping.RankFeaturesProperty @@ -43,11 +56,16 @@ */ @JsonpDeserializable public class RankFeaturesProperty extends PropertyBase implements PropertyVariant { + @Nullable + private final Boolean positiveScoreImpact; + // --------------------------------------------------------------------------------------------- private RankFeaturesProperty(Builder builder) { super(builder); + this.positiveScoreImpact = builder.positiveScoreImpact; + } public static RankFeaturesProperty of(Function> fn) { @@ -62,10 +80,23 @@ public Property.Kind _propertyKind() { return Property.Kind.RankFeatures; } + /** + * API name: {@code positive_score_impact} + */ + @Nullable + public final Boolean positiveScoreImpact() { + return this.positiveScoreImpact; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "rank_features"); super.serializeInternal(generator, mapper); + if (this.positiveScoreImpact != null) { + generator.writeKey("positive_score_impact"); + generator.write(this.positiveScoreImpact); + + } } @@ -78,6 +109,17 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends PropertyBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean positiveScoreImpact; + + /** + * API name: {@code positive_score_impact} + */ + public final Builder positiveScoreImpact(@Nullable Boolean value) { + this.positiveScoreImpact = value; + return this; + } + @Override protected Builder self() { return this; @@ -106,6 +148,7 @@ public RankFeaturesProperty build() { protected static void setupRankFeaturesPropertyDeserializer(ObjectDeserializer op) { PropertyBase.setupPropertyBaseDeserializer(op); + op.add(Builder::positiveScoreImpact, JsonpDeserializer.booleanDeserializer(), "positive_score_impact"); op.ignore("type"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java index d94709311..750a6ad37 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RoutingField /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java index fb2a8a1b4..27c57ea8f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.elasticsearch._types.Script; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RuntimeField /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java index d2cde31ce..f7f37a43d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.RuntimeFieldFetchFields /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java index 693a98c35..d483387ae 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API + * specification + */ +@JsonpDeserializable +public class SparseVectorProperty extends PropertyBase implements PropertyVariant { + // --------------------------------------------------------------------------------------------- + + private SparseVectorProperty(Builder builder) { + super(builder); + + } + + public static SparseVectorProperty of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Property variant kind. + */ + @Override + public Property.Kind _propertyKind() { + return Property.Kind.SparseVector; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "sparse_vector"); + super.serializeInternal(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SparseVectorProperty}. + */ + + public static class Builder extends PropertyBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SparseVectorProperty}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SparseVectorProperty build() { + _checkSingleUse(); + + return new SparseVectorProperty(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SparseVectorProperty} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SparseVectorProperty::setupSparseVectorPropertyDeserializer); + + protected static void setupSparseVectorPropertyDeserializer(ObjectDeserializer op) { + PropertyBase.setupPropertyBaseDeserializer(op); + + op.ignore("type"); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java index eef094065..6abc51ba1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.mapping.SuggestContext /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TermVectorOption.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TermVectorOption.java index 758cbb155..5bfafa17b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TermVectorOption.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TermVectorOption.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.mapping; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see true to ignore an unmapped field and not match any + * documents for this query. Set to false to throw an exception if + * the field is not mapped. + *

+ * API name: {@code ignore_unmapped} + */ + @Nullable + public final Boolean ignoreUnmapped() { + return this.ignoreUnmapped; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey(this.field); this.location.serialize(generator, mapper); @@ -148,6 +176,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("validation_method"); this.validationMethod.serialize(generator, mapper); } + if (this.ignoreUnmapped != null) { + generator.writeKey("ignore_unmapped"); + generator.write(this.ignoreUnmapped); + + } } @@ -193,6 +226,9 @@ public final Builder location(Functiontrue to ignore an unmapped field and not match any + * documents for this query. Set to false to throw an exception if + * the field is not mapped. + *

+ * API name: {@code ignore_unmapped} + */ + public final Builder ignoreUnmapped(@Nullable Boolean value) { + this.ignoreUnmapped = value; + return this; + } + @Override protected Builder self() { return this; @@ -258,6 +306,7 @@ protected static void setupGeoDistanceQueryDeserializer(ObjectDeserializer { builder.field(name); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoExecution.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoExecution.java index 3b6eb28cd..f54eca26f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoExecution.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoExecution.java @@ -17,16 +17,27 @@ * 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.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java index bf6c52eab..a2869693b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.VersionType; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.LikeDocument /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java index 6e71ae50d..6f7e3bf13 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchAllQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java index 663313730..e905e67e2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchBoolPrefixQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java index a0206a3e7..312b66b1f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchNoneQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java index 561818081..af98edf8b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchPhrasePrefixQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java index 44fe630d4..ee3340645 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchPhraseQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java index 172c36fb5..1bd44d100 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MatchQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java index 812e6df80..d7a107e34 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.VersionType; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MoreLikeThisQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java index dc1df0b8f..243b4ecbf 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.MultiMatchQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java index 8d6344c4b..df1a630e9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiValueMode.java @@ -17,16 +17,27 @@ * 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.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java index 3e08a410c..2d09f63fa 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.ParentIdQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java index 623989d37..2f2506eb2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java @@ -17,10 +17,6 @@ * 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.JsonData; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.PercolateQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java index bafb52e4e..5e3850517 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.PinnedDoc /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java index 1a79631da..844a4723a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQuery.java @@ -17,10 +17,6 @@ * 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.JsonEnum; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.PinnedQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryBuilders.java index 77998b8d2..5aa9adb4a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link PinnedQuery} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryVariant.java index c36df488b..39e4cbc6e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedQueryVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link PinnedQuery} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java index 402711b7b..c175451ea 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.PrefixQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index ec61bd5fd..2d41eee0e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java @@ -17,12 +17,9 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch._types.KnnQuery; import co.elastic.clients.elasticsearch._types.aggregations.Aggregation; import co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant; import co.elastic.clients.json.JsonData; @@ -45,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.QueryContainer /** @@ -104,6 +116,8 @@ public enum Kind implements JsonEnum { Intervals("intervals"), + Knn("knn"), + Match("match"), MatchAll("match_all"), @@ -174,6 +188,8 @@ public enum Kind implements JsonEnum { TextExpansion("text_expansion"), + WeightedTokens("weighted_tokens"), + Wildcard("wildcard"), Wrapper("wrapper"), @@ -547,6 +563,23 @@ public IntervalsQuery intervals() { return TaggedUnionUtils.get(this, Kind.Intervals); } + /** + * Is this variant instance of kind {@code knn}? + */ + public boolean isKnn() { + return _kind == Kind.Knn; + } + + /** + * Get the {@code knn} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code knn} kind. + */ + public KnnQuery knn() { + return TaggedUnionUtils.get(this, Kind.Knn); + } + /** * Is this variant instance of kind {@code match}? */ @@ -1147,6 +1180,24 @@ public TextExpansionQuery textExpansion() { return TaggedUnionUtils.get(this, Kind.TextExpansion); } + /** + * Is this variant instance of kind {@code weighted_tokens}? + */ + public boolean isWeightedTokens() { + return _kind == Kind.WeightedTokens; + } + + /** + * Get the {@code weighted_tokens} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code weighted_tokens} + * kind. + */ + public WeightedTokensQuery weightedTokens() { + return TaggedUnionUtils.get(this, Kind.WeightedTokens); + } + /** * Is this variant instance of kind {@code wildcard}? */ @@ -1442,6 +1493,16 @@ public ObjectBuilder intervals(Function knn(KnnQuery v) { + this._kind = Kind.Knn; + this._value = v; + return this; + } + + public ObjectBuilder knn(Function> fn) { + return this.knn(fn.apply(new KnnQuery.Builder()).build()); + } + public ObjectBuilder match(MatchQuery v) { this._kind = Kind.Match; this._value = v; @@ -1804,6 +1865,17 @@ public ObjectBuilder textExpansion( return this.textExpansion(fn.apply(new TextExpansionQuery.Builder()).build()); } + public ObjectBuilder weightedTokens(WeightedTokensQuery v) { + this._kind = Kind.WeightedTokens; + this._value = v; + return this; + } + + public ObjectBuilder weightedTokens( + Function> fn) { + return this.weightedTokens(fn.apply(new WeightedTokensQuery.Builder()).build()); + } + public ObjectBuilder wildcard(WildcardQuery v) { this._kind = Kind.Wildcard; this._value = v; @@ -1877,6 +1949,7 @@ protected static void setupQueryDeserializer(ObjectDeserializer op) { op.add(Builder::hasParent, HasParentQuery._DESERIALIZER, "has_parent"); op.add(Builder::ids, IdsQuery._DESERIALIZER, "ids"); op.add(Builder::intervals, IntervalsQuery._DESERIALIZER, "intervals"); + op.add(Builder::knn, KnnQuery._DESERIALIZER, "knn"); op.add(Builder::match, MatchQuery._DESERIALIZER, "match"); op.add(Builder::matchAll, MatchAllQuery._DESERIALIZER, "match_all"); op.add(Builder::matchBoolPrefix, MatchBoolPrefixQuery._DESERIALIZER, "match_bool_prefix"); @@ -1912,6 +1985,7 @@ protected static void setupQueryDeserializer(ObjectDeserializer op) { op.add(Builder::terms, TermsQuery._DESERIALIZER, "terms"); op.add(Builder::termsSet, TermsSetQuery._DESERIALIZER, "terms_set"); op.add(Builder::textExpansion, TextExpansionQuery._DESERIALIZER, "text_expansion"); + op.add(Builder::weightedTokens, WeightedTokensQuery._DESERIALIZER, "weighted_tokens"); op.add(Builder::wildcard, WildcardQuery._DESERIALIZER, "wildcard"); op.add(Builder::wrapper, WrapperQuery._DESERIALIZER, "wrapper"); op.add(Builder::type, TypeQuery._DESERIALIZER, "type"); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java index 08a644b63..329c0274a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.QueryBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java index 3159ed383..292600e20 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java @@ -17,15 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch._types.KnnQuery; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Query} variants. */ @@ -344,6 +356,22 @@ public static Query intervals(Function> fn) { + Query.Builder builder = new Query.Builder(); + builder.knn(fn.apply(new KnnQuery.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link MatchQuery match} {@code Query} variant. */ @@ -948,6 +976,24 @@ public static Query textExpansion(Function> fn) { + Query.Builder builder = new Query.Builder(); + builder.weightedTokens(fn.apply(new WeightedTokensQuery.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link WildcardQuery wildcard} {@code Query} * variant. diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java index a52a74059..b18899695 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.QueryStringQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryVariant.java index 3acd0322a..ee3c15ce1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Query} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java index 9eba95bbb..688e8782f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.RandomScoreFunction /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java index de209a9d9..162b789a6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java @@ -17,10 +17,6 @@ * 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.JsonData; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.RangeQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java index c92100207..07b4adb69 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.RangeQueryBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java index 37ded879c..b892d0c63 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeRelation.java @@ -17,16 +17,27 @@ * 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.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java index c15a5cb29..5d4895db3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.Script; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.TermsSetQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java index f47f05b29..3131f9a2c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.TextExpansionQuery /** @@ -53,6 +64,9 @@ public class TextExpansionQuery extends QueryBase implements QueryVariant { private final String modelText; + @Nullable + private final TokenPruningConfig pruningConfig; + // --------------------------------------------------------------------------------------------- private TextExpansionQuery(Builder builder) { @@ -61,6 +75,7 @@ private TextExpansionQuery(Builder builder) { this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); this.modelText = ApiTypeHelper.requireNonNull(builder.modelText, this, "modelText"); + this.pruningConfig = builder.pruningConfig; } @@ -101,6 +116,16 @@ public final String modelText() { return this.modelText; } + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + @Nullable + public final TokenPruningConfig pruningConfig() { + return this.pruningConfig; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeStartObject(this.field); @@ -111,6 +136,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("model_text"); generator.write(this.modelText); + if (this.pruningConfig != null) { + generator.writeKey("pruning_config"); + this.pruningConfig.serialize(generator, mapper); + + } + generator.writeEnd(); } @@ -138,6 +169,9 @@ public final Builder field(String value) { private String modelText; + @Nullable + private TokenPruningConfig pruningConfig; + /** * Required - The text expansion NLP model to use *

@@ -158,6 +192,25 @@ public final Builder modelText(String value) { return this; } + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + public final Builder pruningConfig(@Nullable TokenPruningConfig value) { + this.pruningConfig = value; + return this; + } + + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + public final Builder pruningConfig(Function> fn) { + return this.pruningConfig(fn.apply(new TokenPruningConfig.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -188,6 +241,7 @@ protected static void setupTextExpansionQueryDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class TokenPruningConfig implements JsonpSerializable { + @Nullable + private final Integer tokensFreqRatioThreshold; + + @Nullable + private final Float tokensWeightThreshold; + + @Nullable + private final Boolean onlyScorePrunedTokens; + + // --------------------------------------------------------------------------------------------- + + private TokenPruningConfig(Builder builder) { + + this.tokensFreqRatioThreshold = builder.tokensFreqRatioThreshold; + this.tokensWeightThreshold = builder.tokensWeightThreshold; + this.onlyScorePrunedTokens = builder.onlyScorePrunedTokens; + + } + + public static TokenPruningConfig of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Tokens whose frequency is more than this threshold times the average + * frequency of all tokens in the specified field are considered outliers and + * pruned. + *

+ * API name: {@code tokens_freq_ratio_threshold} + */ + @Nullable + public final Integer tokensFreqRatioThreshold() { + return this.tokensFreqRatioThreshold; + } + + /** + * Tokens whose weight is less than this threshold are considered nonsignificant + * and pruned. + *

+ * API name: {@code tokens_weight_threshold} + */ + @Nullable + public final Float tokensWeightThreshold() { + return this.tokensWeightThreshold; + } + + /** + * Whether to only score pruned tokens, vs only scoring kept tokens. + *

+ * API name: {@code only_score_pruned_tokens} + */ + @Nullable + public final Boolean onlyScorePrunedTokens() { + return this.onlyScorePrunedTokens; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.tokensFreqRatioThreshold != null) { + generator.writeKey("tokens_freq_ratio_threshold"); + generator.write(this.tokensFreqRatioThreshold); + + } + if (this.tokensWeightThreshold != null) { + generator.writeKey("tokens_weight_threshold"); + generator.write(this.tokensWeightThreshold); + + } + if (this.onlyScorePrunedTokens != null) { + generator.writeKey("only_score_pruned_tokens"); + generator.write(this.onlyScorePrunedTokens); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TokenPruningConfig}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private Integer tokensFreqRatioThreshold; + + @Nullable + private Float tokensWeightThreshold; + + @Nullable + private Boolean onlyScorePrunedTokens; + + /** + * Tokens whose frequency is more than this threshold times the average + * frequency of all tokens in the specified field are considered outliers and + * pruned. + *

+ * API name: {@code tokens_freq_ratio_threshold} + */ + public final Builder tokensFreqRatioThreshold(@Nullable Integer value) { + this.tokensFreqRatioThreshold = value; + return this; + } + + /** + * Tokens whose weight is less than this threshold are considered nonsignificant + * and pruned. + *

+ * API name: {@code tokens_weight_threshold} + */ + public final Builder tokensWeightThreshold(@Nullable Float value) { + this.tokensWeightThreshold = value; + return this; + } + + /** + * Whether to only score pruned tokens, vs only scoring kept tokens. + *

+ * API name: {@code only_score_pruned_tokens} + */ + public final Builder onlyScorePrunedTokens(@Nullable Boolean value) { + this.onlyScorePrunedTokens = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TokenPruningConfig}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TokenPruningConfig build() { + _checkSingleUse(); + + return new TokenPruningConfig(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TokenPruningConfig} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TokenPruningConfig::setupTokenPruningConfigDeserializer); + + protected static void setupTokenPruningConfigDeserializer(ObjectDeserializer op) { + + op.add(Builder::tokensFreqRatioThreshold, JsonpDeserializer.integerDeserializer(), + "tokens_freq_ratio_threshold"); + op.add(Builder::tokensWeightThreshold, JsonpDeserializer.floatDeserializer(), "tokens_weight_threshold"); + op.add(Builder::onlyScorePrunedTokens, JsonpDeserializer.booleanDeserializer(), "only_score_pruned_tokens"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java index e3e1e3cfb..980e72f66 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.TypeQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java new file mode 100644 index 000000000..926cdfa2e --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java @@ -0,0 +1,247 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Float; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.query_dsl.WeightedTokensQuery + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class WeightedTokensQuery extends QueryBase implements QueryVariant { + // Single key dictionary + private final String field; + + private final Map tokens; + + @Nullable + private final TokenPruningConfig pruningConfig; + + // --------------------------------------------------------------------------------------------- + + private WeightedTokensQuery(Builder builder) { + super(builder); + this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); + + this.tokens = ApiTypeHelper.unmodifiableRequired(builder.tokens, this, "tokens"); + this.pruningConfig = builder.pruningConfig; + + } + + public static WeightedTokensQuery of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Query variant kind. + */ + @Override + public Query.Kind _queryKind() { + return Query.Kind.WeightedTokens; + } + + /** + * Required - The target field + */ + public final String field() { + return this.field; + } + + /** + * Required - The tokens representing this query + *

+ * API name: {@code tokens} + */ + public final Map tokens() { + return this.tokens; + } + + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + @Nullable + public final TokenPruningConfig pruningConfig() { + return this.pruningConfig; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(this.field); + + super.serializeInternal(generator, mapper); + if (ApiTypeHelper.isDefined(this.tokens)) { + generator.writeKey("tokens"); + generator.writeStartObject(); + for (Map.Entry item0 : this.tokens.entrySet()) { + generator.writeKey(item0.getKey()); + generator.write(item0.getValue()); + + } + generator.writeEnd(); + + } + if (this.pruningConfig != null) { + generator.writeKey("pruning_config"); + this.pruningConfig.serialize(generator, mapper); + + } + + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link WeightedTokensQuery}. + */ + + public static class Builder extends QueryBase.AbstractBuilder + implements + ObjectBuilder { + private String field; + + /** + * Required - The target field + */ + public final Builder field(String value) { + this.field = value; + return this; + } + + private Map tokens; + + @Nullable + private TokenPruningConfig pruningConfig; + + /** + * Required - The tokens representing this query + *

+ * API name: {@code tokens} + *

+ * Adds all entries of map to tokens. + */ + public final Builder tokens(Map map) { + this.tokens = _mapPutAll(this.tokens, map); + return this; + } + + /** + * Required - The tokens representing this query + *

+ * API name: {@code tokens} + *

+ * Adds an entry to tokens. + */ + public final Builder tokens(String key, Float value) { + this.tokens = _mapPut(this.tokens, key, value); + return this; + } + + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + public final Builder pruningConfig(@Nullable TokenPruningConfig value) { + this.pruningConfig = value; + return this; + } + + /** + * Token pruning configurations + *

+ * API name: {@code pruning_config} + */ + public final Builder pruningConfig(Function> fn) { + return this.pruningConfig(fn.apply(new TokenPruningConfig.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link WeightedTokensQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public WeightedTokensQuery build() { + _checkSingleUse(); + + return new WeightedTokensQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link WeightedTokensQuery} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, WeightedTokensQuery::setupWeightedTokensQueryDeserializer); + + protected static void setupWeightedTokensQueryDeserializer(ObjectDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::tokens, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.floatDeserializer()), + "tokens"); + op.add(Builder::pruningConfig, TokenPruningConfig._DESERIALIZER, "pruning_config"); + + op.setKey(Builder::field, JsonpDeserializer.stringDeserializer()); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java index dacdde926..50c6811a6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.WildcardQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java index 7c9c4bda6..1cf6bf711 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _types.query_dsl.WrapperQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java index a31cebe61..3ab4ff7cb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java @@ -17,16 +17,27 @@ * 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.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see + * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * API name: {@code search_after} *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java index 8363e8555..4add78752 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.async_search; import co.elastic.clients.json.JsonpDeserializable; @@ -34,6 +30,21 @@ import java.util.function.Function; import java.util.function.Supplier; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: async_search.submit.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java index a8764d67c..839aa6767 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/async_search/status/StatusResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.async_search.status; import co.elastic.clients.elasticsearch._types.ClusterStatistics; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: async_search.status.StatusResponseBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java index 65b2e10f8..b8c87dd37 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.aliases.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java index 3a343e897..41ae79735 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.aliases.AliasesRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.aliases.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatAnomalyDetectorColumn.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatAnomalyDetectorColumn.java index 23e903487..2a33120c3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatAnomalyDetectorColumn.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatAnomalyDetectorColumn.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatDfaColumn.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatDfaColumn.java index 982307058..118a105d9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatDfaColumn.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatDfaColumn.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatRequestBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatRequestBase.java index 14948ca5d..d02546520 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatRequestBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatRequestBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.RequestBase; @@ -33,6 +29,21 @@ import jakarta.json.stream.JsonGenerator; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat._types.CatRequestBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatTrainedModelsColumn.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatTrainedModelsColumn.java index f85001ca1..1c36d2129 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatTrainedModelsColumn.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CatTrainedModelsColumn.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java index 56f1f6de9..4ef3071fb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.component_templates.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesResponse.java index d168f628e..15114b523 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.component_templates.ComponentTemplate; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.component_templates.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java index ab705c297..52bf74d58 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.count.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CountResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CountResponse.java index af802ef7a..78cfd4557 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CountResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/CountResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.count.CountRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.count.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java index b648bfbb3..9bf346b0e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the cat namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java index 104eabd91..d1a2bbbfa 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the cat namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java index 8a29eac44..31ba6cd91 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -37,6 +33,21 @@ import java.util.Map; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.help.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/HelpResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/HelpResponse.java index aa28b4005..0edc100ee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/HelpResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/HelpResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.help.HelpRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.help.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java index 43bc9771d..d6850e2cc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.indices.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesResponse.java index 17d4316a9..f0e2558ec 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.indices.IndicesRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.indices.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java index e1906df5c..dd8b956b4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_data_frame_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsResponse.java index 81332ff25..b547f32f9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_data_frame_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java index 28c9c5b15..965c5f017 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_datafeeds.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsResponse.java index 7e89a3b54..1d35967b1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsResponse.java @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_datafeeds.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java index e012626ce..9060217ce 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_jobs.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsResponse.java index 05db9235d..7a1de8ca0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsResponse.java @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_jobs.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java index 627354866..c6979c9e6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.Bytes; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_trained_models.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsResponse.java index f64e68c20..3856ece04 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsResponse.java @@ -17,10 +17,6 @@ * 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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_trained_models.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java index aa26799fc..57f5590ae 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.transforms.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsResponse.java index 7cd36718e..64572a96a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch.cat.transforms.TransformsRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.transforms.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java index b64855b6d..31ca2eb7a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.aliases; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.aliases.AliasesRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java index dbd3c72bd..153c8374d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.component_templates; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.component_templates.ComponentTemplate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java index 8d71e1f70..0064ae52a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.count; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.count.CountRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/help/HelpRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/help/HelpRecord.java index caabffaa7..5c193bb45 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/help/HelpRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/help/HelpRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.help; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.help.HelpRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java index 86f24d762..82fac33f4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.indices.IndicesRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java index 213fe29fb..9b5047c63 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_data_frame_analytics.DataFrameAnalyticsRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java index ef262d424..2e46bcda7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.ml_datafeeds; import co.elastic.clients.elasticsearch.ml.DatafeedState; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_datafeeds.DatafeedsRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java index b3094fd46..28bdab4dc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.ml_jobs; import co.elastic.clients.elasticsearch.ml.CategorizationStatus; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_jobs.JobsRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java index 59bcf7112..299e075f2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java @@ -17,10 +17,6 @@ * 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.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.ml_trained_models.TrainedModelsRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java index 02d49daf1..ea0f436fb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cat.transforms; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cat.transforms.TransformsRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java index 3bc667697..99dcfaebb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch._types.ClusterInfoTarget; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.info.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoResponse.java index ff3ccc4d8..9ca814ee3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch.nodes.Http; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.info.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplate.java index 792b94614..14afcc6ef 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster._types.ComponentTemplate /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateNode.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateNode.java index ebe4f23d7..a591b9af0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateNode.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster._types.ComponentTemplateNode /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java index 7d4e2dfa9..e9ab92f61 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster._types.ComponentTemplateSummary /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java index bd5d10e54..d20f0ab39 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.delete_component_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateResponse.java index d988436d3..e2b09bcdd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.delete_component_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java index e36a6b699..657a0f53c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the cluster namespace. */ @@ -170,52 +181,6 @@ public CompletableFuture getComponentTemplate() { GetComponentTemplateRequest._ENDPOINT, this.transportOptions); } - // ----- Endpoint: cluster.get_settings - - /** - * Returns cluster settings. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture getSettings(GetClusterSettingsRequest request) { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) GetClusterSettingsRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Returns cluster settings. - * - * @param fn - * a function that initializes a builder to create the - * {@link GetClusterSettingsRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture getSettings( - Function> fn) { - return getSettings(fn.apply(new GetClusterSettingsRequest.Builder()).build()); - } - - /** - * Returns cluster settings. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture getSettings() { - return this.transport.performRequestAsync(new GetClusterSettingsRequest.Builder().build(), - GetClusterSettingsRequest._ENDPOINT, this.transportOptions); - } - // ----- Endpoint: cluster.info /** @@ -249,55 +214,6 @@ public final CompletableFuture info( return info(fn.apply(new ClusterInfoRequest.Builder()).build()); } - // ----- Endpoint: cluster.pending_tasks - - /** - * 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 Documentation - * on elastic.co - */ - - public CompletableFuture pendingTasks(PendingTasksRequest request) { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) PendingTasksRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Returns a list of any cluster-level changes (e.g. create index, update - * mapping, allocate or fail shard) which have not yet been executed. - * - * @param fn - * a function that initializes a builder to create the - * {@link PendingTasksRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture pendingTasks( - Function> fn) { - return pendingTasks(fn.apply(new PendingTasksRequest.Builder()).build()); - } - - /** - * 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 Documentation - * on elastic.co - */ - - public CompletableFuture pendingTasks() { - return this.transport.performRequestAsync(new PendingTasksRequest.Builder().build(), - PendingTasksRequest._ENDPOINT, this.transportOptions); - } - // ----- Endpoint: cluster.put_component_template /** @@ -331,96 +247,4 @@ public final CompletableFuture putComponentTemplat return putComponentTemplate(fn.apply(new PutComponentTemplateRequest.Builder()).build()); } - // ----- Endpoint: cluster.put_settings - - /** - * Updates the cluster settings. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture putSettings(PutClusterSettingsRequest request) { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) PutClusterSettingsRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Updates the cluster settings. - * - * @param fn - * a function that initializes a builder to create the - * {@link PutClusterSettingsRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture putSettings( - Function> fn) { - return putSettings(fn.apply(new PutClusterSettingsRequest.Builder()).build()); - } - - /** - * Updates the cluster settings. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture putSettings() { - return this.transport.performRequestAsync(new PutClusterSettingsRequest.Builder().build(), - PutClusterSettingsRequest._ENDPOINT, this.transportOptions); - } - - // ----- Endpoint: cluster.stats - - /** - * Returns high-level overview of cluster statistics. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture stats(ClusterStatsRequest request) { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) ClusterStatsRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Returns high-level overview of cluster statistics. - * - * @param fn - * a function that initializes a builder to create the - * {@link ClusterStatsRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture stats( - Function> fn) { - return stats(fn.apply(new ClusterStatsRequest.Builder()).build()); - } - - /** - * Returns high-level overview of cluster statistics. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture stats() { - return this.transport.performRequestAsync(new ClusterStatsRequest.Builder().build(), - ClusterStatsRequest._ENDPOINT, this.transportOptions); - } - } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java index 916dad784..e203bd5a6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the cluster namespace. */ @@ -173,54 +184,6 @@ public GetComponentTemplateResponse getComponentTemplate() throws IOException, E GetComponentTemplateRequest._ENDPOINT, this.transportOptions); } - // ----- Endpoint: cluster.get_settings - - /** - * Returns cluster settings. - * - * @see Documentation - * on elastic.co - */ - - public GetClusterSettingsResponse getSettings(GetClusterSettingsRequest request) - throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) GetClusterSettingsRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Returns cluster settings. - * - * @param fn - * a function that initializes a builder to create the - * {@link GetClusterSettingsRequest} - * @see Documentation - * on elastic.co - */ - - public final GetClusterSettingsResponse getSettings( - Function> fn) - throws IOException, ElasticsearchException { - return getSettings(fn.apply(new GetClusterSettingsRequest.Builder()).build()); - } - - /** - * Returns cluster settings. - * - * @see Documentation - * on elastic.co - */ - - public GetClusterSettingsResponse getSettings() throws IOException, ElasticsearchException { - return this.transport.performRequest(new GetClusterSettingsRequest.Builder().build(), - GetClusterSettingsRequest._ENDPOINT, this.transportOptions); - } - // ----- Endpoint: cluster.info /** @@ -254,56 +217,6 @@ public final ClusterInfoResponse info(FunctionDocumentation - * on elastic.co - */ - - public PendingTasksResponse pendingTasks(PendingTasksRequest request) throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) PendingTasksRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Returns a list of any cluster-level changes (e.g. create index, update - * mapping, allocate or fail shard) which have not yet been executed. - * - * @param fn - * a function that initializes a builder to create the - * {@link PendingTasksRequest} - * @see Documentation - * on elastic.co - */ - - public final PendingTasksResponse pendingTasks( - Function> fn) - throws IOException, ElasticsearchException { - return pendingTasks(fn.apply(new PendingTasksRequest.Builder()).build()); - } - - /** - * 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 Documentation - * on elastic.co - */ - - public PendingTasksResponse pendingTasks() throws IOException, ElasticsearchException { - return this.transport.performRequest(new PendingTasksRequest.Builder().build(), PendingTasksRequest._ENDPOINT, - this.transportOptions); - } - // ----- Endpoint: cluster.put_component_template /** @@ -339,99 +252,4 @@ public final PutComponentTemplateResponse putComponentTemplate( return putComponentTemplate(fn.apply(new PutComponentTemplateRequest.Builder()).build()); } - // ----- Endpoint: cluster.put_settings - - /** - * Updates the cluster settings. - * - * @see Documentation - * on elastic.co - */ - - public PutClusterSettingsResponse putSettings(PutClusterSettingsRequest request) - throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) PutClusterSettingsRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Updates the cluster settings. - * - * @param fn - * a function that initializes a builder to create the - * {@link PutClusterSettingsRequest} - * @see Documentation - * on elastic.co - */ - - public final PutClusterSettingsResponse putSettings( - Function> fn) - throws IOException, ElasticsearchException { - return putSettings(fn.apply(new PutClusterSettingsRequest.Builder()).build()); - } - - /** - * Updates the cluster settings. - * - * @see Documentation - * on elastic.co - */ - - public PutClusterSettingsResponse putSettings() throws IOException, ElasticsearchException { - return this.transport.performRequest(new PutClusterSettingsRequest.Builder().build(), - PutClusterSettingsRequest._ENDPOINT, this.transportOptions); - } - - // ----- Endpoint: cluster.stats - - /** - * Returns high-level overview of cluster statistics. - * - * @see Documentation - * on elastic.co - */ - - public ClusterStatsResponse stats(ClusterStatsRequest request) throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) ClusterStatsRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Returns high-level overview of cluster statistics. - * - * @param fn - * a function that initializes a builder to create the - * {@link ClusterStatsRequest} - * @see Documentation - * on elastic.co - */ - - public final ClusterStatsResponse stats( - Function> fn) - throws IOException, ElasticsearchException { - return stats(fn.apply(new ClusterStatsRequest.Builder()).build()); - } - - /** - * Returns high-level overview of cluster statistics. - * - * @see Documentation - * on elastic.co - */ - - public ClusterStatsResponse stats() throws IOException, ElasticsearchException { - return this.transport.performRequest(new ClusterStatsRequest.Builder().build(), ClusterStatsRequest._ENDPOINT, - this.transportOptions); - } - } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java index a22ccf9e4..9e885e25e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.exists_component_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java index 7c7179e4a..a79f91f32 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.get_component_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateResponse.java index 006122b08..6d69cfac9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.get_component_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java index 126549052..11e89e166 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.put_component_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateResponse.java index 3f813926e..e4e7ad249 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: cluster.put_component_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java index fe1e6a4bd..7d42b687e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -53,11 +49,26 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.Request /** - * Allows to perform multiple index/update/delete operations in a single - * request. + * Performs multiple indexing or delete operations in a single API call. This + * reduces overhead and can greatly increase indexing speed. * * @see API * specification @@ -121,8 +132,8 @@ public Iterator _serializables() { return this.operations.iterator(); } /** - * True or false to return the _source field or not, or default list of fields - * to return, can be overridden on each sub-request + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -132,8 +143,7 @@ public final SourceConfigParam source() { } /** - * Default list of fields to exclude from the returned _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to exclude from the response. *

* API name: {@code _source_excludes} */ @@ -142,8 +152,7 @@ public final List sourceExcludes() { } /** - * Default list of fields to extract and return from the _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} */ @@ -152,7 +161,7 @@ public final List sourceIncludes() { } /** - * Default index for items which don't provide one + * Name of the data stream, index, or index alias to perform bulk actions on. *

* API name: {@code index} */ @@ -162,7 +171,11 @@ public final String index() { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -172,10 +185,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -185,7 +199,7 @@ public final Refresh refresh() { } /** - * Sets require_alias for all incoming documents. Defaults to unset (false) + * If true, the request’s actions must target an index alias. *

* API name: {@code require_alias} */ @@ -195,7 +209,7 @@ public final Boolean requireAlias() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -205,7 +219,8 @@ public final String routing() { } /** - * Explicit operation timeout + * Period each action waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -215,11 +230,9 @@ public final Time 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -288,8 +301,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List operations; /** - * True or false to return the _source field or not, or default list of fields - * to return, can be overridden on each sub-request + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -299,8 +312,8 @@ public final Builder source(@Nullable SourceConfigParam value) { } /** - * True or false to return the _source field or not, or default list of fields - * to return, can be overridden on each sub-request + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -309,8 +322,7 @@ public final Builder source(Function * API name: {@code _source_excludes} *

@@ -322,8 +334,7 @@ public final Builder sourceExcludes(List list) { } /** - * Default list of fields to exclude from the returned _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to exclude from the response. *

* API name: {@code _source_excludes} *

@@ -335,8 +346,7 @@ public final Builder sourceExcludes(String value, String... values) { } /** - * Default list of fields to extract and return from the _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -348,8 +358,7 @@ public final Builder sourceIncludes(List list) { } /** - * Default list of fields to extract and return from the _source field, can be - * overridden on each sub-request + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -361,7 +370,7 @@ public final Builder sourceIncludes(String value, String... values) { } /** - * Default index for items which don't provide one + * Name of the data stream, index, or index alias to perform bulk actions on. *

* API name: {@code index} */ @@ -371,7 +380,11 @@ public final Builder index(@Nullable String value) { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -381,10 +394,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -394,7 +408,7 @@ public final Builder refresh(@Nullable Refresh value) { } /** - * Sets require_alias for all incoming documents. Defaults to unset (false) + * If true, the request’s actions must target an index alias. *

* API name: {@code require_alias} */ @@ -404,7 +418,7 @@ public final Builder requireAlias(@Nullable Boolean value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -414,7 +428,8 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Period each action waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -424,7 +439,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period each action waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -433,11 +449,9 @@ public final Builder timeout(Function> fn) { } /** - * 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -447,11 +461,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/BulkResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/BulkResponse.java index c953262e2..006d6e21b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/BulkResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/BulkResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.bulk.BulkResponseItem; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java index 423d02c83..31e9ba08f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,10 +39,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.clear_scroll.Request /** - * Explicitly clears the search context for a scroll. + * Clears the search context and results for a scrolling search. * * @see API * specification @@ -68,6 +79,8 @@ public static ClearScrollRequest of(Function_all. + *

* API name: {@code scroll_id} */ public final List scrollId() { @@ -111,6 +124,8 @@ public static class Builder extends RequestBase.AbstractBuilder private List scrollId; /** + * Scroll IDs to clear. To clear all scroll IDs, use _all. + *

* API name: {@code scroll_id} *

* Adds all elements of list to scrollId. @@ -121,6 +136,8 @@ public final Builder scrollId(List list) { } /** + * Scroll IDs to clear. To clear all scroll IDs, use _all. + *

* API name: {@code scroll_id} *

* Adds one or more values to scrollId. diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollResponse.java index fb56d1a1f..f8f7ac60f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.clear_scroll.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java index 943f8e18d..b867d3d3c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,10 +38,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.close_point_in_time.Request /** - * Close a point in time + * Closes a point-in-time. * * @see API @@ -68,7 +79,9 @@ public static ClosePointInTimeRequest of(Function + * API name: {@code id} */ public final String id() { return this.id; @@ -102,7 +115,9 @@ public static class Builder extends RequestBase.AbstractBuilder private String id; /** - * Required - API name: {@code id} + * Required - The ID of the point-in-time. + *

+ * API name: {@code id} */ public final Builder id(String value) { this.id = value; diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeResponse.java index ae0eacf28..4cdc7fbfa 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.close_point_in_time.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java index 2c6c92d9d..360897e9b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -51,6 +47,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.count.Request /** @@ -135,9 +146,10 @@ public static CountRequest of(Function> fn) } /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -147,8 +159,9 @@ public final Boolean allowNoIndices() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. This + * parameter can only be used when the q query string parameter is + * specified. *

* API name: {@code analyze_wildcard} */ @@ -158,7 +171,8 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -168,7 +182,9 @@ public final String analyzer() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. This parameter can only be used when the q + * query string parameter is specified. *

* API name: {@code default_operator} */ @@ -178,8 +194,9 @@ public final Operator defaultOperator() { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. + * This parameter can only be used when the q query string + * parameter is specified. *

* API name: {@code df} */ @@ -189,8 +206,10 @@ public final String df() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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} */ @@ -199,8 +218,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, concrete, expanded or aliased indices are ignored when + * frozen. *

* API name: {@code ignore_throttled} */ @@ -210,8 +229,8 @@ public final Boolean ignoreThrottled() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -221,7 +240,9 @@ public final Boolean ignoreUnavailable() { } /** - * A comma-separated list of indices to restrict the results + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -230,8 +251,8 @@ public final List index() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -241,8 +262,8 @@ public final Boolean lenient() { } /** - * Include only documents with a specific _score value in the - * result + * Sets the minimum _score value that documents must have to be + * included in the result. *

* API name: {@code min_score} */ @@ -252,8 +273,8 @@ public final Double minScore() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -263,7 +284,7 @@ public final String preference() { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -273,6 +294,8 @@ public final String q() { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ @Nullable @@ -281,7 +304,7 @@ public final Query query() { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -291,8 +314,9 @@ public final String routing() { } /** - * The maximum count for each shard, upon reaching which the query execution - * will terminate early + * 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. *

* API name: {@code terminate_after} */ @@ -376,9 +400,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Long terminateAfter; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. *

* API name: {@code allow_no_indices} */ @@ -388,8 +413,9 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. This + * parameter can only be used when the q query string parameter is + * specified. *

* API name: {@code analyze_wildcard} */ @@ -399,7 +425,8 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. *

* API name: {@code analyzer} */ @@ -409,7 +436,9 @@ public final Builder analyzer(@Nullable String value) { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. This parameter can only be used when the q + * query string parameter is specified. *

* API name: {@code default_operator} */ @@ -419,8 +448,9 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. + * This parameter can only be used when the q query string + * parameter is specified. *

* API name: {@code df} */ @@ -430,8 +460,10 @@ public final Builder df(@Nullable String value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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} *

@@ -443,8 +475,10 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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} *

@@ -456,8 +490,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, concrete, expanded or aliased indices are ignored when + * frozen. *

* API name: {@code ignore_throttled} */ @@ -467,8 +501,8 @@ public final Builder ignoreThrottled(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -478,7 +512,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * A comma-separated list of indices to restrict the results + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -490,7 +526,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of indices to restrict the results + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -502,8 +540,8 @@ public final Builder index(String value, String... values) { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -513,8 +551,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** - * Include only documents with a specific _score value in the - * result + * Sets the minimum _score value that documents must have to be + * included in the result. *

* API name: {@code min_score} */ @@ -524,8 +562,8 @@ public final Builder minScore(@Nullable Double value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -535,7 +573,7 @@ public final Builder preference(@Nullable String value) { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -545,6 +583,8 @@ public final Builder q(@Nullable String value) { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -553,6 +593,8 @@ public final Builder query(@Nullable Query value) { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -560,7 +602,7 @@ public final Builder query(Function> fn) { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -570,8 +612,9 @@ public final Builder routing(@Nullable String value) { } /** - * The maximum count for each shard, upon reaching which the query execution - * will terminate early + * 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. *

* API name: {@code terminate_after} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CountResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CountResponse.java index b2b2c27ec..4305f961b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CountResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CountResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.count.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java index a985597e4..61eb92752 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -53,13 +49,27 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.create.Request /** - * Creates a new document in the index. - *

- * Returns a 409 response when a document with a same ID already exists in the - * index. + * Adds a JSON document to the specified data stream or index and makes it + * searchable. If the target is an index and the document already exists, the + * request updates the document and increments its version. * * @see API * specification @@ -120,7 +130,7 @@ public static CreateRequest of( } /** - * Required - Document ID + * Required - Unique identifier for the document. *

* API name: {@code id} */ @@ -129,7 +139,11 @@ public final String id() { } /** - * Required - The name of the index + * Required - Name of the data stream or index to target. If the target doesn’t + * exist and matches the name or wildcard (*) pattern of an index + * template with a data_stream definition, this request creates the + * data stream. If the target doesn’t exist and doesn’t match a data stream + * template, this request creates the index. *

* API name: {@code index} */ @@ -138,7 +152,11 @@ public final String index() { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -148,10 +166,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -161,7 +180,7 @@ public final Refresh refresh() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -171,7 +190,8 @@ public final String routing() { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -181,7 +201,8 @@ public final Time timeout() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -191,7 +212,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -201,11 +222,9 @@ public final VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -269,7 +288,7 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; /** - * Required - Document ID + * Required - Unique identifier for the document. *

* API name: {@code id} */ @@ -279,7 +298,11 @@ public final Builder id(String value) { } /** - * Required - The name of the index + * Required - Name of the data stream or index to target. If the target doesn’t + * exist and matches the name or wildcard (*) pattern of an index + * template with a data_stream definition, this request creates the + * data stream. If the target doesn’t exist and doesn’t match a data stream + * template, this request creates the index. *

* API name: {@code index} */ @@ -289,7 +312,11 @@ public final Builder index(String value) { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -299,10 +326,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -312,7 +340,7 @@ public final Builder refresh(@Nullable Refresh value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -322,7 +350,8 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -332,7 +361,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -341,7 +371,8 @@ public final Builder timeout(Function * API name: {@code version} */ @@ -351,7 +382,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -361,11 +392,9 @@ public final Builder versionType(@Nullable VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -375,11 +404,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShard } /** - * 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CreateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CreateResponse.java index d78f53263..9d86681a4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CreateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/CreateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.WriteResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.create.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java index c6b2b897a..64debabf9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.Conflicts; @@ -57,10 +53,25 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.delete_by_query.Request /** - * Deletes documents matching the provided query. + * Deletes documents that match the specified query. * * @see API * specification @@ -203,9 +214,12 @@ public static DeleteByQueryRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -215,8 +229,7 @@ public final Boolean allowNoIndices() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -226,7 +239,7 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. *

* API name: {@code analyzer} */ @@ -236,7 +249,8 @@ public final String analyzer() { } /** - * What to do when the delete by query hits version conflicts? + * What to do if delete by query hits version conflicts: abort or + * proceed. *

* API name: {@code conflicts} */ @@ -246,7 +260,8 @@ public final Conflicts conflicts() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -256,8 +271,7 @@ public final Operator defaultOperator() { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -267,8 +281,12 @@ public final String df() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -287,8 +305,8 @@ public final Long from() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -298,8 +316,9 @@ public final Boolean ignoreUnavailable() { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -308,8 +327,8 @@ public final List index() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -319,6 +338,8 @@ public final Boolean lenient() { } /** + * The maximum number of documents to delete. + *

* API name: {@code max_docs} */ @Nullable @@ -327,8 +348,8 @@ public final Long maxDocs() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -338,7 +359,7 @@ public final String preference() { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -348,6 +369,8 @@ public final String q() { } /** + * Specifies the documents to delete using the Query DSL. + *

* API name: {@code query} */ @Nullable @@ -356,7 +379,8 @@ public final Query query() { } /** - * Should the affected indexes be refreshed? + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -366,8 +390,8 @@ public final Boolean refresh() { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the request cache is used for this request. Defaults to + * the index-level setting. *

* API name: {@code request_cache} */ @@ -377,8 +401,7 @@ public final Boolean requestCache() { } /** - * The throttle for this request in sub-requests per second. -1 means no - * throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -388,7 +411,7 @@ public final Float requestsPerSecond() { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -398,8 +421,7 @@ public final String routing() { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -409,7 +431,7 @@ public final Time scroll() { } /** - * Size on the scroll request powering the delete by query + * Size of the scroll request that powers the operation. *

* API name: {@code scroll_size} */ @@ -429,7 +451,8 @@ public final Time searchTimeout() { } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -439,6 +462,9 @@ public final SearchType searchType() { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ @Nullable @@ -447,8 +473,7 @@ public final SlicedScroll slice() { } /** - * 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. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -458,7 +483,7 @@ public final Slices slices() { } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} */ @@ -467,7 +492,8 @@ public final List sort() { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} */ @@ -476,8 +502,13 @@ public final List stats() { } /** - * The maximum number of documents to collect for each shard, upon reaching - * which the query execution will terminate early. + * 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. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. *

* API name: {@code terminate_after} */ @@ -487,8 +518,7 @@ public final Long terminateAfter() { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each deletion request waits for active shards. *

* API name: {@code timeout} */ @@ -498,7 +528,7 @@ public final Time timeout() { } /** - * Specify whether to return document version as part of a hit + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -508,11 +538,9 @@ public final 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -522,7 +550,7 @@ public final WaitForActiveShards waitForActiveShards() { } /** - * Should the request should block until the delete by query is complete. + * If true, the request blocks until the operation is complete. *

* API name: {@code wait_for_completion} */ @@ -665,9 +693,12 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean waitForCompletion; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -677,8 +708,7 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -688,7 +718,7 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. *

* API name: {@code analyzer} */ @@ -698,7 +728,8 @@ public final Builder analyzer(@Nullable String value) { } /** - * What to do when the delete by query hits version conflicts? + * What to do if delete by query hits version conflicts: abort or + * proceed. *

* API name: {@code conflicts} */ @@ -708,7 +739,8 @@ public final Builder conflicts(@Nullable Conflicts value) { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -718,8 +750,7 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -729,8 +760,12 @@ public final Builder df(@Nullable String value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -742,8 +777,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -765,8 +804,8 @@ public final Builder from(@Nullable Long value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -776,8 +815,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -789,8 +829,9 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -802,8 +843,8 @@ public final Builder index(String value, String... values) { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -813,6 +854,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** + * The maximum number of documents to delete. + *

* API name: {@code max_docs} */ public final Builder maxDocs(@Nullable Long value) { @@ -821,8 +864,8 @@ public final Builder maxDocs(@Nullable Long value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -832,7 +875,7 @@ public final Builder preference(@Nullable String value) { } /** - * Query in the Lucene query string syntax + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -842,6 +885,8 @@ public final Builder q(@Nullable String value) { } /** + * Specifies the documents to delete using the Query DSL. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -850,6 +895,8 @@ public final Builder query(@Nullable Query value) { } /** + * Specifies the documents to delete using the Query DSL. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -857,7 +904,8 @@ public final Builder query(Function> fn) { } /** - * Should the affected indexes be refreshed? + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -867,8 +915,8 @@ public final Builder refresh(@Nullable Boolean value) { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the request cache is used for this request. Defaults to + * the index-level setting. *

* API name: {@code request_cache} */ @@ -878,8 +926,7 @@ public final Builder requestCache(@Nullable Boolean value) { } /** - * The throttle for this request in sub-requests per second. -1 means no - * throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -889,7 +936,7 @@ public final Builder requestsPerSecond(@Nullable Float value) { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -899,8 +946,7 @@ public final Builder routing(@Nullable String value) { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -910,8 +956,7 @@ public final Builder scroll(@Nullable Time value) { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -920,7 +965,7 @@ public final Builder scroll(Function> fn) { } /** - * Size on the scroll request powering the delete by query + * Size of the scroll request that powers the operation. *

* API name: {@code scroll_size} */ @@ -949,7 +994,8 @@ public final Builder searchTimeout(Function> f } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -959,6 +1005,9 @@ public final Builder searchType(@Nullable SearchType value) { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ public final Builder slice(@Nullable SlicedScroll value) { @@ -967,6 +1016,9 @@ public final Builder slice(@Nullable SlicedScroll value) { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ public final Builder slice(Function> fn) { @@ -974,8 +1026,7 @@ public final Builder slice(Functionauto. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -985,8 +1036,7 @@ public final Builder slices(@Nullable Slices 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. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -995,7 +1045,7 @@ public final Builder slices(Function> fn) } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} *

@@ -1007,7 +1057,7 @@ public final Builder sort(List list) { } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} *

@@ -1019,7 +1069,8 @@ public final Builder sort(String value, String... values) { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} *

@@ -1031,7 +1082,8 @@ public final Builder stats(List list) { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} *

@@ -1043,8 +1095,13 @@ public final Builder stats(String value, String... values) { } /** - * The maximum number of documents to collect for each shard, upon reaching - * which the query execution will terminate early. + * 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. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. *

* API name: {@code terminate_after} */ @@ -1054,8 +1111,7 @@ public final Builder terminateAfter(@Nullable Long value) { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each deletion request waits for active shards. *

* API name: {@code timeout} */ @@ -1065,8 +1121,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each deletion request waits for active shards. *

* API name: {@code timeout} */ @@ -1075,7 +1130,7 @@ public final Builder timeout(Function> fn) { } /** - * Specify whether to return document version as part of a hit + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -1085,11 +1140,9 @@ public final 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -1099,11 +1152,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -1113,7 +1164,7 @@ public final Builder waitForActiveShards( } /** - * Should the request should block until the delete by query is complete. + * If true, the request blocks until the operation is complete. *

* API name: {@code wait_for_completion} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java index 487e391c6..b6b010584 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.BulkIndexByScrollFailure; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.delete_by_query.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java index 8cd658a77..a1890a672 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,10 +42,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.delete.Request /** - * Removes a document from the index. + * Removes a JSON document from the specified index. * * @see API * specification @@ -106,7 +117,7 @@ public static DeleteRequest of(Function> f } /** - * Required - The document ID + * Required - Unique identifier for the document. *

* API name: {@code id} */ @@ -115,8 +126,7 @@ public final String id() { } /** - * only perform the delete operation if the last operation that has changed the - * document has the specified primary term + * Only perform the operation if the document has this primary term. *

* API name: {@code if_primary_term} */ @@ -126,8 +136,7 @@ public final Long ifPrimaryTerm() { } /** - * only perform the delete operation if the last operation that has changed the - * document has the specified sequence number + * Only perform the operation if the document has this sequence number. *

* API name: {@code if_seq_no} */ @@ -137,7 +146,7 @@ public final Long ifSeqNo() { } /** - * Required - The name of the index + * Required - Name of the target index. *

* API name: {@code index} */ @@ -146,10 +155,11 @@ public final String index() { } /** - * 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -159,7 +169,7 @@ public final Refresh refresh() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -169,7 +179,7 @@ public final String routing() { } /** - * Explicit operation timeout + * Period to wait for active shards. *

* API name: {@code timeout} */ @@ -179,7 +189,8 @@ public final Time timeout() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -189,7 +200,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -199,11 +210,9 @@ public final VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -248,7 +257,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private WaitForActiveShards waitForActiveShards; /** - * Required - The document ID + * Required - Unique identifier for the document. *

* API name: {@code id} */ @@ -258,8 +267,7 @@ public final Builder id(String value) { } /** - * only perform the delete operation if the last operation that has changed the - * document has the specified primary term + * Only perform the operation if the document has this primary term. *

* API name: {@code if_primary_term} */ @@ -269,8 +277,7 @@ public final Builder ifPrimaryTerm(@Nullable Long value) { } /** - * only perform the delete operation if the last operation that has changed the - * document has the specified sequence number + * Only perform the operation if the document has this sequence number. *

* API name: {@code if_seq_no} */ @@ -280,7 +287,7 @@ public final Builder ifSeqNo(@Nullable Long value) { } /** - * Required - The name of the index + * Required - Name of the target index. *

* API name: {@code index} */ @@ -290,10 +297,11 @@ public final Builder index(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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -303,7 +311,7 @@ public final Builder refresh(@Nullable Refresh value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -313,7 +321,7 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Period to wait for active shards. *

* API name: {@code timeout} */ @@ -323,7 +331,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period to wait for active shards. *

* API name: {@code timeout} */ @@ -332,7 +340,8 @@ public final Builder timeout(Function> fn) { } /** - * Explicit version number for concurrency control + * 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} */ @@ -342,7 +351,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -352,11 +361,9 @@ public final Builder versionType(@Nullable VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -366,11 +373,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteResponse.java index 6fce7b11d..e3df61c71 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.WriteResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.delete.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java index da3d6c4f1..c943e5841 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,10 +38,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.delete_script.Request /** - * Deletes a script. + * Deletes a stored script or search template. * * @see API * specification @@ -75,7 +86,7 @@ public static DeleteScriptRequest of(Function * API name: {@code id} */ @@ -84,7 +95,8 @@ public final String id() { } /** - * Specify timeout for connection to master + * 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} */ @@ -94,7 +106,8 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * 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} */ @@ -121,7 +134,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Required - Script ID + * Required - Identifier for the stored script or search template. *

* API name: {@code id} */ @@ -131,7 +144,8 @@ public final Builder id(String value) { } /** - * Specify timeout for connection to master + * 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} */ @@ -141,7 +155,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * 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} */ @@ -150,7 +165,8 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * 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} */ @@ -160,7 +176,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * 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} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptResponse.java index f84bb96d4..8ce01db52 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.delete_script.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java index b86dd3793..b6713cd70 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,10 +45,25 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.exists.Request /** - * Returns information about whether a document exists in an index. + * Checks if a document in an index exists. * * @see API * specification @@ -114,8 +125,8 @@ public static ExistsRequest of(Function> f } /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -125,7 +136,7 @@ public final SourceConfigParam source() { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude in the response. *

* API name: {@code _source_excludes} */ @@ -134,7 +145,7 @@ public final List sourceExcludes() { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} */ @@ -143,7 +154,7 @@ public final List sourceIncludes() { } /** - * Required - The document ID + * Required - Identifier of the document. *

* API name: {@code id} */ @@ -152,7 +163,8 @@ public final String id() { } /** - * Required - The name of the index + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -161,8 +173,8 @@ public final String index() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -172,7 +184,7 @@ public final String preference() { } /** - * Specify whether to perform the operation in realtime or search mode + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -182,7 +194,8 @@ public final Boolean realtime() { } /** - * Refresh the shard containing the document before performing the operation + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -192,7 +205,7 @@ public final Boolean refresh() { } /** - * Specific routing value + * Target the specified primary shard. *

* API name: {@code routing} */ @@ -202,7 +215,9 @@ public final String routing() { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} */ @@ -211,7 +226,8 @@ public final List storedFields() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -221,7 +237,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -272,8 +288,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private VersionType versionType; /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -283,8 +299,8 @@ public final Builder source(@Nullable SourceConfigParam value) { } /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -293,7 +309,7 @@ public final Builder source(Function * API name: {@code _source_excludes} *

@@ -305,7 +321,7 @@ public final Builder sourceExcludes(List list) { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude in the response. *

* API name: {@code _source_excludes} *

@@ -317,7 +333,7 @@ public final Builder sourceExcludes(String value, String... values) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -329,7 +345,7 @@ public final Builder sourceIncludes(List list) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -341,7 +357,7 @@ public final Builder sourceIncludes(String value, String... values) { } /** - * Required - The document ID + * Required - Identifier of the document. *

* API name: {@code id} */ @@ -351,7 +367,8 @@ public final Builder id(String value) { } /** - * Required - The name of the index + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -361,8 +378,8 @@ public final Builder index(String value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -372,7 +389,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specify whether to perform the operation in realtime or search mode + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -382,7 +399,8 @@ public final Builder realtime(@Nullable Boolean value) { } /** - * Refresh the shard containing the document before performing the operation + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -392,7 +410,7 @@ public final Builder refresh(@Nullable Boolean value) { } /** - * Specific routing value + * Target the specified primary shard. *

* API name: {@code routing} */ @@ -402,7 +420,9 @@ public final Builder routing(@Nullable String value) { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} *

@@ -414,7 +434,9 @@ public final Builder storedFields(List list) { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} *

@@ -426,7 +448,8 @@ public final Builder storedFields(String value, String... values) { } /** - * Explicit version number for concurrency control + * 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} */ @@ -436,7 +459,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java index fef36572e..15c4579b2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,10 +45,25 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.exists_source.Request /** - * Returns information about whether a document source exists in an index. + * Checks if a document's _source is stored. * * @see API * specification @@ -111,8 +122,8 @@ public static ExistsSourceRequest of(Functiontrue or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -122,7 +133,7 @@ public final SourceConfigParam source() { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude in the response. *

* API name: {@code _source_excludes} */ @@ -131,7 +142,7 @@ public final List sourceExcludes() { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} */ @@ -140,7 +151,7 @@ public final List sourceIncludes() { } /** - * Required - The document ID + * Required - Identifier of the document. *

* API name: {@code id} */ @@ -149,7 +160,8 @@ public final String id() { } /** - * Required - The name of the index + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -158,8 +170,8 @@ public final String index() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -169,7 +181,7 @@ public final String preference() { } /** - * Specify whether to perform the operation in realtime or search mode + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -179,7 +191,8 @@ public final Boolean realtime() { } /** - * Refresh the shard containing the document before performing the operation + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -189,7 +202,7 @@ public final Boolean refresh() { } /** - * Specific routing value + * Target the specified primary shard. *

* API name: {@code routing} */ @@ -199,7 +212,8 @@ public final String routing() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -209,7 +223,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -259,8 +273,8 @@ public static class Builder extends RequestBase.AbstractBuilder private VersionType versionType; /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -270,8 +284,8 @@ public final Builder source(@Nullable SourceConfigParam value) { } /** - * True or false to return the _source field or not, or a list of fields to - * return + * true or false to return the _source + * field or not, or a list of fields to return. *

* API name: {@code _source} */ @@ -280,7 +294,7 @@ public final Builder source(Function * API name: {@code _source_excludes} *

@@ -292,7 +306,7 @@ public final Builder sourceExcludes(List list) { } /** - * A list of fields to exclude from the returned _source field + * A comma-separated list of source fields to exclude in the response. *

* API name: {@code _source_excludes} *

@@ -304,7 +318,7 @@ public final Builder sourceExcludes(String value, String... values) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -316,7 +330,7 @@ public final Builder sourceIncludes(List list) { } /** - * A list of fields to extract and return from the _source field + * A comma-separated list of source fields to include in the response. *

* API name: {@code _source_includes} *

@@ -328,7 +342,7 @@ public final Builder sourceIncludes(String value, String... values) { } /** - * Required - The document ID + * Required - Identifier of the document. *

* API name: {@code id} */ @@ -338,7 +352,8 @@ public final Builder id(String value) { } /** - * Required - The name of the index + * Required - Comma-separated list of data streams, indices, and aliases. + * Supports wildcards (*). *

* API name: {@code index} */ @@ -348,8 +363,8 @@ public final Builder index(String value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -359,7 +374,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specify whether to perform the operation in realtime or search mode + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -369,7 +384,8 @@ public final Builder realtime(@Nullable Boolean value) { } /** - * Refresh the shard containing the document before performing the operation + * If true, Elasticsearch refreshes all shards involved in the + * delete by query after the request completes. *

* API name: {@code refresh} */ @@ -379,7 +395,7 @@ public final Builder refresh(@Nullable Boolean value) { } /** - * Specific routing value + * Target the specified primary shard. *

* API name: {@code routing} */ @@ -389,7 +405,8 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit version number for concurrency control + * 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} */ @@ -399,7 +416,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java new file mode 100644 index 000000000..4562fdd46 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java @@ -0,0 +1,717 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.core; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.query_dsl.Operator; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.elasticsearch.core.search.SourceConfigParam; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _global.explain.Request + +/** + * Returns information about why a specific document matches (or doesn’t match) + * a query. + * + * @see API + * specification + */ +@JsonpDeserializable +public class ExplainRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final SourceConfigParam source; + + private final List sourceExcludes; + + private final List sourceIncludes; + + @Nullable + private final Boolean analyzeWildcard; + + @Nullable + private final String analyzer; + + @Nullable + private final Operator defaultOperator; + + @Nullable + private final String df; + + private final String id; + + private final String index; + + @Nullable + private final Boolean lenient; + + @Nullable + private final String preference; + + @Nullable + private final String q; + + @Nullable + private final Query query; + + @Nullable + private final String routing; + + private final List storedFields; + + // --------------------------------------------------------------------------------------------- + + private ExplainRequest(Builder builder) { + + this.source = builder.source; + this.sourceExcludes = ApiTypeHelper.unmodifiable(builder.sourceExcludes); + this.sourceIncludes = ApiTypeHelper.unmodifiable(builder.sourceIncludes); + this.analyzeWildcard = builder.analyzeWildcard; + this.analyzer = builder.analyzer; + this.defaultOperator = builder.defaultOperator; + this.df = builder.df; + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.lenient = builder.lenient; + this.preference = builder.preference; + this.q = builder.q; + this.query = builder.query; + this.routing = builder.routing; + this.storedFields = ApiTypeHelper.unmodifiable(builder.storedFields); + + } + + public static ExplainRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * True or false to return the _source field or not, or a list of + * fields to return. + *

+ * API name: {@code _source} + */ + @Nullable + public final SourceConfigParam source() { + return this.source; + } + + /** + * A comma-separated list of source fields to exclude from the response. + *

+ * API name: {@code _source_excludes} + */ + public final List sourceExcludes() { + return this.sourceExcludes; + } + + /** + * A comma-separated list of source fields to include in the response. + *

+ * API name: {@code _source_includes} + */ + public final List sourceIncludes() { + return this.sourceIncludes; + } + + /** + * If true, wildcard and prefix queries are analyzed. + *

+ * API name: {@code analyze_wildcard} + */ + @Nullable + public final Boolean analyzeWildcard() { + return this.analyzeWildcard; + } + + /** + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. + *

+ * API name: {@code analyzer} + */ + @Nullable + public final String analyzer() { + return this.analyzer; + } + + /** + * The default operator for query string query: AND or + * OR. + *

+ * API name: {@code default_operator} + */ + @Nullable + public final Operator defaultOperator() { + return this.defaultOperator; + } + + /** + * Field to use as default where no field prefix is given in the query string. + *

+ * API name: {@code df} + */ + @Nullable + public final String df() { + return this.df; + } + + /** + * Required - Defines the document ID. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Required - Index names used to limit the request. Only a single index name + * can be provided to this parameter. + *

+ * API name: {@code index} + */ + public final String index() { + return this.index; + } + + /** + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. + *

+ * API name: {@code lenient} + */ + @Nullable + public final Boolean lenient() { + return this.lenient; + } + + /** + * Specifies the node or shard the operation should be performed on. Random by + * default. + *

+ * API name: {@code preference} + */ + @Nullable + public final String preference() { + return this.preference; + } + + /** + * Query in the Lucene query string syntax. + *

+ * API name: {@code q} + */ + @Nullable + public final String q() { + return this.q; + } + + /** + * Defines the search definition using the Query DSL. + *

+ * API name: {@code query} + */ + @Nullable + public final Query query() { + return this.query; + } + + /** + * Custom value used to route operations to a specific shard. + *

+ * API name: {@code routing} + */ + @Nullable + public final String routing() { + return this.routing; + } + + /** + * A comma-separated list of stored fields to return in the response. + *

+ * API name: {@code stored_fields} + */ + public final List storedFields() { + return this.storedFields; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.query != null) { + generator.writeKey("query"); + this.query.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ExplainRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private SourceConfigParam source; + + @Nullable + private List sourceExcludes; + + @Nullable + private List sourceIncludes; + + @Nullable + private Boolean analyzeWildcard; + + @Nullable + private String analyzer; + + @Nullable + private Operator defaultOperator; + + @Nullable + private String df; + + private String id; + + private String index; + + @Nullable + private Boolean lenient; + + @Nullable + private String preference; + + @Nullable + private String q; + + @Nullable + private Query query; + + @Nullable + private String routing; + + @Nullable + private List storedFields; + + /** + * True or false to return the _source field or not, or a list of + * fields to return. + *

+ * API name: {@code _source} + */ + public final Builder source(@Nullable SourceConfigParam value) { + this.source = 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 final Builder source(Function> fn) { + return this.source(fn.apply(new SourceConfigParam.Builder()).build()); + } + + /** + * A comma-separated list of source fields to exclude from the response. + *

+ * API name: {@code _source_excludes} + *

+ * Adds all elements of list to sourceExcludes. + */ + public final Builder sourceExcludes(List list) { + this.sourceExcludes = _listAddAll(this.sourceExcludes, list); + return this; + } + + /** + * A comma-separated list of source fields to exclude from the response. + *

+ * API name: {@code _source_excludes} + *

+ * Adds one or more values to sourceExcludes. + */ + public final Builder sourceExcludes(String value, String... values) { + this.sourceExcludes = _listAdd(this.sourceExcludes, value, values); + return this; + } + + /** + * A comma-separated list of source fields to include in the response. + *

+ * API name: {@code _source_includes} + *

+ * Adds all elements of list to sourceIncludes. + */ + public final Builder sourceIncludes(List list) { + this.sourceIncludes = _listAddAll(this.sourceIncludes, list); + return this; + } + + /** + * A comma-separated list of source fields to include in the response. + *

+ * API name: {@code _source_includes} + *

+ * Adds one or more values to sourceIncludes. + */ + public final Builder sourceIncludes(String value, String... values) { + this.sourceIncludes = _listAdd(this.sourceIncludes, value, values); + return this; + } + + /** + * If true, wildcard and prefix queries are analyzed. + *

+ * API name: {@code analyze_wildcard} + */ + public final Builder analyzeWildcard(@Nullable Boolean value) { + this.analyzeWildcard = value; + return this; + } + + /** + * Analyzer to use for the query string. This parameter can only be used when + * the q query string parameter is specified. + *

+ * API name: {@code analyzer} + */ + public final Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * The default operator for query string query: AND or + * OR. + *

+ * API name: {@code default_operator} + */ + public final Builder defaultOperator(@Nullable Operator value) { + this.defaultOperator = value; + return this; + } + + /** + * Field to use as default where no field prefix is given in the query string. + *

+ * API name: {@code df} + */ + public final Builder df(@Nullable String value) { + this.df = value; + return this; + } + + /** + * Required - Defines the document ID. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - Index names used to limit the request. Only a single index name + * can be provided to this parameter. + *

+ * API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. + *

+ * API name: {@code lenient} + */ + public final Builder lenient(@Nullable Boolean value) { + this.lenient = value; + return this; + } + + /** + * Specifies the node or shard the operation should be performed on. Random by + * default. + *

+ * API name: {@code preference} + */ + public final Builder preference(@Nullable String value) { + this.preference = value; + return this; + } + + /** + * Query in the Lucene query string syntax. + *

+ * API name: {@code q} + */ + public final Builder q(@Nullable String value) { + this.q = value; + return this; + } + + /** + * Defines the search definition using the Query DSL. + *

+ * API name: {@code query} + */ + public final Builder query(@Nullable Query value) { + this.query = value; + return this; + } + + /** + * Defines the search definition using the Query DSL. + *

+ * API name: {@code query} + */ + public final Builder query(Function> fn) { + return this.query(fn.apply(new Query.Builder()).build()); + } + + /** + * Custom value used to route operations to a specific shard. + *

+ * API name: {@code routing} + */ + public final Builder routing(@Nullable String value) { + this.routing = value; + return this; + } + + /** + * A comma-separated list of stored fields to return in the response. + *

+ * API name: {@code stored_fields} + *

+ * Adds all elements of list to storedFields. + */ + public final Builder storedFields(List list) { + this.storedFields = _listAddAll(this.storedFields, list); + return this; + } + + /** + * A comma-separated list of stored fields to return in the response. + *

+ * API name: {@code stored_fields} + *

+ * Adds one or more values to storedFields. + */ + public final Builder storedFields(String value, String... values) { + this.storedFields = _listAdd(this.storedFields, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ExplainRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ExplainRequest build() { + _checkSingleUse(); + + return new ExplainRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ExplainRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ExplainRequest::setupExplainRequestDeserializer); + + protected static void setupExplainRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::query, Query._DESERIALIZER, "query"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code explain}". + */ + public static final SimpleEndpoint _ENDPOINT = new SimpleEndpoint<>("es/explain", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index, buf); + buf.append("/_explain"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _id = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _id; + + if (propsSet == (_index | _id)) { + params.put("index", request.index); + params.put("id", request.id); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.routing != null) { + params.put("routing", request.routing); + } + if (request.q != null) { + params.put("q", request.q); + } + if (request.df != null) { + params.put("df", request.df); + } + if (request.defaultOperator != null) { + params.put("default_operator", request.defaultOperator.jsonValue()); + } + if (request.analyzer != null) { + params.put("analyzer", request.analyzer); + } + if (ApiTypeHelper.isDefined(request.storedFields)) { + params.put("stored_fields", + request.storedFields.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (request.preference != null) { + params.put("preference", request.preference); + } + if (request.analyzeWildcard != null) { + params.put("analyze_wildcard", String.valueOf(request.analyzeWildcard)); + } + if (request.source != null) { + params.put("_source", request.source._toJsonString()); + } + if (ApiTypeHelper.isDefined(request.sourceExcludes)) { + params.put("_source_excludes", + request.sourceExcludes.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (ApiTypeHelper.isDefined(request.sourceIncludes)) { + params.put("_source_includes", + request.sourceIncludes.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (request.lenient != null) { + params.put("lenient", String.valueOf(request.lenient)); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, ExplainResponse._DESERIALIZER); + + /** + * Create an "{@code explain}" endpoint. + */ + public static Endpoint, ErrorResponse> createExplainEndpoint( + JsonpDeserializer tDocumentDeserializer) { + return _ENDPOINT + .withResponseDeserializer(ExplainResponse.createExplainResponseDeserializer(tDocumentDeserializer)); + } +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExplainResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExplainResponse.java new file mode 100644 index 000000000..65bdd1cfe --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ExplainResponse.java @@ -0,0 +1,314 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.core; + +import co.elastic.clients.elasticsearch._types.InlineGet; +import co.elastic.clients.elasticsearch.core.explain.ExplanationDetail; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpSerializer; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.NamedDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import java.util.function.Supplier; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _global.explain.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ExplainResponse implements JsonpSerializable { + private final String index; + + private final String id; + + private final boolean matched; + + @Nullable + private final ExplanationDetail explanation; + + @Nullable + private final InlineGet get; + + @Nullable + private final JsonpSerializer tDocumentSerializer; + + // --------------------------------------------------------------------------------------------- + + private ExplainResponse(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.matched = ApiTypeHelper.requireNonNull(builder.matched, this, "matched"); + this.explanation = builder.explanation; + this.get = builder.get; + this.tDocumentSerializer = builder.tDocumentSerializer; + + } + + public static ExplainResponse of( + Function, ObjectBuilder>> fn) { + return fn.apply(new Builder<>()).build(); + } + + /** + * Required - API name: {@code _index} + */ + public final String index() { + return this.index; + } + + /** + * Required - API name: {@code _id} + */ + public final String id() { + return this.id; + } + + /** + * Required - API name: {@code matched} + */ + public final boolean matched() { + return this.matched; + } + + /** + * API name: {@code explanation} + */ + @Nullable + public final ExplanationDetail explanation() { + return this.explanation; + } + + /** + * API name: {@code get} + */ + @Nullable + public final InlineGet get() { + return this.get; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("_index"); + generator.write(this.index); + + generator.writeKey("_id"); + generator.write(this.id); + + generator.writeKey("matched"); + generator.write(this.matched); + + if (this.explanation != null) { + generator.writeKey("explanation"); + this.explanation.serialize(generator, mapper); + + } + if (this.get != null) { + generator.writeKey("get"); + this.get.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ExplainResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase> + implements + ObjectBuilder> { + private String index; + + private String id; + + private Boolean matched; + + @Nullable + private ExplanationDetail explanation; + + @Nullable + private InlineGet get; + + @Nullable + private JsonpSerializer tDocumentSerializer; + + /** + * Required - API name: {@code _index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * Required - API name: {@code _id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - API name: {@code matched} + */ + public final Builder matched(boolean value) { + this.matched = value; + return this; + } + + /** + * API name: {@code explanation} + */ + public final Builder explanation(@Nullable ExplanationDetail value) { + this.explanation = value; + return this; + } + + /** + * API name: {@code explanation} + */ + public final Builder explanation( + Function> fn) { + return this.explanation(fn.apply(new ExplanationDetail.Builder()).build()); + } + + /** + * API name: {@code get} + */ + public final Builder get(@Nullable InlineGet value) { + this.get = value; + return this; + } + + /** + * API name: {@code get} + */ + public final Builder get( + Function, ObjectBuilder>> fn) { + return this.get(fn.apply(new InlineGet.Builder()).build()); + } + + /** + * Serializer for TDocument. If not set, an attempt will be made to find a + * serializer from the JSON context. + */ + public final Builder tDocumentSerializer(@Nullable JsonpSerializer value) { + this.tDocumentSerializer = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ExplainResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ExplainResponse build() { + _checkSingleUse(); + + return new ExplainResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Create a JSON deserializer for ExplainResponse + */ + public static JsonpDeserializer> createExplainResponseDeserializer( + JsonpDeserializer tDocumentDeserializer) { + return ObjectBuilderDeserializer.createForObject((Supplier>) Builder::new, + op -> ExplainResponse.setupExplainResponseDeserializer(op, tDocumentDeserializer)); + }; + + /** + * Json deserializer for {@link ExplainResponse} based on named deserializers + * provided by the calling {@code JsonMapper}. + */ + public static final JsonpDeserializer> _DESERIALIZER = JsonpDeserializer + .lazy(() -> createExplainResponseDeserializer( + new NamedDeserializer<>("co.elastic.clients:Deserializer:_global.explain.TDocument"))); + + protected static void setupExplainResponseDeserializer( + ObjectDeserializer> op, + JsonpDeserializer tDocumentDeserializer) { + + op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "_index"); + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "_id"); + op.add(Builder::matched, JsonpDeserializer.booleanDeserializer(), "matched"); + op.add(Builder::explanation, ExplanationDetail._DESERIALIZER, "explanation"); + op.add(Builder::get, InlineGet.createInlineGetDeserializer(tDocumentDeserializer), "get"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java index 024c68591..1bc9ceb3c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.field_caps.Request /** @@ -76,6 +87,9 @@ public class FieldCapsRequest extends RequestBase implements JsonpSerializable { @Nullable private final Boolean ignoreUnavailable; + @Nullable + private final Boolean includeEmptyFields; + @Nullable private final Boolean includeUnmapped; @@ -97,6 +111,7 @@ private FieldCapsRequest(Builder builder) { this.fields = ApiTypeHelper.unmodifiable(builder.fields); this.filters = builder.filters; this.ignoreUnavailable = builder.ignoreUnavailable; + this.includeEmptyFields = builder.includeEmptyFields; this.includeUnmapped = builder.includeUnmapped; this.index = ApiTypeHelper.unmodifiable(builder.index); this.indexFilter = builder.indexFilter; @@ -167,6 +182,16 @@ public final Boolean ignoreUnavailable() { return this.ignoreUnavailable; } + /** + * If false, empty fields are not included in the response. + *

+ * API name: {@code include_empty_fields} + */ + @Nullable + public final Boolean includeEmptyFields() { + return this.includeEmptyFields; + } + /** * If true, unmapped fields are included in the response. *

@@ -283,6 +308,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean ignoreUnavailable; + @Nullable + private Boolean includeEmptyFields; + @Nullable private Boolean includeUnmapped; @@ -390,6 +418,16 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { return this; } + /** + * If false, empty fields are not included in the response. + *

+ * API name: {@code include_empty_fields} + */ + public final Builder includeEmptyFields(@Nullable Boolean value) { + this.includeEmptyFields = value; + return this; + } + /** * If true, unmapped fields are included in the response. *

@@ -623,6 +661,9 @@ protected static void setupFieldCapsRequestDeserializer(ObjectDeserializertrue, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -201,7 +212,9 @@ public final String routing() { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

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

* API name: {@code realtime} */ @@ -403,7 +416,9 @@ public final Builder routing(@Nullable String value) { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} *

@@ -415,7 +430,9 @@ public final Builder storedFields(List list) { } /** - * A comma-separated list of stored fields to return in the response + * 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. *

* API name: {@code stored_fields} *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetResponse.java index 32facc619..7048ba143 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.get.GetResult; @@ -35,6 +31,21 @@ import java.util.function.Function; import java.util.function.Supplier; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java index 65d057ae2..f0a1062c9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,10 +38,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get_script.Request /** - * Returns a script. + * Retrieves a stored script or search template. * * @see API * specification @@ -71,7 +82,7 @@ public static GetScriptRequest of(Function * API name: {@code id} */ @@ -104,7 +115,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time masterTimeout; /** - * Required - Script ID + * Required - Identifier for the stored script or search template. *

* API name: {@code id} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptResponse.java index e7dbf6945..f34dd19e9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.StoredScript; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get_script.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java index 12cfa2aef..7e3c5daca 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get_source.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceResponse.java index b392eb46d..309eafb19 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get_source.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java index 4ea3ab8f2..d6ab508fc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -55,10 +51,27 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.index.Request /** - * Creates or updates a document in an index. + * Adds a JSON document to the specified data stream or index and makes it + * searchable. If the target is an index and the document already exists, the + * request updates the document and increments its version. * * @see API * specification @@ -136,7 +149,7 @@ public static IndexRequest of( } /** - * Document ID + * Unique identifier for the document. *

* API name: {@code id} */ @@ -146,8 +159,7 @@ public final String id() { } /** - * only perform the index operation if the last operation that has changed the - * document has the specified primary term + * Only perform the operation if the document has this primary term. *

* API name: {@code if_primary_term} */ @@ -157,8 +169,7 @@ public final Long ifPrimaryTerm() { } /** - * only perform the index operation if the last operation that has changed the - * document has the specified sequence number + * Only perform the operation if the document has this sequence number. *

* API name: {@code if_seq_no} */ @@ -168,7 +179,7 @@ public final Long ifSeqNo() { } /** - * Required - The name of the index + * Required - Name of the data stream or index to target. *

* API name: {@code index} */ @@ -177,9 +188,13 @@ public final String index() { } /** - * Explicit operation type. Defaults to index for requests with an - * explicit document ID, and to createfor requests without an - * explicit document ID + * Set to create to only index the document if it does not already exist (put if + * absent). If a document with the specified _id already exists, + * the indexing operation will fail. Same as using the + * <index>/_create endpoint. Valid values: + * index, create. If document id is specified, it + * defaults to index. Otherwise, it defaults to + * create. *

* API name: {@code op_type} */ @@ -189,7 +204,11 @@ public final OpType opType() { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -199,10 +218,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -212,7 +232,7 @@ public final Refresh refresh() { } /** - * When true, requires destination to be an alias. Default is false + * If true, the destination must be an index alias. *

* API name: {@code require_alias} */ @@ -222,7 +242,7 @@ public final Boolean requireAlias() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -232,7 +252,8 @@ public final String routing() { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -242,7 +263,8 @@ public final Time timeout() { } /** - * Explicit version number for concurrency control + * 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} */ @@ -252,7 +274,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -262,11 +284,9 @@ public final VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -343,7 +363,7 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; /** - * Document ID + * Unique identifier for the document. *

* API name: {@code id} */ @@ -353,8 +373,7 @@ public final Builder id(@Nullable String value) { } /** - * only perform the index operation if the last operation that has changed the - * document has the specified primary term + * Only perform the operation if the document has this primary term. *

* API name: {@code if_primary_term} */ @@ -364,8 +383,7 @@ public final Builder ifPrimaryTerm(@Nullable Long value) { } /** - * only perform the index operation if the last operation that has changed the - * document has the specified sequence number + * Only perform the operation if the document has this sequence number. *

* API name: {@code if_seq_no} */ @@ -375,7 +393,7 @@ public final Builder ifSeqNo(@Nullable Long value) { } /** - * Required - The name of the index + * Required - Name of the data stream or index to target. *

* API name: {@code index} */ @@ -385,9 +403,13 @@ public final Builder index(String value) { } /** - * Explicit operation type. Defaults to index for requests with an - * explicit document ID, and to createfor requests without an - * explicit document ID + * Set to create to only index the document if it does not already exist (put if + * absent). If a document with the specified _id already exists, + * the indexing operation will fail. Same as using the + * <index>/_create endpoint. Valid values: + * index, create. If document id is specified, it + * defaults to index. Otherwise, it defaults to + * create. *

* API name: {@code op_type} */ @@ -397,7 +419,11 @@ public final Builder opType(@Nullable OpType value) { } /** - * The pipeline id to preprocess incoming documents with + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -407,10 +433,11 @@ public final 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. + * 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. Valid values: true, false, + * wait_for. *

* API name: {@code refresh} */ @@ -420,7 +447,7 @@ public final Builder refresh(@Nullable Refresh value) { } /** - * When true, requires destination to be an alias. Default is false + * If true, the destination must be an index alias. *

* API name: {@code require_alias} */ @@ -430,7 +457,7 @@ public final Builder requireAlias(@Nullable Boolean value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -440,7 +467,8 @@ public final Builder routing(@Nullable String value) { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -450,7 +478,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * Period the request waits for the following operations: automatic index + * creation, dynamic mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -459,7 +488,8 @@ public final Builder timeout(Function * API name: {@code version} */ @@ -469,7 +499,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type: external, external_gte. *

* API name: {@code version_type} */ @@ -479,11 +509,9 @@ public final Builder versionType(@Nullable VersionType 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -493,11 +521,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShard } /** - * 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/IndexResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/IndexResponse.java index ec9cf6822..61c261ff3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/IndexResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/IndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.WriteResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.index.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java index 82863a2fc..2dd187328 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.info.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/InfoResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/InfoResponse.java index ce06f7cb7..f78f1304f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/InfoResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/InfoResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ElasticsearchVersionInfo; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.info.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java index 23298d8c8..13609d804 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -48,6 +44,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mget.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MgetResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MgetResponse.java index 533a4d30c..fd8915a8f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MgetResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MgetResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.mget.MultiGetResponseItem; @@ -43,6 +39,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mget.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java index 0102bfe59..62f51f89e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -52,6 +48,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchResponse.java index 21b4ae7d1..f099c3f95 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.msearch.MultiSearchResult; @@ -35,6 +31,21 @@ import java.util.function.Function; import java.util.function.Supplier; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java index 722f286c3..8f023d59d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -51,6 +47,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch_template.Request /** @@ -96,8 +107,8 @@ public Iterator _serializables() { return this.searchTemplates.iterator(); } /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips are minimized for cross-cluster + * search requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -107,7 +118,9 @@ public final Boolean ccsMinimizeRoundtrips() { } /** - * A comma-separated list of index names to use as default + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use *. *

* API name: {@code index} */ @@ -116,8 +129,7 @@ public final List index() { } /** - * Controls the maximum number of concurrent searches the multi search api will - * execute + * Maximum number of concurrent searches the API can run. *

* API name: {@code max_concurrent_searches} */ @@ -127,7 +139,8 @@ public final Long maxConcurrentSearches() { } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -180,8 +193,8 @@ public static class Builder extends RequestBase.AbstractBuilder private List searchTemplates; /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips are minimized for cross-cluster + * search requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -191,7 +204,9 @@ public final Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { } /** - * A comma-separated list of index names to use as default + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use *. *

* API name: {@code index} *

@@ -203,7 +218,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to use as default + * Comma-separated list of data streams, indices, and aliases to search. + * Supports wildcards (*). To search all data streams and indices, + * omit this parameter or use *. *

* API name: {@code index} *

@@ -215,8 +232,7 @@ public final Builder index(String value, String... values) { } /** - * Controls the maximum number of concurrent searches the multi search api will - * execute + * Maximum number of concurrent searches the API can run. *

* API name: {@code max_concurrent_searches} */ @@ -226,7 +242,8 @@ public final Builder maxConcurrentSearches(@Nullable Long value) { } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateResponse.java index 04bfb5615..3b1da42e6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.msearch.MultiSearchResult; @@ -35,6 +31,21 @@ import java.util.function.Function; import java.util.function.Supplier; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java index 6b9a77957..3c07cebd5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mtermvectors.Request /** @@ -124,6 +135,8 @@ public static MtermvectorsRequest of(Function * API name: {@code docs} */ public final List docs() { @@ -131,9 +144,8 @@ public final List docs() { } /** - * 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". + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. *

* API name: {@code field_statistics} */ @@ -143,8 +155,10 @@ public final Boolean fieldStatistics() { } /** - * A comma-separated list of fields to return. Applies to all returned documents - * unless otherwise specified in body "params" or "docs". + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} */ @@ -153,6 +167,9 @@ public final List fields() { } /** + * Simplified syntax to specify documents by their ID if they're in the same + * index. + *

* API name: {@code ids} */ public final List ids() { @@ -160,7 +177,7 @@ public final List ids() { } /** - * The index in which the document resides. + * Name of the index that contains the documents. *

* API name: {@code index} */ @@ -170,9 +187,7 @@ public final String index() { } /** - * Specifies if term offsets should be returned. Applies to all returned - * documents unless otherwise specified in body "params" or - * "docs". + * If true, the response includes term offsets. *

* API name: {@code offsets} */ @@ -182,9 +197,7 @@ public final Boolean offsets() { } /** - * Specifies if term payloads should be returned. Applies to all returned - * documents unless otherwise specified in body "params" or - * "docs". + * If true, the response includes term payloads. *

* API name: {@code payloads} */ @@ -194,9 +207,7 @@ public final Boolean payloads() { } /** - * Specifies if term positions should be returned. Applies to all returned - * documents unless otherwise specified in body "params" or - * "docs". + * If true, the response includes term positions. *

* API name: {@code positions} */ @@ -206,9 +217,8 @@ public final 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". + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -218,8 +228,7 @@ public final String preference() { } /** - * Specifies if requests are real-time as opposed to near-real-time (default: - * true). + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -229,8 +238,7 @@ public final Boolean realtime() { } /** - * Specific routing value. Applies to all returned documents unless otherwise - * specified in body "params" or "docs". + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -240,9 +248,7 @@ public final String 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". + * If true, the response includes term frequency and document frequency. *

* API name: {@code term_statistics} */ @@ -252,7 +258,7 @@ public final Boolean termStatistics() { } /** - * Explicit version number for concurrency control + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -262,7 +268,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type. *

* API name: {@code version_type} */ @@ -357,6 +363,8 @@ public static class Builder extends RequestBase.AbstractBuilder private VersionType versionType; /** + * Array of existing or artificial documents. + *

* API name: {@code docs} *

* Adds all elements of list to docs. @@ -367,6 +375,8 @@ public final Builder docs(List list) { } /** + * Array of existing or artificial documents. + *

* API name: {@code docs} *

* Adds one or more values to docs. @@ -377,6 +387,8 @@ public final Builder docs(MultiTermVectorsOperation value, MultiTermVectorsOpera } /** + * Array of existing or artificial documents. + *

* API name: {@code docs} *

* Adds a value to docs using a builder lambda. @@ -387,9 +399,8 @@ public final Builder docs( } /** - * 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". + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. *

* API name: {@code field_statistics} */ @@ -399,8 +410,10 @@ public final Builder fieldStatistics(@Nullable Boolean value) { } /** - * A comma-separated list of fields to return. Applies to all returned documents - * unless otherwise specified in body "params" or "docs". + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} *

@@ -412,8 +425,10 @@ public final Builder fields(List list) { } /** - * A comma-separated list of fields to return. Applies to all returned documents - * unless otherwise specified in body "params" or "docs". + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} *

@@ -425,6 +440,9 @@ public final Builder fields(String value, String... values) { } /** + * Simplified syntax to specify documents by their ID if they're in the same + * index. + *

* API name: {@code ids} *

* Adds all elements of list to ids. @@ -435,6 +453,9 @@ public final Builder ids(List list) { } /** + * Simplified syntax to specify documents by their ID if they're in the same + * index. + *

* API name: {@code ids} *

* Adds one or more values to ids. @@ -445,7 +466,7 @@ public final Builder ids(String value, String... values) { } /** - * The index in which the document resides. + * Name of the index that contains the documents. *

* API name: {@code index} */ @@ -455,9 +476,7 @@ public final Builder index(@Nullable String value) { } /** - * Specifies if term offsets should be returned. Applies to all returned - * documents unless otherwise specified in body "params" or - * "docs". + * If true, the response includes term offsets. *

* API name: {@code offsets} */ @@ -467,9 +486,7 @@ public final 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". + * If true, the response includes term payloads. *

* API name: {@code payloads} */ @@ -479,9 +496,7 @@ public final 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". + * If true, the response includes term positions. *

* API name: {@code positions} */ @@ -491,9 +506,8 @@ public final 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". + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -503,8 +517,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specifies if requests are real-time as opposed to near-real-time (default: - * true). + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -514,8 +527,7 @@ public final Builder realtime(@Nullable Boolean value) { } /** - * Specific routing value. Applies to all returned documents unless otherwise - * specified in body "params" or "docs". + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -525,9 +537,7 @@ public final Builder routing(@Nullable String value) { } /** - * Specifies if total term frequency and document frequency should be returned. - * Applies to all returned documents unless otherwise specified in body - * "params" or "docs". + * If true, the response includes term frequency and document frequency. *

* API name: {@code term_statistics} */ @@ -537,7 +547,7 @@ public final Builder termStatistics(@Nullable Boolean value) { } /** - * Explicit version number for concurrency control + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -547,7 +557,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type. *

* API name: {@code version_type} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsResponse.java index 3cdf0a3a3..0b1b34b4c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.mtermvectors.MultiTermVectorsResult; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mtermvectors.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java index 0a60e2767..5b9752c24 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.open_point_in_time.Request /** @@ -97,8 +108,12 @@ public static OpenPointInTimeRequest of(Function

* API name: {@code expand_wildcards} */ @@ -107,8 +122,8 @@ public final List expandWildcards() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -128,7 +143,7 @@ public final List index() { } /** - * Required - Specific the time to live for the point in time + * Required - Extends the time to live of the corresponding point in time. *

* API name: {@code keep_alive} */ @@ -137,8 +152,8 @@ public final Time keepAlive() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -148,7 +163,7 @@ public final String preference() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -183,8 +198,12 @@ public static class Builder extends RequestBase.AbstractBuilder private String routing; /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -196,8 +215,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -209,8 +232,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -246,7 +269,7 @@ public final Builder index(String value, String... values) { } /** - * Required - Specific the time to live for the point in time + * Required - Extends the time to live of the corresponding point in time. *

* API name: {@code keep_alive} */ @@ -256,7 +279,7 @@ public final Builder keepAlive(Time value) { } /** - * Required - Specific the time to live for the point in time + * Required - Extends the time to live of the corresponding point in time. *

* API name: {@code keep_alive} */ @@ -265,8 +288,8 @@ public final Builder keepAlive(Function> fn) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -276,7 +299,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeResponse.java index 0c80cf058..803742154 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.open_point_in_time.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java index 7e72b9812..89b17d098 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -38,6 +34,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.ping.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java index 69998a95d..2acff98fc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,10 +41,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.put_script.Request /** - * Creates or updates a script. + * Creates or updates a stored script or search template. * * @see API * specification @@ -85,7 +96,8 @@ public static PutScriptRequest of(Function * API name: {@code context} */ @@ -95,7 +107,8 @@ public final String context() { } /** - * Required - Script ID + * Required - Identifier for the stored script or search template. Must be + * unique within the cluster. *

* API name: {@code id} */ @@ -104,7 +117,8 @@ public final String id() { } /** - * Specify timeout for connection to master + * 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} */ @@ -114,14 +128,18 @@ public final Time masterTimeout() { } /** - * Required - API name: {@code script} + * Required - Contains the script or search template, its parameters, and its + * language. + *

+ * API name: {@code script} */ public final StoredScript script() { return this.script; } /** - * Explicit operation timeout + * 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} */ @@ -169,7 +187,8 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Script context + * Context in which the script or search template should run. To prevent errors, + * the API immediately compiles the script or template in this context. *

* API name: {@code context} */ @@ -179,7 +198,8 @@ public final Builder context(@Nullable String value) { } /** - * Required - Script ID + * Required - Identifier for the stored script or search template. Must be + * unique within the cluster. *

* API name: {@code id} */ @@ -189,7 +209,8 @@ public final Builder id(String value) { } /** - * Specify timeout for connection to master + * 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} */ @@ -199,7 +220,8 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * 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} */ @@ -208,7 +230,10 @@ public final Builder masterTimeout(Function> f } /** - * Required - API name: {@code script} + * Required - Contains the script or search template, its parameters, and its + * language. + *

+ * API name: {@code script} */ public final Builder script(StoredScript value) { this.script = value; @@ -216,14 +241,18 @@ public final Builder script(StoredScript value) { } /** - * Required - API name: {@code script} + * Required - Contains the script or search template, its parameters, and its + * language. + *

+ * API name: {@code script} */ public final Builder script(Function> fn) { return this.script(fn.apply(new StoredScript.Builder()).build()); } /** - * Explicit operation timeout + * 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} */ @@ -233,7 +262,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * 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} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptResponse.java index 934b0c480..151c5e752 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.put_script.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java index 660c1a146..d1a40f192 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalResponse.java index e20b9948d..8ca2ad962 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.rank_eval.RankEvalMetricDetail; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java new file mode 100644 index 000000000..0019dcbd1 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java @@ -0,0 +1,678 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.core; + +import co.elastic.clients.elasticsearch._types.Conflicts; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Script; +import co.elastic.clients.elasticsearch._types.Slices; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch._types.WaitForActiveShards; +import co.elastic.clients.elasticsearch.core.reindex.Destination; +import co.elastic.clients.elasticsearch.core.reindex.Source; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Float; +import java.lang.Long; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _global.reindex.Request + +/** + * 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 API + * specification + */ +@JsonpDeserializable +public class ReindexRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final Conflicts conflicts; + + private final Destination dest; + + @Nullable + private final Long maxDocs; + + @Nullable + private final Boolean refresh; + + @Nullable + private final Float requestsPerSecond; + + @Nullable + private final Boolean requireAlias; + + @Nullable + private final Script script; + + @Nullable + private final Time scroll; + + @Nullable + private final Long size; + + @Nullable + private final Slices slices; + + private final Source source; + + @Nullable + private final Time timeout; + + @Nullable + private final WaitForActiveShards waitForActiveShards; + + @Nullable + private final Boolean waitForCompletion; + + // --------------------------------------------------------------------------------------------- + + private ReindexRequest(Builder builder) { + + this.conflicts = builder.conflicts; + this.dest = ApiTypeHelper.requireNonNull(builder.dest, this, "dest"); + this.maxDocs = builder.maxDocs; + this.refresh = builder.refresh; + this.requestsPerSecond = builder.requestsPerSecond; + this.requireAlias = builder.requireAlias; + this.script = builder.script; + this.scroll = builder.scroll; + this.size = builder.size; + this.slices = builder.slices; + this.source = ApiTypeHelper.requireNonNull(builder.source, this, "source"); + this.timeout = builder.timeout; + this.waitForActiveShards = builder.waitForActiveShards; + this.waitForCompletion = builder.waitForCompletion; + + } + + public static ReindexRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Set to proceed to continue reindexing even if there are conflicts. + *

+ * API name: {@code conflicts} + */ + @Nullable + public final Conflicts conflicts() { + return this.conflicts; + } + + /** + * Required - The destination you are copying to. + *

+ * API name: {@code dest} + */ + public final Destination dest() { + return this.dest; + } + + /** + * The maximum number of documents to reindex. + *

+ * API name: {@code max_docs} + */ + @Nullable + public final Long maxDocs() { + return this.maxDocs; + } + + /** + * If true, the request refreshes affected shards to make this + * operation visible to search. + *

+ * API name: {@code refresh} + */ + @Nullable + public final Boolean refresh() { + return this.refresh; + } + + /** + * The throttle for this request in sub-requests per second. Defaults to no + * throttle. + *

+ * API name: {@code requests_per_second} + */ + @Nullable + public final Float requestsPerSecond() { + return this.requestsPerSecond; + } + + /** + * If true, the destination must be an index alias. + *

+ * API name: {@code require_alias} + */ + @Nullable + public final Boolean requireAlias() { + return this.requireAlias; + } + + /** + * The script to run to update the document source or metadata when reindexing. + *

+ * API name: {@code script} + */ + @Nullable + public final Script script() { + return this.script; + } + + /** + * Specifies how long a consistent view of the index should be maintained for + * scrolled search. + *

+ * API name: {@code scroll} + */ + @Nullable + public final Time scroll() { + return this.scroll; + } + + /** + * API name: {@code size} + */ + @Nullable + public final Long size() { + return this.size; + } + + /** + * The number of slices this task should be divided into. Defaults to 1 slice, + * meaning the task isn’t sliced into subtasks. + *

+ * API name: {@code slices} + */ + @Nullable + public final Slices slices() { + return this.slices; + } + + /** + * Required - The source you are copying from. + *

+ * API name: {@code source} + */ + public final Source source() { + return this.source; + } + + /** + * Period each indexing waits for automatic index creation, dynamic mapping + * updates, and waiting for active shards. + *

+ * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + /** + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). + *

+ * API name: {@code wait_for_active_shards} + */ + @Nullable + public final WaitForActiveShards waitForActiveShards() { + return this.waitForActiveShards; + } + + /** + * If true, the request blocks until the operation is complete. + *

+ * API name: {@code wait_for_completion} + */ + @Nullable + public final Boolean waitForCompletion() { + return this.waitForCompletion; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.conflicts != null) { + generator.writeKey("conflicts"); + this.conflicts.serialize(generator, mapper); + } + generator.writeKey("dest"); + this.dest.serialize(generator, mapper); + + if (this.maxDocs != null) { + generator.writeKey("max_docs"); + generator.write(this.maxDocs); + + } + if (this.script != null) { + generator.writeKey("script"); + this.script.serialize(generator, mapper); + + } + if (this.size != null) { + generator.writeKey("size"); + generator.write(this.size); + + } + generator.writeKey("source"); + this.source.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ReindexRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Conflicts conflicts; + + private Destination dest; + + @Nullable + private Long maxDocs; + + @Nullable + private Boolean refresh; + + @Nullable + private Float requestsPerSecond; + + @Nullable + private Boolean requireAlias; + + @Nullable + private Script script; + + @Nullable + private Time scroll; + + @Nullable + private Long size; + + @Nullable + private Slices slices; + + private Source source; + + @Nullable + private Time timeout; + + @Nullable + private WaitForActiveShards waitForActiveShards; + + @Nullable + private Boolean waitForCompletion; + + /** + * Set to proceed to continue reindexing even if there are conflicts. + *

+ * API name: {@code conflicts} + */ + public final Builder conflicts(@Nullable Conflicts value) { + this.conflicts = value; + return this; + } + + /** + * Required - The destination you are copying to. + *

+ * API name: {@code dest} + */ + public final Builder dest(Destination value) { + this.dest = value; + return this; + } + + /** + * Required - The destination you are copying to. + *

+ * API name: {@code dest} + */ + public final Builder dest(Function> fn) { + return this.dest(fn.apply(new Destination.Builder()).build()); + } + + /** + * The maximum number of documents to reindex. + *

+ * API name: {@code max_docs} + */ + public final Builder maxDocs(@Nullable Long value) { + this.maxDocs = value; + return this; + } + + /** + * If true, the request refreshes affected shards to make this + * operation visible to search. + *

+ * API name: {@code refresh} + */ + public final Builder refresh(@Nullable Boolean value) { + this.refresh = value; + return this; + } + + /** + * The throttle for this request in sub-requests per second. Defaults to no + * throttle. + *

+ * API name: {@code requests_per_second} + */ + public final Builder requestsPerSecond(@Nullable Float value) { + this.requestsPerSecond = value; + return this; + } + + /** + * If true, the destination must be an index alias. + *

+ * API name: {@code require_alias} + */ + public final Builder requireAlias(@Nullable Boolean value) { + this.requireAlias = value; + return this; + } + + /** + * The script to run to update the document source or metadata when reindexing. + *

+ * API name: {@code script} + */ + public final Builder script(@Nullable Script value) { + this.script = value; + return this; + } + + /** + * The script to run to update the document source or metadata when reindexing. + *

+ * API name: {@code script} + */ + public final Builder script(Function> fn) { + return this.script(fn.apply(new Script.Builder()).build()); + } + + /** + * Specifies how long a consistent view of the index should be maintained for + * scrolled search. + *

+ * API name: {@code scroll} + */ + public final Builder scroll(@Nullable Time value) { + this.scroll = value; + return this; + } + + /** + * Specifies how long a consistent view of the index should be maintained for + * scrolled search. + *

+ * API name: {@code scroll} + */ + public final Builder scroll(Function> fn) { + return this.scroll(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code size} + */ + public final Builder size(@Nullable Long value) { + this.size = value; + return this; + } + + /** + * The number of slices this task should be divided into. Defaults to 1 slice, + * meaning the task isn’t sliced into subtasks. + *

+ * API name: {@code slices} + */ + public final Builder slices(@Nullable Slices value) { + this.slices = value; + return this; + } + + /** + * The number of slices this task should be divided into. Defaults to 1 slice, + * meaning the task isn’t sliced into subtasks. + *

+ * API name: {@code slices} + */ + public final Builder slices(Function> fn) { + return this.slices(fn.apply(new Slices.Builder()).build()); + } + + /** + * Required - The source you are copying from. + *

+ * API name: {@code source} + */ + public final Builder source(Source value) { + this.source = value; + return this; + } + + /** + * Required - The source you are copying from. + *

+ * API name: {@code source} + */ + public final Builder source(Function> fn) { + return this.source(fn.apply(new Source.Builder()).build()); + } + + /** + * Period each indexing waits for automatic index creation, dynamic mapping + * updates, and waiting for active shards. + *

+ * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Period each indexing waits for automatic index creation, dynamic mapping + * updates, and waiting for active shards. + *

+ * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + /** + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). + *

+ * API name: {@code wait_for_active_shards} + */ + public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { + this.waitForActiveShards = value; + return this; + } + + /** + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). + *

+ * API name: {@code wait_for_active_shards} + */ + public final Builder waitForActiveShards( + Function> fn) { + return this.waitForActiveShards(fn.apply(new WaitForActiveShards.Builder()).build()); + } + + /** + * If true, the request blocks until the operation is complete. + *

+ * API name: {@code wait_for_completion} + */ + public final Builder waitForCompletion(@Nullable Boolean value) { + this.waitForCompletion = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ReindexRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ReindexRequest build() { + _checkSingleUse(); + + return new ReindexRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ReindexRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ReindexRequest::setupReindexRequestDeserializer); + + protected static void setupReindexRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::conflicts, Conflicts._DESERIALIZER, "conflicts"); + op.add(Builder::dest, Destination._DESERIALIZER, "dest"); + op.add(Builder::maxDocs, JsonpDeserializer.longDeserializer(), "max_docs"); + op.add(Builder::script, Script._DESERIALIZER, "script"); + op.add(Builder::size, JsonpDeserializer.longDeserializer(), "size"); + op.add(Builder::source, Source._DESERIALIZER, "source"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code reindex}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/reindex", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + return "/_reindex"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.slices != null) { + params.put("slices", request.slices._toJsonString()); + } + if (request.requestsPerSecond != null) { + params.put("requests_per_second", String.valueOf(request.requestsPerSecond)); + } + if (request.requireAlias != null) { + params.put("require_alias", String.valueOf(request.requireAlias)); + } + if (request.scroll != null) { + params.put("scroll", request.scroll._toJsonString()); + } + if (request.refresh != null) { + params.put("refresh", String.valueOf(request.refresh)); + } + if (request.waitForActiveShards != null) { + params.put("wait_for_active_shards", request.waitForActiveShards._toJsonString()); + } + if (request.waitForCompletion != null) { + params.put("wait_for_completion", String.valueOf(request.waitForCompletion)); + } + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, ReindexResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java new file mode 100644 index 000000000..153999c54 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java @@ -0,0 +1,634 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.core; + +import co.elastic.clients.elasticsearch._types.BulkIndexByScrollFailure; +import co.elastic.clients.elasticsearch._types.Retries; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Float; +import java.lang.Integer; +import java.lang.Long; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _global.reindex.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ReindexResponse implements JsonpSerializable { + @Nullable + private final Long batches; + + @Nullable + private final Long created; + + @Nullable + private final Long deleted; + + private final List failures; + + @Nullable + private final Long noops; + + @Nullable + private final Retries retries; + + @Nullable + private final Float requestsPerSecond; + + @Nullable + private final Integer sliceId; + + @Nullable + private final String task; + + @Nullable + private final Long throttledMillis; + + @Nullable + private final Long throttledUntilMillis; + + @Nullable + private final Boolean timedOut; + + @Nullable + private final Long took; + + @Nullable + private final Long total; + + @Nullable + private final Long updated; + + @Nullable + private final Long versionConflicts; + + // --------------------------------------------------------------------------------------------- + + private ReindexResponse(Builder builder) { + + this.batches = builder.batches; + this.created = builder.created; + this.deleted = builder.deleted; + this.failures = ApiTypeHelper.unmodifiable(builder.failures); + this.noops = builder.noops; + this.retries = builder.retries; + this.requestsPerSecond = builder.requestsPerSecond; + this.sliceId = builder.sliceId; + this.task = builder.task; + this.throttledMillis = builder.throttledMillis; + this.throttledUntilMillis = builder.throttledUntilMillis; + this.timedOut = builder.timedOut; + this.took = builder.took; + this.total = builder.total; + this.updated = builder.updated; + this.versionConflicts = builder.versionConflicts; + + } + + public static ReindexResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code batches} + */ + @Nullable + public final Long batches() { + return this.batches; + } + + /** + * API name: {@code created} + */ + @Nullable + public final Long created() { + return this.created; + } + + /** + * API name: {@code deleted} + */ + @Nullable + public final Long deleted() { + return this.deleted; + } + + /** + * API name: {@code failures} + */ + public final List failures() { + return this.failures; + } + + /** + * API name: {@code noops} + */ + @Nullable + public final Long noops() { + return this.noops; + } + + /** + * API name: {@code retries} + */ + @Nullable + public final Retries retries() { + return this.retries; + } + + /** + * API name: {@code requests_per_second} + */ + @Nullable + public final Float requestsPerSecond() { + return this.requestsPerSecond; + } + + /** + * API name: {@code slice_id} + */ + @Nullable + public final Integer sliceId() { + return this.sliceId; + } + + /** + * API name: {@code task} + */ + @Nullable + public final String task() { + return this.task; + } + + /** + * API name: {@code throttled_millis} + */ + @Nullable + public final Long throttledMillis() { + return this.throttledMillis; + } + + /** + * API name: {@code throttled_until_millis} + */ + @Nullable + public final Long throttledUntilMillis() { + return this.throttledUntilMillis; + } + + /** + * API name: {@code timed_out} + */ + @Nullable + public final Boolean timedOut() { + return this.timedOut; + } + + /** + * API name: {@code took} + */ + @Nullable + public final Long took() { + return this.took; + } + + /** + * API name: {@code total} + */ + @Nullable + public final Long total() { + return this.total; + } + + /** + * API name: {@code updated} + */ + @Nullable + public final Long updated() { + return this.updated; + } + + /** + * API name: {@code version_conflicts} + */ + @Nullable + public final Long versionConflicts() { + return this.versionConflicts; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.batches != null) { + generator.writeKey("batches"); + generator.write(this.batches); + + } + if (this.created != null) { + generator.writeKey("created"); + generator.write(this.created); + + } + if (this.deleted != null) { + generator.writeKey("deleted"); + generator.write(this.deleted); + + } + if (ApiTypeHelper.isDefined(this.failures)) { + generator.writeKey("failures"); + generator.writeStartArray(); + for (BulkIndexByScrollFailure item0 : this.failures) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.noops != null) { + generator.writeKey("noops"); + generator.write(this.noops); + + } + if (this.retries != null) { + generator.writeKey("retries"); + this.retries.serialize(generator, mapper); + + } + if (this.requestsPerSecond != null) { + generator.writeKey("requests_per_second"); + generator.write(this.requestsPerSecond); + + } + if (this.sliceId != null) { + generator.writeKey("slice_id"); + generator.write(this.sliceId); + + } + if (this.task != null) { + generator.writeKey("task"); + generator.write(this.task); + + } + if (this.throttledMillis != null) { + generator.writeKey("throttled_millis"); + generator.write(this.throttledMillis); + + } + if (this.throttledUntilMillis != null) { + generator.writeKey("throttled_until_millis"); + generator.write(this.throttledUntilMillis); + + } + if (this.timedOut != null) { + generator.writeKey("timed_out"); + generator.write(this.timedOut); + + } + if (this.took != null) { + generator.writeKey("took"); + generator.write(this.took); + + } + if (this.total != null) { + generator.writeKey("total"); + generator.write(this.total); + + } + if (this.updated != null) { + generator.writeKey("updated"); + generator.write(this.updated); + + } + if (this.versionConflicts != null) { + generator.writeKey("version_conflicts"); + generator.write(this.versionConflicts); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ReindexResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private Long batches; + + @Nullable + private Long created; + + @Nullable + private Long deleted; + + @Nullable + private List failures; + + @Nullable + private Long noops; + + @Nullable + private Retries retries; + + @Nullable + private Float requestsPerSecond; + + @Nullable + private Integer sliceId; + + @Nullable + private String task; + + @Nullable + private Long throttledMillis; + + @Nullable + private Long throttledUntilMillis; + + @Nullable + private Boolean timedOut; + + @Nullable + private Long took; + + @Nullable + private Long total; + + @Nullable + private Long updated; + + @Nullable + private Long versionConflicts; + + /** + * API name: {@code batches} + */ + public final Builder batches(@Nullable Long value) { + this.batches = value; + return this; + } + + /** + * API name: {@code created} + */ + public final Builder created(@Nullable Long value) { + this.created = value; + return this; + } + + /** + * API name: {@code deleted} + */ + public final Builder deleted(@Nullable Long value) { + this.deleted = value; + return this; + } + + /** + * API name: {@code failures} + *

+ * Adds all elements of list to failures. + */ + public final Builder failures(List list) { + this.failures = _listAddAll(this.failures, list); + return this; + } + + /** + * API name: {@code failures} + *

+ * Adds one or more values to failures. + */ + public final Builder failures(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) { + this.failures = _listAdd(this.failures, value, values); + return this; + } + + /** + * API name: {@code failures} + *

+ * Adds a value to failures using a builder lambda. + */ + public final Builder failures( + Function> fn) { + return failures(fn.apply(new BulkIndexByScrollFailure.Builder()).build()); + } + + /** + * API name: {@code noops} + */ + public final Builder noops(@Nullable Long value) { + this.noops = value; + return this; + } + + /** + * API name: {@code retries} + */ + public final Builder retries(@Nullable Retries value) { + this.retries = value; + return this; + } + + /** + * API name: {@code retries} + */ + public final Builder retries(Function> fn) { + return this.retries(fn.apply(new Retries.Builder()).build()); + } + + /** + * API name: {@code requests_per_second} + */ + public final Builder requestsPerSecond(@Nullable Float value) { + this.requestsPerSecond = value; + return this; + } + + /** + * API name: {@code slice_id} + */ + public final Builder sliceId(@Nullable Integer value) { + this.sliceId = value; + return this; + } + + /** + * API name: {@code task} + */ + public final Builder task(@Nullable String value) { + this.task = value; + return this; + } + + /** + * API name: {@code throttled_millis} + */ + public final Builder throttledMillis(@Nullable Long value) { + this.throttledMillis = value; + return this; + } + + /** + * API name: {@code throttled_until_millis} + */ + public final Builder throttledUntilMillis(@Nullable Long value) { + this.throttledUntilMillis = value; + return this; + } + + /** + * API name: {@code timed_out} + */ + public final Builder timedOut(@Nullable Boolean value) { + this.timedOut = value; + return this; + } + + /** + * API name: {@code took} + */ + public final Builder took(@Nullable Long value) { + this.took = value; + return this; + } + + /** + * API name: {@code total} + */ + public final Builder total(@Nullable Long value) { + this.total = value; + return this; + } + + /** + * API name: {@code updated} + */ + public final Builder updated(@Nullable Long value) { + this.updated = value; + return this; + } + + /** + * API name: {@code version_conflicts} + */ + public final Builder versionConflicts(@Nullable Long value) { + this.versionConflicts = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ReindexResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ReindexResponse build() { + _checkSingleUse(); + + return new ReindexResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ReindexResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ReindexResponse::setupReindexResponseDeserializer); + + protected static void setupReindexResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::batches, JsonpDeserializer.longDeserializer(), "batches"); + op.add(Builder::created, JsonpDeserializer.longDeserializer(), "created"); + op.add(Builder::deleted, JsonpDeserializer.longDeserializer(), "deleted"); + op.add(Builder::failures, JsonpDeserializer.arrayDeserializer(BulkIndexByScrollFailure._DESERIALIZER), + "failures"); + op.add(Builder::noops, JsonpDeserializer.longDeserializer(), "noops"); + op.add(Builder::retries, Retries._DESERIALIZER, "retries"); + op.add(Builder::requestsPerSecond, JsonpDeserializer.floatDeserializer(), "requests_per_second"); + op.add(Builder::sliceId, JsonpDeserializer.integerDeserializer(), "slice_id"); + op.add(Builder::task, JsonpDeserializer.stringDeserializer(), "task"); + op.add(Builder::throttledMillis, JsonpDeserializer.longDeserializer(), "throttled_millis"); + op.add(Builder::throttledUntilMillis, JsonpDeserializer.longDeserializer(), "throttled_until_millis"); + op.add(Builder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); + op.add(Builder::took, JsonpDeserializer.longDeserializer(), "took"); + op.add(Builder::total, JsonpDeserializer.longDeserializer(), "total"); + op.add(Builder::updated, JsonpDeserializer.longDeserializer(), "updated"); + op.add(Builder::versionConflicts, JsonpDeserializer.longDeserializer(), "version_conflicts"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java index b7c559c64..702555736 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,10 +41,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.render_search_template.Request /** - * Allows to use the Mustache language to pre-render a search definition. + * Renders a search template as a search request body. * * @see API @@ -91,7 +102,8 @@ public final String file() { } /** - * The id of the stored search template + * ID of the search template to render. If no source is specified, + * this or the id request body parameter is required. *

* API name: {@code id} */ @@ -101,6 +113,9 @@ public final String id() { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} */ public final Map params() { @@ -108,6 +123,11 @@ public final Map params() { } /** + * An inline search template. Supports the same parameters as the search API's + * request body. These parameters also support Mustache variables. If no + * id or <templated-id> is specified, this + * parameter is required. + *

* API name: {@code source} */ @Nullable @@ -180,7 +200,8 @@ public final Builder file(@Nullable String value) { } /** - * The id of the stored search template + * ID of the search template to render. If no source is specified, + * this or the id request body parameter is required. *

* API name: {@code id} */ @@ -190,6 +211,9 @@ public final Builder id(@Nullable String value) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -200,6 +224,9 @@ public final Builder params(Map map) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds an entry to params. @@ -210,6 +237,11 @@ public final Builder params(String key, JsonData value) { } /** + * An inline search template. Supports the same parameters as the search API's + * request body. These parameters also support Mustache variables. If no + * id or <templated-id> is specified, this + * parameter is required. + *

* API name: {@code source} */ public final Builder source(@Nullable String value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateResponse.java index 7734887e4..0ef6a6f41 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.render_search_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java index ddd8f6834..1f00be2c0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,10 +39,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.scripts_painless_execute.Request /** - * Allows an arbitrary script to be executed and a result to be returned + * Runs a script and returns a result. * * @see API @@ -78,6 +89,8 @@ public static ScriptsPainlessExecuteRequest of(Function * API name: {@code context} */ @Nullable @@ -86,6 +99,8 @@ public final String context() { } /** + * Additional parameters for the context. + *

* API name: {@code context_setup} */ @Nullable @@ -94,6 +109,8 @@ public final PainlessContextSetup contextSetup() { } /** + * The Painless script to execute. + *

* API name: {@code script} */ @Nullable @@ -149,6 +166,8 @@ public static class Builder extends RequestBase.AbstractBuilder private InlineScript script; /** + * The context that the script should run in. + *

* API name: {@code context} */ public final Builder context(@Nullable String value) { @@ -157,6 +176,8 @@ public final Builder context(@Nullable String value) { } /** + * Additional parameters for the context. + *

* API name: {@code context_setup} */ public final Builder contextSetup(@Nullable PainlessContextSetup value) { @@ -165,6 +186,8 @@ public final Builder contextSetup(@Nullable PainlessContextSetup value) { } /** + * Additional parameters for the context. + *

* API name: {@code context_setup} */ public final Builder contextSetup( @@ -173,6 +196,8 @@ public final Builder contextSetup( } /** + * The Painless script to execute. + *

* API name: {@code script} */ public final Builder script(@Nullable InlineScript value) { @@ -181,6 +206,8 @@ public final Builder script(@Nullable InlineScript value) { } /** + * The Painless script to execute. + *

* API name: {@code script} */ public final Builder script(Function> fn) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteResponse.java index 820d105f8..8ffca225c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.scripts_painless_execute.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java index 0854bb4fc..9a1acc6b4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.scroll.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScrollResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScrollResponse.java index 9f87bed60..cc7b53c94 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScrollResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/ScrollResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.search.ResponseBody; @@ -35,6 +31,21 @@ import java.util.function.Function; import java.util.function.Supplier; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.scroll.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java index c28b4de83..848880428 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -57,6 +53,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search_mvt.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index 2c26e6f3b..db9894637 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -63,6 +59,7 @@ import java.lang.Integer; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -71,6 +68,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search.Request /** @@ -2204,6 +2216,78 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Used to retrieve the next page of hits using a set of sort values from the + * previous page. + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * Used to retrieve the next page of hits using a set of sort values from the * previous page. diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchResponse.java index c66bf6cb2..a772ee9c6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.search.ResponseBody; @@ -35,6 +31,21 @@ import java.util.function.Function; import java.util.function.Supplier; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java index 4c8f997f2..64bc1b3c8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -50,10 +46,25 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search_template.Request /** - * Allows to use the Mustache language to pre-render a search definition. + * Runs a search with a search template. * * @see API * specification @@ -129,9 +140,12 @@ public static SearchTemplateRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -141,8 +155,8 @@ public final Boolean allowNoIndices() { } /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips are minimized for cross-cluster + * search requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -152,8 +166,12 @@ public final Boolean ccsMinimizeRoundtrips() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -162,6 +180,9 @@ public final List expandWildcards() { } /** + * If true, returns detailed information about score calculation as + * part of each hit. + *

* API name: {@code explain} */ @Nullable @@ -181,8 +202,8 @@ public final String id() { } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, specified concrete, expanded, or aliased indices are + * not included in the response when throttled. *

* API name: {@code ignore_throttled} */ @@ -192,8 +213,8 @@ public final Boolean ignoreThrottled() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -213,6 +234,9 @@ public final List index() { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} */ public final Map params() { @@ -220,8 +244,8 @@ public final Map params() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -231,6 +255,8 @@ public final String preference() { } /** + * If true, the query execution is profiled. + *

* API name: {@code profile} */ @Nullable @@ -381,9 +407,12 @@ public static class Builder extends RequestBase.AbstractBuilder private String source; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -393,8 +422,8 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Indicates whether network round-trips should be minimized as part of - * cross-cluster search requests execution + * If true, network round-trips are minimized for cross-cluster + * search requests. *

* API name: {@code ccs_minimize_roundtrips} */ @@ -404,8 +433,12 @@ public final Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -417,8 +450,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -430,6 +467,9 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** + * If true, returns detailed information about score calculation as + * part of each hit. + *

* API name: {@code explain} */ public final Builder explain(@Nullable Boolean value) { @@ -449,8 +489,8 @@ public final Builder id(@Nullable String value) { } /** - * Whether specified concrete, expanded or aliased indices should be ignored - * when throttled + * If true, specified concrete, expanded, or aliased indices are + * not included in the response when throttled. *

* API name: {@code ignore_throttled} */ @@ -460,8 +500,8 @@ public final Builder ignoreThrottled(@Nullable Boolean value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -497,6 +537,9 @@ public final Builder index(String value, String... values) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -507,6 +550,9 @@ public final Builder params(Map map) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds an entry to params. @@ -517,8 +563,8 @@ public final Builder params(String key, JsonData value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -528,6 +574,8 @@ public final Builder preference(@Nullable String value) { } /** + * If true, the query execution is profiled. + *

* API name: {@code profile} */ public final Builder profile(@Nullable Boolean value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateResponse.java index d8ec41a33..f95d8e33f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ClusterStatistics; @@ -55,6 +51,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java index 665625707..19e3a9b66 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.terms_enum.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumResponse.java index 19666cd5f..894a2bed5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.terms_enum.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java index 2e9cc837e..7233b315e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -53,6 +49,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.termvectors.Request /** @@ -142,6 +153,9 @@ public static TermvectorsRequest of( } /** + * An artificial document (a document not present in the index) for which you + * want to retrieve term vectors. + *

* API name: {@code doc} */ @Nullable @@ -150,8 +164,8 @@ public final TDocument doc() { } /** - * Specifies if document count, sum of document frequencies and sum of total - * term frequencies should be returned. + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. *

* API name: {@code field_statistics} */ @@ -161,7 +175,10 @@ public final Boolean fieldStatistics() { } /** - * A comma-separated list of fields to return. + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} */ @@ -170,6 +187,8 @@ public final List fields() { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ @Nullable @@ -178,7 +197,7 @@ public final Filter filter() { } /** - * The id of the document, when not specified a doc param should be supplied. + * Unique identifier of the document. *

* API name: {@code id} */ @@ -188,7 +207,7 @@ public final String id() { } /** - * Required - The index in which the document resides. + * Required - Name of the index that contains the document. *

* API name: {@code index} */ @@ -197,7 +216,7 @@ public final String index() { } /** - * Specifies if term offsets should be returned. + * If true, the response includes term offsets. *

* API name: {@code offsets} */ @@ -207,7 +226,7 @@ public final Boolean offsets() { } /** - * Specifies if term payloads should be returned. + * If true, the response includes term payloads. *

* API name: {@code payloads} */ @@ -217,6 +236,8 @@ public final Boolean payloads() { } /** + * Overrides the default per-field analyzer. + *

* API name: {@code per_field_analyzer} */ public final Map perFieldAnalyzer() { @@ -224,7 +245,7 @@ public final Map perFieldAnalyzer() { } /** - * Specifies if term positions should be returned. + * If true, the response includes term positions. *

* API name: {@code positions} */ @@ -234,8 +255,8 @@ public final Boolean positions() { } /** - * Specify the node or shard the operation should be performed on (default: - * random). + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -245,8 +266,7 @@ public final String preference() { } /** - * Specifies if request is real-time as opposed to near-real-time (default: - * true). + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -256,7 +276,7 @@ public final Boolean realtime() { } /** - * Specific routing value. + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -266,7 +286,8 @@ public final String routing() { } /** - * Specifies if total term frequency and document frequency should be returned. + * If true, the response includes term frequency and document + * frequency. *

* API name: {@code term_statistics} */ @@ -276,7 +297,7 @@ public final Boolean termStatistics() { } /** - * Explicit version number for concurrency control + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -286,7 +307,7 @@ public final Long version() { } /** - * Specific version type + * Specific version type. *

* API name: {@code version_type} */ @@ -390,6 +411,9 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; /** + * An artificial document (a document not present in the index) for which you + * want to retrieve term vectors. + *

* API name: {@code doc} */ public final Builder doc(@Nullable TDocument value) { @@ -398,8 +422,8 @@ public final Builder doc(@Nullable TDocument value) { } /** - * Specifies if document count, sum of document frequencies and sum of total - * term frequencies should be returned. + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. *

* API name: {@code field_statistics} */ @@ -409,7 +433,10 @@ public final Builder fieldStatistics(@Nullable Boolean value) { } /** - * A comma-separated list of fields to return. + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} *

@@ -421,7 +448,10 @@ public final Builder fields(List list) { } /** - * A comma-separated list of fields to return. + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. *

* API name: {@code fields} *

@@ -433,6 +463,8 @@ public final Builder fields(String value, String... values) { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Filter value) { @@ -441,6 +473,8 @@ public final Builder filter(@Nullable Filter value) { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -448,7 +482,7 @@ public final Builder filter(Function * API name: {@code id} */ @@ -458,7 +492,7 @@ public final Builder id(@Nullable String value) { } /** - * Required - The index in which the document resides. + * Required - Name of the index that contains the document. *

* API name: {@code index} */ @@ -468,7 +502,7 @@ public final Builder index(String value) { } /** - * Specifies if term offsets should be returned. + * If true, the response includes term offsets. *

* API name: {@code offsets} */ @@ -478,7 +512,7 @@ public final Builder offsets(@Nullable Boolean value) { } /** - * Specifies if term payloads should be returned. + * If true, the response includes term payloads. *

* API name: {@code payloads} */ @@ -488,6 +522,8 @@ public final Builder payloads(@Nullable Boolean value) { } /** + * Overrides the default per-field analyzer. + *

* API name: {@code per_field_analyzer} *

* Adds all entries of map to perFieldAnalyzer. @@ -498,6 +534,8 @@ public final Builder perFieldAnalyzer(Map map) { } /** + * Overrides the default per-field analyzer. + *

* API name: {@code per_field_analyzer} *

* Adds an entry to perFieldAnalyzer. @@ -508,7 +546,7 @@ public final Builder perFieldAnalyzer(String key, String value) { } /** - * Specifies if term positions should be returned. + * If true, the response includes term positions. *

* API name: {@code positions} */ @@ -518,8 +556,8 @@ public final Builder positions(@Nullable Boolean value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random). + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -529,8 +567,7 @@ public final Builder preference(@Nullable String value) { } /** - * Specifies if request is real-time as opposed to near-real-time (default: - * true). + * If true, the request is real-time as opposed to near-real-time. *

* API name: {@code realtime} */ @@ -540,7 +577,7 @@ public final Builder realtime(@Nullable Boolean value) { } /** - * Specific routing value. + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -550,7 +587,8 @@ public final Builder routing(@Nullable String value) { } /** - * Specifies if total term frequency and document frequency should be returned. + * If true, the response includes term frequency and document + * frequency. *

* API name: {@code term_statistics} */ @@ -560,7 +598,7 @@ public final Builder termStatistics(@Nullable Boolean value) { } /** - * Explicit version number for concurrency control + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -570,7 +608,7 @@ public final Builder version(@Nullable Long value) { } /** - * Specific version type + * Specific version type. *

* API name: {@code version_type} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsResponse.java index 78f35f67c..a4b50198f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.termvectors.TermVector; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.termvectors.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java index a9ee3638f..fb314ace8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.Conflicts; @@ -58,11 +54,27 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.update_by_query.Request /** - * Performs an update on every document in the index without changing the - * source, for example to pick up a mapping change. + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the data stream or index without + * modifying the source, which is useful for picking up mapping changes. * * @see API * specification @@ -213,9 +225,12 @@ public static UpdateByQueryRequest of(Function_all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -225,8 +240,7 @@ public final Boolean allowNoIndices() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -236,7 +250,7 @@ public final Boolean analyzeWildcard() { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. *

* API name: {@code analyzer} */ @@ -246,6 +260,9 @@ public final String analyzer() { } /** + * What to do if update by query hits version conflicts: abort or + * proceed. + *

* API name: {@code conflicts} */ @Nullable @@ -254,7 +271,8 @@ public final Conflicts conflicts() { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -264,8 +282,7 @@ public final Operator defaultOperator() { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -275,8 +292,12 @@ public final String df() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} */ @@ -295,8 +316,8 @@ public final Long from() { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -306,8 +327,9 @@ public final Boolean ignoreUnavailable() { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -316,8 +338,8 @@ public final List index() { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -327,6 +349,8 @@ public final Boolean lenient() { } /** + * The maximum number of documents to update. + *

* API name: {@code max_docs} */ @Nullable @@ -335,7 +359,11 @@ public final Long maxDocs() { } /** - * Ingest pipeline to set on index requests made by this action. (default: none) + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -345,8 +373,8 @@ public final String pipeline() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -356,6 +384,8 @@ public final String preference() { } /** + * Specifies the documents to update using the Query DSL. + *

* API name: {@code query} */ @Nullable @@ -364,7 +394,8 @@ public final Query query() { } /** - * Should the affected indexes be refreshed? + * If true, Elasticsearch refreshes affected shards to make the + * operation visible to search. *

* API name: {@code refresh} */ @@ -374,8 +405,7 @@ public final Boolean refresh() { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the request cache is used for this request. *

* API name: {@code request_cache} */ @@ -385,8 +415,7 @@ public final Boolean requestCache() { } /** - * The throttle to set on this request in sub-requests per second. -1 means no - * throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -396,7 +425,7 @@ public final Float requestsPerSecond() { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -406,6 +435,8 @@ public final String routing() { } /** + * The script to run to update the document source or metadata when updating. + *

* API name: {@code script} */ @Nullable @@ -414,8 +445,7 @@ public final Script script() { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -425,7 +455,7 @@ public final Time scroll() { } /** - * Size on the scroll request powering the update by query + * Size of the scroll request that powers the operation. *

* API name: {@code scroll_size} */ @@ -435,7 +465,7 @@ public final Long scrollSize() { } /** - * Explicit timeout for each search request. Defaults to no timeout. + * Explicit timeout for each search request. *

* API name: {@code search_timeout} */ @@ -445,7 +475,8 @@ public final Time searchTimeout() { } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -455,6 +486,9 @@ public final SearchType searchType() { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ @Nullable @@ -463,8 +497,7 @@ public final SlicedScroll slice() { } /** - * 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. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -474,7 +507,7 @@ public final Slices slices() { } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} */ @@ -483,7 +516,8 @@ public final List sort() { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} */ @@ -492,8 +526,13 @@ public final List stats() { } /** - * The maximum number of documents to collect for each shard, upon reaching - * which the query execution will terminate early. + * 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. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. *

* API name: {@code terminate_after} */ @@ -503,8 +542,8 @@ public final Long terminateAfter() { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each update request waits for the following operations: dynamic + * mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -514,7 +553,7 @@ public final Time timeout() { } /** - * Specify whether to return document version as part of a hit + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -535,11 +574,9 @@ public final 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -549,8 +586,7 @@ public final WaitForActiveShards waitForActiveShards() { } /** - * Should the request should block until the update by query operation is - * complete. + * If true, the request blocks until the operation is complete. *

* API name: {@code wait_for_completion} */ @@ -708,9 +744,12 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean waitForCompletion; /** - * Whether to ignore if a wildcard indices expression resolves into no concrete - * indices. (This includes _all string or when no indices have been - * specified) + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior 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} */ @@ -720,8 +759,7 @@ public final Builder allowNoIndices(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * If true, wildcard and prefix queries are analyzed. *

* API name: {@code analyze_wildcard} */ @@ -731,7 +769,7 @@ public final Builder analyzeWildcard(@Nullable Boolean value) { } /** - * The analyzer to use for the query string + * Analyzer to use for the query string. *

* API name: {@code analyzer} */ @@ -741,6 +779,9 @@ public final Builder analyzer(@Nullable String value) { } /** + * What to do if update by query hits version conflicts: abort or + * proceed. + *

* API name: {@code conflicts} */ public final Builder conflicts(@Nullable Conflicts value) { @@ -749,7 +790,8 @@ public final Builder conflicts(@Nullable Conflicts value) { } /** - * The default operator for query string query (AND or OR) + * The default operator for query string query: AND or + * OR. *

* API name: {@code default_operator} */ @@ -759,8 +801,7 @@ public final Builder defaultOperator(@Nullable Operator value) { } /** - * The field to use as default where no field prefix is given in the query - * string + * Field to use as default where no field prefix is given in the query string. *

* API name: {@code df} */ @@ -770,8 +811,12 @@ public final Builder df(@Nullable String value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -783,8 +828,12 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. *

* API name: {@code expand_wildcards} *

@@ -806,8 +855,8 @@ public final Builder from(@Nullable Long value) { } /** - * Whether specified concrete indices should be ignored when unavailable - * (missing or closed) + * If false, the request returns an error if it targets a missing + * or closed index. *

* API name: {@code ignore_unavailable} */ @@ -817,8 +866,9 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -830,8 +880,9 @@ public final Builder index(List list) { } /** - * Required - A comma-separated list of index names to search; use - * _all or empty string to perform the operation on all indices + * Required - Comma-separated list of data streams, indices, and aliases to + * search. Supports wildcards (*). To search all data streams or + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -843,8 +894,8 @@ public final Builder index(String value, String... values) { } /** - * Specify whether format-based query failures (such as providing text to a - * numeric field) should be ignored + * If true, format-based query failures (such as providing text to + * a numeric field) in the query string will be ignored. *

* API name: {@code lenient} */ @@ -854,6 +905,8 @@ public final Builder lenient(@Nullable Boolean value) { } /** + * The maximum number of documents to update. + *

* API name: {@code max_docs} */ public final Builder maxDocs(@Nullable Long value) { @@ -862,7 +915,11 @@ public final Builder maxDocs(@Nullable Long value) { } /** - * Ingest pipeline to set on index requests made by this action. (default: none) + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. *

* API name: {@code pipeline} */ @@ -872,8 +929,8 @@ public final Builder pipeline(@Nullable String value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specifies the node or shard the operation should be performed on. Random by + * default. *

* API name: {@code preference} */ @@ -883,6 +940,8 @@ public final Builder preference(@Nullable String value) { } /** + * Specifies the documents to update using the Query DSL. + *

* API name: {@code query} */ public final Builder query(@Nullable Query value) { @@ -891,6 +950,8 @@ public final Builder query(@Nullable Query value) { } /** + * Specifies the documents to update using the Query DSL. + *

* API name: {@code query} */ public final Builder query(Function> fn) { @@ -898,7 +959,8 @@ public final Builder query(Function> fn) { } /** - * Should the affected indexes be refreshed? + * If true, Elasticsearch refreshes affected shards to make the + * operation visible to search. *

* API name: {@code refresh} */ @@ -908,8 +970,7 @@ public final Builder refresh(@Nullable Boolean value) { } /** - * Specify if request cache should be used for this request or not, defaults to - * index level setting + * If true, the request cache is used for this request. *

* API name: {@code request_cache} */ @@ -919,8 +980,7 @@ public final Builder requestCache(@Nullable Boolean value) { } /** - * The throttle to set on this request in sub-requests per second. -1 means no - * throttle. + * The throttle for this request in sub-requests per second. *

* API name: {@code requests_per_second} */ @@ -930,7 +990,7 @@ public final Builder requestsPerSecond(@Nullable Float value) { } /** - * A comma-separated list of specific routing values + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -940,6 +1000,8 @@ public final Builder routing(@Nullable String value) { } /** + * The script to run to update the document source or metadata when updating. + *

* API name: {@code script} */ public final Builder script(@Nullable Script value) { @@ -948,6 +1010,8 @@ public final Builder script(@Nullable Script value) { } /** + * The script to run to update the document source or metadata when updating. + *

* API name: {@code script} */ public final Builder script(Function> fn) { @@ -955,8 +1019,7 @@ public final Builder script(Function> fn) } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -966,8 +1029,7 @@ public final Builder scroll(@Nullable Time value) { } /** - * Specify how long a consistent view of the index should be maintained for - * scrolled search + * Period to retain the search context for scrolling. *

* API name: {@code scroll} */ @@ -976,7 +1038,7 @@ public final Builder scroll(Function> fn) { } /** - * Size on the scroll request powering the update by query + * Size of the scroll request that powers the operation. *

* API name: {@code scroll_size} */ @@ -986,7 +1048,7 @@ public final Builder scrollSize(@Nullable Long value) { } /** - * Explicit timeout for each search request. Defaults to no timeout. + * Explicit timeout for each search request. *

* API name: {@code search_timeout} */ @@ -996,7 +1058,7 @@ public final Builder searchTimeout(@Nullable Time value) { } /** - * Explicit timeout for each search request. Defaults to no timeout. + * Explicit timeout for each search request. *

* API name: {@code search_timeout} */ @@ -1005,7 +1067,8 @@ public final Builder searchTimeout(Function> f } /** - * Search operation type + * The type of the search operation. Available options: + * query_then_fetch, dfs_query_then_fetch. *

* API name: {@code search_type} */ @@ -1015,6 +1078,9 @@ public final Builder searchType(@Nullable SearchType value) { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ public final Builder slice(@Nullable SlicedScroll value) { @@ -1023,6 +1089,9 @@ public final Builder slice(@Nullable SlicedScroll value) { } /** + * Slice the request manually using the provided slice ID and total number of + * slices. + *

* API name: {@code slice} */ public final Builder slice(Function> fn) { @@ -1030,8 +1099,7 @@ public final Builder slice(Functionauto. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -1041,8 +1109,7 @@ public final Builder slices(@Nullable Slices 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. + * The number of slices this task should be divided into. *

* API name: {@code slices} */ @@ -1051,7 +1118,7 @@ public final Builder slices(Function> fn) } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} *

@@ -1063,7 +1130,7 @@ public final Builder sort(List list) { } /** - * A comma-separated list of <field>:<direction> pairs + * A comma-separated list of <field>:<direction> pairs. *

* API name: {@code sort} *

@@ -1075,7 +1142,8 @@ public final Builder sort(String value, String... values) { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} *

@@ -1087,7 +1155,8 @@ public final Builder stats(List list) { } /** - * Specific 'tag' of the request for logging and statistical purposes + * Specific tag of the request for logging and statistical + * purposes. *

* API name: {@code stats} *

@@ -1099,8 +1168,13 @@ public final Builder stats(String value, String... values) { } /** - * The maximum number of documents to collect for each shard, upon reaching - * which the query execution will terminate early. + * 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. Use with caution. Elasticsearch applies this + * parameter to each shard handling the request. When possible, let + * Elasticsearch perform early termination automatically. Avoid specifying this + * parameter for requests that target data streams with backing indices across + * multiple data tiers. *

* API name: {@code terminate_after} */ @@ -1110,8 +1184,8 @@ public final Builder terminateAfter(@Nullable Long value) { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each update request waits for the following operations: dynamic + * mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -1121,8 +1195,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Time each individual bulk request should wait for shards that are - * unavailable. + * Period each update request waits for the following operations: dynamic + * mapping updates, waiting for active shards. *

* API name: {@code timeout} */ @@ -1131,7 +1205,7 @@ public final Builder timeout(Function> fn) { } /** - * Specify whether to return document version as part of a hit + * If true, returns the document version as part of a hit. *

* API name: {@code version} */ @@ -1152,11 +1226,9 @@ public final 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -1166,11 +1238,9 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards 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) + * The number of shard copies that must be active before proceeding with the + * operation. Set to all or any positive integer up to the total + * number of shards in the index (number_of_replicas+1). *

* API name: {@code wait_for_active_shards} */ @@ -1180,8 +1250,7 @@ public final Builder waitForActiveShards( } /** - * Should the request should block until the update by query operation is - * complete. + * If true, the request blocks until the operation is complete. *

* API name: {@code wait_for_completion} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java index 2a76fdbca..bdc232667 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.BulkIndexByScrollFailure; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.update_by_query.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java index a619ce5f2..e79316547 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -55,6 +51,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.update.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateResponse.java index 62123bfea..87999969c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/UpdateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch.core.update.UpdateWriteResponseBase; @@ -35,6 +31,21 @@ import java.util.function.Function; import java.util.function.Supplier; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.update.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperation.java index d38566893..d6b3ff643 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonEnum; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.OperationContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java index 3fb805975..2de061b70 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.elasticsearch._types.VersionType; @@ -39,6 +35,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.OperationBase /** @@ -84,6 +95,8 @@ protected BulkOperationBase(AbstractBuilder builder) { } /** + * The document ID. + *

* API name: {@code _id} */ @Nullable @@ -92,6 +105,8 @@ public final String id() { } /** + * Name of the index or index alias to perform the action on. + *

* API name: {@code _index} */ @Nullable @@ -100,6 +115,8 @@ public final String index() { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ @Nullable @@ -217,6 +234,8 @@ public abstract static class AbstractBuilder * API name: {@code _id} */ public final BuilderT id(@Nullable String value) { @@ -225,6 +244,8 @@ public final BuilderT id(@Nullable String value) { } /** + * Name of the index or index alias to perform the action on. + *

* API name: {@code _index} */ public final BuilderT index(@Nullable String value) { @@ -233,6 +254,8 @@ public final BuilderT index(@Nullable String value) { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ public final BuilderT routing(@Nullable String value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBuilders.java index 542eac3be..7db9b7399 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link BulkOperation} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationVariant.java index 8658ce8ab..8aef184f8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link BulkOperation} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java index c1be6b1b5..ee9343ad8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.ResponseItem /** @@ -122,6 +133,8 @@ public final OperationType operationType() { } /** + * The document ID associated with the operation. + *

* API name: {@code _id} */ @Nullable @@ -130,20 +143,29 @@ public final String id() { } /** - * Required - API name: {@code _index} + * Required - Name of the index associated with the operation. If the operation + * targeted a data stream, this is the backing index into which the document was + * written. + *

+ * API name: {@code _index} */ public final String index() { return this.index; } /** - * Required - API name: {@code status} + * Required - HTTP status code returned for the operation. + *

+ * API name: {@code status} */ public final int status() { return this.status; } /** + * Contains additional information about the failed operation. The parameter is + * only returned for failed operations. + *

* API name: {@code error} */ @Nullable @@ -152,6 +174,8 @@ public final ErrorCause error() { } /** + * The primary term assigned to the document for the operation. + *

* API name: {@code _primary_term} */ @Nullable @@ -160,6 +184,9 @@ public final Long primaryTerm() { } /** + * Result of the operation. Successful values are created, + * deleted, and updated. + *

* API name: {@code result} */ @Nullable @@ -168,6 +195,10 @@ public final String result() { } /** + * The sequence number assigned to the document for the operation. Sequence + * numbers are used to ensure an older version of a document doesn’t overwrite a + * newer version. + *

* API name: {@code _seq_no} */ @Nullable @@ -176,6 +207,8 @@ public final Long seqNo() { } /** + * Contains shard information for the operation. + *

* API name: {@code _shards} */ @Nullable @@ -184,6 +217,9 @@ public final ShardStatistics shards() { } /** + * The document version associated with the operation. The document version is + * incremented each time the document is updated. + *

* API name: {@code _version} */ @Nullable @@ -329,6 +365,8 @@ public final Builder operationType(OperationType value) { private InlineGet> get; /** + * The document ID associated with the operation. + *

* API name: {@code _id} */ public final Builder id(@Nullable String value) { @@ -337,7 +375,11 @@ public final Builder id(@Nullable String value) { } /** - * Required - API name: {@code _index} + * Required - Name of the index associated with the operation. If the operation + * targeted a data stream, this is the backing index into which the document was + * written. + *

+ * API name: {@code _index} */ public final Builder index(String value) { this.index = value; @@ -345,7 +387,9 @@ public final Builder index(String value) { } /** - * Required - API name: {@code status} + * Required - HTTP status code returned for the operation. + *

+ * API name: {@code status} */ public final Builder status(int value) { this.status = value; @@ -353,6 +397,9 @@ public final Builder status(int value) { } /** + * Contains additional information about the failed operation. The parameter is + * only returned for failed operations. + *

* API name: {@code error} */ public final Builder error(@Nullable ErrorCause value) { @@ -361,6 +408,9 @@ public final Builder error(@Nullable ErrorCause value) { } /** + * Contains additional information about the failed operation. The parameter is + * only returned for failed operations. + *

* API name: {@code error} */ public final Builder error(Function> fn) { @@ -368,6 +418,8 @@ public final Builder error(Function * API name: {@code _primary_term} */ public final Builder primaryTerm(@Nullable Long value) { @@ -376,6 +428,9 @@ public final Builder primaryTerm(@Nullable Long value) { } /** + * Result of the operation. Successful values are created, + * deleted, and updated. + *

* API name: {@code result} */ public final Builder result(@Nullable String value) { @@ -384,6 +439,10 @@ public final Builder result(@Nullable String value) { } /** + * The sequence number assigned to the document for the operation. Sequence + * numbers are used to ensure an older version of a document doesn’t overwrite a + * newer version. + *

* API name: {@code _seq_no} */ public final Builder seqNo(@Nullable Long value) { @@ -392,6 +451,8 @@ public final Builder seqNo(@Nullable Long value) { } /** + * Contains shard information for the operation. + *

* API name: {@code _shards} */ public final Builder shards(@Nullable ShardStatistics value) { @@ -400,6 +461,8 @@ public final Builder shards(@Nullable ShardStatistics value) { } /** + * Contains shard information for the operation. + *

* API name: {@code _shards} */ public final Builder shards(Function> fn) { @@ -407,6 +470,9 @@ public final Builder shards(Function * API name: {@code _version} */ public final Builder version(@Nullable Long value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java index 3d51edc1c..abf55254c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.CreateOperation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java index 1f7c768e4..6c01e4a2f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.DeleteOperation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java index e26d65faa..b75f658dc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.IndexOperation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/OperationType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/OperationType.java index 567120bbf..70c0fceba 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/OperationType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/OperationType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java index feb73b4d7..ce0fa4347 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.elasticsearch._types.Script; @@ -43,6 +39,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.UpdateAction /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java index 425f9757d..bd060c89d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.UpdateOperation /** @@ -126,6 +137,8 @@ public Iterator _serializables() { } /** + * If true, the request’s actions must target an index alias. + *

* API name: {@code require_alias} */ @Nullable @@ -220,6 +233,8 @@ public final Builder binaryAction(@Nullable BinaryD private JsonpSerializer tPartialDocumentSerializer; /** + * If true, the request’s actions must target an index alias. + *

* API name: {@code require_alias} */ public final Builder requireAlias(@Nullable Boolean value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java index 00e98102f..776d62830 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/bulk/WriteOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.bulk; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.bulk.WriteOperation /** @@ -67,6 +78,12 @@ protected WriteOperation(AbstractBuilder builder) { } /** + * A map from the full name of fields to the name of dynamic templates. Defaults + * to an empty map. If a name matches a dynamic template, then that template + * will be applied regardless of other match predicates defined in the template. + * If a field is already defined in the mapping, then this parameter won’t be + * used. + *

* API name: {@code dynamic_templates} */ public final Map dynamicTemplates() { @@ -74,6 +91,12 @@ public final Map dynamicTemplates() { } /** + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. + *

* API name: {@code pipeline} */ @Nullable @@ -82,6 +105,8 @@ public final String pipeline() { } /** + * If true, the request’s actions must target an index alias. + *

* API name: {@code require_alias} */ @Nullable @@ -129,6 +154,12 @@ public abstract static class AbstractBuilder * API name: {@code dynamic_templates} *

* Adds all entries of map to dynamicTemplates. @@ -139,6 +170,12 @@ public final BuilderT dynamicTemplates(Map map) { } /** + * A map from the full name of fields to the name of dynamic templates. Defaults + * to an empty map. If a name matches a dynamic template, then that template + * will be applied regardless of other match predicates defined in the template. + * If a field is already defined in the mapping, then this parameter won’t be + * used. + *

* API name: {@code dynamic_templates} *

* Adds an entry to dynamicTemplates. @@ -149,6 +186,12 @@ public final BuilderT dynamicTemplates(String key, String value) { } /** + * ID of the pipeline to use to preprocess incoming documents. If the index has + * a default ingest pipeline specified, then setting the value to + * _none disables the default ingest pipeline for this request. If + * a final pipeline is configured it will always run, regardless of the value of + * this parameter. + *

* API name: {@code pipeline} */ public final BuilderT pipeline(@Nullable String value) { @@ -157,6 +200,8 @@ public final BuilderT pipeline(@Nullable String value) { } /** + * If true, the request’s actions must target an index alias. + *

* API name: {@code require_alias} */ public final BuilderT requireAlias(@Nullable Boolean value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java index 95bb4ebb9..ed2d596bd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.explain; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.explain.Explanation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java index a6610fac3..ca36bbd04 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.explain; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.explain.ExplanationDetail /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java index b5875ff0a..63ab64800 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.field_caps; import co.elastic.clients.elasticsearch._types.mapping.TimeSeriesMetricType; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.field_caps.FieldCapability /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/get/GetResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/get/GetResult.java index 8b62ea098..43bbc8e8b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/get/GetResult.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/get/GetResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.get; import co.elastic.clients.json.JsonData; @@ -46,6 +42,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.get.GetResult /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetError.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetError.java index f0c88e7a9..0fbbd7623 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetError.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetError.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.mget; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mget.MultiGetError /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java index d2f4fde78..3523bf23b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.mget; import co.elastic.clients.elasticsearch._types.VersionType; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mget.Operation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetResponseItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetResponseItem.java index 3da6ad97e..22c515f43 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetResponseItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetResponseItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.mget; import co.elastic.clients.elasticsearch.core.get.GetResult; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mget.ResponseItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetResponseItemBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetResponseItemBuilders.java index c25bd6200..fe7410749 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetResponseItemBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetResponseItemBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.mget; import co.elastic.clients.elasticsearch.core.get.GetResult; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link MultiGetResponseItem} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchItem.java index 1c2e5d4ad..02980fd2e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch; import co.elastic.clients.elasticsearch.core.search.ResponseBody; @@ -38,6 +34,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch.MultiSearchItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResponseItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResponseItem.java index 6e13d69b5..de2bc2956 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResponseItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResponseItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch.ResponseItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResponseItemBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResponseItemBuilders.java index c3ef53cdd..192e03407 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResponseItemBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResponseItemBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch; import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link MultiSearchResponseItem} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResult.java index 489762858..47c86a480 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResult.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch.MultiSearchResult /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java index 4cf1a84b7..2eda888ed 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -55,12 +51,28 @@ import java.lang.Integer; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch.MultisearchBody /** @@ -1219,6 +1231,66 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * API name: {@code search_after} *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java index f582a312c..572ee6ad3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch; import co.elastic.clients.elasticsearch._types.ExpandWildcard; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch.MultisearchHeader /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java index 8d008374c..b986012fb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch.RequestItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/RequestItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/RequestItem.java index cb257028f..e6969b727 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/RequestItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/RequestItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch_template; import co.elastic.clients.elasticsearch.core.msearch.MultisearchHeader; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch_template.RequestItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/TemplateConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/TemplateConfig.java index 389cabb37..10d395201 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/TemplateConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/TemplateConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.msearch_template; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.msearch_template.TemplateConfig /** @@ -83,6 +94,9 @@ public static TemplateConfig of(Function> } /** + * If true, returns detailed information about score calculation as + * part of each hit. + *

* API name: {@code explain} */ @Nullable @@ -102,6 +116,9 @@ public final String id() { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} */ public final Map params() { @@ -109,6 +126,8 @@ public final Map params() { } /** + * If true, the query execution is profiled. + *

* API name: {@code profile} */ @Nullable @@ -201,6 +220,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String source; /** + * If true, returns detailed information about score calculation as + * part of each hit. + *

* API name: {@code explain} */ public final Builder explain(@Nullable Boolean value) { @@ -220,6 +242,9 @@ public final Builder id(@Nullable String value) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -230,6 +255,9 @@ public final Builder params(Map map) { } /** + * Key-value pairs used to replace Mustache variables in the template. The key + * is the variable name. The value is the variable value. + *

* API name: {@code params} *

* Adds an entry to params. @@ -240,6 +268,8 @@ public final Builder params(String key, JsonData value) { } /** + * If true, the query execution is profiled. + *

* API name: {@code profile} */ public final Builder profile(@Nullable Boolean value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java index c558e85e7..74467a91a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.mtermvectors; import co.elastic.clients.elasticsearch._types.VersionType; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mtermvectors.Operation /** @@ -117,13 +128,17 @@ public static MultiTermVectorsOperation of(Function + * API name: {@code _id} */ public final String id() { return this.id; } /** + * The index of the document. + *

* API name: {@code _index} */ @Nullable @@ -132,6 +147,9 @@ public final String index() { } /** + * An artificial document (a document not present in the index) for which you + * want to retrieve term vectors. + *

* API name: {@code doc} */ @Nullable @@ -140,6 +158,11 @@ public final JsonData doc() { } /** + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. + *

* API name: {@code fields} */ public final List fields() { @@ -147,6 +170,9 @@ public final List fields() { } /** + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. + *

* API name: {@code field_statistics} */ @Nullable @@ -155,6 +181,8 @@ public final Boolean fieldStatistics() { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ @Nullable @@ -163,6 +191,8 @@ public final Filter filter() { } /** + * If true, the response includes term offsets. + *

* API name: {@code offsets} */ @Nullable @@ -171,6 +201,8 @@ public final Boolean offsets() { } /** + * If true, the response includes term payloads. + *

* API name: {@code payloads} */ @Nullable @@ -179,6 +211,8 @@ public final Boolean payloads() { } /** + * If true, the response includes term positions. + *

* API name: {@code positions} */ @Nullable @@ -187,6 +221,8 @@ public final Boolean positions() { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ @Nullable @@ -195,6 +231,8 @@ public final String routing() { } /** + * If true, the response includes term frequency and document frequency. + *

* API name: {@code term_statistics} */ @Nullable @@ -203,6 +241,8 @@ public final Boolean termStatistics() { } /** + * If true, returns the document version as part of a hit. + *

* API name: {@code version} */ @Nullable @@ -211,6 +251,8 @@ public final Long version() { } /** + * Specific version type. + *

* API name: {@code version_type} */ @Nullable @@ -352,7 +394,9 @@ public static class Builder extends WithJsonObjectBuilderBase private VersionType versionType; /** - * Required - API name: {@code _id} + * Required - The ID of the document. + *

+ * API name: {@code _id} */ public final Builder id(String value) { this.id = value; @@ -360,6 +404,8 @@ public final Builder id(String value) { } /** + * The index of the document. + *

* API name: {@code _index} */ public final Builder index(@Nullable String value) { @@ -368,6 +414,9 @@ public final Builder index(@Nullable String value) { } /** + * An artificial document (a document not present in the index) for which you + * want to retrieve term vectors. + *

* API name: {@code doc} */ public final Builder doc(@Nullable JsonData value) { @@ -376,6 +425,11 @@ public final Builder doc(@Nullable JsonData value) { } /** + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. + *

* API name: {@code fields} *

* Adds all elements of list to fields. @@ -386,6 +440,11 @@ public final Builder fields(List list) { } /** + * Comma-separated list or wildcard expressions of fields to include in the + * statistics. Used as the default list unless a specific field list is provided + * in the completion_fields or fielddata_fields + * parameters. + *

* API name: {@code fields} *

* Adds one or more values to fields. @@ -396,6 +455,9 @@ public final Builder fields(String value, String... values) { } /** + * If true, the response includes the document count, sum of + * document frequencies, and sum of total term frequencies. + *

* API name: {@code field_statistics} */ public final Builder fieldStatistics(@Nullable Boolean value) { @@ -404,6 +466,8 @@ public final Builder fieldStatistics(@Nullable Boolean value) { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ public final Builder filter(@Nullable Filter value) { @@ -412,6 +476,8 @@ public final Builder filter(@Nullable Filter value) { } /** + * Filter terms based on their tf-idf scores. + *

* API name: {@code filter} */ public final Builder filter(Function> fn) { @@ -419,6 +485,8 @@ public final Builder filter(Function> fn) } /** + * If true, the response includes term offsets. + *

* API name: {@code offsets} */ public final Builder offsets(@Nullable Boolean value) { @@ -427,6 +495,8 @@ public final Builder offsets(@Nullable Boolean value) { } /** + * If true, the response includes term payloads. + *

* API name: {@code payloads} */ public final Builder payloads(@Nullable Boolean value) { @@ -435,6 +505,8 @@ public final Builder payloads(@Nullable Boolean value) { } /** + * If true, the response includes term positions. + *

* API name: {@code positions} */ public final Builder positions(@Nullable Boolean value) { @@ -443,6 +515,8 @@ public final Builder positions(@Nullable Boolean value) { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ public final Builder routing(@Nullable String value) { @@ -451,6 +525,8 @@ public final Builder routing(@Nullable String value) { } /** + * If true, the response includes term frequency and document frequency. + *

* API name: {@code term_statistics} */ public final Builder termStatistics(@Nullable Boolean value) { @@ -459,6 +535,8 @@ public final Builder termStatistics(@Nullable Boolean value) { } /** + * If true, returns the document version as part of a hit. + *

* API name: {@code version} */ public final Builder version(@Nullable Long value) { @@ -467,6 +545,8 @@ public final Builder version(@Nullable Long value) { } /** + * Specific version type. + *

* API name: {@code version_type} */ public final Builder versionType(@Nullable VersionType value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java index 8dfc8cdfc..a8e7d4365 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.mtermvectors; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.mtermvectors.TermVectorsResult /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java index 908593880..316830d41 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.DocumentRating /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java index 18233a796..f6b693814 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalHit /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java index 522cd1c83..c458ba7ae 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalHitItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java index 4f410c39e..d3c38567f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetric /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricBase.java index 2701f17bd..f38c3f807 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetricBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java index 2c669d6fc..a10d9de7e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetricDetail /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java index 2d8781773..ca192d856 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetricDiscountedCumulativeGain /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java index 1bcef2597..a27c001a4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetricExpectedReciprocalRank /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java index ee5833698..0b42dc089 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetricMeanReciprocalRank /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java index 28a3748fd..f9160cf23 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetricPrecision /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRatingTreshold.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRatingTreshold.java index 3b619efff..aef7c93fc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRatingTreshold.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRatingTreshold.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -35,6 +31,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetricRatingTreshold /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java index 93a49f50f..7732bb8aa 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalMetricRecall /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java index c9d92c2a4..23595d28b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalQuery /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java index c0ba64a6b..51a876bc1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.RankEvalRequestItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java index 7d9664c4b..f61210216 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.rank_eval; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.rank_eval.UnratedDocument /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java index 31c55dc12..c3396d1b5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.reindex; import co.elastic.clients.elasticsearch._types.OpType; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.reindex.Destination /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java index 68816ad93..d58d708f1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.reindex; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.reindex.RemoteSource /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java index 6efe8c5c9..99e8c3ab4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.reindex; import co.elastic.clients.elasticsearch._types.SlicedScroll; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.reindex.Source /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java index c02e4904c..22658f9b7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.scripts_painless_execute; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.scripts_painless_execute.PainlessContextSetup /** @@ -72,21 +83,30 @@ public static PainlessContextSetup of(Function + * API name: {@code document} */ public final JsonData document() { return this.document; } /** - * Required - API name: {@code index} + * Required - Index containing a mapping that’s compatible with the indexed + * document. You may specify a remote index by prefixing the index with the + * remote cluster alias. + *

+ * API name: {@code index} */ public final String index() { return this.index; } /** - * Required - API name: {@code query} + * Required - Use this parameter to specify a query for computing a score. + *

+ * API name: {@code query} */ public final Query query() { return this.query; @@ -135,7 +155,10 @@ public static class Builder extends WithJsonObjectBuilderBase private Query query; /** - * Required - API name: {@code document} + * Required - Document that’s temporarily indexed in-memory and accessible from + * the script. + *

+ * API name: {@code document} */ public final Builder document(JsonData value) { this.document = value; @@ -143,7 +166,11 @@ public final Builder document(JsonData value) { } /** - * Required - API name: {@code index} + * Required - Index containing a mapping that’s compatible with the indexed + * document. You may specify a remote index by prefixing the index with the + * remote cluster alias. + *

+ * API name: {@code index} */ public final Builder index(String value) { this.index = value; @@ -151,7 +178,9 @@ public final Builder index(String value) { } /** - * Required - API name: {@code query} + * Required - Use this parameter to specify a query for computing a score. + *

+ * API name: {@code query} */ public final Builder query(Query value) { this.query = value; @@ -159,7 +188,9 @@ public final Builder query(Query value) { } /** - * Required - API name: {@code query} + * Required - Use this parameter to specify a query for computing a score. + *

+ * API name: {@code query} */ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java index f83cacc58..0b64287e8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.AggregationBreakdown /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java index 3b5fb19fd..59f7d4da4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.AggregationProfile /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java index 24c0a0d8e..c2610126e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.AggregationProfileDebug /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java index 2a030ed82..0c2be9c00 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.AggregationProfileDelegateDebugFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java index a1fce5a5a..0e589b4b9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java index 6e0fa785a..577090650 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.elasticsearch._types.SuggestMode; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.DirectGenerator /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java index 5566038b5..5d3d96187 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FetchProfile /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java index ae5f261f9..5536fbed6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FetchProfileBreakdown /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java index 18c974557..000dafda0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FetchProfileDebug /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java index 9ac16f73c..074b875be 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FieldCollapse /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggester.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggester.java index ab7139545..769fd4573 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggester.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggester.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonData; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.FieldSuggester /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterBuilders.java index 3edf3c006..df4d38627 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link FieldSuggester} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterVariant.java index 89b4bbdd7..a498d1282 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldSuggesterVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link FieldSuggester} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java index ea4b2c6d0..ece294b7f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.Highlight /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java index 2326f41b2..7b9a6e3ab 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.HighlightBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java index 08c5ec75c..42c469861 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.elasticsearch._types.analysis.Analyzer; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.HighlightField /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterEncoder.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterEncoder.java index c2479191e..b4268ce53 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterEncoder.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlighterEncoder.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see sort(FieldValue value, FieldValue... values) { return this; } + /** + * API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(String value, String... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(long value, long... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(double value, double... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(boolean value, boolean... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + /** * API name: {@code sort} *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java index 7de0361f6..1f00ed4d8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.HitsMetadata /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java index e62bc153d..503ea8d28 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.elasticsearch._types.ScriptField; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.InnerHits /** @@ -91,7 +102,7 @@ public class InnerHits implements JsonpSerializable { @Nullable private final SourceConfig source; - private final List storedField; + private final List storedFields; @Nullable private final Boolean trackScores; @@ -116,7 +127,7 @@ private InnerHits(Builder builder) { this.fields = ApiTypeHelper.unmodifiable(builder.fields); this.sort = ApiTypeHelper.unmodifiable(builder.sort); this.source = builder.source; - this.storedField = ApiTypeHelper.unmodifiable(builder.storedField); + this.storedFields = ApiTypeHelper.unmodifiable(builder.storedFields); this.trackScores = builder.trackScores; this.version = builder.version; @@ -237,10 +248,10 @@ public final SourceConfig source() { } /** - * API name: {@code stored_field} + * API name: {@code stored_fields} */ - public final List storedField() { - return this.storedField; + public final List storedFields() { + return this.storedFields; } /** @@ -356,10 +367,10 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.source.serialize(generator, mapper); } - if (ApiTypeHelper.isDefined(this.storedField)) { - generator.writeKey("stored_field"); + if (ApiTypeHelper.isDefined(this.storedFields)) { + generator.writeKey("stored_fields"); generator.writeStartArray(); - for (String item0 : this.storedField) { + for (String item0 : this.storedFields) { generator.write(item0); } @@ -431,7 +442,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private SourceConfig source; @Nullable - private List storedField; + private List storedFields; @Nullable private Boolean trackScores; @@ -656,22 +667,22 @@ public final Builder source(Function - * Adds all elements of list to storedField. + * Adds all elements of list to storedFields. */ - public final Builder storedField(List list) { - this.storedField = _listAddAll(this.storedField, list); + public final Builder storedFields(List list) { + this.storedFields = _listAddAll(this.storedFields, list); return this; } /** - * API name: {@code stored_field} + * API name: {@code stored_fields} *

- * Adds one or more values to storedField. + * Adds one or more values to storedFields. */ - public final Builder storedField(String value, String... values) { - this.storedField = _listAdd(this.storedField, value, values); + public final Builder storedFields(String value, String... values) { + this.storedFields = _listAdd(this.storedFields, value, values); return this; } @@ -734,8 +745,8 @@ protected static void setupInnerHitsDeserializer(ObjectDeserializer diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParam.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParam.java index c9b2d7b9e..591e49035 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParam.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParam.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.SourceConfigParam /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParamBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParamBuilders.java index bdb4b8ed9..ae49ea9bd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParamBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfigParamBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.util.ObjectBuilder; import java.lang.String; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link SourceConfigParam} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java index 401ee8c77..fedb88c1c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.search._types.SourceFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/StringDistance.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/StringDistance.java index 8009d1acd..bb5b6d8e3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/StringDistance.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search/StringDistance.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search_mvt/GridAggregationType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search_mvt/GridAggregationType.java index 2f9bc4b9c..a347b28f3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search_mvt/GridAggregationType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/search_mvt/GridAggregationType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.search_mvt; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see > fn) { } /** + * Ignore words which occur in more than this many docs. Defaults to unbounded. + *

* API name: {@code max_doc_freq} */ @Nullable @@ -95,6 +108,8 @@ public final Integer maxDocFreq() { } /** + * Maximum number of terms that must be returned per field. + *

* API name: {@code max_num_terms} */ @Nullable @@ -103,6 +118,9 @@ public final Integer maxNumTerms() { } /** + * Ignore words with more than this frequency in the source doc. Defaults to + * unbounded. + *

* API name: {@code max_term_freq} */ @Nullable @@ -111,6 +129,9 @@ public final Integer maxTermFreq() { } /** + * The maximum word length above which words will be ignored. Defaults to + * unbounded. + *

* API name: {@code max_word_length} */ @Nullable @@ -119,6 +140,8 @@ public final Integer maxWordLength() { } /** + * Ignore terms which do not occur in at least this many docs. + *

* API name: {@code min_doc_freq} */ @Nullable @@ -127,6 +150,8 @@ public final Integer minDocFreq() { } /** + * Ignore words with less than this frequency in the source doc. + *

* API name: {@code min_term_freq} */ @Nullable @@ -135,6 +160,8 @@ public final Integer minTermFreq() { } /** + * The minimum word length below which words will be ignored. + *

* API name: {@code min_word_length} */ @Nullable @@ -225,6 +252,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer minWordLength; /** + * Ignore words which occur in more than this many docs. Defaults to unbounded. + *

* API name: {@code max_doc_freq} */ public final Builder maxDocFreq(@Nullable Integer value) { @@ -233,6 +262,8 @@ public final Builder maxDocFreq(@Nullable Integer value) { } /** + * Maximum number of terms that must be returned per field. + *

* API name: {@code max_num_terms} */ public final Builder maxNumTerms(@Nullable Integer value) { @@ -241,6 +272,9 @@ public final Builder maxNumTerms(@Nullable Integer value) { } /** + * Ignore words with more than this frequency in the source doc. Defaults to + * unbounded. + *

* API name: {@code max_term_freq} */ public final Builder maxTermFreq(@Nullable Integer value) { @@ -249,6 +283,9 @@ public final Builder maxTermFreq(@Nullable Integer value) { } /** + * The maximum word length above which words will be ignored. Defaults to + * unbounded. + *

* API name: {@code max_word_length} */ public final Builder maxWordLength(@Nullable Integer value) { @@ -257,6 +294,8 @@ public final Builder maxWordLength(@Nullable Integer value) { } /** + * Ignore terms which do not occur in at least this many docs. + *

* API name: {@code min_doc_freq} */ public final Builder minDocFreq(@Nullable Integer value) { @@ -265,6 +304,8 @@ public final Builder minDocFreq(@Nullable Integer value) { } /** + * Ignore words with less than this frequency in the source doc. + *

* API name: {@code min_term_freq} */ public final Builder minTermFreq(@Nullable Integer value) { @@ -273,6 +314,8 @@ public final Builder minTermFreq(@Nullable Integer value) { } /** + * The minimum word length below which words will be ignored. + *

* API name: {@code min_word_length} */ public final Builder minWordLength(@Nullable Integer value) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java index 2741f4ed4..904b9c9cd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.termvectors; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.termvectors.Term /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java index b8fd0e327..1849ea553 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.termvectors; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.termvectors.TermVector /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java index 688af29af..c716f2dcb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.termvectors; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.termvectors.Token /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/update/UpdateWriteResponseBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/update/UpdateWriteResponseBase.java index a9fbb0475..b73357ad6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/update/UpdateWriteResponseBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/core/update/UpdateWriteResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.update; import co.elastic.clients.elasticsearch._types.InlineGet; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: _global.update.UpdateWriteResponseBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index 95a4e5c20..447ea84a3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -4,47 +4,49 @@ Elasticsearch API specification - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java index 4acb57e2d..c1b4e04ce 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.delete_policy.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyResponse.java index 22871b777..0f6dd91bd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.delete_policy.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java index f0c1e46f5..905edb9c1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the enrich namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java index b9a094353..b82240929 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the enrich namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java index 4ba5bdaa7..9030036ee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java @@ -17,12 +17,9 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -40,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich._types.Policy /** @@ -56,7 +68,7 @@ public class EnrichPolicy implements JsonpSerializable { private final String matchField; @Nullable - private final String query; + private final Query query; @Nullable private final String name; @@ -106,7 +118,7 @@ public final String matchField() { * API name: {@code query} */ @Nullable - public final String query() { + public final Query query() { return this.query; } @@ -162,7 +174,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (this.query != null) { generator.writeKey("query"); - generator.write(this.query); + this.query.serialize(generator, mapper); } if (this.name != null) { @@ -197,7 +209,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String matchField; @Nullable - private String query; + private Query query; @Nullable private String name; @@ -256,11 +268,18 @@ public final Builder matchField(String value) { /** * API name: {@code query} */ - public final Builder query(@Nullable String value) { + public final Builder query(@Nullable Query value) { this.query = value; return this; } + /** + * API name: {@code query} + */ + public final Builder query(Function> fn) { + return this.query(fn.apply(new Query.Builder()).build()); + } + /** * API name: {@code name} */ @@ -310,7 +329,7 @@ protected static void setupEnrichPolicyDeserializer(ObjectDeserializerAPI diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java index 60bb42209..83e037115 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.stats.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java index 09ef900dc..5bb010144 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch.enrich.stats.CacheStats; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.stats.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java index cb22ecebc..d87db06e6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich._types.Summary /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java index 541ac4f7f..1623ad63c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.execute_policy.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java index f7d54009c..f489217df 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch.enrich.execute_policy.ExecuteEnrichPolicyStatus; @@ -31,7 +27,6 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; @@ -40,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.execute_policy.Response /** @@ -49,6 +59,7 @@ */ @JsonpDeserializable public class ExecutePolicyResponse implements JsonpSerializable { + @Nullable private final ExecuteEnrichPolicyStatus status; @Nullable @@ -58,7 +69,7 @@ public class ExecutePolicyResponse implements JsonpSerializable { private ExecutePolicyResponse(Builder builder) { - this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); + this.status = builder.status; this.taskId = builder.taskId; } @@ -68,8 +79,9 @@ public static ExecutePolicyResponse of(Function implements ObjectBuilder { + @Nullable private ExecuteEnrichPolicyStatus status; @Nullable private String taskId; /** - * Required - API name: {@code status} + * API name: {@code status} */ - public final Builder status(ExecuteEnrichPolicyStatus value) { + public final Builder status(@Nullable ExecuteEnrichPolicyStatus value) { this.status = value; return this; } /** - * Required - API name: {@code status} + * API name: {@code status} */ public final Builder status( Function> fn) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java index 67c7de99f..11d5ce276 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.get_policy.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyResponse.java index 87ff700c0..1f87d2cc0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.get_policy.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java index d66b72551..6f7d87a50 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.put_policy.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyResponse.java index 4f336ce29..dc1f57db4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: enrich.put_policy.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/EnrichPolicyPhase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/EnrichPolicyPhase.java index 47f012902..afe15042b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/EnrichPolicyPhase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/EnrichPolicyPhase.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.enrich.execute_policy; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see { + + public ElasticsearchEqlAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchEqlAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchEqlAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchEqlAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: eql.delete + + /** + * 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 Documentation + * on elastic.co + */ + + public CompletableFuture delete(EqlDeleteRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) EqlDeleteRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * 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. + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlDeleteRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture delete( + Function> fn) { + return delete(fn.apply(new EqlDeleteRequest.Builder()).build()); + } + + // ----- Endpoint: eql.get + + /** + * Returns async results from previously executed Event Query Language (EQL) + * search + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture> get(EqlGetRequest request, Class tEventClass) { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) EqlGetRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, "co.elastic.clients:Deserializer:eql.get.TEvent", + getDeserializer(tEventClass)); + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns async results from previously executed Event Query Language (EQL) + * search + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlGetRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture> get( + Function> fn, Class tEventClass) { + return get(fn.apply(new EqlGetRequest.Builder()).build(), tEventClass); + } + + /** + * Returns async results from previously executed Event Query Language (EQL) + * search + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture> get(EqlGetRequest request, Type tEventType) { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) EqlGetRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, "co.elastic.clients:Deserializer:eql.get.TEvent", + getDeserializer(tEventType)); + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns async results from previously executed Event Query Language (EQL) + * search + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlGetRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture> get( + Function> fn, Type tEventType) { + return get(fn.apply(new EqlGetRequest.Builder()).build(), tEventType); + } + + // ----- Endpoint: eql.get_status + + /** + * Returns the status of a previously submitted async or stored Event Query + * Language (EQL) search + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getStatus(GetEqlStatusRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetEqlStatusRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the status of a previously submitted async or stored Event Query + * Language (EQL) search + * + * @param fn + * a function that initializes a builder to create the + * {@link GetEqlStatusRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getStatus( + Function> fn) { + return getStatus(fn.apply(new GetEqlStatusRequest.Builder()).build()); + } + + // ----- Endpoint: eql.search + + /** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture> search(EqlSearchRequest request, + Class tEventClass) { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) EqlSearchRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, "co.elastic.clients:Deserializer:eql.search.TEvent", + getDeserializer(tEventClass)); + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlSearchRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture> search( + Function> fn, Class tEventClass) { + return search(fn.apply(new EqlSearchRequest.Builder()).build(), tEventClass); + } + + /** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture> search(EqlSearchRequest request, Type tEventType) { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) EqlSearchRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, "co.elastic.clients:Deserializer:eql.search.TEvent", + getDeserializer(tEventType)); + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlSearchRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture> search( + Function> fn, Type tEventType) { + return search(fn.apply(new EqlSearchRequest.Builder()).build(), tEventType); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java new file mode 100644 index 000000000..08061f61f --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java @@ -0,0 +1,287 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.endpoints.EndpointWithResponseMapperAttr; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the eql namespace. + */ +public class ElasticsearchEqlClient extends ApiClient { + + public ElasticsearchEqlClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchEqlClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchEqlClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchEqlClient(this.transport, transportOptions); + } + + // ----- Endpoint: eql.delete + + /** + * 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 Documentation + * on elastic.co + */ + + public EqlDeleteResponse delete(EqlDeleteRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) EqlDeleteRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * 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. + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlDeleteRequest} + * @see Documentation + * on elastic.co + */ + + public final EqlDeleteResponse delete(Function> fn) + throws IOException, ElasticsearchException { + return delete(fn.apply(new EqlDeleteRequest.Builder()).build()); + } + + // ----- Endpoint: eql.get + + /** + * Returns async results from previously executed Event Query Language (EQL) + * search + * + * @see Documentation + * on elastic.co + */ + + public EqlGetResponse get(EqlGetRequest request, Class tEventClass) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) EqlGetRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, "co.elastic.clients:Deserializer:eql.get.TEvent", + getDeserializer(tEventClass)); + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns async results from previously executed Event Query Language (EQL) + * search + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlGetRequest} + * @see Documentation + * on elastic.co + */ + + public final EqlGetResponse get(Function> fn, + Class tEventClass) throws IOException, ElasticsearchException { + return get(fn.apply(new EqlGetRequest.Builder()).build(), tEventClass); + } + + /** + * Returns async results from previously executed Event Query Language (EQL) + * search + * + * @see Documentation + * on elastic.co + */ + + public EqlGetResponse get(EqlGetRequest request, Type tEventType) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) EqlGetRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, "co.elastic.clients:Deserializer:eql.get.TEvent", + getDeserializer(tEventType)); + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns async results from previously executed Event Query Language (EQL) + * search + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlGetRequest} + * @see Documentation + * on elastic.co + */ + + public final EqlGetResponse get(Function> fn, + Type tEventType) throws IOException, ElasticsearchException { + return get(fn.apply(new EqlGetRequest.Builder()).build(), tEventType); + } + + // ----- Endpoint: eql.get_status + + /** + * Returns the status of a previously submitted async or stored Event Query + * Language (EQL) search + * + * @see Documentation + * on elastic.co + */ + + public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetEqlStatusRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the status of a previously submitted async or stored Event Query + * Language (EQL) search + * + * @param fn + * a function that initializes a builder to create the + * {@link GetEqlStatusRequest} + * @see Documentation + * on elastic.co + */ + + public final GetEqlStatusResponse getStatus( + Function> fn) + throws IOException, ElasticsearchException { + return getStatus(fn.apply(new GetEqlStatusRequest.Builder()).build()); + } + + // ----- Endpoint: eql.search + + /** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @see Documentation + * on elastic.co + */ + + public EqlSearchResponse search(EqlSearchRequest request, Class tEventClass) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) EqlSearchRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, "co.elastic.clients:Deserializer:eql.search.TEvent", + getDeserializer(tEventClass)); + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlSearchRequest} + * @see Documentation + * on elastic.co + */ + + public final EqlSearchResponse search( + Function> fn, Class tEventClass) + throws IOException, ElasticsearchException { + return search(fn.apply(new EqlSearchRequest.Builder()).build(), tEventClass); + } + + /** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @see Documentation + * on elastic.co + */ + + public EqlSearchResponse search(EqlSearchRequest request, Type tEventType) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) EqlSearchRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, "co.elastic.clients:Deserializer:eql.search.TEvent", + getDeserializer(tEventType)); + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @param fn + * a function that initializes a builder to create the + * {@link EqlSearchRequest} + * @see Documentation + * on elastic.co + */ + + public final EqlSearchResponse search( + Function> fn, Type tEventType) + throws IOException, ElasticsearchException { + return search(fn.apply(new EqlSearchRequest.Builder()).build(), tEventType); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java new file mode 100644 index 000000000..79d4e352a --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java @@ -0,0 +1,189 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql.delete.Request + +/** + * Deletes an async EQL search or a stored synchronous EQL search. The API also + * deletes results for the search. + * + * @see API + * specification + */ + +public class EqlDeleteRequest extends RequestBase { + private final String id; + + // --------------------------------------------------------------------------------------------- + + private EqlDeleteRequest(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + + } + + public static EqlDeleteRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Identifier for the search to delete. A search ID is provided in + * the EQL search API's response for an async search. A search ID is also + * provided if the request’s keep_on_completion parameter is + * true. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link EqlDeleteRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String id; + + /** + * Required - Identifier for the search to delete. A search ID is provided in + * the EQL search API's response for an async search. A search ID is also + * provided if the request’s keep_on_completion parameter is + * true. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link EqlDeleteRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public EqlDeleteRequest build() { + _checkSingleUse(); + + return new EqlDeleteRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code eql.delete}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/eql.delete", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_eql"); + buf.append("/search"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, EqlDeleteResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteResponse.java new file mode 100644 index 000000000..21106c574 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteResponse.java @@ -0,0 +1,107 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +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.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql.delete.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class EqlDeleteResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private EqlDeleteResponse(Builder builder) { + super(builder); + + } + + public static EqlDeleteResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link EqlDeleteResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link EqlDeleteResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public EqlDeleteResponse build() { + _checkSingleUse(); + + return new EqlDeleteResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link EqlDeleteResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, EqlDeleteResponse::setupEqlDeleteResponseDeserializer); + + protected static void setupEqlDeleteResponseDeserializer(ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java new file mode 100644 index 000000000..dfb379ee1 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java @@ -0,0 +1,273 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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 java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql.get.Request + +/** + * Returns the current status and available results for an async EQL search or a + * stored synchronous EQL search. + * + * @see API + * specification + */ + +public class EqlGetRequest extends RequestBase { + private final String id; + + @Nullable + private final Time keepAlive; + + @Nullable + private final Time waitForCompletionTimeout; + + // --------------------------------------------------------------------------------------------- + + private EqlGetRequest(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.keepAlive = builder.keepAlive; + this.waitForCompletionTimeout = builder.waitForCompletionTimeout; + + } + + public static EqlGetRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final String id() { + return this.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 + public final Time keepAlive() { + return this.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 + public final Time waitForCompletionTimeout() { + return this.waitForCompletionTimeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link EqlGetRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String id; + + @Nullable + private Time keepAlive; + + @Nullable + private Time waitForCompletionTimeout; + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * 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 final Builder keepAlive(@Nullable Time value) { + this.keepAlive = value; + return this; + } + + /** + * 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 final Builder keepAlive(Function> fn) { + return this.keepAlive(fn.apply(new Time.Builder()).build()); + } + + /** + * 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 final Builder waitForCompletionTimeout(@Nullable Time value) { + this.waitForCompletionTimeout = value; + return this; + } + + /** + * 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 final Builder waitForCompletionTimeout(Function> fn) { + return this.waitForCompletionTimeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link EqlGetRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public EqlGetRequest build() { + _checkSingleUse(); + + return new EqlGetRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code eql.get}". + */ + public static final SimpleEndpoint _ENDPOINT = new SimpleEndpoint<>("es/eql.get", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_eql"); + buf.append("/search"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.keepAlive != null) { + params.put("keep_alive", request.keepAlive._toJsonString()); + } + if (request.waitForCompletionTimeout != null) { + params.put("wait_for_completion_timeout", request.waitForCompletionTimeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, EqlGetResponse._DESERIALIZER); + + /** + * Create an "{@code eql.get}" endpoint. + */ + public static Endpoint, ErrorResponse> createGetEndpoint( + JsonpDeserializer tEventDeserializer) { + return _ENDPOINT.withResponseDeserializer(EqlGetResponse.createEqlGetResponseDeserializer(tEventDeserializer)); + } +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetResponse.java new file mode 100644 index 000000000..2dbca78e1 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetResponse.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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.NamedDeserializer; +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.Objects; +import java.util.function.Function; +import java.util.function.Supplier; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql.get.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class EqlGetResponse extends EqlSearchResponseBase { + // --------------------------------------------------------------------------------------------- + + private EqlGetResponse(Builder builder) { + super(builder); + + } + + public static EqlGetResponse of( + Function, ObjectBuilder>> fn) { + return fn.apply(new Builder<>()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link EqlGetResponse}. + */ + + public static class Builder extends EqlSearchResponseBase.AbstractBuilder> + implements + ObjectBuilder> { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link EqlGetResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public EqlGetResponse build() { + _checkSingleUse(); + + return new EqlGetResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Create a JSON deserializer for EqlGetResponse + */ + public static JsonpDeserializer> createEqlGetResponseDeserializer( + JsonpDeserializer tEventDeserializer) { + return ObjectBuilderDeserializer.createForObject((Supplier>) Builder::new, + op -> EqlGetResponse.setupEqlGetResponseDeserializer(op, tEventDeserializer)); + }; + + /** + * Json deserializer for {@link EqlGetResponse} based on named deserializers + * provided by the calling {@code JsonMapper}. + */ + public static final JsonpDeserializer> _DESERIALIZER = JsonpDeserializer + .lazy(() -> createEqlGetResponseDeserializer( + new NamedDeserializer<>("co.elastic.clients:Deserializer:eql.get.TEvent"))); + + protected static void setupEqlGetResponseDeserializer( + ObjectDeserializer> op, JsonpDeserializer tEventDeserializer) { + EqlSearchResponseBase.setupEqlSearchResponseBaseDeserializer(op, tEventDeserializer); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java new file mode 100644 index 000000000..d206b8365 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java @@ -0,0 +1,341 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.elasticsearch.core.search.TotalHits; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpSerializer; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.NamedDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import java.util.function.Supplier; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql._types.EqlHits + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class EqlHits implements JsonpSerializable { + @Nullable + private final TotalHits total; + + private final List> events; + + private final List> sequences; + + @Nullable + private final JsonpSerializer tEventSerializer; + + // --------------------------------------------------------------------------------------------- + + private EqlHits(Builder builder) { + + this.total = builder.total; + this.events = ApiTypeHelper.unmodifiable(builder.events); + this.sequences = ApiTypeHelper.unmodifiable(builder.sequences); + this.tEventSerializer = builder.tEventSerializer; + + } + + public static EqlHits of(Function, ObjectBuilder>> fn) { + return fn.apply(new Builder<>()).build(); + } + + /** + * Metadata about the number of matching events or sequences. + *

+ * API name: {@code total} + */ + @Nullable + public final TotalHits total() { + return this.total; + } + + /** + * Contains events matching the query. Each object represents a matching event. + *

+ * API name: {@code events} + */ + public final List> events() { + return this.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} + */ + public final List> sequences() { + return this.sequences; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.total != null) { + generator.writeKey("total"); + this.total.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.events)) { + generator.writeKey("events"); + generator.writeStartArray(); + for (HitsEvent item0 : this.events) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.sequences)) { + generator.writeKey("sequences"); + generator.writeStartArray(); + for (HitsSequence item0 : this.sequences) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link EqlHits}. + */ + + public static class Builder extends WithJsonObjectBuilderBase> + implements + ObjectBuilder> { + @Nullable + private TotalHits total; + + @Nullable + private List> events; + + @Nullable + private List> sequences; + + @Nullable + private JsonpSerializer tEventSerializer; + + /** + * Metadata about the number of matching events or sequences. + *

+ * API name: {@code total} + */ + public final Builder total(@Nullable TotalHits value) { + this.total = value; + return this; + } + + /** + * Metadata about the number of matching events or sequences. + *

+ * API name: {@code total} + */ + public final Builder total(Function> fn) { + return this.total(fn.apply(new TotalHits.Builder()).build()); + } + + /** + * Contains events matching the query. Each object represents a matching event. + *

+ * API name: {@code events} + *

+ * Adds all elements of list to events. + */ + public final Builder events(List> list) { + this.events = _listAddAll(this.events, list); + return this; + } + + /** + * Contains events matching the query. Each object represents a matching event. + *

+ * API name: {@code events} + *

+ * Adds one or more values to events. + */ + public final Builder events(HitsEvent value, HitsEvent... values) { + this.events = _listAdd(this.events, value, values); + return this; + } + + /** + * Contains events matching the query. Each object represents a matching event. + *

+ * API name: {@code events} + *

+ * Adds a value to events using a builder lambda. + */ + public final Builder events(Function, ObjectBuilder>> fn) { + return events(fn.apply(new HitsEvent.Builder()).build()); + } + + /** + * 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} + *

+ * Adds all elements of list to sequences. + */ + public final Builder sequences(List> list) { + this.sequences = _listAddAll(this.sequences, list); + return this; + } + + /** + * 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} + *

+ * Adds one or more values to sequences. + */ + public final Builder sequences(HitsSequence value, HitsSequence... values) { + this.sequences = _listAdd(this.sequences, value, values); + return this; + } + + /** + * 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} + *

+ * Adds a value to sequences using a builder lambda. + */ + public final Builder sequences( + Function, ObjectBuilder>> fn) { + return sequences(fn.apply(new HitsSequence.Builder()).build()); + } + + /** + * Serializer for TEvent. If not set, an attempt will be made to find a + * serializer from the JSON context. + */ + public final Builder tEventSerializer(@Nullable JsonpSerializer value) { + this.tEventSerializer = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link EqlHits}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public EqlHits build() { + _checkSingleUse(); + + return new EqlHits(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Create a JSON deserializer for EqlHits + */ + public static JsonpDeserializer> createEqlHitsDeserializer( + JsonpDeserializer tEventDeserializer) { + return ObjectBuilderDeserializer.createForObject((Supplier>) Builder::new, + op -> EqlHits.setupEqlHitsDeserializer(op, tEventDeserializer)); + }; + + /** + * Json deserializer for {@link EqlHits} based on named deserializers provided + * by the calling {@code JsonMapper}. + */ + public static final JsonpDeserializer> _DESERIALIZER = JsonpDeserializer + .lazy(() -> createEqlHitsDeserializer( + new NamedDeserializer<>("co.elastic.clients:Deserializer:eql._types.TEvent"))); + + protected static void setupEqlHitsDeserializer(ObjectDeserializer> op, + JsonpDeserializer tEventDeserializer) { + + op.add(Builder::total, TotalHits._DESERIALIZER, "total"); + op.add(Builder::events, + JsonpDeserializer.arrayDeserializer(HitsEvent.createHitsEventDeserializer(tEventDeserializer)), + "events"); + op.add(Builder::sequences, + JsonpDeserializer.arrayDeserializer(HitsSequence.createHitsSequenceDeserializer(tEventDeserializer)), + "sequences"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java new file mode 100644 index 000000000..4002a1336 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java @@ -0,0 +1,875 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.ExpandWildcard; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch._types.mapping.RuntimeField; +import co.elastic.clients.elasticsearch._types.query_dsl.FieldAndFormat; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.elasticsearch.eql.search.ResultPosition; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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.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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql.search.Request + +/** + * Returns results matching a query expressed in Event Query Language (EQL) + * + * @see API + * specification + */ +@JsonpDeserializable +public class EqlSearchRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final Boolean allowNoIndices; + + @Nullable + private final Boolean caseSensitive; + + @Nullable + private final String eventCategoryField; + + private final List expandWildcards; + + @Nullable + private final Number fetchSize; + + private final List fields; + + private final List filter; + + @Nullable + private final Boolean ignoreUnavailable; + + private final List index; + + @Nullable + private final Time keepAlive; + + @Nullable + private final Boolean keepOnCompletion; + + private final String query; + + @Nullable + private final ResultPosition resultPosition; + + private final Map runtimeMappings; + + @Nullable + private final Number size; + + @Nullable + private final String tiebreakerField; + + @Nullable + private final String timestampField; + + @Nullable + private final Time waitForCompletionTimeout; + + // --------------------------------------------------------------------------------------------- + + private EqlSearchRequest(Builder builder) { + + this.allowNoIndices = builder.allowNoIndices; + this.caseSensitive = builder.caseSensitive; + this.eventCategoryField = builder.eventCategoryField; + this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); + this.fetchSize = builder.fetchSize; + this.fields = ApiTypeHelper.unmodifiable(builder.fields); + this.filter = ApiTypeHelper.unmodifiable(builder.filter); + this.ignoreUnavailable = builder.ignoreUnavailable; + this.index = ApiTypeHelper.unmodifiableRequired(builder.index, this, "index"); + this.keepAlive = builder.keepAlive; + this.keepOnCompletion = builder.keepOnCompletion; + this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query"); + this.resultPosition = builder.resultPosition; + this.runtimeMappings = ApiTypeHelper.unmodifiable(builder.runtimeMappings); + this.size = builder.size; + this.tiebreakerField = builder.tiebreakerField; + this.timestampField = builder.timestampField; + this.waitForCompletionTimeout = builder.waitForCompletionTimeout; + + } + + public static EqlSearchRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code allow_no_indices} + */ + @Nullable + public final Boolean allowNoIndices() { + return this.allowNoIndices; + } + + /** + * API name: {@code case_sensitive} + */ + @Nullable + public final Boolean caseSensitive() { + return this.caseSensitive; + } + + /** + * Field containing the event classification, such as process, file, or network. + *

+ * API name: {@code event_category_field} + */ + @Nullable + public final String eventCategoryField() { + return this.eventCategoryField; + } + + /** + * API name: {@code expand_wildcards} + */ + public final List expandWildcards() { + return this.expandWildcards; + } + + /** + * Maximum number of events to search at a time for sequence queries. + *

+ * API name: {@code fetch_size} + */ + @Nullable + public final Number fetchSize() { + return this.fetchSize; + } + + /** + * 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 final List fields() { + return this.fields; + } + + /** + * Query, written in Query DSL, used to filter the events on which the EQL query + * runs. + *

+ * API name: {@code filter} + */ + public final List filter() { + return this.filter; + } + + /** + * If true, missing or closed indices are not included in the response. + *

+ * API name: {@code ignore_unavailable} + */ + @Nullable + public final Boolean ignoreUnavailable() { + return this.ignoreUnavailable; + } + + /** + * Required - The name of the index to scope the operation + *

+ * API name: {@code index} + */ + public final List index() { + return this.index; + } + + /** + * API name: {@code keep_alive} + */ + @Nullable + public final Time keepAlive() { + return this.keepAlive; + } + + /** + * API name: {@code keep_on_completion} + */ + @Nullable + public final Boolean keepOnCompletion() { + return this.keepOnCompletion; + } + + /** + * Required - EQL query you wish to run. + *

+ * API name: {@code query} + */ + public final String query() { + return this.query; + } + + /** + * API name: {@code result_position} + */ + @Nullable + public final ResultPosition resultPosition() { + return this.resultPosition; + } + + /** + * API name: {@code runtime_mappings} + */ + public final Map runtimeMappings() { + return this.runtimeMappings; + } + + /** + * For basic queries, the maximum number of matching events to return. Defaults + * to 10 + *

+ * API name: {@code size} + */ + @Nullable + public final Number size() { + return this.size; + } + + /** + * Field used to sort hits with the same timestamp in ascending order + *

+ * API name: {@code tiebreaker_field} + */ + @Nullable + public final String tiebreakerField() { + return this.tiebreakerField; + } + + /** + * Field containing event timestamp. Default "@timestamp" + *

+ * API name: {@code timestamp_field} + */ + @Nullable + public final String timestampField() { + return this.timestampField; + } + + /** + * API name: {@code wait_for_completion_timeout} + */ + @Nullable + public final Time waitForCompletionTimeout() { + return this.waitForCompletionTimeout; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.caseSensitive != null) { + generator.writeKey("case_sensitive"); + generator.write(this.caseSensitive); + + } + if (this.eventCategoryField != null) { + generator.writeKey("event_category_field"); + generator.write(this.eventCategoryField); + + } + if (this.fetchSize != null) { + generator.writeKey("fetch_size"); + generator.write(this.fetchSize.doubleValue()); + + } + if (ApiTypeHelper.isDefined(this.fields)) { + generator.writeKey("fields"); + generator.writeStartArray(); + for (FieldAndFormat item0 : this.fields) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.filter)) { + generator.writeKey("filter"); + generator.writeStartArray(); + for (Query item0 : this.filter) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.keepAlive != null) { + generator.writeKey("keep_alive"); + this.keepAlive.serialize(generator, mapper); + + } + if (this.keepOnCompletion != null) { + generator.writeKey("keep_on_completion"); + generator.write(this.keepOnCompletion); + + } + generator.writeKey("query"); + generator.write(this.query); + + if (this.resultPosition != null) { + generator.writeKey("result_position"); + this.resultPosition.serialize(generator, mapper); + } + if (ApiTypeHelper.isDefined(this.runtimeMappings)) { + generator.writeKey("runtime_mappings"); + generator.writeStartObject(); + for (Map.Entry item0 : this.runtimeMappings.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.size != null) { + generator.writeKey("size"); + generator.write(this.size.doubleValue()); + + } + if (this.tiebreakerField != null) { + generator.writeKey("tiebreaker_field"); + generator.write(this.tiebreakerField); + + } + if (this.timestampField != null) { + generator.writeKey("timestamp_field"); + generator.write(this.timestampField); + + } + if (this.waitForCompletionTimeout != null) { + generator.writeKey("wait_for_completion_timeout"); + this.waitForCompletionTimeout.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link EqlSearchRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Boolean allowNoIndices; + + @Nullable + private Boolean caseSensitive; + + @Nullable + private String eventCategoryField; + + @Nullable + private List expandWildcards; + + @Nullable + private Number fetchSize; + + @Nullable + private List fields; + + @Nullable + private List filter; + + @Nullable + private Boolean ignoreUnavailable; + + private List index; + + @Nullable + private Time keepAlive; + + @Nullable + private Boolean keepOnCompletion; + + private String query; + + @Nullable + private ResultPosition resultPosition; + + @Nullable + private Map runtimeMappings; + + @Nullable + private Number size; + + @Nullable + private String tiebreakerField; + + @Nullable + private String timestampField; + + @Nullable + private Time waitForCompletionTimeout; + + /** + * API name: {@code allow_no_indices} + */ + public final Builder allowNoIndices(@Nullable Boolean value) { + this.allowNoIndices = value; + return this; + } + + /** + * API name: {@code case_sensitive} + */ + public final Builder caseSensitive(@Nullable Boolean value) { + this.caseSensitive = value; + return this; + } + + /** + * Field containing the event classification, such as process, file, or network. + *

+ * API name: {@code event_category_field} + */ + public final Builder eventCategoryField(@Nullable String value) { + this.eventCategoryField = value; + return this; + } + + /** + * API name: {@code expand_wildcards} + *

+ * Adds all elements of list to expandWildcards. + */ + public final Builder expandWildcards(List list) { + this.expandWildcards = _listAddAll(this.expandWildcards, list); + return this; + } + + /** + * API name: {@code expand_wildcards} + *

+ * Adds one or more values to expandWildcards. + */ + public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) { + this.expandWildcards = _listAdd(this.expandWildcards, value, values); + return this; + } + + /** + * Maximum number of events to search at a time for sequence queries. + *

+ * API name: {@code fetch_size} + */ + public final Builder fetchSize(@Nullable Number value) { + this.fetchSize = value; + return this; + } + + /** + * 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} + *

+ * Adds all elements of list to fields. + */ + public final Builder fields(List list) { + this.fields = _listAddAll(this.fields, list); + return this; + } + + /** + * 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} + *

+ * Adds one or more values to fields. + */ + public final Builder fields(FieldAndFormat value, FieldAndFormat... values) { + this.fields = _listAdd(this.fields, value, values); + return this; + } + + /** + * 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} + *

+ * Adds a value to fields using a builder lambda. + */ + public final Builder fields(Function> fn) { + return fields(fn.apply(new FieldAndFormat.Builder()).build()); + } + + /** + * Query, written in Query DSL, used to filter the events on which the EQL query + * runs. + *

+ * API name: {@code filter} + *

+ * Adds all elements of list to filter. + */ + public final Builder filter(List list) { + this.filter = _listAddAll(this.filter, list); + return this; + } + + /** + * Query, written in Query DSL, used to filter the events on which the EQL query + * runs. + *

+ * API name: {@code filter} + *

+ * Adds one or more values to filter. + */ + public final Builder filter(Query value, Query... values) { + this.filter = _listAdd(this.filter, value, values); + return this; + } + + /** + * Query, written in Query DSL, used to filter the events on which the EQL query + * runs. + *

+ * API name: {@code filter} + *

+ * Adds a value to filter using a builder lambda. + */ + public final Builder filter(Function> fn) { + return filter(fn.apply(new Query.Builder()).build()); + } + + /** + * If true, missing or closed indices are not included in the response. + *

+ * API name: {@code ignore_unavailable} + */ + public final Builder ignoreUnavailable(@Nullable Boolean value) { + this.ignoreUnavailable = value; + return this; + } + + /** + * Required - The name of the index to scope the operation + *

+ * API name: {@code index} + *

+ * Adds all elements of list to index. + */ + public final Builder index(List list) { + this.index = _listAddAll(this.index, list); + return this; + } + + /** + * Required - The name of the index to scope the operation + *

+ * API name: {@code index} + *

+ * Adds one or more values to index. + */ + public final Builder index(String value, String... values) { + this.index = _listAdd(this.index, value, values); + return this; + } + + /** + * API name: {@code keep_alive} + */ + public final Builder keepAlive(@Nullable Time value) { + this.keepAlive = value; + return this; + } + + /** + * API name: {@code keep_alive} + */ + public final Builder keepAlive(Function> fn) { + return this.keepAlive(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code keep_on_completion} + */ + public final Builder keepOnCompletion(@Nullable Boolean value) { + this.keepOnCompletion = value; + return this; + } + + /** + * Required - EQL query you wish to run. + *

+ * API name: {@code query} + */ + public final Builder query(String value) { + this.query = value; + return this; + } + + /** + * API name: {@code result_position} + */ + public final Builder resultPosition(@Nullable ResultPosition value) { + this.resultPosition = value; + return this; + } + + /** + * API name: {@code runtime_mappings} + *

+ * Adds all entries of map to runtimeMappings. + */ + public final Builder runtimeMappings(Map map) { + this.runtimeMappings = _mapPutAll(this.runtimeMappings, map); + return this; + } + + /** + * API name: {@code runtime_mappings} + *

+ * Adds an entry to runtimeMappings. + */ + public final Builder runtimeMappings(String key, RuntimeField value) { + this.runtimeMappings = _mapPut(this.runtimeMappings, key, value); + return this; + } + + /** + * API name: {@code runtime_mappings} + *

+ * Adds an entry to runtimeMappings using a builder lambda. + */ + public final Builder runtimeMappings(String key, + Function> fn) { + return runtimeMappings(key, fn.apply(new RuntimeField.Builder()).build()); + } + + /** + * For basic queries, the maximum number of matching events to return. Defaults + * to 10 + *

+ * API name: {@code size} + */ + public final Builder size(@Nullable Number value) { + this.size = value; + return this; + } + + /** + * Field used to sort hits with the same timestamp in ascending order + *

+ * API name: {@code tiebreaker_field} + */ + public final Builder tiebreakerField(@Nullable String value) { + this.tiebreakerField = value; + return this; + } + + /** + * Field containing event timestamp. Default "@timestamp" + *

+ * API name: {@code timestamp_field} + */ + public final Builder timestampField(@Nullable String value) { + this.timestampField = value; + return this; + } + + /** + * API name: {@code wait_for_completion_timeout} + */ + public final Builder waitForCompletionTimeout(@Nullable Time value) { + this.waitForCompletionTimeout = value; + return this; + } + + /** + * API name: {@code wait_for_completion_timeout} + */ + public final Builder waitForCompletionTimeout(Function> fn) { + return this.waitForCompletionTimeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link EqlSearchRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public EqlSearchRequest build() { + _checkSingleUse(); + + return new EqlSearchRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link EqlSearchRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + EqlSearchRequest::setupEqlSearchRequestDeserializer); + + protected static void setupEqlSearchRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::caseSensitive, JsonpDeserializer.booleanDeserializer(), "case_sensitive"); + op.add(Builder::eventCategoryField, JsonpDeserializer.stringDeserializer(), "event_category_field"); + op.add(Builder::fetchSize, JsonpDeserializer.numberDeserializer(), "fetch_size"); + op.add(Builder::fields, JsonpDeserializer.arrayDeserializer(FieldAndFormat._DESERIALIZER), "fields"); + op.add(Builder::filter, JsonpDeserializer.arrayDeserializer(Query._DESERIALIZER), "filter"); + op.add(Builder::keepAlive, Time._DESERIALIZER, "keep_alive"); + op.add(Builder::keepOnCompletion, JsonpDeserializer.booleanDeserializer(), "keep_on_completion"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + op.add(Builder::resultPosition, ResultPosition._DESERIALIZER, "result_position"); + op.add(Builder::runtimeMappings, JsonpDeserializer.stringMapDeserializer(RuntimeField._DESERIALIZER), + "runtime_mappings"); + op.add(Builder::size, JsonpDeserializer.numberDeserializer(), "size"); + op.add(Builder::tiebreakerField, JsonpDeserializer.stringDeserializer(), "tiebreaker_field"); + op.add(Builder::timestampField, JsonpDeserializer.stringDeserializer(), "timestamp_field"); + op.add(Builder::waitForCompletionTimeout, Time._DESERIALIZER, "wait_for_completion_timeout"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code eql.search}". + */ + public static final SimpleEndpoint _ENDPOINT = new SimpleEndpoint<>("es/eql.search", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index.stream().map(v -> v).collect(Collectors.joining(",")), buf); + buf.append("/_eql"); + buf.append("/search"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (ApiTypeHelper.isDefined(request.expandWildcards)) { + params.put("expand_wildcards", + request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + if (request.ignoreUnavailable != null) { + params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); + } + if (request.allowNoIndices != null) { + params.put("allow_no_indices", String.valueOf(request.allowNoIndices)); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, EqlSearchResponse._DESERIALIZER); + + /** + * Create an "{@code eql.search}" endpoint. + */ + public static Endpoint, ErrorResponse> createSearchEndpoint( + JsonpDeserializer tEventDeserializer) { + return _ENDPOINT + .withResponseDeserializer(EqlSearchResponse.createEqlSearchResponseDeserializer(tEventDeserializer)); + } +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponse.java new file mode 100644 index 000000000..48fbe74d6 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponse.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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.NamedDeserializer; +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.Objects; +import java.util.function.Function; +import java.util.function.Supplier; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql.search.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class EqlSearchResponse extends EqlSearchResponseBase { + // --------------------------------------------------------------------------------------------- + + private EqlSearchResponse(Builder builder) { + super(builder); + + } + + public static EqlSearchResponse of( + Function, ObjectBuilder>> fn) { + return fn.apply(new Builder<>()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link EqlSearchResponse}. + */ + + public static class Builder extends EqlSearchResponseBase.AbstractBuilder> + implements + ObjectBuilder> { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link EqlSearchResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public EqlSearchResponse build() { + _checkSingleUse(); + + return new EqlSearchResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Create a JSON deserializer for EqlSearchResponse + */ + public static JsonpDeserializer> createEqlSearchResponseDeserializer( + JsonpDeserializer tEventDeserializer) { + return ObjectBuilderDeserializer.createForObject((Supplier>) Builder::new, + op -> EqlSearchResponse.setupEqlSearchResponseDeserializer(op, tEventDeserializer)); + }; + + /** + * Json deserializer for {@link EqlSearchResponse} based on named deserializers + * provided by the calling {@code JsonMapper}. + */ + public static final JsonpDeserializer> _DESERIALIZER = JsonpDeserializer + .lazy(() -> createEqlSearchResponseDeserializer( + new NamedDeserializer<>("co.elastic.clients:Deserializer:eql.search.TEvent"))); + + protected static void setupEqlSearchResponseDeserializer( + ObjectDeserializer> op, JsonpDeserializer tEventDeserializer) { + EqlSearchResponseBase.setupEqlSearchResponseBaseDeserializer(op, tEventDeserializer); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java new file mode 100644 index 000000000..558bd99fd --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java @@ -0,0 +1,326 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpSerializer; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql._types.EqlSearchResponseBase + +/** + * + * @see API + * specification + */ + +public abstract class EqlSearchResponseBase implements JsonpSerializable { + @Nullable + private final String id; + + @Nullable + private final Boolean isPartial; + + @Nullable + private final Boolean isRunning; + + @Nullable + private final Long took; + + @Nullable + private final Boolean timedOut; + + private final EqlHits hits; + + @Nullable + private final JsonpSerializer tEventSerializer; + + // --------------------------------------------------------------------------------------------- + + protected EqlSearchResponseBase(AbstractBuilder builder) { + + this.id = builder.id; + this.isPartial = builder.isPartial; + this.isRunning = builder.isRunning; + this.took = builder.took; + this.timedOut = builder.timedOut; + this.hits = ApiTypeHelper.requireNonNull(builder.hits, this, "hits"); + this.tEventSerializer = builder.tEventSerializer; + + } + + /** + * Identifier for the search. + *

+ * API name: {@code id} + */ + @Nullable + public final String id() { + return this.id; + } + + /** + * If true, the response does not contain complete search results. + *

+ * API name: {@code is_partial} + */ + @Nullable + public final Boolean isPartial() { + return this.isPartial; + } + + /** + * If true, the search request is still executing. + *

+ * API name: {@code is_running} + */ + @Nullable + public final Boolean isRunning() { + return this.isRunning; + } + + /** + * Milliseconds it took Elasticsearch to execute the request. + *

+ * API name: {@code took} + */ + @Nullable + public final Long took() { + return this.took; + } + + /** + * If true, the request timed out before completion. + *

+ * API name: {@code timed_out} + */ + @Nullable + public final Boolean timedOut() { + return this.timedOut; + } + + /** + * Required - Contains matching events and sequences. Also contains related + * metadata. + *

+ * API name: {@code hits} + */ + public final EqlHits hits() { + return this.hits; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.id != null) { + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.isPartial != null) { + generator.writeKey("is_partial"); + generator.write(this.isPartial); + + } + if (this.isRunning != null) { + generator.writeKey("is_running"); + generator.write(this.isRunning); + + } + if (this.took != null) { + generator.writeKey("took"); + generator.write(this.took); + + } + if (this.timedOut != null) { + generator.writeKey("timed_out"); + generator.write(this.timedOut); + + } + generator.writeKey("hits"); + this.hits.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + @Nullable + private String id; + + @Nullable + private Boolean isPartial; + + @Nullable + private Boolean isRunning; + + @Nullable + private Long took; + + @Nullable + private Boolean timedOut; + + private EqlHits hits; + + @Nullable + private JsonpSerializer tEventSerializer; + + /** + * Identifier for the search. + *

+ * API name: {@code id} + */ + public final BuilderT id(@Nullable String value) { + this.id = value; + return self(); + } + + /** + * If true, the response does not contain complete search results. + *

+ * API name: {@code is_partial} + */ + public final BuilderT isPartial(@Nullable Boolean value) { + this.isPartial = value; + return self(); + } + + /** + * If true, the search request is still executing. + *

+ * API name: {@code is_running} + */ + public final BuilderT isRunning(@Nullable Boolean value) { + this.isRunning = value; + return self(); + } + + /** + * Milliseconds it took Elasticsearch to execute the request. + *

+ * API name: {@code took} + */ + public final BuilderT took(@Nullable Long value) { + this.took = value; + return self(); + } + + /** + * If true, the request timed out before completion. + *

+ * API name: {@code timed_out} + */ + public final BuilderT timedOut(@Nullable Boolean value) { + this.timedOut = value; + return self(); + } + + /** + * Required - Contains matching events and sequences. Also contains related + * metadata. + *

+ * API name: {@code hits} + */ + public final BuilderT hits(EqlHits value) { + this.hits = value; + return self(); + } + + /** + * Required - Contains matching events and sequences. Also contains related + * metadata. + *

+ * API name: {@code hits} + */ + public final BuilderT hits(Function, ObjectBuilder>> fn) { + return this.hits(fn.apply(new EqlHits.Builder()).build()); + } + + /** + * Serializer for TEvent. If not set, an attempt will be made to find a + * serializer from the JSON context. + */ + public final BuilderT tEventSerializer(@Nullable JsonpSerializer value) { + this.tEventSerializer = value; + return self(); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupEqlSearchResponseBaseDeserializer( + ObjectDeserializer op, JsonpDeserializer tEventDeserializer) { + + op.add(AbstractBuilder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(AbstractBuilder::isPartial, JsonpDeserializer.booleanDeserializer(), "is_partial"); + op.add(AbstractBuilder::isRunning, JsonpDeserializer.booleanDeserializer(), "is_running"); + op.add(AbstractBuilder::took, JsonpDeserializer.longDeserializer(), "took"); + op.add(AbstractBuilder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); + op.add(AbstractBuilder::hits, EqlHits.createEqlHitsDeserializer(tEventDeserializer), "hits"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java new file mode 100644 index 000000000..2d6aeec92 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java @@ -0,0 +1,184 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql.get_status.Request + +/** + * Returns the current status for an async EQL search or a stored synchronous + * EQL search without returning results. + * + * @see API + * specification + */ + +public class GetEqlStatusRequest extends RequestBase { + private final String id; + + // --------------------------------------------------------------------------------------------- + + private GetEqlStatusRequest(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + + } + + public static GetEqlStatusRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetEqlStatusRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String id; + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetEqlStatusRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetEqlStatusRequest build() { + _checkSingleUse(); + + return new GetEqlStatusRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code eql.get_status}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/eql.get_status", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_eql"); + buf.append("/search"); + buf.append("/status"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetEqlStatusResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusResponse.java new file mode 100644 index 000000000..470814175 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusResponse.java @@ -0,0 +1,332 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Long; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql.get_status.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetEqlStatusResponse implements JsonpSerializable { + private final String id; + + private final boolean isPartial; + + private final boolean isRunning; + + @Nullable + private final Long startTimeInMillis; + + @Nullable + private final Long expirationTimeInMillis; + + @Nullable + private final Integer completionStatus; + + // --------------------------------------------------------------------------------------------- + + private GetEqlStatusResponse(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.isPartial = ApiTypeHelper.requireNonNull(builder.isPartial, this, "isPartial"); + this.isRunning = ApiTypeHelper.requireNonNull(builder.isRunning, this, "isRunning"); + this.startTimeInMillis = builder.startTimeInMillis; + this.expirationTimeInMillis = builder.expirationTimeInMillis; + this.completionStatus = builder.completionStatus; + + } + + public static GetEqlStatusResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Required - If true, the search request is still executing. If false, the + * search is completed. + *

+ * API name: {@code is_partial} + */ + public final boolean isPartial() { + return this.isPartial; + } + + /** + * Required - If true, the response does not contain complete search results. + * This could be 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 final boolean isRunning() { + return this.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 + public final Long startTimeInMillis() { + return this.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 + public final Long expirationTimeInMillis() { + return this.expirationTimeInMillis; + } + + /** + * For a completed search shows the http status code of the completed search. + *

+ * API name: {@code completion_status} + */ + @Nullable + public final Integer completionStatus() { + return this.completionStatus; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("id"); + generator.write(this.id); + + generator.writeKey("is_partial"); + generator.write(this.isPartial); + + generator.writeKey("is_running"); + generator.write(this.isRunning); + + if (this.startTimeInMillis != null) { + generator.writeKey("start_time_in_millis"); + generator.write(this.startTimeInMillis); + + } + if (this.expirationTimeInMillis != null) { + generator.writeKey("expiration_time_in_millis"); + generator.write(this.expirationTimeInMillis); + + } + if (this.completionStatus != null) { + generator.writeKey("completion_status"); + generator.write(this.completionStatus); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetEqlStatusResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String id; + + private Boolean isPartial; + + private Boolean isRunning; + + @Nullable + private Long startTimeInMillis; + + @Nullable + private Long expirationTimeInMillis; + + @Nullable + private Integer completionStatus; + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - If true, the search request is still executing. If false, the + * search is completed. + *

+ * API name: {@code is_partial} + */ + public final Builder isPartial(boolean value) { + this.isPartial = value; + return this; + } + + /** + * Required - If true, the response does not contain complete search results. + * This could be 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 final Builder isRunning(boolean value) { + this.isRunning = value; + return this; + } + + /** + * 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 final Builder startTimeInMillis(@Nullable Long value) { + this.startTimeInMillis = value; + return this; + } + + /** + * 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 final Builder expirationTimeInMillis(@Nullable Long value) { + this.expirationTimeInMillis = value; + return this; + } + + /** + * For a completed search shows the http status code of the completed search. + *

+ * API name: {@code completion_status} + */ + public final Builder completionStatus(@Nullable Integer value) { + this.completionStatus = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetEqlStatusResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetEqlStatusResponse build() { + _checkSingleUse(); + + return new GetEqlStatusResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetEqlStatusResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetEqlStatusResponse::setupGetEqlStatusResponseDeserializer); + + protected static void setupGetEqlStatusResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::isPartial, JsonpDeserializer.booleanDeserializer(), "is_partial"); + op.add(Builder::isRunning, JsonpDeserializer.booleanDeserializer(), "is_running"); + op.add(Builder::startTimeInMillis, JsonpDeserializer.longDeserializer(), "start_time_in_millis"); + op.add(Builder::expirationTimeInMillis, JsonpDeserializer.longDeserializer(), "expiration_time_in_millis"); + op.add(Builder::completionStatus, JsonpDeserializer.integerDeserializer(), "completion_status"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java new file mode 100644 index 000000000..5c35e261e --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java @@ -0,0 +1,306 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpSerializer; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.NamedDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.function.Supplier; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql._types.HitsEvent + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class HitsEvent implements JsonpSerializable { + private final String index; + + private final String id; + + private final TEvent source; + + private final Map> fields; + + @Nullable + private final JsonpSerializer tEventSerializer; + + // --------------------------------------------------------------------------------------------- + + private HitsEvent(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.source = ApiTypeHelper.requireNonNull(builder.source, this, "source"); + this.fields = ApiTypeHelper.unmodifiable(builder.fields); + this.tEventSerializer = builder.tEventSerializer; + + } + + public static HitsEvent of(Function, ObjectBuilder>> fn) { + return fn.apply(new Builder<>()).build(); + } + + /** + * Required - Name of the index containing the event. + *

+ * API name: {@code _index} + */ + public final String index() { + return this.index; + } + + /** + * Required - Unique identifier for the event. This ID is only unique within the + * index. + *

+ * API name: {@code _id} + */ + public final String id() { + return this.id; + } + + /** + * Required - Original JSON body passed for the event at index time. + *

+ * API name: {@code _source} + */ + public final TEvent source() { + return this.source; + } + + /** + * API name: {@code fields} + */ + public final Map> fields() { + return this.fields; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("_index"); + generator.write(this.index); + + generator.writeKey("_id"); + generator.write(this.id); + + generator.writeKey("_source"); + JsonpUtils.serialize(this.source, generator, tEventSerializer, mapper); + + if (ApiTypeHelper.isDefined(this.fields)) { + generator.writeKey("fields"); + generator.writeStartObject(); + for (Map.Entry> item0 : this.fields.entrySet()) { + generator.writeKey(item0.getKey()); + generator.writeStartArray(); + if (item0.getValue() != null) { + for (JsonData item1 : item0.getValue()) { + item1.serialize(generator, mapper); + + } + } + generator.writeEnd(); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link HitsEvent}. + */ + + public static class Builder extends WithJsonObjectBuilderBase> + implements + ObjectBuilder> { + private String index; + + private String id; + + private TEvent source; + + @Nullable + private Map> fields; + + @Nullable + private JsonpSerializer tEventSerializer; + + /** + * Required - Name of the index containing the event. + *

+ * API name: {@code _index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * Required - Unique identifier for the event. This ID is only unique within the + * index. + *

+ * API name: {@code _id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - Original JSON body passed for the event at index time. + *

+ * API name: {@code _source} + */ + public final Builder source(TEvent value) { + this.source = value; + return this; + } + + /** + * API name: {@code fields} + *

+ * Adds all entries of map to fields. + */ + public final Builder fields(Map> map) { + this.fields = _mapPutAll(this.fields, map); + return this; + } + + /** + * API name: {@code fields} + *

+ * Adds an entry to fields. + */ + public final Builder fields(String key, List value) { + this.fields = _mapPut(this.fields, key, value); + return this; + } + + /** + * Serializer for TEvent. If not set, an attempt will be made to find a + * serializer from the JSON context. + */ + public final Builder tEventSerializer(@Nullable JsonpSerializer value) { + this.tEventSerializer = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link HitsEvent}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public HitsEvent build() { + _checkSingleUse(); + + return new HitsEvent(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Create a JSON deserializer for HitsEvent + */ + public static JsonpDeserializer> createHitsEventDeserializer( + JsonpDeserializer tEventDeserializer) { + return ObjectBuilderDeserializer.createForObject((Supplier>) Builder::new, + op -> HitsEvent.setupHitsEventDeserializer(op, tEventDeserializer)); + }; + + /** + * Json deserializer for {@link HitsEvent} based on named deserializers provided + * by the calling {@code JsonMapper}. + */ + public static final JsonpDeserializer> _DESERIALIZER = JsonpDeserializer + .lazy(() -> createHitsEventDeserializer( + new NamedDeserializer<>("co.elastic.clients:Deserializer:eql._types.TEvent"))); + + protected static void setupHitsEventDeserializer(ObjectDeserializer> op, + JsonpDeserializer tEventDeserializer) { + + op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "_index"); + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "_id"); + op.add(Builder::source, tEventDeserializer, "_source"); + op.add(Builder::fields, + JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.arrayDeserializer(JsonData._DESERIALIZER)), + "fields"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java new file mode 100644 index 000000000..d5b5a3a5c --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java @@ -0,0 +1,282 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.eql; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpSerializer; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.NamedDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import java.util.function.Supplier; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: eql._types.HitsSequence + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class HitsSequence implements JsonpSerializable { + private final List> events; + + private final List joinKeys; + + @Nullable + private final JsonpSerializer tEventSerializer; + + // --------------------------------------------------------------------------------------------- + + private HitsSequence(Builder builder) { + + this.events = ApiTypeHelper.unmodifiableRequired(builder.events, this, "events"); + this.joinKeys = ApiTypeHelper.unmodifiableRequired(builder.joinKeys, this, "joinKeys"); + this.tEventSerializer = builder.tEventSerializer; + + } + + public static HitsSequence of(Function, ObjectBuilder>> fn) { + return fn.apply(new Builder<>()).build(); + } + + /** + * Required - Contains events matching the query. Each object represents a + * matching event. + *

+ * API name: {@code events} + */ + public final List> events() { + return this.events; + } + + /** + * Required - 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 final List joinKeys() { + return this.joinKeys; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.events)) { + generator.writeKey("events"); + generator.writeStartArray(); + for (HitsEvent item0 : this.events) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.joinKeys)) { + generator.writeKey("join_keys"); + generator.writeStartArray(); + for (JsonData item0 : this.joinKeys) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link HitsSequence}. + */ + + public static class Builder extends WithJsonObjectBuilderBase> + implements + ObjectBuilder> { + private List> events; + + private List joinKeys; + + @Nullable + private JsonpSerializer tEventSerializer; + + /** + * Required - Contains events matching the query. Each object represents a + * matching event. + *

+ * API name: {@code events} + *

+ * Adds all elements of list to events. + */ + public final Builder events(List> list) { + this.events = _listAddAll(this.events, list); + return this; + } + + /** + * Required - Contains events matching the query. Each object represents a + * matching event. + *

+ * API name: {@code events} + *

+ * Adds one or more values to events. + */ + public final Builder events(HitsEvent value, HitsEvent... values) { + this.events = _listAdd(this.events, value, values); + return this; + } + + /** + * Required - Contains events matching the query. Each object represents a + * matching event. + *

+ * API name: {@code events} + *

+ * Adds a value to events using a builder lambda. + */ + public final Builder events(Function, ObjectBuilder>> fn) { + return events(fn.apply(new HitsEvent.Builder()).build()); + } + + /** + * Required - 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} + *

+ * Adds all elements of list to joinKeys. + */ + public final Builder joinKeys(List list) { + this.joinKeys = _listAddAll(this.joinKeys, list); + return this; + } + + /** + * Required - 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} + *

+ * Adds one or more values to joinKeys. + */ + public final Builder joinKeys(JsonData value, JsonData... values) { + this.joinKeys = _listAdd(this.joinKeys, value, values); + return this; + } + + /** + * Serializer for TEvent. If not set, an attempt will be made to find a + * serializer from the JSON context. + */ + public final Builder tEventSerializer(@Nullable JsonpSerializer value) { + this.tEventSerializer = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link HitsSequence}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public HitsSequence build() { + _checkSingleUse(); + + return new HitsSequence(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Create a JSON deserializer for HitsSequence + */ + public static JsonpDeserializer> createHitsSequenceDeserializer( + JsonpDeserializer tEventDeserializer) { + return ObjectBuilderDeserializer.createForObject((Supplier>) Builder::new, + op -> HitsSequence.setupHitsSequenceDeserializer(op, tEventDeserializer)); + }; + + /** + * Json deserializer for {@link HitsSequence} based on named deserializers + * provided by the calling {@code JsonMapper}. + */ + public static final JsonpDeserializer> _DESERIALIZER = JsonpDeserializer + .lazy(() -> createHitsSequenceDeserializer( + new NamedDeserializer<>("co.elastic.clients:Deserializer:eql._types.TEvent"))); + + protected static void setupHitsSequenceDeserializer(ObjectDeserializer> op, + JsonpDeserializer tEventDeserializer) { + + op.add(Builder::events, + JsonpDeserializer.arrayDeserializer(HitsEvent.createHitsEventDeserializer(tEventDeserializer)), + "events"); + op.add(Builder::joinKeys, JsonpDeserializer.arrayDeserializer(JsonData._DESERIALIZER), "join_keys"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/search/ResultPosition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/search/ResultPosition.java new file mode 100644 index 000000000..c67531c4e --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/eql/search/ResultPosition.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. + */ + +package co.elastic.clients.elasticsearch.eql.search; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum ResultPosition implements JsonEnum { + /** + * Return the most recent matches, similar to the Unix tail command. + */ + Tail("tail"), + + /** + * Return the earliest matches, similar to the Unix head command. + */ + Head("head"), + + ; + + private final String jsonValue; + + ResultPosition(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ResultPosition.values()); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java index 057ba01ac..91c1fda17 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.Connection /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java index a3b50e33a..08028390e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the graph namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java index 3fec3e6d2..4857c471d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the graph namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java index 771eae23b..80534cc9d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.elasticsearch._types.Time; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.ExploreControls /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java index cfb0047d6..601f88927 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph.explore.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreResponse.java index 1c6e18253..0631b2350 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.elasticsearch._types.ShardFailure; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph.explore.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java index 8bd2128df..8429c193a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.Hop /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java index 0cc1cbe7d..f4f61e711 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.SampleDiversity /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java index d1a50125f..6322fcd31 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.Vertex /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java index ccc9ac717..f06ac89af 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.VertexDefinition /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java index 4437ef96f..04c7203c5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.graph; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: graph._types.VertexInclude /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java new file mode 100644 index 000000000..0ed0fb241 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java @@ -0,0 +1,406 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.ExpandWildcard; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch.indices.add_block.IndicesBlockOptions; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.add_block.Request + +/** + * Adds a block to an index. + * + * @see API + * specification + */ + +public class AddBlockRequest extends RequestBase { + @Nullable + private final Boolean allowNoIndices; + + private final IndicesBlockOptions block; + + private final List expandWildcards; + + @Nullable + private final Boolean ignoreUnavailable; + + private final String index; + + @Nullable + private final Time masterTimeout; + + @Nullable + private final Time timeout; + + // --------------------------------------------------------------------------------------------- + + private AddBlockRequest(Builder builder) { + + this.allowNoIndices = builder.allowNoIndices; + this.block = ApiTypeHelper.requireNonNull(builder.block, this, "block"); + this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); + this.ignoreUnavailable = builder.ignoreUnavailable; + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.masterTimeout = builder.masterTimeout; + this.timeout = builder.timeout; + + } + + public static AddBlockRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * 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 + public final Boolean allowNoIndices() { + return this.allowNoIndices; + } + + /** + * Required - The block to add (one of read, write, read_only or metadata) + *

+ * API name: {@code block} + */ + public final IndicesBlockOptions block() { + return this.block; + } + + /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

+ * API name: {@code expand_wildcards} + */ + public final List expandWildcards() { + return this.expandWildcards; + } + + /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

+ * API name: {@code ignore_unavailable} + */ + @Nullable + public final Boolean ignoreUnavailable() { + return this.ignoreUnavailable; + } + + /** + * Required - A comma separated list of indices to add a block to + *

+ * API name: {@code index} + */ + public final String index() { + return this.index; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + @Nullable + public final Time masterTimeout() { + return this.masterTimeout; + } + + /** + * Explicit operation timeout + *

+ * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AddBlockRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean allowNoIndices; + + private IndicesBlockOptions block; + + @Nullable + private List expandWildcards; + + @Nullable + private Boolean ignoreUnavailable; + + private String index; + + @Nullable + private Time masterTimeout; + + @Nullable + private Time timeout; + + /** + * 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 final Builder allowNoIndices(@Nullable Boolean value) { + this.allowNoIndices = value; + return this; + } + + /** + * Required - The block to add (one of read, write, read_only or metadata) + *

+ * API name: {@code block} + */ + public final Builder block(IndicesBlockOptions value) { + this.block = value; + return this; + } + + /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

+ * API name: {@code expand_wildcards} + *

+ * Adds all elements of list to expandWildcards. + */ + public final Builder expandWildcards(List list) { + this.expandWildcards = _listAddAll(this.expandWildcards, list); + return this; + } + + /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

+ * API name: {@code expand_wildcards} + *

+ * Adds one or more values to expandWildcards. + */ + public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) { + this.expandWildcards = _listAdd(this.expandWildcards, value, values); + return this; + } + + /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

+ * API name: {@code ignore_unavailable} + */ + public final Builder ignoreUnavailable(@Nullable Boolean value) { + this.ignoreUnavailable = value; + return this; + } + + /** + * Required - A comma separated list of indices to add a block to + *

+ * API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public final Builder masterTimeout(@Nullable Time value) { + this.masterTimeout = value; + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public final Builder masterTimeout(Function> fn) { + return this.masterTimeout(fn.apply(new Time.Builder()).build()); + } + + /** + * Explicit operation timeout + *

+ * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Explicit operation timeout + *

+ * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link AddBlockRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AddBlockRequest build() { + _checkSingleUse(); + + return new AddBlockRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.add_block}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.add_block", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + final int _block = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _block; + + if (propsSet == (_index | _block)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index, buf); + buf.append("/_block"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.block.jsonValue(), buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + final int _block = 1 << 1; + + int propsSet = 0; + + propsSet |= _index; + propsSet |= _block; + + if (propsSet == (_index | _block)) { + params.put("index", request.index); + params.put("block", request.block.jsonValue()); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout._toJsonString()); + } + if (ApiTypeHelper.isDefined(request.expandWildcards)) { + params.put("expand_wildcards", + request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + if (request.ignoreUnavailable != null) { + params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); + } + if (request.allowNoIndices != null) { + params.put("allow_no_indices", String.valueOf(request.allowNoIndices)); + } + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, AddBlockResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockResponse.java new file mode 100644 index 000000000..c25c87be1 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockResponse.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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; +import co.elastic.clients.elasticsearch.indices.add_block.IndicesBlockStatus; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.add_block.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class AddBlockResponse implements AcknowledgedResponse, JsonpSerializable { + private final boolean acknowledged; + + private final boolean shardsAcknowledged; + + private final List indices; + + // --------------------------------------------------------------------------------------------- + + private AddBlockResponse(Builder builder) { + + this.acknowledged = ApiTypeHelper.requireNonNull(builder.acknowledged, this, "acknowledged"); + this.shardsAcknowledged = ApiTypeHelper.requireNonNull(builder.shardsAcknowledged, this, "shardsAcknowledged"); + this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); + + } + + public static AddBlockResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code acknowledged} + */ + public final boolean acknowledged() { + return this.acknowledged; + } + + /** + * Required - API name: {@code shards_acknowledged} + */ + public final boolean shardsAcknowledged() { + return this.shardsAcknowledged; + } + + /** + * Required - API name: {@code indices} + */ + public final List indices() { + return this.indices; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("acknowledged"); + generator.write(this.acknowledged); + + generator.writeKey("shards_acknowledged"); + generator.write(this.shardsAcknowledged); + + if (ApiTypeHelper.isDefined(this.indices)) { + generator.writeKey("indices"); + generator.writeStartArray(); + for (IndicesBlockStatus item0 : this.indices) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AddBlockResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Boolean acknowledged; + + private Boolean shardsAcknowledged; + + private List indices; + + /** + * Required - API name: {@code acknowledged} + */ + public final Builder acknowledged(boolean value) { + this.acknowledged = value; + return this; + } + + /** + * Required - API name: {@code shards_acknowledged} + */ + public final Builder shardsAcknowledged(boolean value) { + this.shardsAcknowledged = value; + return this; + } + + /** + * Required - API name: {@code indices} + *

+ * Adds all elements of list to indices. + */ + public final Builder indices(List list) { + this.indices = _listAddAll(this.indices, list); + return this; + } + + /** + * Required - API name: {@code indices} + *

+ * Adds one or more values to indices. + */ + public final Builder indices(IndicesBlockStatus value, IndicesBlockStatus... values) { + this.indices = _listAdd(this.indices, value, values); + return this; + } + + /** + * Required - API name: {@code indices} + *

+ * Adds a value to indices using a builder lambda. + */ + public final Builder indices(Function> fn) { + return indices(fn.apply(new IndicesBlockStatus.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link AddBlockResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AddBlockResponse build() { + _checkSingleUse(); + + return new AddBlockResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link AddBlockResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + AddBlockResponse::setupAddBlockResponseDeserializer); + + protected static void setupAddBlockResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::acknowledged, JsonpDeserializer.booleanDeserializer(), "acknowledged"); + op.add(Builder::shardsAcknowledged, JsonpDeserializer.booleanDeserializer(), "shards_acknowledged"); + op.add(Builder::indices, JsonpDeserializer.arrayDeserializer(IndicesBlockStatus._DESERIALIZER), "indices"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java index ea3cc1caf..8c0790e01 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.Alias /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java index 619b808d8..85365490e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.AliasDefinition /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java index aadb9a1f7..a53cc84ad 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeResponse.java index 4d4a5ecf9..dc61d9e70 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.analyze.AnalyzeDetail; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java index 4f56739c2..e8e882782 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.CacheQueries /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java index 05c23df8d..79ae44f41 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.create_data_stream.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamResponse.java index 91eb66afd..9b5e2b043 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.create_data_stream.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java index e6089255a..8f227b173 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.create.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexResponse.java index 808311ca1..1eb6fe168 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.create.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java index fd84a51a7..9515531df 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.HealthStatus; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStream /** @@ -66,6 +77,10 @@ public class DataStream implements JsonpSerializable { @Nullable private final String ilmPolicy; + private final ManagedBy nextGenerationManagedBy; + + private final boolean preferIlm; + private final List indices; @Nullable @@ -94,6 +109,9 @@ private DataStream(Builder builder) { this.generation = ApiTypeHelper.requireNonNull(builder.generation, this, "generation"); this.hidden = ApiTypeHelper.requireNonNull(builder.hidden, this, "hidden"); this.ilmPolicy = builder.ilmPolicy; + this.nextGenerationManagedBy = ApiTypeHelper.requireNonNull(builder.nextGenerationManagedBy, this, + "nextGenerationManagedBy"); + this.preferIlm = ApiTypeHelper.requireNonNull(builder.preferIlm, this, "preferIlm"); this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); this.lifecycle = builder.lifecycle; this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); @@ -165,6 +183,26 @@ public final String ilmPolicy() { return this.ilmPolicy; } + /** + * Required - Name of the lifecycle system that'll manage the next generation of + * the data stream. + *

+ * API name: {@code next_generation_managed_by} + */ + public final ManagedBy nextGenerationManagedBy() { + return this.nextGenerationManagedBy; + } + + /** + * Required - Indicates if ILM should take precedence over DSL in case both are + * configured to managed this data stream. + *

+ * API name: {@code prefer_ilm} + */ + public final boolean preferIlm() { + return this.preferIlm; + } + /** * Required - Array of objects containing information about the data stream’s * backing indices. The last item in this array contains information about the @@ -288,6 +326,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.ilmPolicy); } + generator.writeKey("next_generation_managed_by"); + this.nextGenerationManagedBy.serialize(generator, mapper); + generator.writeKey("prefer_ilm"); + generator.write(this.preferIlm); + if (ApiTypeHelper.isDefined(this.indices)) { generator.writeKey("indices"); generator.writeStartArray(); @@ -351,6 +394,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String ilmPolicy; + private ManagedBy nextGenerationManagedBy; + + private Boolean preferIlm; + private List indices; @Nullable @@ -445,6 +492,28 @@ public final Builder ilmPolicy(@Nullable String value) { return this; } + /** + * Required - Name of the lifecycle system that'll manage the next generation of + * the data stream. + *

+ * API name: {@code next_generation_managed_by} + */ + public final Builder nextGenerationManagedBy(ManagedBy value) { + this.nextGenerationManagedBy = value; + return this; + } + + /** + * Required - Indicates if ILM should take precedence over DSL in case both are + * configured to managed this data stream. + *

+ * API name: {@code prefer_ilm} + */ + public final Builder preferIlm(boolean value) { + this.preferIlm = value; + return this; + } + /** * Required - Array of objects containing information about the data stream’s * backing indices. The last item in this array contains information about the @@ -619,6 +688,8 @@ protected static void setupDataStreamDeserializer(ObjectDeserializer + * API name: {@code ilm_policy} + */ + @Nullable + public final String ilmPolicy() { + return this.ilmPolicy; + } + + /** + * Required - Name of the lifecycle system that's currently managing this + * backing index. + *

+ * API name: {@code managed_by} + */ + public final ManagedBy managedBy() { + return this.managedBy; + } + + /** + * Required - Indicates if ILM should take precedence over DSL in case both are + * configured to manage this index. + *

+ * API name: {@code prefer_ilm} + */ + public final boolean preferIlm() { + return this.preferIlm; + } + /** * Serialize this object to JSON. */ @@ -100,6 +152,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("index_uuid"); generator.write(this.indexUuid); + if (this.ilmPolicy != null) { + generator.writeKey("ilm_policy"); + generator.write(this.ilmPolicy); + + } + generator.writeKey("managed_by"); + this.managedBy.serialize(generator, mapper); + generator.writeKey("prefer_ilm"); + generator.write(this.preferIlm); + } @Override @@ -118,6 +180,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String indexUuid; + @Nullable + private String ilmPolicy; + + private ManagedBy managedBy; + + private Boolean preferIlm; + /** * Required - Name of the backing index. *

@@ -138,6 +207,38 @@ public final Builder indexUuid(String value) { return this; } + /** + * Name of the current ILM lifecycle policy configured for this backing index. + *

+ * API name: {@code ilm_policy} + */ + public final Builder ilmPolicy(@Nullable String value) { + this.ilmPolicy = value; + return this; + } + + /** + * Required - Name of the lifecycle system that's currently managing this + * backing index. + *

+ * API name: {@code managed_by} + */ + public final Builder managedBy(ManagedBy value) { + this.managedBy = value; + return this; + } + + /** + * Required - Indicates if ILM should take precedence over DSL in case both are + * configured to manage this index. + *

+ * API name: {@code prefer_ilm} + */ + public final Builder preferIlm(boolean value) { + this.preferIlm = value; + return this; + } + @Override protected Builder self() { return this; @@ -168,6 +269,9 @@ protected static void setupDataStreamIndexDeserializer(ObjectDeserializer @Nullable private Time dataRetention; + @Nullable + private DataStreamLifecycleDownsampling downsampling; + /** * API name: {@code data_retention} */ @@ -124,6 +155,22 @@ public final Builder dataRetention(Function> f return this.dataRetention(fn.apply(new Time.Builder()).build()); } + /** + * API name: {@code downsampling} + */ + public final Builder downsampling(@Nullable DataStreamLifecycleDownsampling value) { + this.downsampling = value; + return this; + } + + /** + * API name: {@code downsampling} + */ + public final Builder downsampling( + Function> fn) { + return this.downsampling(fn.apply(new DataStreamLifecycleDownsampling.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -153,6 +200,7 @@ public DataStreamLifecycle build() { protected static void setupDataStreamLifecycleDeserializer(ObjectDeserializer op) { op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); + op.add(Builder::downsampling, DataStreamLifecycleDownsampling._DESERIALIZER, "downsampling"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java new file mode 100644 index 000000000..b1f5696c4 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java @@ -0,0 +1,199 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices._types.DataStreamLifecycleDownsampling + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DataStreamLifecycleDownsampling implements JsonpSerializable { + private final List rounds; + + // --------------------------------------------------------------------------------------------- + + private DataStreamLifecycleDownsampling(Builder builder) { + + this.rounds = ApiTypeHelper.unmodifiableRequired(builder.rounds, this, "rounds"); + + } + + public static DataStreamLifecycleDownsampling of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The list of downsampling rounds to execute as part of this + * downsampling configuration + *

+ * API name: {@code rounds} + */ + public final List rounds() { + return this.rounds; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.rounds)) { + generator.writeKey("rounds"); + generator.writeStartArray(); + for (DownsamplingRound item0 : this.rounds) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DataStreamLifecycleDownsampling}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List rounds; + + /** + * Required - The list of downsampling rounds to execute as part of this + * downsampling configuration + *

+ * API name: {@code rounds} + *

+ * Adds all elements of list to rounds. + */ + public final Builder rounds(List list) { + this.rounds = _listAddAll(this.rounds, list); + return this; + } + + /** + * Required - The list of downsampling rounds to execute as part of this + * downsampling configuration + *

+ * API name: {@code rounds} + *

+ * Adds one or more values to rounds. + */ + public final Builder rounds(DownsamplingRound value, DownsamplingRound... values) { + this.rounds = _listAdd(this.rounds, value, values); + return this; + } + + /** + * Required - The list of downsampling rounds to execute as part of this + * downsampling configuration + *

+ * API name: {@code rounds} + *

+ * Adds a value to rounds using a builder lambda. + */ + public final Builder rounds(Function> fn) { + return rounds(fn.apply(new DownsamplingRound.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DataStreamLifecycleDownsampling}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DataStreamLifecycleDownsampling build() { + _checkSingleUse(); + + return new DataStreamLifecycleDownsampling(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DataStreamLifecycleDownsampling} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DataStreamLifecycleDownsampling::setupDataStreamLifecycleDownsamplingDeserializer); + + protected static void setupDataStreamLifecycleDownsamplingDeserializer( + ObjectDeserializer op) { + + op.add(Builder::rounds, JsonpDeserializer.arrayDeserializer(DownsamplingRound._DESERIALIZER), "rounds"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java index 42e1ec3f5..96605215d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamLifecycleRolloverConditions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java index 4745512bf..d1eb39b7f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamLifecycleWithRollover /** @@ -53,6 +64,9 @@ public class DataStreamLifecycleWithRollover implements JsonpSerializable { @Nullable private final Time dataRetention; + @Nullable + private final DataStreamLifecycleDownsampling downsampling; + @Nullable private final DataStreamLifecycleRolloverConditions rollover; @@ -61,6 +75,7 @@ public class DataStreamLifecycleWithRollover implements JsonpSerializable { private DataStreamLifecycleWithRollover(Builder builder) { this.dataRetention = builder.dataRetention; + this.downsampling = builder.downsampling; this.rollover = builder.rollover; } @@ -83,6 +98,17 @@ public final Time dataRetention() { return this.dataRetention; } + /** + * The downsampling configuration to execute for the managed backing index after + * rollover. + *

+ * API name: {@code downsampling} + */ + @Nullable + public final DataStreamLifecycleDownsampling downsampling() { + return this.downsampling; + } + /** * The conditions which will trigger the rollover of a backing index as * configured by the cluster setting @@ -113,6 +139,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("data_retention"); this.dataRetention.serialize(generator, mapper); + } + if (this.downsampling != null) { + generator.writeKey("downsampling"); + this.downsampling.serialize(generator, mapper); + } if (this.rollover != null) { generator.writeKey("rollover"); @@ -139,6 +170,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Time dataRetention; + @Nullable + private DataStreamLifecycleDownsampling downsampling; + @Nullable private DataStreamLifecycleRolloverConditions rollover; @@ -167,6 +201,28 @@ public final Builder dataRetention(Function> f return this.dataRetention(fn.apply(new Time.Builder()).build()); } + /** + * The downsampling configuration to execute for the managed backing index after + * rollover. + *

+ * API name: {@code downsampling} + */ + public final Builder downsampling(@Nullable DataStreamLifecycleDownsampling value) { + this.downsampling = value; + return this; + } + + /** + * The downsampling configuration to execute for the managed backing index after + * rollover. + *

+ * API name: {@code downsampling} + */ + public final Builder downsampling( + Function> fn) { + return this.downsampling(fn.apply(new DataStreamLifecycleDownsampling.Builder()).build()); + } + /** * The conditions which will trigger the rollover of a backing index as * configured by the cluster setting @@ -227,6 +283,7 @@ protected static void setupDataStreamLifecycleWithRolloverDeserializer( ObjectDeserializer op) { op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); + op.add(Builder::downsampling, DataStreamLifecycleDownsampling._DESERIALIZER, "downsampling"); op.add(Builder::rollover, DataStreamLifecycleRolloverConditions._DESERIALIZER, "rollover"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java index f1a1e2c40..ae0ea8287 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamTimestampField /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java index 67c9a6b4c..9f562c19d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.DataStreamVisibility /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java index 678a91d9b..4c4295eda 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.data_streams_stats.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java index 1ac433188..efd8a3023 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -37,12 +33,28 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.lang.Long; import java.lang.String; import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.data_streams_stats.Response /** @@ -64,7 +76,7 @@ public class DataStreamsStatsResponse implements JsonpSerializable { @Nullable private final String totalStoreSizes; - private final int totalStoreSizeBytes; + private final long totalStoreSizeBytes; // --------------------------------------------------------------------------------------------- @@ -137,7 +149,7 @@ public final String totalStoreSizes() { *

* API name: {@code total_store_size_bytes} */ - public final int totalStoreSizeBytes() { + public final long totalStoreSizeBytes() { return this.totalStoreSizeBytes; } @@ -206,7 +218,7 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String totalStoreSizes; - private Integer totalStoreSizeBytes; + private Long totalStoreSizeBytes; /** * Required - Contains information about shards that attempted to execute the @@ -301,7 +313,7 @@ public final Builder totalStoreSizes(@Nullable String value) { *

* API name: {@code total_store_size_bytes} */ - public final Builder totalStoreSizeBytes(int value) { + public final Builder totalStoreSizeBytes(long value) { this.totalStoreSizeBytes = value; return this; } @@ -341,7 +353,7 @@ protected static void setupDataStreamsStatsResponseDeserializer( op.add(Builder::dataStreams, JsonpDeserializer.arrayDeserializer(DataStreamsStatsItem._DESERIALIZER), "data_streams"); op.add(Builder::totalStoreSizes, JsonpDeserializer.stringDeserializer(), "total_store_sizes"); - op.add(Builder::totalStoreSizeBytes, JsonpDeserializer.integerDeserializer(), "total_store_size_bytes"); + op.add(Builder::totalStoreSizeBytes, JsonpDeserializer.longDeserializer(), "total_store_size_bytes"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java index 4c9857640..379766b9e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_alias.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasResponse.java index 56a56443b..1255191ab 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_alias.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java index 4ab9bbc36..8da922024 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_data_lifecycle.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java index 86ab655f3..e1f782794 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_data_lifecycle.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java index 1e5f101b3..a8cb9e4f4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_data_stream.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamResponse.java index 5429591b1..a31ed5d30 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_data_stream.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java index 6247195db..a82af788c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexResponse.java index 3370b1d56..9a982fd93 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.IndicesResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java index 6c3516d64..7533511ef 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_index_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateResponse.java index fada7580b..521988450 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.delete_index_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java new file mode 100644 index 000000000..0b9f04da8 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java @@ -0,0 +1,166 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices._types.DownsampleConfig + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DownsampleConfig implements JsonpSerializable { + private final Time fixedInterval; + + // --------------------------------------------------------------------------------------------- + + private DownsampleConfig(Builder builder) { + + this.fixedInterval = ApiTypeHelper.requireNonNull(builder.fixedInterval, this, "fixedInterval"); + + } + + public static DownsampleConfig of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The interval at which to aggregate the original time series index. + *

+ * API name: {@code fixed_interval} + */ + public final Time fixedInterval() { + return this.fixedInterval; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("fixed_interval"); + this.fixedInterval.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DownsampleConfig}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Time fixedInterval; + + /** + * Required - The interval at which to aggregate the original time series index. + *

+ * API name: {@code fixed_interval} + */ + public final Builder fixedInterval(Time value) { + this.fixedInterval = value; + return this; + } + + /** + * Required - The interval at which to aggregate the original time series index. + *

+ * API name: {@code fixed_interval} + */ + public final Builder fixedInterval(Function> fn) { + return this.fixedInterval(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DownsampleConfig}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DownsampleConfig build() { + _checkSingleUse(); + + return new DownsampleConfig(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DownsampleConfig} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + DownsampleConfig::setupDownsampleConfigDeserializer); + + protected static void setupDownsampleConfigDeserializer(ObjectDeserializer op) { + + op.add(Builder::fixedInterval, Time._DESERIALIZER, "fixed_interval"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java new file mode 100644 index 000000000..047b3a94c --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java @@ -0,0 +1,207 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices._types.DownsamplingRound + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DownsamplingRound implements JsonpSerializable { + private final Time after; + + private final DownsampleConfig config; + + // --------------------------------------------------------------------------------------------- + + private DownsamplingRound(Builder builder) { + + this.after = ApiTypeHelper.requireNonNull(builder.after, this, "after"); + this.config = ApiTypeHelper.requireNonNull(builder.config, this, "config"); + + } + + public static DownsamplingRound of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The duration since rollover when this downsampling round should + * execute + *

+ * API name: {@code after} + */ + public final Time after() { + return this.after; + } + + /** + * Required - The downsample configuration to execute. + *

+ * API name: {@code config} + */ + public final DownsampleConfig config() { + return this.config; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("after"); + this.after.serialize(generator, mapper); + + generator.writeKey("config"); + this.config.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DownsamplingRound}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Time after; + + private DownsampleConfig config; + + /** + * Required - The duration since rollover when this downsampling round should + * execute + *

+ * API name: {@code after} + */ + public final Builder after(Time value) { + this.after = value; + return this; + } + + /** + * Required - The duration since rollover when this downsampling round should + * execute + *

+ * API name: {@code after} + */ + public final Builder after(Function> fn) { + return this.after(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - The downsample configuration to execute. + *

+ * API name: {@code config} + */ + public final Builder config(DownsampleConfig value) { + this.config = value; + return this; + } + + /** + * Required - The downsample configuration to execute. + *

+ * API name: {@code config} + */ + public final Builder config(Function> fn) { + return this.config(fn.apply(new DownsampleConfig.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DownsamplingRound}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DownsamplingRound build() { + _checkSingleUse(); + + return new DownsamplingRound(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DownsamplingRound} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DownsamplingRound::setupDownsamplingRoundDeserializer); + + protected static void setupDownsamplingRoundDeserializer(ObjectDeserializer op) { + + op.add(Builder::after, Time._DESERIALIZER, "after"); + op.add(Builder::config, DownsampleConfig._DESERIALIZER, "config"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index e0689a0a5..85a60a949 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the indices namespace. */ @@ -57,6 +68,39 @@ public ElasticsearchIndicesAsyncClient withTransportOptions(@Nullable TransportO return new ElasticsearchIndicesAsyncClient(this.transport, transportOptions); } + // ----- Endpoint: indices.add_block + + /** + * Adds a block to an index. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture addBlock(AddBlockRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) AddBlockRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Adds a block to an index. + * + * @param fn + * a function that initializes a builder to create the + * {@link AddBlockRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture addBlock( + Function> fn) { + return addBlock(fn.apply(new AddBlockRequest.Builder()).build()); + } + // ----- Endpoint: indices.analyze /** @@ -356,7 +400,7 @@ public final CompletableFuture deleteDataStream( * Deletes an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation * on elastic.co */ @@ -374,7 +418,7 @@ public CompletableFuture deleteIndexTemplate(Delete * a function that initializes a builder to create the * {@link DeleteIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation * on elastic.co */ @@ -383,72 +427,6 @@ public final CompletableFuture deleteIndexTemplate( return deleteIndexTemplate(fn.apply(new DeleteIndexTemplateRequest.Builder()).build()); } - // ----- Endpoint: indices.delete_template - - /** - * Deletes an index template. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture deleteTemplate(DeleteTemplateRequest request) { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) DeleteTemplateRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Deletes an index template. - * - * @param fn - * a function that initializes a builder to create the - * {@link DeleteTemplateRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture deleteTemplate( - Function> fn) { - return deleteTemplate(fn.apply(new DeleteTemplateRequest.Builder()).build()); - } - - // ----- Endpoint: indices.disk_usage - - /** - * Analyzes the disk usage of each field of an index or data stream - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture diskUsage(DiskUsageRequest request) { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) DiskUsageRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Analyzes the disk usage of each field of an index or data stream - * - * @param fn - * a function that initializes a builder to create the - * {@link DiskUsageRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture diskUsage( - Function> fn) { - return diskUsage(fn.apply(new DiskUsageRequest.Builder()).build()); - } - // ----- Endpoint: indices.exists /** @@ -521,7 +499,7 @@ public final CompletableFuture existsAlias( * Returns information about whether a particular index template exists. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -539,7 +517,7 @@ public CompletableFuture existsIndexTemplate(ExistsIndexTemplat * a function that initializes a builder to create the * {@link ExistsIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -548,39 +526,6 @@ public final CompletableFuture existsIndexTemplate( return existsIndexTemplate(fn.apply(new ExistsIndexTemplateRequest.Builder()).build()); } - // ----- Endpoint: indices.exists_template - - /** - * Returns information about whether a particular index template exists. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture existsTemplate(ExistsTemplateRequest request) { - @SuppressWarnings("unchecked") - Endpoint endpoint = (Endpoint) ExistsTemplateRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Returns information about whether a particular index template exists. - * - * @param fn - * a function that initializes a builder to create the - * {@link ExistsTemplateRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture existsTemplate( - Function> fn) { - return existsTemplate(fn.apply(new ExistsTemplateRequest.Builder()).build()); - } - // ----- Endpoint: indices.explain_data_lifecycle /** @@ -780,7 +725,7 @@ public CompletableFuture getDataStream() { * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -798,7 +743,7 @@ public CompletableFuture getIndexTemplate(GetIndexTemp * a function that initializes a builder to create the * {@link GetIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -811,7 +756,7 @@ public final CompletableFuture getIndexTemplate( * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -912,52 +857,6 @@ public CompletableFuture getSettings() { GetIndicesSettingsRequest._ENDPOINT, this.transportOptions); } - // ----- Endpoint: indices.get_template - - /** - * Returns an index template. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture getTemplate(GetTemplateRequest request) { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) GetTemplateRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Returns an index template. - * - * @param fn - * a function that initializes a builder to create the - * {@link GetTemplateRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture getTemplate( - Function> fn) { - return getTemplate(fn.apply(new GetTemplateRequest.Builder()).build()); - } - - /** - * Returns an index template. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture getTemplate() { - return this.transport.performRequestAsync(new GetTemplateRequest.Builder().build(), - GetTemplateRequest._ENDPOINT, this.transportOptions); - } - // ----- Endpoint: indices.migrate_to_data_stream /** @@ -1096,7 +995,7 @@ public final CompletableFuture putDataLifecycle( * Creates or updates an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html">Documentation * on elastic.co */ @@ -1114,7 +1013,7 @@ public CompletableFuture putIndexTemplate(PutIndexTemp * a function that initializes a builder to create the * {@link PutIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html">Documentation * on elastic.co */ @@ -1208,7 +1107,7 @@ public CompletableFuture putSettings() { * Creates or updates an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html">Documentation * on elastic.co */ @@ -1226,7 +1125,7 @@ public CompletableFuture putTemplate(PutTemplateRequest req * a function that initializes a builder to create the * {@link PutTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html">Documentation * on elastic.co */ @@ -1235,6 +1134,52 @@ public final CompletableFuture putTemplate( return putTemplate(fn.apply(new PutTemplateRequest.Builder()).build()); } + // ----- Endpoint: indices.refresh + + /** + * Performs the refresh operation in one or more indices. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture refresh(RefreshRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) RefreshRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Performs the refresh operation in one or more indices. + * + * @param fn + * a function that initializes a builder to create the + * {@link RefreshRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture refresh( + Function> fn) { + return refresh(fn.apply(new RefreshRequest.Builder()).build()); + } + + /** + * Performs the refresh operation in one or more indices. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture refresh() { + return this.transport.performRequestAsync(new RefreshRequest.Builder().build(), RefreshRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: indices.resolve_index /** @@ -1310,7 +1255,7 @@ public final CompletableFuture rollover( * system * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -1330,7 +1275,7 @@ public CompletableFuture simulateIndexTemplate( * a function that initializes a builder to create the * {@link SimulateIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -1345,7 +1290,7 @@ public final CompletableFuture simulateIndexTempl * Simulate resolving the given template name or body * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ @@ -1363,7 +1308,7 @@ public CompletableFuture simulateTemplate(SimulateTemp * a function that initializes a builder to create the * {@link SimulateTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ @@ -1376,7 +1321,7 @@ public final CompletableFuture simulateTemplate( * Simulate resolving the given template name or body * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java index b6b8e60e1..50cc4bb9b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the indices namespace. */ @@ -55,6 +66,39 @@ public ElasticsearchIndicesClient withTransportOptions(@Nullable TransportOption return new ElasticsearchIndicesClient(this.transport, transportOptions); } + // ----- Endpoint: indices.add_block + + /** + * Adds a block to an index. + * + * @see Documentation + * on elastic.co + */ + + public AddBlockResponse addBlock(AddBlockRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) AddBlockRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Adds a block to an index. + * + * @param fn + * a function that initializes a builder to create the + * {@link AddBlockRequest} + * @see Documentation + * on elastic.co + */ + + public final AddBlockResponse addBlock(Function> fn) + throws IOException, ElasticsearchException { + return addBlock(fn.apply(new AddBlockRequest.Builder()).build()); + } + // ----- Endpoint: indices.analyze /** @@ -363,7 +407,7 @@ public final DeleteDataStreamResponse deleteDataStream( * Deletes an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation * on elastic.co */ @@ -382,7 +426,7 @@ public DeleteIndexTemplateResponse deleteIndexTemplate(DeleteIndexTemplateReques * a function that initializes a builder to create the * {@link DeleteIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation * on elastic.co */ @@ -392,74 +436,6 @@ public final DeleteIndexTemplateResponse deleteIndexTemplate( return deleteIndexTemplate(fn.apply(new DeleteIndexTemplateRequest.Builder()).build()); } - // ----- Endpoint: indices.delete_template - - /** - * Deletes an index template. - * - * @see Documentation - * on elastic.co - */ - - public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) - throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) DeleteTemplateRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Deletes an index template. - * - * @param fn - * a function that initializes a builder to create the - * {@link DeleteTemplateRequest} - * @see Documentation - * on elastic.co - */ - - public final DeleteTemplateResponse deleteTemplate( - Function> fn) - throws IOException, ElasticsearchException { - return deleteTemplate(fn.apply(new DeleteTemplateRequest.Builder()).build()); - } - - // ----- Endpoint: indices.disk_usage - - /** - * Analyzes the disk usage of each field of an index or data stream - * - * @see Documentation - * on elastic.co - */ - - public DiskUsageResponse diskUsage(DiskUsageRequest request) throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) DiskUsageRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Analyzes the disk usage of each field of an index or data stream - * - * @param fn - * a function that initializes a builder to create the - * {@link DiskUsageRequest} - * @see Documentation - * on elastic.co - */ - - public final DiskUsageResponse diskUsage(Function> fn) - throws IOException, ElasticsearchException { - return diskUsage(fn.apply(new DiskUsageRequest.Builder()).build()); - } - // ----- Endpoint: indices.exists /** @@ -532,7 +508,7 @@ public final BooleanResponse existsAlias(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -551,7 +527,7 @@ public BooleanResponse existsIndexTemplate(ExistsIndexTemplateRequest request) * a function that initializes a builder to create the * {@link ExistsIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -561,40 +537,6 @@ public final BooleanResponse existsIndexTemplate( return existsIndexTemplate(fn.apply(new ExistsIndexTemplateRequest.Builder()).build()); } - // ----- Endpoint: indices.exists_template - - /** - * Returns information about whether a particular index template exists. - * - * @see Documentation - * on elastic.co - */ - - public BooleanResponse existsTemplate(ExistsTemplateRequest request) throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - Endpoint endpoint = (Endpoint) ExistsTemplateRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Returns information about whether a particular index template exists. - * - * @param fn - * a function that initializes a builder to create the - * {@link ExistsTemplateRequest} - * @see Documentation - * on elastic.co - */ - - public final BooleanResponse existsTemplate( - Function> fn) - throws IOException, ElasticsearchException { - return existsTemplate(fn.apply(new ExistsTemplateRequest.Builder()).build()); - } - // ----- Endpoint: indices.explain_data_lifecycle /** @@ -800,7 +742,7 @@ public GetDataStreamResponse getDataStream() throws IOException, ElasticsearchEx * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -819,7 +761,7 @@ public GetIndexTemplateResponse getIndexTemplate(GetIndexTemplateRequest request * a function that initializes a builder to create the * {@link GetIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -833,7 +775,7 @@ public final GetIndexTemplateResponse getIndexTemplate( * Returns an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation * on elastic.co */ @@ -936,53 +878,6 @@ public GetIndicesSettingsResponse getSettings() throws IOException, Elasticsearc GetIndicesSettingsRequest._ENDPOINT, this.transportOptions); } - // ----- Endpoint: indices.get_template - - /** - * Returns an index template. - * - * @see Documentation - * on elastic.co - */ - - public GetTemplateResponse getTemplate(GetTemplateRequest request) throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) GetTemplateRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Returns an index template. - * - * @param fn - * a function that initializes a builder to create the - * {@link GetTemplateRequest} - * @see Documentation - * on elastic.co - */ - - public final GetTemplateResponse getTemplate( - Function> fn) - throws IOException, ElasticsearchException { - return getTemplate(fn.apply(new GetTemplateRequest.Builder()).build()); - } - - /** - * Returns an index template. - * - * @see Documentation - * on elastic.co - */ - - public GetTemplateResponse getTemplate() throws IOException, ElasticsearchException { - return this.transport.performRequest(new GetTemplateRequest.Builder().build(), GetTemplateRequest._ENDPOINT, - this.transportOptions); - } - // ----- Endpoint: indices.migrate_to_data_stream /** @@ -1127,7 +1022,7 @@ public final PutDataLifecycleResponse putDataLifecycle( * Creates or updates an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html">Documentation * on elastic.co */ @@ -1146,7 +1041,7 @@ public PutIndexTemplateResponse putIndexTemplate(PutIndexTemplateRequest request * a function that initializes a builder to create the * {@link PutIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html">Documentation * on elastic.co */ @@ -1243,7 +1138,7 @@ public PutIndicesSettingsResponse putSettings() throws IOException, Elasticsearc * Creates or updates an index template. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html">Documentation * on elastic.co */ @@ -1261,7 +1156,7 @@ public PutTemplateResponse putTemplate(PutTemplateRequest request) throws IOExce * a function that initializes a builder to create the * {@link PutTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html">Documentation * on elastic.co */ @@ -1271,6 +1166,52 @@ public final PutTemplateResponse putTemplate( return putTemplate(fn.apply(new PutTemplateRequest.Builder()).build()); } + // ----- Endpoint: indices.refresh + + /** + * Performs the refresh operation in one or more indices. + * + * @see Documentation + * on elastic.co + */ + + public RefreshResponse refresh(RefreshRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) RefreshRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Performs the refresh operation in one or more indices. + * + * @param fn + * a function that initializes a builder to create the + * {@link RefreshRequest} + * @see Documentation + * on elastic.co + */ + + public final RefreshResponse refresh(Function> fn) + throws IOException, ElasticsearchException { + return refresh(fn.apply(new RefreshRequest.Builder()).build()); + } + + /** + * Performs the refresh operation in one or more indices. + * + * @see Documentation + * on elastic.co + */ + + public RefreshResponse refresh() throws IOException, ElasticsearchException { + return this.transport.performRequest(new RefreshRequest.Builder().build(), RefreshRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: indices.resolve_index /** @@ -1347,7 +1288,7 @@ public final RolloverResponse rollover(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -1367,7 +1308,7 @@ public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplate * a function that initializes a builder to create the * {@link SimulateIndexTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -1383,7 +1324,7 @@ public final SimulateIndexTemplateResponse simulateIndexTemplate( * Simulate resolving the given template name or body * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ @@ -1402,7 +1343,7 @@ public SimulateTemplateResponse simulateTemplate(SimulateTemplateRequest request * a function that initializes a builder to create the * {@link SimulateTemplateRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ @@ -1416,7 +1357,7 @@ public final SimulateTemplateResponse simulateTemplate( * Simulate resolving the given template name or body * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation * on elastic.co */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java index f7da54657..63a5accac 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.exists_alias.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java index c8600fd8d..f204a6986 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.exists_index_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java index e49e82a04..351959e8c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.exists.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java index c9117b4e4..0de719315 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.explain_data_lifecycle.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java index 422f772a8..e8b06c9de 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.explain_data_lifecycle.DataStreamLifecycleExplain; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.explain_data_lifecycle.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java index 0e783a701..f197b6bf0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.FielddataFrequencyFilter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java index d8b7b1f82..6a93c4c30 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_alias.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java index e4516e3ff..07a00f9c1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_alias.IndexAliases; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_alias.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java index e76db1480..1c05dd329 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_lifecycle.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java index bd87eaa4b..b770acbe5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_data_lifecycle.DataStreamWithLifecycle; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_lifecycle.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java index 1ba10dce6..ebf90196a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_stream.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamResponse.java index d52549e5e..3c7fa5d83 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_stream.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java index a664fdc1c..8cafaeecb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java index 1e313eded..0eb9e9f14 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java index 68a2e269f..310aa2053 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_index_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateResponse.java index 080b73319..a098f2ba7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_index_template.IndexTemplateItem; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_index_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java index c07d5e8a3..3272fe22a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_settings.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java index ba5c5682f..4bbe6b441 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_settings.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java index e25b1d52a..26f6866f8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_mapping.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java index 997c89694..5d88a4fed 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.get_mapping.IndexMappingRecord; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_mapping.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/IndexCheckOnStartup.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/IndexCheckOnStartup.java index 79ee0cdb6..f26073eec 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/IndexCheckOnStartup.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/IndexCheckOnStartup.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API + * specification + */ +@JsonpDeserializable +public enum ManagedBy implements JsonEnum { + Ilm("Index Lifecycle Management"), + + Datastream("Data stream lifecycle"), + + Unmanaged("Unmanaged"), + + ; + + private final String jsonValue; + + ManagedBy(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ManagedBy.values()); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java index 72b04ff98..e72578718 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.MappingLimitSettings /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java index ff6e3b778..0d711c469 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.MappingLimitSettingsDepth /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java index 2015ec80c..a5aea4eff 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.MappingLimitSettingsDimensionFields /** @@ -66,9 +77,9 @@ public static MappingLimitSettingsDimensionFields of( /** * [preview] This functionality is in technical preview and may be changed or - * removed in a future release. Elastic will apply best effort to fix any - * issues, but features in technical preview are not subject to the support SLA - * of official GA features. + * removed in a future release. Elastic will work to fix any issues, but + * features in technical preview are not subject to the support SLA of official + * GA features. *

* API name: {@code limit} */ @@ -115,9 +126,9 @@ public static class Builder extends WithJsonObjectBuilderBase /** * [preview] This functionality is in technical preview and may be changed or - * removed in a future release. Elastic will apply best effort to fix any - * issues, but features in technical preview are not subject to the support SLA - * of official GA features. + * removed in a future release. Elastic will work to fix any issues, but + * features in technical preview are not subject to the support SLA of official + * GA features. *

* API name: {@code limit} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java index 616fbbd6c..d268bd7f0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.MappingLimitSettingsFieldNameLength /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java index bda69b799..707160c6a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.MappingLimitSettingsNestedFields /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java index 8fcaf13e7..68753110a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.MappingLimitSettingsNestedObjects /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java index 849a0c164..7c532cb2f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.MappingLimitSettingsTotalFields /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java index 0d80cc1a7..d9e94b6c3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.Merge /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java index 81aa3b896..caf86bbba 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.MergeScheduler /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java index a7c7d13f1..989103136 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.migrate_to_data_stream.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamResponse.java index 3aed3a38c..93aa19093 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.migrate_to_data_stream.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java index f3fca2a41..211ff2c86 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.modify_data_stream.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamResponse.java index e2b13d2d7..d3664f088 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.modify_data_stream.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java index 60769703c..836147ce0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.NumericFielddata /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddataFormat.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddataFormat.java index 27f5b92df..187639a8f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddataFormat.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddataFormat.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see expandWildcards; @Nullable @@ -76,6 +90,7 @@ public class PutDataLifecycleRequest extends RequestBase implements JsonpSeriali private PutDataLifecycleRequest(Builder builder) { this.dataRetention = builder.dataRetention; + this.downsampling = builder.downsampling; this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); this.masterTimeout = builder.masterTimeout; this.name = ApiTypeHelper.unmodifiableRequired(builder.name, this, "name"); @@ -100,6 +115,18 @@ public final Time dataRetention() { return this.dataRetention; } + /** + * If defined, every backing index will execute the configured downsampling + * configuration after the backing index is not the data stream write index + * anymore. + *

+ * API name: {@code downsampling} + */ + @Nullable + public final DataStreamLifecycleDownsampling downsampling() { + return this.downsampling; + } + /** * Type of data stream that wildcard patterns can match. Supports * comma-separated values, such as open,hidden. Valid values are: @@ -161,6 +188,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.dataRetention.serialize(generator, mapper); } + if (this.downsampling != null) { + generator.writeKey("downsampling"); + this.downsampling.serialize(generator, mapper); + + } } @@ -176,6 +208,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time dataRetention; + @Nullable + private DataStreamLifecycleDownsampling downsampling; + @Nullable private List expandWildcards; @@ -212,6 +247,30 @@ public final Builder dataRetention(Function> f return this.dataRetention(fn.apply(new Time.Builder()).build()); } + /** + * If defined, every backing index will execute the configured downsampling + * configuration after the backing index is not the data stream write index + * anymore. + *

+ * API name: {@code downsampling} + */ + public final Builder downsampling(@Nullable DataStreamLifecycleDownsampling value) { + this.downsampling = value; + return this; + } + + /** + * If defined, every backing index will execute the configured downsampling + * configuration after the backing index is not the data stream write index + * anymore. + *

+ * API name: {@code downsampling} + */ + public final Builder downsampling( + Function> fn) { + return this.downsampling(fn.apply(new DataStreamLifecycleDownsampling.Builder()).build()); + } + /** * Type of data stream that wildcard patterns can match. Supports * comma-separated values, such as open,hidden. Valid values are: @@ -342,6 +401,7 @@ protected static void setupPutDataLifecycleRequestDeserializer( ObjectDeserializer op) { op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); + op.add(Builder::downsampling, DataStreamLifecycleDownsampling._DESERIALIZER, "downsampling"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleResponse.java index 6fb604435..b88e96fe0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_data_lifecycle.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java index 03d25f990..b6e50f6d0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_index_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateResponse.java index 5e1c7cc62..461d66aa8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_index_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java index adf2e5d0e..aaecb4b99 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_settings.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsResponse.java index 8a4bbbc23..138fb4511 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_settings.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java index de3f08a08..b9e0415d5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -56,6 +52,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_mapping.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingResponse.java index 3d93567a1..be50ff1ee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.IndicesResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_mapping.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java index 281ea7a6d..42236ece0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -50,6 +46,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateResponse.java index bffddb145..dd12b6c88 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Queries.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Queries.java index a2b0752d2..f5db74497 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Queries.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Queries.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.Queries /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java new file mode 100644 index 000000000..9fa83be14 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java @@ -0,0 +1,341 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.ExpandWildcard; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.refresh.Request + +/** + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. + * + * @see API + * specification + */ + +public class RefreshRequest extends RequestBase { + @Nullable + private final Boolean allowNoIndices; + + private final List expandWildcards; + + @Nullable + private final Boolean ignoreUnavailable; + + private final List index; + + // --------------------------------------------------------------------------------------------- + + private RefreshRequest(Builder builder) { + + this.allowNoIndices = builder.allowNoIndices; + this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); + this.ignoreUnavailable = builder.ignoreUnavailable; + this.index = ApiTypeHelper.unmodifiable(builder.index); + + } + + public static RefreshRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. + *

+ * API name: {@code allow_no_indices} + */ + @Nullable + public final Boolean allowNoIndices() { + return this.allowNoIndices; + } + + /** + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. + *

+ * API name: {@code expand_wildcards} + */ + public final List expandWildcards() { + return this.expandWildcards; + } + + /** + * If false, the request returns an error if it targets a missing + * or closed index. + *

+ * API name: {@code ignore_unavailable} + */ + @Nullable + public final Boolean ignoreUnavailable() { + return this.ignoreUnavailable; + } + + /** + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. + *

+ * API name: {@code index} + */ + public final List index() { + return this.index; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RefreshRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean allowNoIndices; + + @Nullable + private List expandWildcards; + + @Nullable + private Boolean ignoreUnavailable; + + @Nullable + private List index; + + /** + * If false, the request returns an error if any wildcard + * expression, index alias, or _all value targets only missing or + * closed indices. This behavior applies even if the request targets other open + * indices. + *

+ * API name: {@code allow_no_indices} + */ + public final Builder allowNoIndices(@Nullable Boolean value) { + this.allowNoIndices = value; + return this; + } + + /** + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. + *

+ * API name: {@code expand_wildcards} + *

+ * Adds all elements of list to expandWildcards. + */ + public final Builder expandWildcards(List list) { + this.expandWildcards = _listAddAll(this.expandWildcards, list); + return this; + } + + /** + * Type of index that wildcard patterns 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. Valid values are: all, + * open, closed, hidden, + * none. + *

+ * API name: {@code expand_wildcards} + *

+ * Adds one or more values to expandWildcards. + */ + public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) { + this.expandWildcards = _listAdd(this.expandWildcards, value, values); + return this; + } + + /** + * If false, the request returns an error if it targets a missing + * or closed index. + *

+ * API name: {@code ignore_unavailable} + */ + public final Builder ignoreUnavailable(@Nullable Boolean value) { + this.ignoreUnavailable = value; + return this; + } + + /** + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. + *

+ * API name: {@code index} + *

+ * Adds all elements of list to index. + */ + public final Builder index(List list) { + this.index = _listAddAll(this.index, list); + return this; + } + + /** + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. + *

+ * API name: {@code index} + *

+ * Adds one or more values to index. + */ + public final Builder index(String value, String... values) { + this.index = _listAdd(this.index, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RefreshRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RefreshRequest build() { + _checkSingleUse(); + + return new RefreshRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.refresh}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.refresh", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_refresh"); + return buf.toString(); + } + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index.stream().map(v -> v).collect(Collectors.joining(",")), buf); + buf.append("/_refresh"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.index())) + propsSet |= _index; + + if (propsSet == 0) { + } + if (propsSet == (_index)) { + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (ApiTypeHelper.isDefined(request.expandWildcards)) { + params.put("expand_wildcards", + request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + if (request.ignoreUnavailable != null) { + params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); + } + if (request.allowNoIndices != null) { + params.put("allow_no_indices", String.valueOf(request.allowNoIndices)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, RefreshResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshResponse.java new file mode 100644 index 000000000..c000085e2 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshResponse.java @@ -0,0 +1,107 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ShardsOperationResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +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.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.refresh.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class RefreshResponse extends ShardsOperationResponseBase { + // --------------------------------------------------------------------------------------------- + + private RefreshResponse(Builder builder) { + super(builder); + + } + + public static RefreshResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RefreshResponse}. + */ + + public static class Builder extends ShardsOperationResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RefreshResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RefreshResponse build() { + _checkSingleUse(); + + return new RefreshResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RefreshResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + RefreshResponse::setupRefreshResponseDeserializer); + + protected static void setupRefreshResponseDeserializer(ObjectDeserializer op) { + ShardsOperationResponseBase.setupShardsOperationResponseBaseDeserializer(op); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java index 02618e6b2..3ce0ffc59 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.resolve_index.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexResponse.java index 6f92410af..789d67994 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.resolve_index.ResolveIndexAliasItem; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.resolve_index.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java index 6a32f8a7b..0111463c2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.RetentionLease /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java index ea5837c32..8d0c14bdc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.rollover.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverResponse.java index c9926974c..1e54c4672 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.rollover.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java index 96a2fb150..b0d492f77 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SearchIdle /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortMissing.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortMissing.java index 04f5c30ea..7cfbf1b3a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortMissing.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortMissing.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortOrder.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortOrder.java index d140c205b..565f50904 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortOrder.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortOrder.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java index bf5c279f7..eb547c319 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsAnalyze /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java index ea4a0b236..5148f36e6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsHighlight /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java index 6809169c3..4251c53c9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsQueryString /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java index ab9651dc8..94ab24661 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSearch /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java index 52c7e9ef9..319cc2eb7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarity.java @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -30,13 +28,32 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.OpenTaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; +import java.lang.Object; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarity /** @@ -46,39 +63,74 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarity implements JsonpSerializable { - @Nullable - private final SettingsSimilarityBm25 bm25; +public class SettingsSimilarity implements OpenTaggedUnion, JsonpSerializable { - @Nullable - private final SettingsSimilarityDfi dfi; + /** + * {@link SettingsSimilarity} variant kinds. + * + * @see API + * specification + */ - @Nullable - private final SettingsSimilarityDfr dfr; + public enum Kind implements JsonEnum { + Bm25("bm25"), - @Nullable - private final SettingsSimilarityIb ib; + Dfi("dfi"), - @Nullable - private final SettingsSimilarityLmd lmd; + Dfr("dfr"), - @Nullable - private final SettingsSimilarityLmj lmj; + Ib("ib"), - @Nullable - private final SettingsSimilarityScriptedTfidf scriptedTfidf; + Lmd("lmd"), + + Lmj("lmj"), + + ScriptedTfidf("scripted_tfidf"), + + /** A custom {@code SettingsSimilarity} defined by a plugin */ + _Custom(null) + + ; - // --------------------------------------------------------------------------------------------- + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + public SettingsSimilarity(SettingsSimilarityVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._settingsSimilarityKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; + + } private SettingsSimilarity(Builder builder) { - this.bm25 = builder.bm25; - this.dfi = builder.dfi; - this.dfr = builder.dfr; - this.ib = builder.ib; - this.lmd = builder.lmd; - this.lmj = builder.lmj; - this.scriptedTfidf = builder.scriptedTfidf; + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + this._customKind = builder._customKind; } @@ -87,278 +139,285 @@ public static SettingsSimilarity of(Function - implements - ObjectBuilder { - @Nullable - private SettingsSimilarityBm25 bm25; + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { - @Nullable - private SettingsSimilarityDfi dfi; + generator.writeStartObject(); - @Nullable - private SettingsSimilarityDfr dfr; + generator.writeKey(_kind == Kind._Custom ? _customKind : _kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } - @Nullable - private SettingsSimilarityIb ib; + generator.writeEnd(); - @Nullable - private SettingsSimilarityLmd lmd; + } - @Nullable - private SettingsSimilarityLmj lmj; + @Override + public String toString() { + return JsonpUtils.toString(this); + } - @Nullable - private SettingsSimilarityScriptedTfidf scriptedTfidf; + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Kind _kind; + private Object _value; + private String _customKind; - /** - * API name: {@code bm25} - */ - public final Builder bm25(@Nullable SettingsSimilarityBm25 value) { - this.bm25 = value; + @Override + protected Builder self() { + return this; + } + public ObjectBuilder bm25(SettingsSimilarityBm25 v) { + this._kind = Kind.Bm25; + this._value = v; return this; } - /** - * API name: {@code bm25} - */ - public final Builder bm25(Function> fn) { + public ObjectBuilder bm25( + Function> fn) { return this.bm25(fn.apply(new SettingsSimilarityBm25.Builder()).build()); } - /** - * API name: {@code dfi} - */ - public final Builder dfi(@Nullable SettingsSimilarityDfi value) { - this.dfi = value; + public ObjectBuilder dfi(SettingsSimilarityDfi v) { + this._kind = Kind.Dfi; + this._value = v; return this; } - /** - * API name: {@code dfi} - */ - public final Builder dfi(Function> fn) { + public ObjectBuilder dfi( + Function> fn) { return this.dfi(fn.apply(new SettingsSimilarityDfi.Builder()).build()); } - /** - * API name: {@code dfr} - */ - public final Builder dfr(@Nullable SettingsSimilarityDfr value) { - this.dfr = value; + public ObjectBuilder dfr(SettingsSimilarityDfr v) { + this._kind = Kind.Dfr; + this._value = v; return this; } - /** - * API name: {@code dfr} - */ - public final Builder dfr(Function> fn) { + public ObjectBuilder dfr( + Function> fn) { return this.dfr(fn.apply(new SettingsSimilarityDfr.Builder()).build()); } - /** - * API name: {@code ib} - */ - public final Builder ib(@Nullable SettingsSimilarityIb value) { - this.ib = value; + public ObjectBuilder ib(SettingsSimilarityIb v) { + this._kind = Kind.Ib; + this._value = v; return this; } - /** - * API name: {@code ib} - */ - public final Builder ib(Function> fn) { + public ObjectBuilder ib( + Function> fn) { return this.ib(fn.apply(new SettingsSimilarityIb.Builder()).build()); } - /** - * API name: {@code lmd} - */ - public final Builder lmd(@Nullable SettingsSimilarityLmd value) { - this.lmd = value; + public ObjectBuilder lmd(SettingsSimilarityLmd v) { + this._kind = Kind.Lmd; + this._value = v; return this; } - /** - * API name: {@code lmd} - */ - public final Builder lmd(Function> fn) { + public ObjectBuilder lmd( + Function> fn) { return this.lmd(fn.apply(new SettingsSimilarityLmd.Builder()).build()); } - /** - * API name: {@code lmj} - */ - public final Builder lmj(@Nullable SettingsSimilarityLmj value) { - this.lmj = value; + public ObjectBuilder lmj(SettingsSimilarityLmj v) { + this._kind = Kind.Lmj; + this._value = v; return this; } - /** - * API name: {@code lmj} - */ - public final Builder lmj(Function> fn) { + public ObjectBuilder lmj( + Function> fn) { return this.lmj(fn.apply(new SettingsSimilarityLmj.Builder()).build()); } - /** - * API name: {@code scripted_tfidf} - */ - public final Builder scriptedTfidf(@Nullable SettingsSimilarityScriptedTfidf value) { - this.scriptedTfidf = value; + public ObjectBuilder scriptedTfidf(SettingsSimilarityScriptedTfidf v) { + this._kind = Kind.ScriptedTfidf; + this._value = v; return this; } - /** - * API name: {@code scripted_tfidf} - */ - public final Builder scriptedTfidf( + public ObjectBuilder scriptedTfidf( Function> fn) { return this.scriptedTfidf(fn.apply(new SettingsSimilarityScriptedTfidf.Builder()).build()); } - @Override - protected Builder self() { - return this; - } - /** - * Builds a {@link SettingsSimilarity}. + * Define this {@code SettingsSimilarity} as a plugin-defined variant. * - * @throws NullPointerException - * if some of the required fields are null. + * @param name + * the plugin-defined identifier + * @param data + * the data for this custom {@code SettingsSimilarity}. It is + * converted internally to {@link JsonData}. */ + public ObjectBuilder _custom(String name, Object data) { + this._kind = Kind._Custom; + this._customKind = name; + this._value = JsonData.of(data); + return this; + } + public SettingsSimilarity build() { _checkSingleUse(); - return new SettingsSimilarity(this); } - } - - // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for {@link SettingsSimilarity} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, SettingsSimilarity::setupSettingsSimilarityDeserializer); + } - protected static void setupSettingsSimilarityDeserializer(ObjectDeserializer op) { + protected static void setupSettingsSimilarityDeserializer(ObjectDeserializer op) { op.add(Builder::bm25, SettingsSimilarityBm25._DESERIALIZER, "bm25"); op.add(Builder::dfi, SettingsSimilarityDfi._DESERIALIZER, "dfi"); @@ -368,6 +427,13 @@ protected static void setupSettingsSimilarityDeserializer(ObjectDeserializer { + JsonpUtils.ensureCustomVariantsAllowed(parser, mapper); + builder._custom(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); + }); + } + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SettingsSimilarity::setupSettingsSimilarityDeserializer, Builder::build); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java index b585f302a..addd2cfb5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityBm25 /** @@ -48,7 +59,7 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarityBm25 implements JsonpSerializable { +public class SettingsSimilarityBm25 implements SettingsSimilarityVariant, JsonpSerializable { private final double b; private final boolean discountOverlaps; @@ -69,6 +80,14 @@ public static SettingsSimilarityBm25 of(Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.bm25(fn.apply(new SettingsSimilarityBm25.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityDfi dfi} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityDfi.Builder dfi() { + return new SettingsSimilarityDfi.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityDfi dfi} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity dfi( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.dfi(fn.apply(new SettingsSimilarityDfi.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityDfr dfr} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityDfr.Builder dfr() { + return new SettingsSimilarityDfr.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityDfr dfr} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity dfr( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.dfr(fn.apply(new SettingsSimilarityDfr.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityIb ib} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityIb.Builder ib() { + return new SettingsSimilarityIb.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityIb ib} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity ib( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.ib(fn.apply(new SettingsSimilarityIb.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityLmd lmd} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityLmd.Builder lmd() { + return new SettingsSimilarityLmd.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmd lmd} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity lmd( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.lmd(fn.apply(new SettingsSimilarityLmd.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityLmj lmj} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityLmj.Builder lmj() { + return new SettingsSimilarityLmj.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmj lmj} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity lmj( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.lmj(fn.apply(new SettingsSimilarityLmj.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityScriptedTfidf + * scripted_tfidf} {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityScriptedTfidf.Builder scriptedTfidf() { + return new SettingsSimilarityScriptedTfidf.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityScriptedTfidf + * scripted_tfidf} {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity scriptedTfidf( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.scriptedTfidf(fn.apply(new SettingsSimilarityScriptedTfidf.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java index 3c9367797..acc0cfb49 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.DFIIndependenceMeasure; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SettingsSimilarityDfi /** @@ -48,7 +59,7 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarityDfi implements JsonpSerializable { +public class SettingsSimilarityDfi implements SettingsSimilarityVariant, JsonpSerializable { private final DFIIndependenceMeasure independenceMeasure; // --------------------------------------------------------------------------------------------- @@ -64,6 +75,14 @@ public static SettingsSimilarityDfi of(Function */ @JsonpDeserializable -public class SettingsSimilarityDfr implements JsonpSerializable { +public class SettingsSimilarityDfr implements SettingsSimilarityVariant, JsonpSerializable { private final DFRAfterEffect afterEffect; private final DFRBasicModel basicModel; @@ -71,6 +82,14 @@ public static SettingsSimilarityDfr of(Function */ @JsonpDeserializable -public class SettingsSimilarityIb implements JsonpSerializable { +public class SettingsSimilarityIb implements SettingsSimilarityVariant, JsonpSerializable { private final IBDistribution distribution; private final IBLambda lambda; @@ -71,6 +82,14 @@ public static SettingsSimilarityIb of(Function */ @JsonpDeserializable -public class SettingsSimilarityLmd implements JsonpSerializable { +public class SettingsSimilarityLmd implements SettingsSimilarityVariant, JsonpSerializable { private final int mu; // --------------------------------------------------------------------------------------------- @@ -62,6 +73,14 @@ public static SettingsSimilarityLmd of(Function */ @JsonpDeserializable -public class SettingsSimilarityLmj implements JsonpSerializable { +public class SettingsSimilarityLmj implements SettingsSimilarityVariant, JsonpSerializable { private final double lambda; // --------------------------------------------------------------------------------------------- @@ -62,6 +73,14 @@ public static SettingsSimilarityLmj of(Function */ @JsonpDeserializable -public class SettingsSimilarityScriptedTfidf implements JsonpSerializable { +public class SettingsSimilarityScriptedTfidf implements SettingsSimilarityVariant, JsonpSerializable { private final Script script; // --------------------------------------------------------------------------------------------- @@ -64,6 +75,14 @@ public static SettingsSimilarityScriptedTfidf of( return fn.apply(new Builder()).build(); } + /** + * SettingsSimilarity variant kind. + */ + @Override + public SettingsSimilarity.Kind _settingsSimilarityKind() { + return SettingsSimilarity.Kind.ScriptedTfidf; + } + /** * Required - API name: {@code script} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java new file mode 100644 index 000000000..badfa9446 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link SettingsSimilarity} variants. + */ +public interface SettingsSimilarityVariant { + + SettingsSimilarity.Kind _settingsSimilarityKind(); + + default SettingsSimilarity _toSettingsSimilarity() { + return new SettingsSimilarity(this); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java index ef4aedff7..4d080dcc3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -50,6 +46,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_index_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java index 9c85fdf06..ddc66e621 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -31,6 +27,21 @@ import jakarta.json.stream.JsonGenerator; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_index_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java index 4bafcbf29..c23ccef78 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_template.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateResponse.java index 8cc600a1a..d3411d785 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch.indices.simulate_template.Overlapping; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_template.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java index d9ab7000a..d191134f2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SlowlogSettings /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java index 3493285c9..16e3e513f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SlowlogTresholdLevels /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java index 9d9efa393..4354d448a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SlowlogTresholds /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java index dfc72fddc..13aa7f0d7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.SoftDeletes /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java index c76beb368..f1a8c63f9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.Storage /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java index e42d85ab3..10510c714 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java index 16ab9c863..5f42a6e05 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.elasticsearch._types.Time; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices._types.Translog /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogDurability.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogDurability.java index c529ba186..c56acd4ca 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogDurability.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogDurability.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API + * specification + */ +@JsonpDeserializable +public enum IndicesBlockOptions implements JsonEnum { + Metadata("metadata"), + + Read("read"), + + ReadOnly("read_only"), + + Write("write"), + + ; + + private final String jsonValue; + + IndicesBlockOptions(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + IndicesBlockOptions.values()); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/IndicesBlockStatus.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/IndicesBlockStatus.java new file mode 100644 index 000000000..cd9d033cd --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/IndicesBlockStatus.java @@ -0,0 +1,181 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.indices.add_block; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.add_block.IndicesBlockStatus + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class IndicesBlockStatus implements JsonpSerializable { + private final String name; + + private final boolean blocked; + + // --------------------------------------------------------------------------------------------- + + private IndicesBlockStatus(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.blocked = ApiTypeHelper.requireNonNull(builder.blocked, this, "blocked"); + + } + + public static IndicesBlockStatus of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * Required - API name: {@code blocked} + */ + public final boolean blocked() { + return this.blocked; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("name"); + generator.write(this.name); + + generator.writeKey("blocked"); + generator.write(this.blocked); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IndicesBlockStatus}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String name; + + private Boolean blocked; + + /** + * Required - API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * Required - API name: {@code blocked} + */ + public final Builder blocked(boolean value) { + this.blocked = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IndicesBlockStatus}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IndicesBlockStatus build() { + _checkSingleUse(); + + return new IndicesBlockStatus(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IndicesBlockStatus} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, IndicesBlockStatus::setupIndicesBlockStatusDeserializer); + + protected static void setupIndicesBlockStatusDeserializer(ObjectDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::blocked, JsonpDeserializer.booleanDeserializer(), "blocked"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeDetail.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeDetail.java index 112bffe4e..00ba2a66c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeDetail.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeDetail.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.analyze; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.AnalyzeDetail /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeToken.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeToken.java index f78985405..e2630d9e9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeToken.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeToken.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.analyze; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.AnalyzeToken /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzerDetail.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzerDetail.java index 837cf9331..3037ce531 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzerDetail.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzerDetail.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.analyze; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.AnalyzerDetail /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/CharFilterDetail.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/CharFilterDetail.java index 17554ce9b..4abd71957 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/CharFilterDetail.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/CharFilterDetail.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.analyze; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.CharFilterDetail /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/ExplainAnalyzeToken.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/ExplainAnalyzeToken.java index 9973c200e..241ceebf2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/ExplainAnalyzeToken.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/ExplainAnalyzeToken.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.analyze; import co.elastic.clients.json.JsonData; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.ExplainAnalyzeToken /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/TokenDetail.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/TokenDetail.java index 61917b585..c8da22be3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/TokenDetail.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/TokenDetail.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.analyze; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.analyze.TokenDetail /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java index 3b9efd510..1545c0030 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.data_streams_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.data_streams_stats.DataStreamsStatsItem /** @@ -60,7 +71,7 @@ public class DataStreamsStatsItem implements JsonpSerializable { @Nullable private final String storeSize; - private final int storeSizeBytes; + private final long storeSizeBytes; // --------------------------------------------------------------------------------------------- @@ -128,7 +139,7 @@ public final String storeSize() { *

* API name: {@code store_size_bytes} */ - public final int storeSizeBytes() { + public final long storeSizeBytes() { return this.storeSizeBytes; } @@ -185,7 +196,7 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String storeSize; - private Integer storeSizeBytes; + private Long storeSizeBytes; /** * Required - Current number of backing indices for the data stream. @@ -240,7 +251,7 @@ public final Builder storeSize(@Nullable String value) { *

* API name: {@code store_size_bytes} */ - public final Builder storeSizeBytes(int value) { + public final Builder storeSizeBytes(long value) { this.storeSizeBytes = value; return this; } @@ -277,7 +288,7 @@ protected static void setupDataStreamsStatsItemDeserializer(ObjectDeserializerAPI diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java index e1860e24a..23ab2d267 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_alias; import co.elastic.clients.elasticsearch.indices.AliasDefinition; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_alias.IndexAliases /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java index f60a3b633..c0f1c5612 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_data_lifecycle; import co.elastic.clients.elasticsearch.indices.DataStreamLifecycle; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_data_lifecycle.DataStreamWithLifecycle /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java index 98ea0a405..83a4abfd7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_index_template; import co.elastic.clients.elasticsearch.indices.IndexTemplate; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_index_template.IndexTemplateItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java index dc23f5661..5a7ae2e65 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get_mapping; import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.get_mapping.IndexMappingRecord /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/Action.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/Action.java index fda3a8ce2..6fe324d84 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/Action.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/Action.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.modify_data_stream; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.modify_data_stream.Action /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionBuilders.java index d980702aa..966068fba 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.modify_data_stream; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Action} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionVariant.java index 14f80097d..88a044748 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/ActionVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.modify_data_stream; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Action} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java index e6e889e9c..79d42882d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.modify_data_stream; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.modify_data_stream.IndexAndDataStreamAction /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java index 334b0ca4d..b22923919 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.put_index_template; import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.put_index_template.IndexTemplateMapping /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java index 7ad011b01..982e693ae 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.reload_search_analyzers; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.reload_search_analyzers.ReloadDetails /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java index 568f6a43f..387a9a0eb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.reload_search_analyzers; import co.elastic.clients.elasticsearch._types.ShardStatistics; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.reload_search_analyzers.ReloadResult /** @@ -56,14 +67,14 @@ public class ReloadResult implements JsonpSerializable { // --------------------------------------------------------------------------------------------- - protected ReloadResult(AbstractBuilder builder) { + private ReloadResult(Builder builder) { this.reloadDetails = ApiTypeHelper.unmodifiableRequired(builder.reloadDetails, this, "reloadDetails"); this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); } - public static ReloadResult reloadResultOf(Function> fn) { + public static ReloadResult of(Function> fn) { return fn.apply(new Builder()).build(); } @@ -118,28 +129,7 @@ public String toString() { * Builder for {@link ReloadResult}. */ - public static class Builder extends ReloadResult.AbstractBuilder implements ObjectBuilder { - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link ReloadResult}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public ReloadResult build() { - _checkSingleUse(); - - return new ReloadResult(this); - } - } - - public abstract static class AbstractBuilder> - extends - WithJsonObjectBuilderBase { + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List reloadDetails; private ShardStatistics shards; @@ -149,9 +139,9 @@ public abstract static class AbstractBuilder * Adds all elements of list to reloadDetails. */ - public final BuilderT reloadDetails(List list) { + public final Builder reloadDetails(List list) { this.reloadDetails = _listAddAll(this.reloadDetails, list); - return self(); + return this; } /** @@ -159,9 +149,9 @@ public final BuilderT reloadDetails(List list) { *

* Adds one or more values to reloadDetails. */ - public final BuilderT reloadDetails(ReloadDetails value, ReloadDetails... values) { + public final Builder reloadDetails(ReloadDetails value, ReloadDetails... values) { this.reloadDetails = _listAdd(this.reloadDetails, value, values); - return self(); + return this; } /** @@ -169,27 +159,41 @@ public final BuilderT reloadDetails(ReloadDetails value, ReloadDetails... values *

* Adds a value to reloadDetails using a builder lambda. */ - public final BuilderT reloadDetails(Function> fn) { + public final Builder reloadDetails(Function> fn) { return reloadDetails(fn.apply(new ReloadDetails.Builder()).build()); } /** * Required - API name: {@code _shards} */ - public final BuilderT shards(ShardStatistics value) { + public final Builder shards(ShardStatistics value) { this.shards = value; - return self(); + return this; } /** * Required - API name: {@code _shards} */ - public final BuilderT shards(Function> fn) { + public final Builder shards(Function> fn) { return this.shards(fn.apply(new ShardStatistics.Builder()).build()); } - protected abstract BuilderT self(); + @Override + protected Builder self() { + return this; + } + /** + * Builds a {@link ReloadResult}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ReloadResult build() { + _checkSingleUse(); + + return new ReloadResult(this); + } } // --------------------------------------------------------------------------------------------- @@ -200,12 +204,11 @@ public final BuilderT shards(Function _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, ReloadResult::setupReloadResultDeserializer); - protected static > void setupReloadResultDeserializer( - ObjectDeserializer op) { + protected static void setupReloadResultDeserializer(ObjectDeserializer op) { - op.add(AbstractBuilder::reloadDetails, JsonpDeserializer.arrayDeserializer(ReloadDetails._DESERIALIZER), + op.add(Builder::reloadDetails, JsonpDeserializer.arrayDeserializer(ReloadDetails._DESERIALIZER), "reload_details"); - op.add(AbstractBuilder::shards, ShardStatistics._DESERIALIZER, "_shards"); + op.add(Builder::shards, ShardStatistics._DESERIALIZER, "_shards"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java index 99cca4d6d..fb78dbddd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.resolve_index; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.resolve_index.ResolveIndexAliasItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java index 5cb3e31e4..0640f7330 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.resolve_index; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.resolve_index.ResolveIndexDataStreamsItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java index 58e0008d2..ec702bb65 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.resolve_index; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.resolve_index.ResolveIndexItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java index 1e65279a7..b50f0ef8d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.rollover; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.rollover.RolloverConditions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java index 552939e06..1235ad9a4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.simulate_template; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_template.Overlapping /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java index 57c4ebd16..516a1f06a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java @@ -17,10 +17,6 @@ * 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; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.simulate_template.Template /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/Action.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/Action.java index 8015055ac..16d536898 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/Action.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/Action.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.update_aliases; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.update_aliases.Action /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/ActionBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/ActionBuilders.java index e82e09af8..79a391aac 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/ActionBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/ActionBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.update_aliases; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Action} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/ActionVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/ActionVariant.java index 7cf7b7f06..b6fc912e7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/ActionVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/ActionVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.update_aliases; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Action} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java index 8041879c3..132029e0b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.update_aliases; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.update_aliases.AddAction /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java index a75cd3b96..21c169487 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.update_aliases; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.update_aliases.RemoveAction /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java index f33e7af4b..0ce9edb10 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.update_aliases; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.update_aliases.RemoveIndexAction /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/validate_query/IndicesValidationExplanation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/validate_query/IndicesValidationExplanation.java index 733c64e78..b95e0cff5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/validate_query/IndicesValidationExplanation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/validate_query/IndicesValidationExplanation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.validate_query; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: indices.validate_query.IndicesValidationExplanation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java new file mode 100644 index 000000000..58a8f73c6 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelRequest.java @@ -0,0 +1,227 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.delete_model.Request + +/** + * Delete an inference service model + * + * @see API + * specification + */ + +public class DeleteModelRequest extends RequestBase { + private final String inferenceId; + + @Nullable + private final TaskType taskType; + + // --------------------------------------------------------------------------------------------- + + private DeleteModelRequest(Builder builder) { + + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = builder.taskType; + + } + + public static DeleteModelRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final String inferenceId() { + return this.inferenceId; + } + + /** + * The task type + *

+ * API name: {@code task_type} + */ + @Nullable + public final TaskType taskType() { + return this.taskType; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteModelRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String inferenceId; + + @Nullable + private TaskType taskType; + + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final Builder inferenceId(String value) { + this.inferenceId = value; + return this; + } + + /** + * The task type + *

+ * API name: {@code task_type} + */ + public final Builder taskType(@Nullable TaskType value) { + this.taskType = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteModelRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteModelRequest build() { + _checkSingleUse(); + + return new DeleteModelRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.delete_model}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.delete_model", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _inferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; + + if (propsSet == (_inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + if (propsSet == (_taskType | _inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _inferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; + + if (propsSet == (_inferenceId)) { + params.put("inferenceId", request.inferenceId); + } + if (propsSet == (_taskType | _inferenceId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("inferenceId", request.inferenceId); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteModelResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelResponse.java new file mode 100644 index 000000000..b479ad40b --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteModelResponse.java @@ -0,0 +1,107 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +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.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.delete_model.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteModelResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteModelResponse(Builder builder) { + super(builder); + + } + + public static DeleteModelResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteModelResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteModelResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteModelResponse build() { + _checkSingleUse(); + + return new DeleteModelResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteModelResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteModelResponse::setupDeleteModelResponseDeserializer); + + protected static void setupDeleteModelResponseDeserializer(ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java new file mode 100644 index 000000000..5a6fac587 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java @@ -0,0 +1,202 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the inference namespace. + */ +public class ElasticsearchInferenceAsyncClient + extends + ApiClient { + + public ElasticsearchInferenceAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchInferenceAsyncClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchInferenceAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchInferenceAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: inference.delete_model + + /** + * Delete model in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteModel(DeleteModelRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteModelRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Delete model in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteModelRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteModel( + Function> fn) { + return deleteModel(fn.apply(new DeleteModelRequest.Builder()).build()); + } + + // ----- Endpoint: inference.get_model + + /** + * Get a model in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getModel(GetModelRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetModelRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Get a model in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link GetModelRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getModel( + Function> fn) { + return getModel(fn.apply(new GetModelRequest.Builder()).build()); + } + + // ----- Endpoint: inference.inference + + /** + * Perform inference on a model + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture inference(InferenceRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) InferenceRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Perform inference on a model + * + * @param fn + * a function that initializes a builder to create the + * {@link InferenceRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture inference( + Function> fn) { + return inference(fn.apply(new InferenceRequest.Builder()).build()); + } + + // ----- Endpoint: inference.put_model + + /** + * Configure a model for use in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putModel(PutModelRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutModelRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Configure a model for use in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link PutModelRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture putModel( + Function> fn) { + return putModel(fn.apply(new PutModelRequest.Builder()).build()); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java new file mode 100644 index 000000000..c46cc5480 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java @@ -0,0 +1,201 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the inference namespace. + */ +public class ElasticsearchInferenceClient extends ApiClient { + + public ElasticsearchInferenceClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchInferenceClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchInferenceClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchInferenceClient(this.transport, transportOptions); + } + + // ----- Endpoint: inference.delete_model + + /** + * Delete model in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public DeleteModelResponse deleteModel(DeleteModelRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteModelRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Delete model in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteModelRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteModelResponse deleteModel( + Function> fn) + throws IOException, ElasticsearchException { + return deleteModel(fn.apply(new DeleteModelRequest.Builder()).build()); + } + + // ----- Endpoint: inference.get_model + + /** + * Get a model in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public GetModelResponse getModel(GetModelRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetModelRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Get a model in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link GetModelRequest} + * @see Documentation + * on elastic.co + */ + + public final GetModelResponse getModel(Function> fn) + throws IOException, ElasticsearchException { + return getModel(fn.apply(new GetModelRequest.Builder()).build()); + } + + // ----- Endpoint: inference.inference + + /** + * Perform inference on a model + * + * @see Documentation + * on elastic.co + */ + + public InferenceResponse inference(InferenceRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) InferenceRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Perform inference on a model + * + * @param fn + * a function that initializes a builder to create the + * {@link InferenceRequest} + * @see Documentation + * on elastic.co + */ + + public final InferenceResponse inference(Function> fn) + throws IOException, ElasticsearchException { + return inference(fn.apply(new InferenceRequest.Builder()).build()); + } + + // ----- Endpoint: inference.put_model + + /** + * Configure a model for use in the Inference API + * + * @see Documentation + * on elastic.co + */ + + public PutModelResponse putModel(PutModelRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutModelRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Configure a model for use in the Inference API + * + * @param fn + * a function that initializes a builder to create the + * {@link PutModelRequest} + * @see Documentation + * on elastic.co + */ + + public final PutModelResponse putModel(Function> fn) + throws IOException, ElasticsearchException { + return putModel(fn.apply(new PutModelRequest.Builder()).build()); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java new file mode 100644 index 000000000..b7ce8d929 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelRequest.java @@ -0,0 +1,225 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.get_model.Request + +/** + * Get an inference service model + * + * @see API + * specification + */ + +public class GetModelRequest extends RequestBase { + private final String inferenceId; + + @Nullable + private final TaskType taskType; + + // --------------------------------------------------------------------------------------------- + + private GetModelRequest(Builder builder) { + + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = builder.taskType; + + } + + public static GetModelRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final String inferenceId() { + return this.inferenceId; + } + + /** + * The task type + *

+ * API name: {@code task_type} + */ + @Nullable + public final TaskType taskType() { + return this.taskType; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetModelRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String inferenceId; + + @Nullable + private TaskType taskType; + + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final Builder inferenceId(String value) { + this.inferenceId = value; + return this; + } + + /** + * The task type + *

+ * API name: {@code task_type} + */ + public final Builder taskType(@Nullable TaskType value) { + this.taskType = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetModelRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetModelRequest build() { + _checkSingleUse(); + + return new GetModelRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.get_model}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.get_model", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _inferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; + + if (propsSet == (_inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + if (propsSet == (_taskType | _inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _inferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; + + if (propsSet == (_inferenceId)) { + params.put("inferenceId", request.inferenceId); + } + if (propsSet == (_taskType | _inferenceId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("inferenceId", request.inferenceId); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetModelResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelResponse.java new file mode 100644 index 000000000..1d02e083a --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/GetModelResponse.java @@ -0,0 +1,182 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.get_model.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetModelResponse implements JsonpSerializable { + private final List models; + + // --------------------------------------------------------------------------------------------- + + private GetModelResponse(Builder builder) { + + this.models = ApiTypeHelper.unmodifiableRequired(builder.models, this, "models"); + + } + + public static GetModelResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code models} + */ + public final List models() { + return this.models; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.models)) { + generator.writeKey("models"); + generator.writeStartArray(); + for (ModelConfigContainer item0 : this.models) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetModelResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private List models; + + /** + * Required - API name: {@code models} + *

+ * Adds all elements of list to models. + */ + public final Builder models(List list) { + this.models = _listAddAll(this.models, list); + return this; + } + + /** + * Required - API name: {@code models} + *

+ * Adds one or more values to models. + */ + public final Builder models(ModelConfigContainer value, ModelConfigContainer... values) { + this.models = _listAdd(this.models, value, values); + return this; + } + + /** + * Required - API name: {@code models} + *

+ * Adds a value to models using a builder lambda. + */ + public final Builder models(Function> fn) { + return models(fn.apply(new ModelConfigContainer.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetModelResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetModelResponse build() { + _checkSingleUse(); + + return new GetModelResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetModelResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + GetModelResponse::setupGetModelResponseDeserializer); + + protected static void setupGetModelResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::models, JsonpDeserializer.arrayDeserializer(ModelConfigContainer._DESERIALIZER), "models"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java new file mode 100644 index 000000000..aaa83cb1c --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java @@ -0,0 +1,340 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.inference.Request + +/** + * Perform inference on the service + * + * @see API + * specification + */ +@JsonpDeserializable +public class InferenceRequest extends RequestBase implements JsonpSerializable { + private final String inferenceId; + + private final List input; + + @Nullable + private final JsonData taskSettings; + + @Nullable + private final TaskType taskType; + + // --------------------------------------------------------------------------------------------- + + private InferenceRequest(Builder builder) { + + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.input = ApiTypeHelper.unmodifiableRequired(builder.input, this, "input"); + this.taskSettings = builder.taskSettings; + this.taskType = builder.taskType; + + } + + public static InferenceRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final String inferenceId() { + return this.inferenceId; + } + + /** + * Required - Text input to the model. Either a string or an array of strings. + *

+ * API name: {@code input} + */ + public final List input() { + return this.input; + } + + /** + * Optional task settings + *

+ * API name: {@code task_settings} + */ + @Nullable + public final JsonData taskSettings() { + return this.taskSettings; + } + + /** + * The task type + *

+ * API name: {@code task_type} + */ + @Nullable + public final TaskType taskType() { + return this.taskType; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.input)) { + generator.writeKey("input"); + generator.writeStartArray(); + for (String item0 : this.input) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.taskSettings != null) { + generator.writeKey("task_settings"); + this.taskSettings.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link InferenceRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String inferenceId; + + private List input; + + @Nullable + private JsonData taskSettings; + + @Nullable + private TaskType taskType; + + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final Builder inferenceId(String value) { + this.inferenceId = value; + return this; + } + + /** + * Required - Text input to the model. Either a string or an array of strings. + *

+ * API name: {@code input} + *

+ * Adds all elements of list to input. + */ + public final Builder input(List list) { + this.input = _listAddAll(this.input, list); + return this; + } + + /** + * Required - Text input to the model. Either a string or an array of strings. + *

+ * API name: {@code input} + *

+ * Adds one or more values to input. + */ + public final Builder input(String value, String... values) { + this.input = _listAdd(this.input, value, values); + return this; + } + + /** + * Optional task settings + *

+ * API name: {@code task_settings} + */ + public final Builder taskSettings(@Nullable JsonData value) { + this.taskSettings = value; + return this; + } + + /** + * The task type + *

+ * API name: {@code task_type} + */ + public final Builder taskType(@Nullable TaskType value) { + this.taskType = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link InferenceRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public InferenceRequest build() { + _checkSingleUse(); + + return new InferenceRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link InferenceRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + InferenceRequest::setupInferenceRequestDeserializer); + + protected static void setupInferenceRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::input, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "input"); + op.add(Builder::taskSettings, JsonData._DESERIALIZER, "task_settings"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.inference}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.inference", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _inferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; + + if (propsSet == (_inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + if (propsSet == (_taskType | _inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _inferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; + + if (propsSet == (_inferenceId)) { + params.put("inferenceId", request.inferenceId); + } + if (propsSet == (_taskType | _inferenceId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("inferenceId", request.inferenceId); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, InferenceResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResponse.java new file mode 100644 index 000000000..3eba0b8fa --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResponse.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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.inference.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class InferenceResponse implements JsonpSerializable { + private final InferenceResult valueBody; + + // --------------------------------------------------------------------------------------------- + + private InferenceResponse(Builder builder) { + + this.valueBody = ApiTypeHelper.requireNonNull(builder.valueBody, this, "valueBody"); + + } + + public static InferenceResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Response value. + */ + public final InferenceResult valueBody() { + return this.valueBody; + } + + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + this.valueBody.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link InferenceResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private InferenceResult valueBody; + + /** + * Required - Response value. + */ + public final Builder valueBody(InferenceResult value) { + this.valueBody = value; + return this; + } + + /** + * Required - Response value. + */ + public final Builder valueBody(Function> fn) { + return this.valueBody(fn.apply(new InferenceResult.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + InferenceResult value = (InferenceResult) InferenceResult._DESERIALIZER.deserialize(parser, mapper); + return this.valueBody(value); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link InferenceResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public InferenceResponse build() { + _checkSingleUse(); + + return new InferenceResponse(this); + } + } + + public static final JsonpDeserializer _DESERIALIZER = createInferenceResponseDeserializer(); + protected static JsonpDeserializer createInferenceResponseDeserializer() { + + JsonpDeserializer valueDeserializer = InferenceResult._DESERIALIZER; + + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .valueBody(valueDeserializer.deserialize(parser, mapper, event)).build()); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java new file mode 100644 index 000000000..616d2ea5b --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java @@ -0,0 +1,278 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.TaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.InferenceResult + +/** + * InferenceResult is an aggregation of mutually exclusive variants + * + * @see API + * specification + */ +@JsonpDeserializable +public class InferenceResult implements TaggedUnion, JsonpSerializable { + + /** + * {@link InferenceResult} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + TextEmbeddingBytes("text_embedding_bytes"), + + TextEmbedding("text_embedding"), + + SparseEmbedding("sparse_embedding"), + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + public InferenceResult(InferenceResultVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._inferenceResultKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + + } + + private InferenceResult(Builder builder) { + + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + + } + + public static InferenceResult of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Is this variant instance of kind {@code text_embedding_bytes}? + */ + public boolean isTextEmbeddingBytes() { + return _kind == Kind.TextEmbeddingBytes; + } + + /** + * Get the {@code text_embedding_bytes} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code text_embedding_bytes} + * kind. + */ + public List textEmbeddingBytes() { + return TaggedUnionUtils.get(this, Kind.TextEmbeddingBytes); + } + + /** + * Is this variant instance of kind {@code text_embedding}? + */ + public boolean isTextEmbedding() { + return _kind == Kind.TextEmbedding; + } + + /** + * Get the {@code text_embedding} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code text_embedding} kind. + */ + public List textEmbedding() { + return TaggedUnionUtils.get(this, Kind.TextEmbedding); + } + + /** + * Is this variant instance of kind {@code sparse_embedding}? + */ + public boolean isSparseEmbedding() { + return _kind == Kind.SparseEmbedding; + } + + /** + * Get the {@code sparse_embedding} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code sparse_embedding} + * kind. + */ + public List sparseEmbedding() { + return TaggedUnionUtils.get(this, Kind.SparseEmbedding); + } + + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeStartObject(); + + generator.writeKey(_kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } else { + switch (_kind) { + case TextEmbeddingBytes : + generator.writeStartArray(); + for (TextEmbeddingByteResult item0 : ((List) this._value)) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + break; + case TextEmbedding : + generator.writeStartArray(); + for (TextEmbeddingResult item0 : ((List) this._value)) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + break; + case SparseEmbedding : + generator.writeStartArray(); + for (SparseEmbeddingResult item0 : ((List) this._value)) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + break; + } + } + + generator.writeEnd(); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Kind _kind; + private Object _value; + + @Override + protected Builder self() { + return this; + } + public ObjectBuilder textEmbeddingBytes(List v) { + this._kind = Kind.TextEmbeddingBytes; + this._value = v; + return this; + } + + public ObjectBuilder textEmbedding(List v) { + this._kind = Kind.TextEmbedding; + this._value = v; + return this; + } + + public ObjectBuilder sparseEmbedding(List v) { + this._kind = Kind.SparseEmbedding; + this._value = v; + return this; + } + + public InferenceResult build() { + _checkSingleUse(); + return new InferenceResult(this); + } + + } + + protected static void setupInferenceResultDeserializer(ObjectDeserializer op) { + + op.add(Builder::textEmbeddingBytes, JsonpDeserializer.arrayDeserializer(TextEmbeddingByteResult._DESERIALIZER), + "text_embedding_bytes"); + op.add(Builder::textEmbedding, JsonpDeserializer.arrayDeserializer(TextEmbeddingResult._DESERIALIZER), + "text_embedding"); + op.add(Builder::sparseEmbedding, JsonpDeserializer.arrayDeserializer(SparseEmbeddingResult._DESERIALIZER), + "sparse_embedding"); + + } + + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + InferenceResult::setupInferenceResultDeserializer, Builder::build); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java new file mode 100644 index 000000000..4bc8aca15 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Builders for {@link InferenceResult} variants. + *

+ * Variants text_embedding_bytes, text_embedding, + * sparse_embedding are not available here as they don't have a + * dedicated class. Use {@link InferenceResult}'s builder for these. + * + */ +public class InferenceResultBuilders { + private InferenceResultBuilders() { + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultVariant.java new file mode 100644 index 000000000..c9aa04b52 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultVariant.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link InferenceResult} variants. + */ +public interface InferenceResultVariant { + + InferenceResult.Kind _inferenceResultKind(); + + default InferenceResult _toInferenceResult() { + return new InferenceResult(this); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfig.java new file mode 100644 index 000000000..f7a219e29 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfig.java @@ -0,0 +1,223 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.ModelConfig + +/** + * Configuration options when storing the model config + * + * @see API + * specification + */ +@JsonpDeserializable +public class ModelConfig implements JsonpSerializable { + private final String service; + + private final JsonData serviceSettings; + + private final JsonData taskSettings; + + // --------------------------------------------------------------------------------------------- + + protected ModelConfig(AbstractBuilder builder) { + + this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); + this.serviceSettings = ApiTypeHelper.requireNonNull(builder.serviceSettings, this, "serviceSettings"); + this.taskSettings = ApiTypeHelper.requireNonNull(builder.taskSettings, this, "taskSettings"); + + } + + public static ModelConfig modelConfigOf(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The service type + *

+ * API name: {@code service} + */ + public final String service() { + return this.service; + } + + /** + * Required - Settings specific to the service + *

+ * API name: {@code service_settings} + */ + public final JsonData serviceSettings() { + return this.serviceSettings; + } + + /** + * Required - Task settings specific to the service and model + *

+ * API name: {@code task_settings} + */ + public final JsonData taskSettings() { + return this.taskSettings; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("service"); + generator.write(this.service); + + generator.writeKey("service_settings"); + this.serviceSettings.serialize(generator, mapper); + + generator.writeKey("task_settings"); + this.taskSettings.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ModelConfig}. + */ + + public static class Builder extends ModelConfig.AbstractBuilder implements ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ModelConfig}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ModelConfig build() { + _checkSingleUse(); + + return new ModelConfig(this); + } + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private String service; + + private JsonData serviceSettings; + + private JsonData taskSettings; + + /** + * Required - The service type + *

+ * API name: {@code service} + */ + public final BuilderT service(String value) { + this.service = value; + return self(); + } + + /** + * Required - Settings specific to the service + *

+ * API name: {@code service_settings} + */ + public final BuilderT serviceSettings(JsonData value) { + this.serviceSettings = value; + return self(); + } + + /** + * Required - Task settings specific to the service and model + *

+ * API name: {@code task_settings} + */ + public final BuilderT taskSettings(JsonData value) { + this.taskSettings = value; + return self(); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ModelConfig} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ModelConfig::setupModelConfigDeserializer); + + protected static > void setupModelConfigDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::service, JsonpDeserializer.stringDeserializer(), "service"); + op.add(AbstractBuilder::serviceSettings, JsonData._DESERIALIZER, "service_settings"); + op.add(AbstractBuilder::taskSettings, JsonData._DESERIALIZER, "task_settings"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfigContainer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfigContainer.java new file mode 100644 index 000000000..10677d187 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/ModelConfigContainer.java @@ -0,0 +1,182 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.ModelConfigContainer + +/** + * Represents a model as returned by the GET API + * + * @see API + * specification + */ +@JsonpDeserializable +public class ModelConfigContainer extends ModelConfig { + private final String modelId; + + private final TaskType taskType; + + // --------------------------------------------------------------------------------------------- + + protected ModelConfigContainer(AbstractBuilder builder) { + super(builder); + + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + + } + + public static ModelConfigContainer modelConfigContainerOf( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The model Id + *

+ * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Required - The model's task type + *

+ * API name: {@code task_type} + */ + public final TaskType taskType() { + return this.taskType; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("model_id"); + generator.write(this.modelId); + + generator.writeKey("task_type"); + this.taskType.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ModelConfigContainer}. + */ + + public static class Builder extends ModelConfigContainer.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ModelConfigContainer}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ModelConfigContainer build() { + _checkSingleUse(); + + return new ModelConfigContainer(this); + } + } + + public abstract static class AbstractBuilder> + extends + ModelConfig.AbstractBuilder { + private String modelId; + + private TaskType taskType; + + /** + * Required - The model Id + *

+ * API name: {@code model_id} + */ + public final BuilderT modelId(String value) { + this.modelId = value; + return self(); + } + + /** + * Required - The model's task type + *

+ * API name: {@code task_type} + */ + public final BuilderT taskType(TaskType value) { + this.taskType = value; + return self(); + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ModelConfigContainer} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ModelConfigContainer::setupModelConfigContainerDeserializer); + + protected static > void setupModelConfigContainerDeserializer( + ObjectDeserializer op) { + ModelConfig.setupModelConfigDeserializer(op); + op.add(AbstractBuilder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(AbstractBuilder::taskType, TaskType._DESERIALIZER, "task_type"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.java new file mode 100644 index 000000000..30c31115d --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelRequest.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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_model.Request + +/** + * Create an inference service model + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutModelRequest extends RequestBase implements JsonpSerializable { + private final String inferenceId; + + @Nullable + private final TaskType taskType; + + private final ModelConfig modelConfig; + + // --------------------------------------------------------------------------------------------- + + private PutModelRequest(Builder builder) { + + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = builder.taskType; + this.modelConfig = ApiTypeHelper.requireNonNull(builder.modelConfig, this, "modelConfig"); + + } + + public static PutModelRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final String inferenceId() { + return this.inferenceId; + } + + /** + * The task type + *

+ * API name: {@code task_type} + */ + @Nullable + public final TaskType taskType() { + return this.taskType; + } + + /** + * Required - Request body. + */ + public final ModelConfig modelConfig() { + return this.modelConfig; + } + + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + this.modelConfig.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutModelRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String inferenceId; + + @Nullable + private TaskType taskType; + + private ModelConfig modelConfig; + + /** + * Required - The inference Id + *

+ * API name: {@code inference_id} + */ + public final Builder inferenceId(String value) { + this.inferenceId = value; + return this; + } + + /** + * The task type + *

+ * API name: {@code task_type} + */ + public final Builder taskType(@Nullable TaskType value) { + this.taskType = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder modelConfig(ModelConfig value) { + this.modelConfig = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder modelConfig(Function> fn) { + return this.modelConfig(fn.apply(new ModelConfig.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + ModelConfig value = (ModelConfig) ModelConfig._DESERIALIZER.deserialize(parser, mapper); + return this.modelConfig(value); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutModelRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutModelRequest build() { + _checkSingleUse(); + + return new PutModelRequest(this); + } + } + + public static final JsonpDeserializer _DESERIALIZER = createPutModelRequestDeserializer(); + protected static JsonpDeserializer createPutModelRequestDeserializer() { + + JsonpDeserializer valueDeserializer = ModelConfig._DESERIALIZER; + + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .modelConfig(valueDeserializer.deserialize(parser, mapper, event)).build()); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.put_model}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.put_model", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _inferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; + + if (propsSet == (_inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + if (propsSet == (_taskType | _inferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.inferenceId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _inferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _inferenceId; + if (request.taskType() != null) + propsSet |= _taskType; + + if (propsSet == (_inferenceId)) { + params.put("inferenceId", request.inferenceId); + } + if (propsSet == (_taskType | _inferenceId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("inferenceId", request.inferenceId); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, PutModelResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelResponse.java new file mode 100644 index 000000000..1d25f7476 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/PutModelResponse.java @@ -0,0 +1,106 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +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.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_model.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutModelResponse extends ModelConfigContainer { + // --------------------------------------------------------------------------------------------- + + private PutModelResponse(Builder builder) { + super(builder); + + } + + public static PutModelResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutModelResponse}. + */ + + public static class Builder extends ModelConfigContainer.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutModelResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutModelResponse build() { + _checkSingleUse(); + + return new PutModelResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutModelResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutModelResponse::setupPutModelResponseDeserializer); + + protected static void setupPutModelResponseDeserializer(ObjectDeserializer op) { + ModelConfigContainer.setupModelConfigContainerDeserializer(op); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java new file mode 100644 index 000000000..7538e4951 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java @@ -0,0 +1,180 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Float; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.SparseEmbeddingResult + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SparseEmbeddingResult implements JsonpSerializable { + private final Map embedding; + + // --------------------------------------------------------------------------------------------- + + private SparseEmbeddingResult(Builder builder) { + + this.embedding = ApiTypeHelper.unmodifiableRequired(builder.embedding, this, "embedding"); + + } + + public static SparseEmbeddingResult of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code embedding} + */ + public final Map embedding() { + return this.embedding; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.embedding)) { + generator.writeKey("embedding"); + generator.writeStartObject(); + for (Map.Entry item0 : this.embedding.entrySet()) { + generator.writeKey(item0.getKey()); + generator.write(item0.getValue()); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SparseEmbeddingResult}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Map embedding; + + /** + * Required - API name: {@code embedding} + *

+ * Adds all entries of map to embedding. + */ + public final Builder embedding(Map map) { + this.embedding = _mapPutAll(this.embedding, map); + return this; + } + + /** + * Required - API name: {@code embedding} + *

+ * Adds an entry to embedding. + */ + public final Builder embedding(String key, Float value) { + this.embedding = _mapPut(this.embedding, key, value); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SparseEmbeddingResult}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SparseEmbeddingResult build() { + _checkSingleUse(); + + return new SparseEmbeddingResult(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SparseEmbeddingResult} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SparseEmbeddingResult::setupSparseEmbeddingResultDeserializer); + + protected static void setupSparseEmbeddingResultDeserializer(ObjectDeserializer op) { + + op.add(Builder::embedding, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.floatDeserializer()), + "embedding"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java new file mode 100644 index 000000000..f64455e15 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java @@ -0,0 +1,65 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum TaskType implements JsonEnum { + SparseEmbedding("sparse_embedding"), + + TextEmbedding("text_embedding"), + + ; + + private final String jsonValue; + + TaskType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>(TaskType.values()); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java new file mode 100644 index 000000000..2143fa6c4 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java @@ -0,0 +1,180 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.TextEmbeddingByteResult + +/** + * The text embedding result object for byte representation + * + * @see API + * specification + */ +@JsonpDeserializable +public class TextEmbeddingByteResult implements JsonpSerializable { + private final List embedding; + + // --------------------------------------------------------------------------------------------- + + private TextEmbeddingByteResult(Builder builder) { + + this.embedding = ApiTypeHelper.unmodifiableRequired(builder.embedding, this, "embedding"); + + } + + public static TextEmbeddingByteResult of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code embedding} + */ + public final List embedding() { + return this.embedding; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.embedding)) { + generator.writeKey("embedding"); + generator.writeStartArray(); + for (Number item0 : this.embedding) { + generator.write(item0.doubleValue()); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TextEmbeddingByteResult}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List embedding; + + /** + * Required - API name: {@code embedding} + *

+ * Adds all elements of list to embedding. + */ + public final Builder embedding(List list) { + this.embedding = _listAddAll(this.embedding, list); + return this; + } + + /** + * Required - API name: {@code embedding} + *

+ * Adds one or more values to embedding. + */ + public final Builder embedding(Number value, Number... values) { + this.embedding = _listAdd(this.embedding, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TextEmbeddingByteResult}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TextEmbeddingByteResult build() { + _checkSingleUse(); + + return new TextEmbeddingByteResult(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TextEmbeddingByteResult} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TextEmbeddingByteResult::setupTextEmbeddingByteResultDeserializer); + + protected static void setupTextEmbeddingByteResultDeserializer( + ObjectDeserializer op) { + + op.add(Builder::embedding, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.numberDeserializer()), + "embedding"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java new file mode 100644 index 000000000..a237a6945 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java @@ -0,0 +1,179 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Float; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.TextEmbeddingResult + +/** + * The text embedding result object + * + * @see API + * specification + */ +@JsonpDeserializable +public class TextEmbeddingResult implements JsonpSerializable { + private final List embedding; + + // --------------------------------------------------------------------------------------------- + + private TextEmbeddingResult(Builder builder) { + + this.embedding = ApiTypeHelper.unmodifiableRequired(builder.embedding, this, "embedding"); + + } + + public static TextEmbeddingResult of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code embedding} + */ + public final List embedding() { + return this.embedding; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.embedding)) { + generator.writeKey("embedding"); + generator.writeStartArray(); + for (Float item0 : this.embedding) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TextEmbeddingResult}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List embedding; + + /** + * Required - API name: {@code embedding} + *

+ * Adds all elements of list to embedding. + */ + public final Builder embedding(List list) { + this.embedding = _listAddAll(this.embedding, list); + return this; + } + + /** + * Required - API name: {@code embedding} + *

+ * Adds one or more values to embedding. + */ + public final Builder embedding(Float value, Float... values) { + this.embedding = _listAdd(this.embedding, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TextEmbeddingResult}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TextEmbeddingResult build() { + _checkSingleUse(); + + return new TextEmbeddingResult(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TextEmbeddingResult} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TextEmbeddingResult::setupTextEmbeddingResultDeserializer); + + protected static void setupTextEmbeddingResultDeserializer(ObjectDeserializer op) { + + op.add(Builder::embedding, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.floatDeserializer()), + "embedding"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java index 52b275198..3f12acfec 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonData; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.AppendProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java index 552952b9e..4cabffb36 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.AttachmentProcessor /** @@ -65,6 +76,9 @@ public class AttachmentProcessor extends ProcessorBase implements ProcessorVaria @Nullable private final String targetField; + @Nullable + private final Boolean removeBinary; + @Nullable private final String resourceName; @@ -79,6 +93,7 @@ private AttachmentProcessor(Builder builder) { this.indexedCharsField = builder.indexedCharsField; this.properties = ApiTypeHelper.unmodifiable(builder.properties); this.targetField = builder.targetField; + this.removeBinary = builder.removeBinary; this.resourceName = builder.resourceName; } @@ -159,6 +174,16 @@ public final String targetField() { return this.targetField; } + /** + * If true, the binary field will be removed from the document + *

+ * API name: {@code remove_binary} + */ + @Nullable + public final Boolean removeBinary() { + return this.removeBinary; + } + /** * Field containing the name of the resource to decode. If specified, the * processor passes this resource name to the underlying Tika library to enable @@ -206,6 +231,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("target_field"); generator.write(this.targetField); + } + if (this.removeBinary != null) { + generator.writeKey("remove_binary"); + generator.write(this.removeBinary); + } if (this.resourceName != null) { generator.writeKey("resource_name"); @@ -241,6 +271,9 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + @Nullable + private Boolean removeBinary; + @Nullable private String resourceName; @@ -327,6 +360,16 @@ public final Builder targetField(@Nullable String value) { return this; } + /** + * If true, the binary field will be removed from the document + *

+ * API name: {@code remove_binary} + */ + public final Builder removeBinary(@Nullable Boolean value) { + this.removeBinary = value; + return this; + } + /** * Field containing the name of the resource to decode. If specified, the * processor passes this resource name to the underlying Tika library to enable @@ -374,6 +417,7 @@ protected static void setupAttachmentProcessorDeserializer(ObjectDeserializerAPI diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java index 3c63277c0..ff63037bf 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonData; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.CsvProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java index 282eedca9..05bd9d96e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DateIndexNameProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java index 0f416e61f..00e807ebd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DateProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java index 4f8be9e46..651038e09 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.delete_pipeline.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineResponse.java index 3923fb398..0a09423ae 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.delete_pipeline.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java index 4fdfb44a3..71429590c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DissectProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java index be448b9bb..8768dba42 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DotExpanderProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java index 66900aadf..8702d5a44 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.DropProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java index 6d896a086..bfcb6838c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ingest namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java index 59a7ff397..8b9918abc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ingest namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java index 638d0cf03..ae531af70 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.GeoShapeRelation; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.EnrichProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java index 24a193bfd..ee2b2610a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.FailProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java index 38e47a8a1..f3288f114 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.ForeachProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java index a9ac669fa..3051a3ca6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.GeoIpProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java index 77d366805..244fdd148 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.get_pipeline.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java index e255f5137..36675cfe9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.get_pipeline.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java index 7a8219279..e3ce15c28 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.GrokProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java index 0b80436b5..6e2dc231c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.GsubProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfig.java index cc116528f..05b741a59 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.InferenceConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigBuilders.java index 8a76e62fc..2da392e63 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link InferenceConfig} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java index 6f5383048..20dff8ef6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.InferenceConfigClassification /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java index 5e3e7dcb3..2eb41ccde 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.InferenceConfigRegression /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigVariant.java index c99b3dc5c..8752f6f16 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link InferenceConfig} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java index eb202638a..34bf10c54 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonData; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.InferenceProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java index c596490b5..daa5b40ee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.JoinProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java index c5bc16d6c..44bb83674 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.JsonProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessorConflictStrategy.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessorConflictStrategy.java index e79170270..c44bd5dd5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessorConflictStrategy.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessorConflictStrategy.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see meta; + // --------------------------------------------------------------------------------------------- private Pipeline(Builder builder) { @@ -68,6 +83,7 @@ private Pipeline(Builder builder) { this.onFailure = ApiTypeHelper.unmodifiable(builder.onFailure); this.processors = ApiTypeHelper.unmodifiable(builder.processors); this.version = builder.version; + this.meta = ApiTypeHelper.unmodifiable(builder.meta); } @@ -114,6 +130,16 @@ public final Long version() { return this.version; } + /** + * Arbitrary metadata about the ingest pipeline. This map is not automatically + * generated by Elasticsearch. + *

+ * API name: {@code _meta} + */ + public final Map meta() { + return this.meta; + } + /** * Serialize this object to JSON. */ @@ -155,6 +181,17 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.version); } + if (ApiTypeHelper.isDefined(this.meta)) { + generator.writeKey("_meta"); + generator.writeStartObject(); + for (Map.Entry item0 : this.meta.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } } @@ -182,6 +219,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long version; + @Nullable + private Map meta; + /** * Description of the ingest pipeline. *

@@ -275,6 +315,32 @@ public final Builder version(@Nullable Long value) { return this; } + /** + * Arbitrary metadata about the ingest pipeline. This map is not automatically + * generated by Elasticsearch. + *

+ * API name: {@code _meta} + *

+ * Adds all entries of map to meta. + */ + public final Builder meta(Map map) { + this.meta = _mapPutAll(this.meta, map); + return this; + } + + /** + * Arbitrary metadata about the ingest pipeline. This map is not automatically + * generated by Elasticsearch. + *

+ * API name: {@code _meta} + *

+ * Adds an entry to meta. + */ + public final Builder meta(String key, JsonData value) { + this.meta = _mapPut(this.meta, key, value); + return this; + } + @Override protected Builder self() { return this; @@ -307,6 +373,7 @@ protected static void setupPipelineDeserializer(ObjectDeserializer rename(Function script(Script v) { + public ObjectBuilder reroute(RerouteProcessor v) { + this._kind = Kind.Reroute; + this._value = v; + return this; + } + + public ObjectBuilder reroute( + Function> fn) { + return this.reroute(fn.apply(new RerouteProcessor.Builder()).build()); + } + + public ObjectBuilder script(ScriptProcessor v) { this._kind = Kind.Script; this._value = v; return this; } - public ObjectBuilder script(Function> fn) { - return this.script(fn.apply(new Script.Builder()).build()); + public ObjectBuilder script(Function> fn) { + return this.script(fn.apply(new ScriptProcessor.Builder()).build()); } public ObjectBuilder set(SetProcessor v) { @@ -1218,7 +1258,8 @@ protected static void setupProcessorDeserializer(ObjectDeserializer op) op.add(Builder::lowercase, LowercaseProcessor._DESERIALIZER, "lowercase"); op.add(Builder::remove, RemoveProcessor._DESERIALIZER, "remove"); op.add(Builder::rename, RenameProcessor._DESERIALIZER, "rename"); - op.add(Builder::script, Script._DESERIALIZER, "script"); + op.add(Builder::reroute, RerouteProcessor._DESERIALIZER, "reroute"); + op.add(Builder::script, ScriptProcessor._DESERIALIZER, "script"); op.add(Builder::set, SetProcessor._DESERIALIZER, "set"); op.add(Builder::sort, SortProcessor._DESERIALIZER, "sort"); op.add(Builder::split, SplitProcessor._DESERIALIZER, "split"); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBase.java index 8b4fa3224..1a211cdcb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.ProcessorBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java index 8586b9a0e..f5d4c5074 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java @@ -17,16 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; -import co.elastic.clients.elasticsearch._types.Script; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Processor} variants. */ @@ -396,18 +406,38 @@ public static Processor rename(Function> fn) { + Processor.Builder builder = new Processor.Builder(); + builder.reroute(fn.apply(new RerouteProcessor.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link ScriptProcessor script} {@code Processor} + * variant. */ - public static Script.Builder script() { - return new Script.Builder(); + public static ScriptProcessor.Builder script() { + return new ScriptProcessor.Builder(); } /** - * Creates a Processor of the {@link Script script} {@code Processor} variant. + * Creates a Processor of the {@link ScriptProcessor script} {@code Processor} + * variant. */ - public static Processor script(Function> fn) { + public static Processor script(Function> fn) { Processor.Builder builder = new Processor.Builder(); - builder.script(fn.apply(new Script.Builder()).build()); + builder.script(fn.apply(new ScriptProcessor.Builder()).build()); return builder.build(); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java index 62df97093..49a6a6246 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.processor_grok.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokResponse.java index e7ae3cdf9..4a61915af 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.processor_grok.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorVariant.java index 91b46f115..e8ecb195b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Processor} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java index b7f0d4b5c..4bace4a41 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.put_pipeline.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineResponse.java index a08ea6d90..bf10c8646 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.put_pipeline.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java index f826b01a9..60410b521 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.RemoveProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java index 6967424bd..60bac03cd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.RenameProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java new file mode 100644 index 000000000..89ea39274 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java @@ -0,0 +1,326 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.ingest; + +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: ingest._types.RerouteProcessor + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class RerouteProcessor extends ProcessorBase implements ProcessorVariant { + @Nullable + private final String destination; + + private final List dataset; + + private final List namespace; + + // --------------------------------------------------------------------------------------------- + + private RerouteProcessor(Builder builder) { + super(builder); + + this.destination = builder.destination; + this.dataset = ApiTypeHelper.unmodifiable(builder.dataset); + this.namespace = ApiTypeHelper.unmodifiable(builder.namespace); + + } + + public static RerouteProcessor of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Processor variant kind. + */ + @Override + public Processor.Kind _processorKind() { + return Processor.Kind.Reroute; + } + + /** + * A static value for the target. Can’t be set when the dataset or namespace + * option is set. + *

+ * API name: {@code destination} + */ + @Nullable + public final String destination() { + return this.destination; + } + + /** + * Field references or a static value for the dataset part of the data stream + * name. In addition to the criteria for index names, cannot contain - and must + * be no longer than 100 characters. Example values are nginx.access and + * nginx.error. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <dataset> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.dataset}} + *

+ * API name: {@code dataset} + */ + public final List dataset() { + return this.dataset; + } + + /** + * Field references or a static value for the namespace part of the data stream + * name. See the criteria for index names for allowed characters. Must be no + * longer than 100 characters. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <namespace> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.namespace}} + *

+ * API name: {@code namespace} + */ + public final List namespace() { + return this.namespace; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.destination != null) { + generator.writeKey("destination"); + generator.write(this.destination); + + } + if (ApiTypeHelper.isDefined(this.dataset)) { + generator.writeKey("dataset"); + generator.writeStartArray(); + for (String item0 : this.dataset) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.namespace)) { + generator.writeKey("namespace"); + generator.writeStartArray(); + for (String item0 : this.namespace) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RerouteProcessor}. + */ + + public static class Builder extends ProcessorBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String destination; + + @Nullable + private List dataset; + + @Nullable + private List namespace; + + /** + * A static value for the target. Can’t be set when the dataset or namespace + * option is set. + *

+ * API name: {@code destination} + */ + public final Builder destination(@Nullable String value) { + this.destination = value; + return this; + } + + /** + * Field references or a static value for the dataset part of the data stream + * name. In addition to the criteria for index names, cannot contain - and must + * be no longer than 100 characters. Example values are nginx.access and + * nginx.error. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <dataset> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.dataset}} + *

+ * API name: {@code dataset} + *

+ * Adds all elements of list to dataset. + */ + public final Builder dataset(List list) { + this.dataset = _listAddAll(this.dataset, list); + return this; + } + + /** + * Field references or a static value for the dataset part of the data stream + * name. In addition to the criteria for index names, cannot contain - and must + * be no longer than 100 characters. Example values are nginx.access and + * nginx.error. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <dataset> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.dataset}} + *

+ * API name: {@code dataset} + *

+ * Adds one or more values to dataset. + */ + public final Builder dataset(String value, String... values) { + this.dataset = _listAdd(this.dataset, value, values); + return this; + } + + /** + * Field references or a static value for the namespace part of the data stream + * name. See the criteria for index names for allowed characters. Must be no + * longer than 100 characters. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <namespace> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.namespace}} + *

+ * API name: {@code namespace} + *

+ * Adds all elements of list to namespace. + */ + public final Builder namespace(List list) { + this.namespace = _listAddAll(this.namespace, list); + return this; + } + + /** + * Field references or a static value for the namespace part of the data stream + * name. See the criteria for index names for allowed characters. Must be no + * longer than 100 characters. + *

+ * Supports field references with a mustache-like syntax (denoted as {{double}} + * or {{{triple}}} curly braces). When resolving field references, the processor + * replaces invalid characters with _. Uses the <namespace> part of the + * index name as a fallback if all field references resolve to a null, missing, + * or non-string value. + *

+ * default {{data_stream.namespace}} + *

+ * API name: {@code namespace} + *

+ * Adds one or more values to namespace. + */ + public final Builder namespace(String value, String... values) { + this.namespace = _listAdd(this.namespace, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RerouteProcessor}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RerouteProcessor build() { + _checkSingleUse(); + + return new RerouteProcessor(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RerouteProcessor} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + RerouteProcessor::setupRerouteProcessorDeserializer); + + protected static void setupRerouteProcessorDeserializer(ObjectDeserializer op) { + ProcessorBase.setupProcessorBaseDeserializer(op); + op.add(Builder::destination, JsonpDeserializer.stringDeserializer(), "destination"); + op.add(Builder::dataset, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "dataset"); + op.add(Builder::namespace, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "namespace"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java new file mode 100644 index 000000000..ff8ca34db --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.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. + */ + +package co.elastic.clients.elasticsearch.ingest; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: ingest._types.ScriptProcessor + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ScriptProcessor extends ProcessorBase implements ProcessorVariant { + @Nullable + private final String id; + + @Nullable + private final String lang; + + private final Map params; + + @Nullable + private final String source; + + // --------------------------------------------------------------------------------------------- + + private ScriptProcessor(Builder builder) { + super(builder); + + this.id = builder.id; + this.lang = builder.lang; + this.params = ApiTypeHelper.unmodifiable(builder.params); + this.source = builder.source; + + } + + public static ScriptProcessor of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Processor variant kind. + */ + @Override + public Processor.Kind _processorKind() { + return Processor.Kind.Script; + } + + /** + * ID of a stored script. If no source is specified, this parameter + * is required. + *

+ * API name: {@code id} + */ + @Nullable + public final String id() { + return this.id; + } + + /** + * Script language. + *

+ * API name: {@code lang} + */ + @Nullable + public final String lang() { + return this.lang; + } + + /** + * Object containing parameters for the script. + *

+ * API name: {@code params} + */ + public final Map params() { + return this.params; + } + + /** + * Inline script. If no id is specified, this parameter is + * required. + *

+ * API name: {@code source} + */ + @Nullable + public final String source() { + return this.source; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.id != null) { + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.lang != null) { + generator.writeKey("lang"); + generator.write(this.lang); + + } + if (ApiTypeHelper.isDefined(this.params)) { + generator.writeKey("params"); + generator.writeStartObject(); + for (Map.Entry item0 : this.params.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.source != null) { + generator.writeKey("source"); + generator.write(this.source); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ScriptProcessor}. + */ + + public static class Builder extends ProcessorBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String id; + + @Nullable + private String lang; + + @Nullable + private Map params; + + @Nullable + private String source; + + /** + * ID of a stored script. If no source is specified, this parameter + * is required. + *

+ * API name: {@code id} + */ + public final Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * Script language. + *

+ * API name: {@code lang} + */ + public final Builder lang(@Nullable String value) { + this.lang = value; + return this; + } + + /** + * Object containing parameters for the script. + *

+ * API name: {@code params} + *

+ * Adds all entries of map to params. + */ + public final Builder params(Map map) { + this.params = _mapPutAll(this.params, map); + return this; + } + + /** + * Object containing parameters for the script. + *

+ * API name: {@code params} + *

+ * Adds an entry to params. + */ + public final Builder params(String key, JsonData value) { + this.params = _mapPut(this.params, key, value); + return this; + } + + /** + * Inline script. If no id is specified, this parameter is + * required. + *

+ * API name: {@code source} + */ + public final Builder source(@Nullable String value) { + this.source = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ScriptProcessor}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ScriptProcessor build() { + _checkSingleUse(); + + return new ScriptProcessor(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ScriptProcessor} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ScriptProcessor::setupScriptProcessorDeserializer); + + protected static void setupScriptProcessorDeserializer(ObjectDeserializer op) { + ProcessorBase.setupProcessorBaseDeserializer(op); + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::lang, JsonpDeserializer.stringDeserializer(), "lang"); + op.add(Builder::params, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "params"); + op.add(Builder::source, JsonpDeserializer.stringDeserializer(), "source"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java index af042a9e1..cc5c53267 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonData; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.SetProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java index 4c17a574f..ace13f2af 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.SetSecurityUserProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ShapeType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ShapeType.java index a24fb922a..9775c2674 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ShapeType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/ShapeType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java index 89c4eb653..6ee2e9b3b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java index f76bc209f..1f55ab6dd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch.ingest.simulate.PipelineSimulation; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java index e18f716a8..b34159078 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.elasticsearch._types.SortOrder; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.SortProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java index 0ba04466e..db198998a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.SplitProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java index 2929330e3..a5431a812 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.TrimProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java index 8c0adeab2..4c6d5cc64 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.UppercaseProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java index f83d15a77..72d614c33 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.UrlDecodeProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java index 997207ee9..d1ea73a5a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest._types.UserAgentProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProperty.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProperty.java index 57e4ea47e..6a8d21d24 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProperty.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProperty.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java index 07d8e28d7..ee2f3c910 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.simulate; import co.elastic.clients.json.JsonData; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.Document /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java index 528af0840..fed25a774 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.simulate; import co.elastic.clients.elasticsearch._types.VersionType; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.DocumentSimulation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java index b9388a54b..6b115d4c6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.simulate; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.Ingest /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java index 5f85fa7d2..c1ff93a39 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ingest.simulate; import co.elastic.clients.elasticsearch.watcher.ActionStatusOptions; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ingest.simulate.PipelineSimulation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java new file mode 100644 index 000000000..97107a335 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.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. + */ + +package co.elastic.clients.elasticsearch.license; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the license namespace. + */ +public class ElasticsearchLicenseAsyncClient + extends + ApiClient { + + public ElasticsearchLicenseAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchLicenseAsyncClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchLicenseAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchLicenseAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: license.get + + /** + * Retrieves licensing information for the cluster + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture get(GetLicenseRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetLicenseRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Retrieves licensing information for the cluster + * + * @param fn + * a function that initializes a builder to create the + * {@link GetLicenseRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture get( + Function> fn) { + return get(fn.apply(new GetLicenseRequest.Builder()).build()); + } + + /** + * Retrieves licensing information for the cluster + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture get() { + return this.transport.performRequestAsync(new GetLicenseRequest.Builder().build(), GetLicenseRequest._ENDPOINT, + this.transportOptions); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java new file mode 100644 index 000000000..1ada9532e --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java @@ -0,0 +1,114 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.license; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the license namespace. + */ +public class ElasticsearchLicenseClient extends ApiClient { + + public ElasticsearchLicenseClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchLicenseClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchLicenseClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchLicenseClient(this.transport, transportOptions); + } + + // ----- Endpoint: license.get + + /** + * Retrieves licensing information for the cluster + * + * @see Documentation + * on elastic.co + */ + + public GetLicenseResponse get(GetLicenseRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetLicenseRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Retrieves licensing information for the cluster + * + * @param fn + * a function that initializes a builder to create the + * {@link GetLicenseRequest} + * @see Documentation + * on elastic.co + */ + + public final GetLicenseResponse get(Function> fn) + throws IOException, ElasticsearchException { + return get(fn.apply(new GetLicenseRequest.Builder()).build()); + } + + /** + * Retrieves licensing information for the cluster + * + * @see Documentation + * on elastic.co + */ + + public GetLicenseResponse get() throws IOException, ElasticsearchException { + return this.transport.performRequest(new GetLicenseRequest.Builder().build(), GetLicenseRequest._ENDPOINT, + this.transportOptions); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java new file mode 100644 index 000000000..2ab4a4bd9 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java @@ -0,0 +1,215 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.license; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: license.get.Request + +/** + * This API returns information about the type of license, when it was issued, + * and when it expires, for example. For more information about the different + * types of licenses, see https://www.elastic.co/subscriptions. + * + * @see API + * specification + */ + +public class GetLicenseRequest extends RequestBase { + @Nullable + private final Boolean acceptEnterprise; + + @Nullable + private final Boolean local; + + // --------------------------------------------------------------------------------------------- + + private GetLicenseRequest(Builder builder) { + + this.acceptEnterprise = builder.acceptEnterprise; + this.local = builder.local; + + } + + public static GetLicenseRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * If true, this parameter returns enterprise for Enterprise + * license types. If false, this parameter returns platinum for + * both platinum and enterprise license types. This behavior is maintained for + * backwards compatibility. This parameter is deprecated and will always be set + * to true in 8.x. + *

+ * API name: {@code accept_enterprise} + * + * @deprecated 7.6.0 + */ + @Deprecated + @Nullable + public final Boolean acceptEnterprise() { + return this.acceptEnterprise; + } + + /** + * Specifies whether to retrieve local information. The default value is + * false, which means the information is retrieved from the master + * node. + *

+ * API name: {@code local} + */ + @Nullable + public final Boolean local() { + return this.local; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetLicenseRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Boolean acceptEnterprise; + + @Nullable + private Boolean local; + + /** + * If true, this parameter returns enterprise for Enterprise + * license types. If false, this parameter returns platinum for + * both platinum and enterprise license types. This behavior is maintained for + * backwards compatibility. This parameter is deprecated and will always be set + * to true in 8.x. + *

+ * API name: {@code accept_enterprise} + * + * @deprecated 7.6.0 + */ + @Deprecated + public final Builder acceptEnterprise(@Nullable Boolean value) { + this.acceptEnterprise = value; + return this; + } + + /** + * Specifies whether to retrieve local information. The default value is + * false, which means the information is retrieved from the master + * node. + *

+ * API name: {@code local} + */ + public final Builder local(@Nullable Boolean value) { + this.local = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetLicenseRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetLicenseRequest build() { + _checkSingleUse(); + + return new GetLicenseRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code license.get}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/license.get", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_license"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.local != null) { + params.put("local", String.valueOf(request.local)); + } + if (request.acceptEnterprise != null) { + params.put("accept_enterprise", String.valueOf(request.acceptEnterprise)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, GetLicenseResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseResponse.java new file mode 100644 index 000000000..d33e6bfce --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseResponse.java @@ -0,0 +1,162 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.license; + +import co.elastic.clients.elasticsearch.license.get.LicenseInformation; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: license.get.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetLicenseResponse implements JsonpSerializable { + private final LicenseInformation license; + + // --------------------------------------------------------------------------------------------- + + private GetLicenseResponse(Builder builder) { + + this.license = ApiTypeHelper.requireNonNull(builder.license, this, "license"); + + } + + public static GetLicenseResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code license} + */ + public final LicenseInformation license() { + return this.license; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("license"); + this.license.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetLicenseResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private LicenseInformation license; + + /** + * Required - API name: {@code license} + */ + public final Builder license(LicenseInformation value) { + this.license = value; + return this; + } + + /** + * Required - API name: {@code license} + */ + public final Builder license(Function> fn) { + return this.license(fn.apply(new LicenseInformation.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetLicenseResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetLicenseResponse build() { + _checkSingleUse(); + + return new GetLicenseResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetLicenseResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetLicenseResponse::setupGetLicenseResponseDeserializer); + + protected static void setupGetLicenseResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::license, LicenseInformation._DESERIALIZER, "license"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/LicenseStatus.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/LicenseStatus.java new file mode 100644 index 000000000..d3e28c530 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/LicenseStatus.java @@ -0,0 +1,70 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.license; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum LicenseStatus implements JsonEnum { + Active("active"), + + Valid("valid"), + + Invalid("invalid"), + + Expired("expired"), + + ; + + private final String jsonValue; + + LicenseStatus(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + LicenseStatus.values()); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/LicenseType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/LicenseType.java new file mode 100644 index 000000000..590119110 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/LicenseType.java @@ -0,0 +1,80 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.license; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum LicenseType implements JsonEnum { + Missing("missing"), + + Trial("trial"), + + Basic("basic"), + + Standard("standard"), + + Dev("dev"), + + Silver("silver"), + + Gold("gold"), + + Platinum("platinum"), + + Enterprise("enterprise"), + + ; + + private final String jsonValue; + + LicenseType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + LicenseType.values()); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java new file mode 100644 index 000000000..ddcbb3853 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java @@ -0,0 +1,444 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.license.get; + +import co.elastic.clients.elasticsearch.license.LicenseStatus; +import co.elastic.clients.elasticsearch.license.LicenseType; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.DateTime; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.Long; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: license.get.LicenseInformation + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class LicenseInformation implements JsonpSerializable { + @Nullable + private final DateTime expiryDate; + + @Nullable + private final Long expiryDateInMillis; + + private final DateTime issueDate; + + private final long issueDateInMillis; + + private final String issuedTo; + + private final String issuer; + + @Nullable + private final Long maxNodes; + + @Nullable + private final Integer maxResourceUnits; + + private final LicenseStatus status; + + private final LicenseType type; + + private final String uid; + + private final long startDateInMillis; + + // --------------------------------------------------------------------------------------------- + + private LicenseInformation(Builder builder) { + + this.expiryDate = builder.expiryDate; + this.expiryDateInMillis = builder.expiryDateInMillis; + this.issueDate = ApiTypeHelper.requireNonNull(builder.issueDate, this, "issueDate"); + this.issueDateInMillis = ApiTypeHelper.requireNonNull(builder.issueDateInMillis, this, "issueDateInMillis"); + this.issuedTo = ApiTypeHelper.requireNonNull(builder.issuedTo, this, "issuedTo"); + this.issuer = ApiTypeHelper.requireNonNull(builder.issuer, this, "issuer"); + this.maxNodes = builder.maxNodes; + this.maxResourceUnits = builder.maxResourceUnits; + this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); + this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); + this.uid = ApiTypeHelper.requireNonNull(builder.uid, this, "uid"); + this.startDateInMillis = ApiTypeHelper.requireNonNull(builder.startDateInMillis, this, "startDateInMillis"); + + } + + public static LicenseInformation of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code expiry_date} + */ + @Nullable + public final DateTime expiryDate() { + return this.expiryDate; + } + + /** + * API name: {@code expiry_date_in_millis} + */ + @Nullable + public final Long expiryDateInMillis() { + return this.expiryDateInMillis; + } + + /** + * Required - API name: {@code issue_date} + */ + public final DateTime issueDate() { + return this.issueDate; + } + + /** + * Required - API name: {@code issue_date_in_millis} + */ + public final long issueDateInMillis() { + return this.issueDateInMillis; + } + + /** + * Required - API name: {@code issued_to} + */ + public final String issuedTo() { + return this.issuedTo; + } + + /** + * Required - API name: {@code issuer} + */ + public final String issuer() { + return this.issuer; + } + + /** + * API name: {@code max_nodes} + */ + @Nullable + public final Long maxNodes() { + return this.maxNodes; + } + + /** + * API name: {@code max_resource_units} + *

+ * Defaults to {@code 0} if parsed from a JSON {@code null} value. + */ + @Nullable + public final Integer maxResourceUnits() { + return this.maxResourceUnits; + } + + /** + * Required - API name: {@code status} + */ + public final LicenseStatus status() { + return this.status; + } + + /** + * Required - API name: {@code type} + */ + public final LicenseType type() { + return this.type; + } + + /** + * Required - API name: {@code uid} + */ + public final String uid() { + return this.uid; + } + + /** + * Required - API name: {@code start_date_in_millis} + */ + public final long startDateInMillis() { + return this.startDateInMillis; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.expiryDate != null) { + generator.writeKey("expiry_date"); + this.expiryDate.serialize(generator, mapper); + } + if (this.expiryDateInMillis != null) { + generator.writeKey("expiry_date_in_millis"); + generator.write(this.expiryDateInMillis); + + } + generator.writeKey("issue_date"); + this.issueDate.serialize(generator, mapper); + generator.writeKey("issue_date_in_millis"); + generator.write(this.issueDateInMillis); + + generator.writeKey("issued_to"); + generator.write(this.issuedTo); + + generator.writeKey("issuer"); + generator.write(this.issuer); + + if (this.maxNodes != null) { + generator.writeKey("max_nodes"); + generator.write(this.maxNodes); + + } + if (this.maxResourceUnits != null) { + generator.writeKey("max_resource_units"); + JsonpUtils.serializeIntOrNull(generator, this.maxResourceUnits, 0); + } + generator.writeKey("status"); + this.status.serialize(generator, mapper); + generator.writeKey("type"); + this.type.serialize(generator, mapper); + generator.writeKey("uid"); + generator.write(this.uid); + + generator.writeKey("start_date_in_millis"); + generator.write(this.startDateInMillis); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link LicenseInformation}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private DateTime expiryDate; + + @Nullable + private Long expiryDateInMillis; + + private DateTime issueDate; + + private Long issueDateInMillis; + + private String issuedTo; + + private String issuer; + + @Nullable + private Long maxNodes; + + @Nullable + private Integer maxResourceUnits; + + private LicenseStatus status; + + private LicenseType type; + + private String uid; + + private Long startDateInMillis; + + /** + * API name: {@code expiry_date} + */ + public final Builder expiryDate(@Nullable DateTime value) { + this.expiryDate = value; + return this; + } + + /** + * API name: {@code expiry_date_in_millis} + */ + public final Builder expiryDateInMillis(@Nullable Long value) { + this.expiryDateInMillis = value; + return this; + } + + /** + * Required - API name: {@code issue_date} + */ + public final Builder issueDate(DateTime value) { + this.issueDate = value; + return this; + } + + /** + * Required - API name: {@code issue_date_in_millis} + */ + public final Builder issueDateInMillis(long value) { + this.issueDateInMillis = value; + return this; + } + + /** + * Required - API name: {@code issued_to} + */ + public final Builder issuedTo(String value) { + this.issuedTo = value; + return this; + } + + /** + * Required - API name: {@code issuer} + */ + public final Builder issuer(String value) { + this.issuer = value; + return this; + } + + /** + * API name: {@code max_nodes} + */ + public final Builder maxNodes(@Nullable Long value) { + this.maxNodes = value; + return this; + } + + /** + * API name: {@code max_resource_units} + *

+ * Defaults to {@code 0} if parsed from a JSON {@code null} value. + */ + public final Builder maxResourceUnits(@Nullable Integer value) { + this.maxResourceUnits = value; + return this; + } + + /** + * Required - API name: {@code status} + */ + public final Builder status(LicenseStatus value) { + this.status = value; + return this; + } + + /** + * Required - API name: {@code type} + */ + public final Builder type(LicenseType value) { + this.type = value; + return this; + } + + /** + * Required - API name: {@code uid} + */ + public final Builder uid(String value) { + this.uid = value; + return this; + } + + /** + * Required - API name: {@code start_date_in_millis} + */ + public final Builder startDateInMillis(long value) { + this.startDateInMillis = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link LicenseInformation}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public LicenseInformation build() { + _checkSingleUse(); + + return new LicenseInformation(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link LicenseInformation} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, LicenseInformation::setupLicenseInformationDeserializer); + + protected static void setupLicenseInformationDeserializer(ObjectDeserializer op) { + + op.add(Builder::expiryDate, DateTime._DESERIALIZER, "expiry_date"); + op.add(Builder::expiryDateInMillis, JsonpDeserializer.longDeserializer(), "expiry_date_in_millis"); + op.add(Builder::issueDate, DateTime._DESERIALIZER, "issue_date"); + op.add(Builder::issueDateInMillis, JsonpDeserializer.longDeserializer(), "issue_date_in_millis"); + op.add(Builder::issuedTo, JsonpDeserializer.stringDeserializer(), "issued_to"); + op.add(Builder::issuer, JsonpDeserializer.stringDeserializer(), "issuer"); + op.add(Builder::maxNodes, JsonpDeserializer.longDeserializer(), "max_nodes"); + op.add(Builder::maxResourceUnits, JsonpDeserializer.intOrNullDeserializer(0), "max_resource_units"); + op.add(Builder::status, LicenseStatus._DESERIALIZER, "status"); + op.add(Builder::type, LicenseType._DESERIALIZER, "type"); + op.add(Builder::uid, JsonpDeserializer.stringDeserializer(), "uid"); + op.add(Builder::startDateInMillis, JsonpDeserializer.longDeserializer(), "start_date_in_millis"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java index ef677f17e..ffa231af7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash.delete_pipeline.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java index 89c065c14..148fd4e9d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the logstash namespace. */ @@ -123,6 +134,19 @@ public final CompletableFuture getPipeline( return getPipeline(fn.apply(new GetPipelineRequest.Builder()).build()); } + /** + * Retrieves Logstash Pipelines used by Central Management + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getPipeline() { + return this.transport.performRequestAsync(new GetPipelineRequest.Builder().build(), + GetPipelineRequest._ENDPOINT, this.transportOptions); + } + // ----- Endpoint: logstash.put_pipeline /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java index 4503ba4bb..5b762f278 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the logstash namespace. */ @@ -123,6 +134,19 @@ public final GetPipelineResponse getPipeline( return getPipeline(fn.apply(new GetPipelineRequest.Builder()).build()); } + /** + * Retrieves Logstash Pipelines used by Central Management + * + * @see Documentation + * on elastic.co + */ + + public GetPipelineResponse getPipeline() throws IOException, ElasticsearchException { + return this.transport.performRequest(new GetPipelineRequest.Builder().build(), GetPipelineRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: logstash.put_pipeline /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java index 2f19bfd8c..bedf522d9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash.get_pipeline.Request /** @@ -60,7 +71,7 @@ public class GetPipelineRequest extends RequestBase { private GetPipelineRequest(Builder builder) { - this.id = ApiTypeHelper.unmodifiableRequired(builder.id, this, "id"); + this.id = ApiTypeHelper.unmodifiable(builder.id); } @@ -69,7 +80,7 @@ public static GetPipelineRequest of(Function * API name: {@code id} */ @@ -86,10 +97,11 @@ public final List id() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable private List id; /** - * Required - Comma-separated list of pipeline identifiers. + * Comma-separated list of pipeline identifiers. *

* API name: {@code id} *

@@ -101,7 +113,7 @@ public final Builder id(List list) { } /** - * Required - Comma-separated list of pipeline identifiers. + * Comma-separated list of pipeline identifiers. *

* API name: {@code id} *

@@ -150,7 +162,8 @@ public GetPipelineRequest build() { int propsSet = 0; - propsSet |= _id; + if (ApiTypeHelper.isDefined(request.id())) + propsSet |= _id; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -177,7 +190,8 @@ public GetPipelineRequest build() { int propsSet = 0; - propsSet |= _id; + if (ApiTypeHelper.isDefined(request.id())) + propsSet |= _id; if (propsSet == 0) { } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java index 03926c3e1..1e87c8204 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash.get_pipeline.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java index ba1b1b674..069e7da6d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash._types.Pipeline /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java index a0ce92750..5c42ae580 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash._types.PipelineMetadata /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java index 4db7c0c6d..73957d11b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash._types.PipelineSettings /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java index c91287d86..103acb380 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.logstash; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: logstash.put_pipeline.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfig.java index 4e25870f0..f11a8bdec 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.AnalysisConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfigRead.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfigRead.java index d027e7ef0..7a606494b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfigRead.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfigRead.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.AnalysisConfigRead /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisLimits.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisLimits.java index 17c75dce3..4b1e58240 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisLimits.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisLimits.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.AnalysisLimits /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java index 3ca38d5ea..26518986d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.AnalysisMemoryLimit /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ApiKeyAuthorization.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ApiKeyAuthorization.java index 1affe4217..760c41b35 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ApiKeyAuthorization.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ApiKeyAuthorization.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ApiKeyAuthorization /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AppliesTo.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AppliesTo.java index c336d6c8f..f07e540a6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AppliesTo.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/AppliesTo.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java index e57b4fb2a..ebea147de 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.CalendarEvent /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzer.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzer.java index f55b4fa3f..dea1d837d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzer.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzer.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.CategorizationAnalyzer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerBuilders.java index 09d9d906c..305835edb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link CategorizationAnalyzer} variants. *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java index 663a77eac..7f7460f26 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.analysis.CharFilter; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.CategorizationAnalyzerDefinition /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationStatus.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationStatus.java index e5f46e03a..5cc460a3e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationStatus.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java index d093c0b29..a54db291b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ChunkingConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingMode.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingMode.java index 5c732b0f8..1f94d9394 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingMode.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingMode.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java index 68bebe887..adbee3b38 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.aggregations.InferenceConfig; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ClassificationInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java index 0f61f2f21..1fe12d0ae 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.close_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobResponse.java index 9c00d49bd..5bde95c06 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.close_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ConditionOperator.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ConditionOperator.java index ceb2f2644..c2187ac4f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ConditionOperator.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ConditionOperator.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java index 810fedc0f..7315aa1a0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataCounts /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java index d513bfb8e..fb037c7a0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataDescription /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java index 82e06f1e5..62244a9f1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Datafeed /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java index 318d94d10..2ee14cb63 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedAuthorization /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java index 0dc6b8cc7..1e3b8d4d2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java index db0cea9ce..2ebc26ea2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedRunningState /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedState.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedState.java index b3ee8b72e..02670dd75 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedState.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java index 181350bc6..b8fad8d97 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java index da424e457..6dab24784 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DatafeedTimingStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java index 0f2da52c7..8bef24040 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java index cd147d7d9..64e7e93a0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisAnalyzedFields /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBase.java index 1815018a4..2c2f17c5c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysis /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBuilders.java index ea2a956a6..0cfaed5d6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link DataframeAnalysis} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java index 535aa2779..257784525 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisClassification /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessor.java index c6facea67..df306c142 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorBuilders.java index b5fc8d491..c79a9c364 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link DataframeAnalysisFeatureProcessor} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.java index bea47313b..37dc9a1db 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorFrequencyEncoding /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java index 665f564fb..67f5acc85 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorMultiEncoding /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java index d8a656fdc..ff1bbf45f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorNGramEncoding /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java index 175e6cbe5..6e3ba3e05 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorOneHotEncoding /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java index bf15b20dd..4eac0caf3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisFeatureProcessorTargetMeanEncoding /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorVariant.java index 8571d1f14..783c54109 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link DataframeAnalysisFeatureProcessor} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java index a36ba0fb3..ad20ba737 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisOutlierDetection /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java index d82750ae4..1923c55eb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalysisRegression /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisVariant.java index 8fa52485f..d336d3f3e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link DataframeAnalysis} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java index e4b38737d..5c616551b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalytics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java index 5ff367757..eeed69d0f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsAuthorization /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java index f850d2c9b..728b9a0d9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsDestination /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java index 0c54adc40..b35e1696d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.mapping.RuntimeField; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsSource /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStats.java index 5d74d7054..513e4e0be 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsBuilders.java index a2a3f436c..79e279294 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link DataframeAnalyticsStats} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java index ca04025ab..fa58ea350 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsDataCounts /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java index bdc605d92..8bad53619 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsHyperparameters /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java index 45dfbd519..2b0f49f3b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsMemoryUsage /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java index 8e0ec680a..966c52f05 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsOutlierDetection /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java index 15e92f6ac..68fdfac76 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsStatsProgress /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsVariant.java index 3ba6a10d5..2ec7d3e74 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link DataframeAnalyticsStats} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java index 94b2c9b25..8fd400e24 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeAnalyticsSummary /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluation.java index 832bdf632..80e81a1a1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationBuilders.java index 18ab5e816..23583cd0c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link DataframeEvaluation} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java index 5b0b2f04a..cc3248853 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationClassification /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java index 70d6dc0f1..a9f63955d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationClassificationMetrics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java index cb3f281cf..175f91bea 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationClassificationMetricsAucRoc /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationMetrics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationMetrics.java index 7f9d6bd7b..7ba49bf82 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationMetrics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationMetrics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationMetrics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java index a98eb3cc4..626f3675b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationOutlierDetection /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java index 98edb4762..7dad7c5e0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationOutlierDetectionMetrics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java index 3506ece3d..0477e33ea 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationRegression /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java index 4e3811b9f..c03f009d1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationRegressionMetrics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java index 89c325e17..750080c2c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationRegressionMetricsHuber /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java index 2ac5d714a..a8d69f847 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DataframeEvaluationRegressionMetricsMsle /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationVariant.java index e7f2ff3b9..ae92462a1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link DataframeEvaluation} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeState.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeState.java index a6b9100be..691d3b0a4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeState.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java index 6b53e40d6..12218f335 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DelayedDataCheckConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java index c5e1aca28..b8c9eff75 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar_event.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventResponse.java index a3e2759b6..06b4d0d57 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar_event.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java index 62fffa7a3..75d602b9c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobResponse.java index 0045cfeef..f0b1e80fd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java index ed34ebe87..999db65fc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarResponse.java index 3d450bbb0..ff56f6e2f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_calendar.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java index 6a7553822..3bebfc2a1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_data_frame_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsResponse.java index 34bc0bec2..52c44ba91 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_data_frame_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java index 42a2c6eec..b514864b7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_datafeed.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedResponse.java index d0304e9e3..475a6f92c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_datafeed.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java index 60fed8a2c..233573963 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_filter.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterResponse.java index 2f7ccb1d0..88dabe50a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_filter.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java index ca1786d55..ce6b3c26a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobResponse.java index 337916197..ee3048ba2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java index 8064542b0..59e6c4d3d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_trained_model_alias.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasResponse.java index aa2dc0fa6..d86233941 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_trained_model_alias.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java index eb9ef1b77..86e3d9f63 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_trained_model.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelResponse.java index a292f970b..462114d85 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.delete_trained_model.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeploymentAllocationState.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeploymentAllocationState.java index 0f1146841..72bd58f75 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeploymentAllocationState.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DeploymentAllocationState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java index aacbdab8c..0ca53f6b0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DetectionRule /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java index 3aee3f0bc..2e1bbe6fb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Detector /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java index ea5dd6c4d..8b0f36d16 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.DetectorRead /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java index c925ec64a..82ff3a9bc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ml namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java index 8f7c0f425..d3ad1e182 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.ApiClient; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the ml namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java index 61219b96e..1b126a9d5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.estimate_model_memory.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryResponse.java index fd84000d8..3cab24eee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.estimate_model_memory.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java index b10266148..529e09874 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameResponse.java index e0dce30ea..2a15847dc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch.ml.evaluate_data_frame.DataframeClassificationSummary; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ExcludeFrequent.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ExcludeFrequent.java index 48aedf3c6..fc3ab3a6b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ExcludeFrequent.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ExcludeFrequent.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java index 3e890e2fa..f62697910 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.FillMaskInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java index bb8a2832d..5a13f6bea 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.FillMaskInferenceUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java index f6acee868..c6733ad8c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Filter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java index 6fec951a1..509885f1f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.FilterRef /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FilterType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FilterType.java index 089c18177..91714eb53 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FilterType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FilterType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java index 12ff8c216..8c36c7ccb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.flush_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobResponse.java index 4e94a2d2a..01e02586b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.flush_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java index 351d28a69..502335144 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendar_events.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsResponse.java index 1bb20118d..b9d987709 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendar_events.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java index 1ced7cd12..77d997fb9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendars.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsResponse.java index 6737caeac..e954ec441 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch.ml.get_calendars.Calendar; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendars.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java index d938e0c15..f90d2bf6f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_data_frame_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsResponse.java index d9e7baacb..263af9542 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_data_frame_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java index 7759f6b40..8dac370bd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_data_frame_analytics_stats.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsResponse.java index a34614a32..48e7d7274 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_data_frame_analytics_stats.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java index 6c130972b..77b2dd2c9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_datafeed_stats.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsResponse.java index 7dbc8ae18..47f97c6e5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_datafeed_stats.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java index f98aa3f52..2c3464dcd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_datafeeds.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsResponse.java index 926b71f35..dbdeadf76 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_datafeeds.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java index c06c6696e..d7b2388cf 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_filters.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersResponse.java index 4ad63febb..54d0a5c1d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_filters.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java index c1db35a63..5fe10de5a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_job_stats.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsResponse.java index 1edd0d26d..1f97b5511 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_job_stats.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java index c2dc94b5e..f42898708 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_jobs.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsResponse.java index 7ac246804..9a8f40317 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_jobs.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java index 3b120fcfe..0e0639ff8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_overall_buckets.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsResponse.java index 98b05cee0..e644cd442 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_overall_buckets.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java index 97d445206..2f9d243c7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_trained_models.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsResponse.java index e79d26ed4..b7d7fedf8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_trained_models.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java index e5a763456..2d53ddc0b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_trained_models_stats.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsResponse.java index 431b5502c..bf48b7de1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_trained_models_stats.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java index 4230e45ce..0dec9fa70 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Hyperparameter /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java index f9722a643..1eb7e0c98 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Hyperparameters /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Include.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Include.java index 88b3751c0..92e953def 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Include.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Include.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java index a4ca08ce2..e4f670aac 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.infer_trained_model.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelResponse.java index 1ebff6968..14c13026d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.infer_trained_model.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreate.java index 414044ab3..b8215f27d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.InferenceConfigCreateContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java index cd99927a6..417fc1fb9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link InferenceConfigCreate} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateVariant.java index 91a7a2eea..7e53c5a4a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link InferenceConfigCreate} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java index 4581477ca..1c767b93f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.InferenceConfigUpdateContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java index 79936ef1b..b3b902483 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link InferenceConfigUpdate} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateVariant.java index 6cdcfd4a0..e8429fc6a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link InferenceConfigUpdate} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java index 60c09eb19..63b857ce1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.InferenceResponseResult /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java index 33b4cc6e2..11f682f5c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Job /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java index 613f5815f..f3792e34f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobBlocked /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlockedReason.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlockedReason.java index 749fa8a8c..c1a16fa65 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlockedReason.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlockedReason.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java index 47255d477..301ebebc2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java index b763ee3dd..678ad7a94 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobForecastStatistics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java index 5e5593864..d731d8d4e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java index 90bddac95..9ce9921d2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobStatistics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java index 14c90ac90..eaba09382 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java index 54d62447c..553c0abb8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.JobTimingStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/MemoryStatus.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/MemoryStatus.java index ff0910075..b53390311 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/MemoryStatus.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/MemoryStatus.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java index dbce142f5..7c0795d34 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ModelPlotConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java index a5d1aa339..06e4bee89 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ModelSizeStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java index 272fdc9e2..f52e12133 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NerInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java index c5314419c..300a737cc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NerInferenceUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java index b7b516249..0eb6efaa2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NlpBertTokenizationConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java index 9c40f7a79..e877c4f54 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NlpRobertaTokenizationConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java index 25de6d1dd..87d9fa55f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.NlpTokenizationUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java index ad701401d..53f3fe3f7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.open_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java index 2e859d931..9cc4a206a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.open_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java index 1113471de..1c5f655a4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.OutlierDetectionParameters /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java index eb7190867..7b8a68683 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.OverallBucket /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java index 213f868da..a964a3ded 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.OverallBucketJob /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java index 301993485..8c227bf88 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Page /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java index 95278e16c..e559a979a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.PassThroughInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java index e471c3c61..e75641622 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.PassThroughInferenceUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java index a5e26b025..259e07662 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.PerPartitionCategorization /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java index 2d31c7a29..1466adc61 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.post_calendar_events.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsResponse.java index fb22e8d4e..9abe735be 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.post_calendar_events.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java index 774d5bad6..5925cbd97 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_data_frame_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsResponse.java index 14a5085d5..dfb06b35b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_data_frame_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java index 989897f6d..695097c5f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_datafeed.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java index 7d3741c04..34a97d94a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_datafeed.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java index b9f07a0af..ecbf088cc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_calendar_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobResponse.java index 94fc87d8e..fa7dfe6f6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_calendar_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java index 139e8db3f..931c1285f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_calendar.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarResponse.java index 734f365a3..21cef2a05 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_calendar.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java index d87ae33d2..b592f2e29 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_data_frame_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsResponse.java index a4b17a618..54b7fb42a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_data_frame_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java index efbef6de4..1f2a23d37 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -54,6 +50,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_datafeed.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedResponse.java index 3b00d3404..e4f387f2c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_datafeed.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java index 394d7583c..410124696 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_filter.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterResponse.java index f01b46f9e..5b592cad4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_filter.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java index 56634f7a9..4fd5a9f50 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobResponse.java index 842d8149e..39fcdd62a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java index fb698b6a4..d5cf42412 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_alias.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasResponse.java index e3880e0ce..5429c0c80 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_alias.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java index 30b451df0..cf1884af4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_definition_part.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartResponse.java index a4e3632e8..faf2b6130 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_definition_part.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java index 392cb7db9..933adbbc7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Request /** @@ -89,6 +100,9 @@ public class PutTrainedModelRequest extends RequestBase implements JsonpSerializ @Nullable private final TrainedModelType modelType; + @Nullable + private final String platformArchitecture; + private final List tags; // --------------------------------------------------------------------------------------------- @@ -105,6 +119,7 @@ private PutTrainedModelRequest(Builder builder) { this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); this.modelSizeBytes = builder.modelSizeBytes; this.modelType = builder.modelType; + this.platformArchitecture = builder.platformArchitecture; this.tags = ApiTypeHelper.unmodifiable(builder.tags); } @@ -222,6 +237,24 @@ public final TrainedModelType modelType() { return this.modelType; } + /** + * The platform architecture (if applicable) of the trained mode. If the model + * only works on one platform, because it is heavily optimized for a particular + * processor architecture and OS combination, then this field specifies which. + * The format of the string must match the platform identifiers used by + * Elasticsearch, so one of, linux-x86_64, + * linux-aarch64, darwin-x86_64, + * darwin-aarch64, or windows-x86_64. For portable + * models (those that work independent of processor architecture or OS + * features), leave this field unset. + *

+ * API name: {@code platform_architecture} + */ + @Nullable + public final String platformArchitecture() { + return this.platformArchitecture; + } + /** * An array of tags to organize the model. *

@@ -281,6 +314,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("model_type"); this.modelType.serialize(generator, mapper); } + if (this.platformArchitecture != null) { + generator.writeKey("platform_architecture"); + generator.write(this.platformArchitecture); + + } if (ApiTypeHelper.isDefined(this.tags)) { generator.writeKey("tags"); generator.writeStartArray(); @@ -332,6 +370,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private TrainedModelType modelType; + @Nullable + private String platformArchitecture; + @Nullable private List tags; @@ -477,6 +518,24 @@ public final Builder modelType(@Nullable TrainedModelType value) { return this; } + /** + * The platform architecture (if applicable) of the trained mode. If the model + * only works on one platform, because it is heavily optimized for a particular + * processor architecture and OS combination, then this field specifies which. + * The format of the string must match the platform identifiers used by + * Elasticsearch, so one of, linux-x86_64, + * linux-aarch64, darwin-x86_64, + * darwin-aarch64, or windows-x86_64. For portable + * models (those that work independent of processor architecture or OS + * features), leave this field unset. + *

+ * API name: {@code platform_architecture} + */ + public final Builder platformArchitecture(@Nullable String value) { + this.platformArchitecture = value; + return this; + } + /** * An array of tags to organize the model. *

@@ -538,6 +597,7 @@ protected static void setupPutTrainedModelRequestDeserializer( op.add(Builder::metadata, JsonData._DESERIALIZER, "metadata"); op.add(Builder::modelSizeBytes, JsonpDeserializer.longDeserializer(), "model_size_bytes"); op.add(Builder::modelType, TrainedModelType._DESERIALIZER, "model_type"); + op.add(Builder::platformArchitecture, JsonpDeserializer.stringDeserializer(), "platform_architecture"); op.add(Builder::tags, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "tags"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelResponse.java index f5bd2f4f0..f1f0b9489 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java index 437abb717..04b60e764 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,7 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.lang.Double; import java.lang.String; import java.util.Collections; import java.util.HashMap; @@ -45,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_vocabulary.Request /** @@ -63,6 +75,8 @@ public class PutTrainedModelVocabularyRequest extends RequestBase implements Jso private final String modelId; + private final List scores; + private final List vocabulary; // --------------------------------------------------------------------------------------------- @@ -71,6 +85,7 @@ private PutTrainedModelVocabularyRequest(Builder builder) { this.merges = ApiTypeHelper.unmodifiable(builder.merges); this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.scores = ApiTypeHelper.unmodifiable(builder.scores); this.vocabulary = ApiTypeHelper.unmodifiableRequired(builder.vocabulary, this, "vocabulary"); } @@ -98,6 +113,15 @@ public final String modelId() { return this.modelId; } + /** + * The optional vocabulary value scores if required by the tokenizer. + *

+ * API name: {@code scores} + */ + public final List scores() { + return this.scores; + } + /** * Required - The model vocabulary, which must not be empty. *

@@ -127,6 +151,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + } + if (ApiTypeHelper.isDefined(this.scores)) { + generator.writeKey("scores"); + generator.writeStartArray(); + for (Double item0 : this.scores) { + generator.write(item0); + + } + generator.writeEnd(); + } if (ApiTypeHelper.isDefined(this.vocabulary)) { generator.writeKey("vocabulary"); @@ -155,6 +189,9 @@ public static class Builder extends RequestBase.AbstractBuilder private String modelId; + @Nullable + private List scores; + private List vocabulary; /** @@ -191,6 +228,30 @@ public final Builder modelId(String value) { return this; } + /** + * The optional vocabulary value scores if required by the tokenizer. + *

+ * API name: {@code scores} + *

+ * Adds all elements of list to scores. + */ + public final Builder scores(List list) { + this.scores = _listAddAll(this.scores, list); + return this; + } + + /** + * The optional vocabulary value scores if required by the tokenizer. + *

+ * API name: {@code scores} + *

+ * Adds one or more values to scores. + */ + public final Builder scores(Double value, Double... values) { + this.scores = _listAdd(this.scores, value, values); + return this; + } + /** * Required - The model vocabulary, which must not be empty. *

@@ -245,6 +306,7 @@ protected static void setupPutTrainedModelVocabularyRequestDeserializer( ObjectDeserializer op) { op.add(Builder::merges, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "merges"); + op.add(Builder::scores, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.doubleDeserializer()), "scores"); op.add(Builder::vocabulary, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "vocabulary"); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyResponse.java index acf7bf7d4..4cfe87743 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model_vocabulary.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java index c7a8847bc..cc9c83e5a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.QuestionAnsweringInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java index 89e85374e..b59d39c70 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.QuestionAnsweringInferenceUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java index 565e3b221..61999e627 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.aggregations.InferenceConfig; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.RegressionInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java index e99774ddb..6e8a6bf9d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.reset_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java index 259e4a641..b34cda485 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.reset_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RoutingState.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RoutingState.java index c9cec6f90..843137937 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RoutingState.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RoutingState.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RuleAction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RuleAction.java index b3d740d0d..f318a2b23 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RuleAction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RuleAction.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java index 1d6821a07..f4108aaec 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.RuleCondition /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java index fbf2bc325..7edd0fd0e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.RunningStateSearchInterval /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java index e9b1a237e..af88160e1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_data_frame_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java index 93f4afdd9..b87d7ab19 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.AcknowledgedResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_data_frame_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java index 047155d0f..9e5f06e5f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_datafeed.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java index 21ea526e2..184cf0c44 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_datafeed.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java index fea7d41ac..695b6ea56 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_trained_model_deployment.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentResponse.java index 20642e219..743fd01b3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.start_trained_model_deployment.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java index 738f4acce..8c7f2c679 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_data_frame_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsResponse.java index 6c7537e07..73dcfba56 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_data_frame_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java index 347d3de4d..08d8d12db 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_datafeed.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedResponse.java index 569a69b4c..f90ee4b34 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_datafeed.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java index e0e8d4cc0..2d5c8d8a7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_trained_model_deployment.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentResponse.java index d9935109d..f09652454 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.stop_trained_model_deployment.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java index e7eb1bb01..9da7b60f6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextClassificationInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java index 1f606a9e0..f0dc9658a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextClassificationInferenceUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java index 5c9a8e3af..4c852b865 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextEmbeddingInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java index 8c50fbedd..88f396517 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextEmbeddingInferenceUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java index 45b003dd6..bb434cefd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextExpansionInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java index ed90cedda..0ff324161 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TextExpansionInferenceUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java index 6336f13b1..f3194e196 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TimingStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfig.java index 82e7ee30f..3307d59fa 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TokenizationConfigContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigBuilders.java index 7b3d3971a..b9259153e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link TokenizationConfig} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigVariant.java index 2371b534f..21d911da3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationConfigVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link TokenizationConfig} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationTruncate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationTruncate.java index c13ae00d8..1070a0cd9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationTruncate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TokenizationTruncate.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java index ef99fbaa9..d35e322f3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TopClassEntry /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java index 55581485f..0b7e48fa6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TotalFeatureImportance /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java index c04c317cf..2c6bb2aa8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TotalFeatureImportanceClass /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java index b59f318d6..253045d62 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TotalFeatureImportanceStatistics /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java index b9e5f01d9..3d2416596 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelAssignment /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java index 932b42fe7..9baf48b0e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelAssignmentRoutingTable /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java index 2f95def06..7d6adc82b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelAssignmentTaskParameters /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java index 62d0e233a..7340a8e2f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelConfig /** @@ -103,6 +114,9 @@ public class TrainedModelConfig implements JsonpSerializable { @Nullable private final TrainedModelLocation location; + @Nullable + private final TrainedModelPrefixStrings prefixStrings; + // --------------------------------------------------------------------------------------------- protected TrainedModelConfig(AbstractBuilder builder) { @@ -125,6 +139,7 @@ protected TrainedModelConfig(AbstractBuilder builder) { this.metadata = builder.metadata; this.modelSizeBytes = builder.modelSizeBytes; this.location = builder.location; + this.prefixStrings = builder.prefixStrings; } @@ -307,6 +322,14 @@ public final TrainedModelLocation location() { return this.location; } + /** + * API name: {@code prefix_strings} + */ + @Nullable + public final TrainedModelPrefixStrings prefixStrings() { + return this.prefixStrings; + } + /** * Serialize this object to JSON. */ @@ -413,6 +436,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.location.serialize(generator, mapper); } + if (this.prefixStrings != null) { + generator.writeKey("prefix_strings"); + this.prefixStrings.serialize(generator, mapper); + + } } @@ -502,6 +530,9 @@ public abstract static class AbstractBuilder @@ -751,6 +782,22 @@ public final BuilderT location(Function> fn) { + return this.prefixStrings(fn.apply(new TrainedModelPrefixStrings.Builder()).build()); + } + protected abstract BuilderT self(); } @@ -787,6 +834,7 @@ protected static > void setupTrainedM op.add(AbstractBuilder::metadata, TrainedModelConfigMetadata._DESERIALIZER, "metadata"); op.add(AbstractBuilder::modelSizeBytes, JsonpDeserializer.stringDeserializer(), "model_size_bytes"); op.add(AbstractBuilder::location, TrainedModelLocation._DESERIALIZER, "location"); + op.add(AbstractBuilder::prefixStrings, TrainedModelPrefixStrings._DESERIALIZER, "prefix_strings"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java index 8fddbab57..40e6c2f24 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelConfigInput /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java index 6de65a487..55ea95b0d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelConfigMetadata /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java index fa96b9923..6535c46ef 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelDeploymentAllocationStatus /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java index a6dc1920d..5f59cf5fb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelDeploymentNodesStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java index e1cd4e5e5..8207c697f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelDeploymentStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java index 92e2850f5..5165125d6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelEntities /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java index fcc2af780..6d969b401 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelInferenceClassImportance /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java index af1ee9810..e09756fe1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelInferenceFeatureImportance /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java index aa94cb2ef..f22ba270c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelInferenceStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java index 3e22703ea..5dbdbff22 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelLocation /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java index 3f8af1113..9214ecb32 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelLocationIndex /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java new file mode 100644 index 000000000..4055149d4 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java @@ -0,0 +1,189 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.ml; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: ml._types.TrainedModelPrefixStrings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TrainedModelPrefixStrings implements JsonpSerializable { + private final String ingest; + + private final String search; + + // --------------------------------------------------------------------------------------------- + + private TrainedModelPrefixStrings(Builder builder) { + + this.ingest = ApiTypeHelper.requireNonNull(builder.ingest, this, "ingest"); + this.search = ApiTypeHelper.requireNonNull(builder.search, this, "search"); + + } + + public static TrainedModelPrefixStrings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - String prepended to input at ingest + *

+ * API name: {@code ingest} + */ + public final String ingest() { + return this.ingest; + } + + /** + * Required - String prepended to input at search + *

+ * API name: {@code search} + */ + public final String search() { + return this.search; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("ingest"); + generator.write(this.ingest); + + generator.writeKey("search"); + generator.write(this.search); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TrainedModelPrefixStrings}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String ingest; + + private String search; + + /** + * Required - String prepended to input at ingest + *

+ * API name: {@code ingest} + */ + public final Builder ingest(String value) { + this.ingest = value; + return this; + } + + /** + * Required - String prepended to input at search + *

+ * API name: {@code search} + */ + public final Builder search(String value) { + this.search = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TrainedModelPrefixStrings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TrainedModelPrefixStrings build() { + _checkSingleUse(); + + return new TrainedModelPrefixStrings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TrainedModelPrefixStrings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TrainedModelPrefixStrings::setupTrainedModelPrefixStringsDeserializer); + + protected static void setupTrainedModelPrefixStringsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::ingest, JsonpDeserializer.stringDeserializer(), "ingest"); + op.add(Builder::search, JsonpDeserializer.stringDeserializer(), "search"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java index 1ad403725..12fe840d6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelSizeStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java index 5f2dcc2a6..85ed8ee8c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TrainedModelStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelType.java index e30678e2d..8d2a18a3b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainingPriority.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainingPriority.java index b5c89899d..6e6de1b6f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainingPriority.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TrainingPriority.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java index d3d1bed49..8ec2b8be5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.TransformAuthorization /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java index a3e2238bd..85657f097 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_data_frame_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsResponse.java index 9a92be92a..e34d017d2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_data_frame_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java index 2c4268a2b..219244e61 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -54,6 +50,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_datafeed.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java index bfcded5ee..e955b3da2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.IndicesOptions; @@ -48,6 +44,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_datafeed.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java index dc989c388..a8817b7ad 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_filter.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterResponse.java index b807cfb8d..099000d3a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_filter.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java index d43d3848d..b68496da0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -49,6 +45,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_job.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobResponse.java index 15052b024..b75257453 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.elasticsearch._types.Time; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.update_job.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java index 6d2aeb9d2..9b7084a3a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ValidationLoss /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java index 1ff5f0a7c..76aee6327 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.Vocabulary /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java index e3d3ea07d..79ca36b71 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ZeroShotClassificationInferenceOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java index 265297ef2..e21b182d1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml._types.ZeroShotClassificationInferenceUpdateOptions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java index 66f657f1e..79e952be5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.ConfusionMatrixItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java index 7c146acdb..556899ef0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.ConfusionMatrixPrediction /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java index c404d5df5..8d06e4b7b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.ConfusionMatrixThreshold /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java index cebab9de4..0ecf205b9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummary /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java index e0f85fbce..d5aafca77 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummaryAccuracy /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java index 3dca5234c..cd54dc9c4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummaryMulticlassConfusionMatrix /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java index bac6a274a..562ea748c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummaryPrecision /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java index 798619893..9da724eca 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeClassificationSummaryRecall /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java index c4503129c..48608a34b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeEvaluationClass /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java index 7a2f65b10..53909445b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeEvaluationSummaryAucRoc /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java index 7d728f280..a9ba62d45 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeEvaluationSummaryAucRocCurveItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationValue.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationValue.java index 4d545296d..05bfe8138 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationValue.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationValue.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeEvaluationValue /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java index 8866d2f99..9253b4def 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeOutlierDetectionSummary /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java index f8cbb1d25..2e3f4c6da 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.evaluate_data_frame; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.evaluate_data_frame.DataframeRegressionSummary /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java index d36562620..79163e429 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.get_calendars; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.get_calendars.Calendar /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java index 7ccf9e69b..ec3b271b2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.preview_data_frame_analytics; import co.elastic.clients.elasticsearch.ml.DataframeAnalysis; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.preview_data_frame_analytics.DataframePreviewConfig /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java index 62aea7107..69a0dd035 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.AggregateOutput /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java index 9182e1fbd..3e37cf014 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Definition /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java index f2a645cb3..63c51ca49 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Ensemble /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java index 0f773bede..c8d94e911 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.FrequencyEncodingPreprocessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java index e8dcc7966..53fe224c1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Input /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java index dc4d97f67..163710abd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.OneHotEncodingPreprocessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java index ed04222ed..399397f95 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Preprocessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorBuilders.java index 99d7d02cd..d7306780e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Preprocessor} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorVariant.java index bfd8c22d9..5a9afd297 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/PreprocessorVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Preprocessor} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java index 5a4c4b61f..963dbbdb6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.TargetMeanEncodingPreprocessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java index fd89c83f9..48a08b506 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.TrainedModel /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java index db3b3acec..3a8759dc1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.TrainedModelTree /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java index ea525a80c..900b47237 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.TrainedModelTreeNode /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java index 03332a908..1f5edbac2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.ml.put_trained_model; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: ml.put_trained_model.Weights /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java index 2b44c5842..0543f85d7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Client /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java index c659dac01..642347928 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Context /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java index 0fc520076..928a716a3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Http /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java index ed6991166..db31b0a80 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Ingest /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java index 922b7a8dc..9b71c5892 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.IngestTotal /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java index 9ecdf5db3..c4b886800 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.KeyedProcessor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java index 99795cf80..a9b3af1d8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Processor /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java index 98e437300..14d1fe840 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.Scripting /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java index 47e64e200..4cf3d2321 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.nodes; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: nodes._types.ThreadCount /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java index 7670af893..fde2635cb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.delete.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java index 0022d42eb..6ecd1d19c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/DeleteQueryRulesetResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.delete.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java index b111451f0..8d249f4fa 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the query_ruleset namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java index 8517f3f93..05b95f685 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ElasticsearchQueryRulesetClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the query_ruleset namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java index b510f576d..f465ab6d7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.get.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java index 4163d4a95..51d068136 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/GetQueryRulesetResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.get.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java index f7a555a96..00861b672 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.list.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java index eb6582cc6..0053e9ed1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/ListResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch.query_ruleset.list.QueryRulesetListItem; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.list.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java index 9925d24b2..986b3f087 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,15 +32,30 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import jakarta.json.stream.JsonParser; import java.lang.String; 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; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.put.Request /** @@ -55,16 +66,16 @@ */ @JsonpDeserializable public class PutRequest extends RequestBase implements JsonpSerializable { - private final String rulesetId; + private final List rules; - private final QueryRuleset queryRuleset; + private final String rulesetId; // --------------------------------------------------------------------------------------------- private PutRequest(Builder builder) { + this.rules = ApiTypeHelper.unmodifiableRequired(builder.rules, this, "rules"); this.rulesetId = ApiTypeHelper.requireNonNull(builder.rulesetId, this, "rulesetId"); - this.queryRuleset = ApiTypeHelper.requireNonNull(builder.queryRuleset, this, "queryRuleset"); } @@ -72,6 +83,13 @@ public static PutRequest of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * Required - API name: {@code rules} + */ + public final List rules() { + return this.rules; + } + /** * Required - The unique identifier of the query ruleset to be created or * updated @@ -83,17 +101,26 @@ public final String rulesetId() { } /** - * Required - Request body. + * Serialize this object to JSON. */ - public final QueryRuleset queryRuleset() { - return this.queryRuleset; + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); } - /** - * Serialize this value to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - this.queryRuleset.serialize(generator, mapper); + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.rules)) { + generator.writeKey("rules"); + generator.writeStartArray(); + for (QueryRule item0 : this.rules) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } } @@ -104,42 +131,48 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - private String rulesetId; + private List rules; - private QueryRuleset queryRuleset; + private String rulesetId; /** - * Required - The unique identifier of the query ruleset to be created or - * updated + * Required - API name: {@code rules} *

- * API name: {@code ruleset_id} + * Adds all elements of list to rules. */ - public final Builder rulesetId(String value) { - this.rulesetId = value; + public final Builder rules(List list) { + this.rules = _listAddAll(this.rules, list); return this; } /** - * Required - Request body. + * Required - API name: {@code rules} + *

+ * Adds one or more values to rules. */ - public final Builder queryRuleset(QueryRuleset value) { - this.queryRuleset = value; + public final Builder rules(QueryRule value, QueryRule... values) { + this.rules = _listAdd(this.rules, value, values); return this; } /** - * Required - Request body. + * Required - API name: {@code rules} + *

+ * Adds a value to rules using a builder lambda. */ - public final Builder queryRuleset(Function> fn) { - return this.queryRuleset(fn.apply(new QueryRuleset.Builder()).build()); + public final Builder rules(Function> fn) { + return rules(fn.apply(new QueryRule.Builder()).build()); } - @Override - public Builder withJson(JsonParser parser, JsonpMapper mapper) { - - @SuppressWarnings("unchecked") - QueryRuleset value = (QueryRuleset) QueryRuleset._DESERIALIZER.deserialize(parser, mapper); - return this.queryRuleset(value); + /** + * Required - The unique identifier of the query ruleset to be created or + * updated + *

+ * API name: {@code ruleset_id} + */ + public final Builder rulesetId(String value) { + this.rulesetId = value; + return this; } @Override @@ -160,13 +193,18 @@ public PutRequest build() { } } - public static final JsonpDeserializer _DESERIALIZER = createPutRequestDeserializer(); - protected static JsonpDeserializer createPutRequestDeserializer() { + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutRequest::setupPutRequestDeserializer); + + protected static void setupPutRequestDeserializer(ObjectDeserializer op) { - JsonpDeserializer valueDeserializer = QueryRuleset._DESERIALIZER; + op.add(Builder::rules, JsonpDeserializer.arrayDeserializer(QueryRule._DESERIALIZER), "rules"); - return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() - .queryRuleset(valueDeserializer.deserialize(parser, mapper, event)).build()); } // --------------------------------------------------------------------------------------------- diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java index c54f7b1de..9f45c5dd5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/PutResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.Result; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.put.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java index 8a3168036..962bc86bf 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset._types.QueryRule /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java index a084ec7e5..77abb7a8f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleActions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.elasticsearch._types.query_dsl.PinnedDoc; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset._types.QueryRuleActions /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java index 5a48c1611..830147759 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteria.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.json.JsonData; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset._types.QueryRuleCriteria /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java index 31ba6a87b..2a8155eb3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/QueryRuleCriteriaType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API * specification */ -@JsonpDeserializable -public class QueryRuleset implements JsonpSerializable { + +public abstract class QueryRuleset implements JsonpSerializable { private final String rulesetId; private final List rules; @@ -63,10 +74,6 @@ protected QueryRuleset(AbstractBuilder builder) { } - public static QueryRuleset queryRulesetOf(Function> fn) { - return fn.apply(new Builder()).build(); - } - /** * Required - Query Ruleset unique identifier *

@@ -117,31 +124,6 @@ public String toString() { return JsonpUtils.toString(this); } - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link QueryRuleset}. - */ - - public static class Builder extends QueryRuleset.AbstractBuilder implements ObjectBuilder { - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link QueryRuleset}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public QueryRuleset build() { - _checkSingleUse(); - - return new QueryRuleset(this); - } - } - public abstract static class AbstractBuilder> extends WithJsonObjectBuilderBase { @@ -199,13 +181,6 @@ public final BuilderT rules(Function } // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for {@link QueryRuleset} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - QueryRuleset::setupQueryRulesetDeserializer); - protected static > void setupQueryRulesetDeserializer( ObjectDeserializer op) { diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java index 7479b62ed..32cacf1e8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.query_ruleset.list; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: query_ruleset.list.QueryRulesetListItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java index 5e9ed8b9a..2ed833b94 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application._types.AnalyticsCollection /** @@ -63,7 +74,7 @@ public static AnalyticsCollection of(Function * API name: {@code event_data_stream} */ @@ -104,7 +115,7 @@ public static class Builder extends WithJsonObjectBuilderBase private EventDataStream eventDataStream; /** - * Required - Data stream for the collection + * Required - Data stream for the collection. *

* API name: {@code event_data_stream} */ @@ -114,7 +125,7 @@ public final Builder eventDataStream(EventDataStream value) { } /** - * Required - Data stream for the collection + * Required - Data stream for the collection. *

* API name: {@code event_data_stream} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java index f22e337b2..9edd1b6f4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.delete_behavioral_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java index c5aab92fc..c7cb0dd00 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.delete_behavioral_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java index b5515a8ee..f3f31dc19 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.delete.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java index 8f00e9277..aa4f0d40d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.delete.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java index 4fe85dd95..60e770e46 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the search_application namespace. */ @@ -64,7 +75,7 @@ public ElasticsearchSearchApplicationAsyncClient withTransportOptions(@Nullable * Deletes a search application. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html">Documentation * on elastic.co */ @@ -82,7 +93,7 @@ public CompletableFuture delete(DeleteSearchApp * a function that initializes a builder to create the * {@link DeleteSearchApplicationRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html">Documentation * on elastic.co */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java index 39f4cd916..56b722362 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.ApiClient; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the search_application namespace. */ @@ -65,7 +76,7 @@ public ElasticsearchSearchApplicationClient withTransportOptions(@Nullable Trans * Deletes a search application. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html">Documentation * on elastic.co */ @@ -84,7 +95,7 @@ public DeleteSearchApplicationResponse delete(DeleteSearchApplicationRequest req * a function that initializes a builder to create the * {@link DeleteSearchApplicationRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html">Documentation * on elastic.co */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java index 5fdc2a430..b670688c0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application._types.EventDataStream /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java index 067ca4a6a..acc8a56fd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.get_behavioral_analytics.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java index ec9f4de46..1ede2f122 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.json.JsonpDeserializable; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.get_behavioral_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java index 352e4551f..77c829130 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.get.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java index b3cc032ec..64d32c036 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.get.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java index 13f63afca..4ed4c98e7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.list.Request /** @@ -76,7 +87,7 @@ public static ListRequest of(Function> fn) { } /** - * Starting offset (default: 0) + * Starting offset. *

* API name: {@code from} */ @@ -86,7 +97,7 @@ public final Integer from() { } /** - * Query in the Lucene query string syntax" + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -96,7 +107,7 @@ public final String q() { } /** - * specifies a max number of results to get + * Specifies a max number of results to get. *

* API name: {@code size} */ @@ -122,7 +133,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Integer size; /** - * Starting offset (default: 0) + * Starting offset. *

* API name: {@code from} */ @@ -132,7 +143,7 @@ public final Builder from(@Nullable Integer value) { } /** - * Query in the Lucene query string syntax" + * Query in the Lucene query string syntax. *

* API name: {@code q} */ @@ -142,7 +153,7 @@ public final Builder q(@Nullable String value) { } /** - * specifies a max number of results to get + * Specifies a max number of results to get. *

* API name: {@code size} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java index 33b5f4656..26a914f44 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch.search_application.list.SearchApplicationListItem; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.list.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java index 08f2ff35b..110e36e92 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,10 +38,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.put_behavioral_analytics.Request /** - * Creates a behavioral analytics collection + * Creates a behavioral analytics collection. * * @see API @@ -68,7 +79,7 @@ public static PutBehavioralAnalyticsRequest of(Function * API name: {@code name} */ @@ -88,7 +99,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; /** - * Required - The name of the analytics collection to be created or updated + * Required - The name of the analytics collection to be created or updated. *

* API name: {@code name} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java index 978e53b4c..d3c747a3d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch.search_application.put_behavioral_analytics.AnalyticsAcknowledgeResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.put_behavioral_analytics.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java index 9f89595fa..57a8ee602 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.put.Request /** @@ -77,8 +88,8 @@ public static PutRequest of(Function> fn) { } /** - * If true, requires that a search application with the specified resource_id - * does not already exist. (default: false) + * If true, this request cannot replace or update existing Search + * Applications. *

* API name: {@code create} */ @@ -88,7 +99,7 @@ public final Boolean create() { } /** - * Required - The name of the search application to be created or updated + * Required - The name of the search application to be created or updated. *

* API name: {@code name} */ @@ -126,8 +137,8 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private SearchApplication searchApplication; /** - * If true, requires that a search application with the specified resource_id - * does not already exist. (default: false) + * If true, this request cannot replace or update existing Search + * Applications. *

* API name: {@code create} */ @@ -137,7 +148,7 @@ public final Builder create(@Nullable Boolean value) { } /** - * Required - The name of the search application to be created or updated + * Required - The name of the search application to be created or updated. *

* API name: {@code name} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java index d81077003..49af46ef4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.Result; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.put.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java index fe8664b8f..0e34c6ab7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application._types.SearchApplication /** @@ -80,7 +91,7 @@ public static SearchApplication searchApplicationOf(Function * API name: {@code name} */ @@ -89,7 +100,7 @@ public final String name() { } /** - * Required - Indices that are part of the Search Application + * Required - Indices that are part of the Search Application. *

* API name: {@code indices} */ @@ -98,7 +109,7 @@ public final List indices() { } /** - * Required - Last time the Search Application was updated + * Required - Last time the Search Application was updated. *

* API name: {@code updated_at_millis} */ @@ -107,7 +118,7 @@ public final long updatedAtMillis() { } /** - * Analytics collection associated to the Search Application + * Analytics collection associated to the Search Application. *

* API name: {@code analytics_collection_name} */ @@ -117,7 +128,7 @@ public final String analyticsCollectionName() { } /** - * Search template to use on search operations + * Search template to use on search operations. *

* API name: {@code template} */ @@ -214,7 +225,7 @@ public abstract static class AbstractBuilder * API name: {@code name} */ @@ -224,7 +235,7 @@ public final BuilderT name(String value) { } /** - * Required - Indices that are part of the Search Application + * Required - Indices that are part of the Search Application. *

* API name: {@code indices} *

@@ -236,7 +247,7 @@ public final BuilderT indices(List list) { } /** - * Required - Indices that are part of the Search Application + * Required - Indices that are part of the Search Application. *

* API name: {@code indices} *

@@ -248,7 +259,7 @@ public final BuilderT indices(String value, String... values) { } /** - * Required - Last time the Search Application was updated + * Required - Last time the Search Application was updated. *

* API name: {@code updated_at_millis} */ @@ -258,7 +269,7 @@ public final BuilderT updatedAtMillis(long value) { } /** - * Analytics collection associated to the Search Application + * Analytics collection associated to the Search Application. *

* API name: {@code analytics_collection_name} */ @@ -268,7 +279,7 @@ public final BuilderT analyticsCollectionName(@Nullable String value) { } /** - * Search template to use on search operations + * Search template to use on search operations. *

* API name: {@code template} */ @@ -278,7 +289,7 @@ public final BuilderT template(@Nullable SearchApplicationTemplate value) { } /** - * Search template to use on search operations + * Search template to use on search operations. *

* API name: {@code template} */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java index 17923d133..aa6834253 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,10 +41,25 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.search.Request /** - * Perform a search against a search application + * Perform a search against a search application. * * @see API @@ -75,7 +86,7 @@ public static SearchApplicationSearchRequest of( } /** - * Required - The name of the search application to be searched + * Required - The name of the search application to be searched. *

* API name: {@code name} */ @@ -84,6 +95,9 @@ public final String name() { } /** + * Query parameters specific to this request, which will override any defaults + * specified in the template. + *

* API name: {@code params} */ public final Map params() { @@ -130,7 +144,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Map params; /** - * Required - The name of the search application to be searched + * Required - The name of the search application to be searched. *

* API name: {@code name} */ @@ -140,6 +154,9 @@ public final Builder name(String value) { } /** + * Query parameters specific to this request, which will override any defaults + * specified in the template. + *

* API name: {@code params} *

* Adds all entries of map to params. @@ -150,6 +167,9 @@ public final Builder params(Map map) { } /** + * Query parameters specific to this request, which will override any defaults + * specified in the template. + *

* API name: {@code params} *

* Adds an entry to params. diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java index ef51216f9..73b9b56cb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch.core.search.ResponseBody; @@ -35,6 +31,21 @@ import java.util.function.Function; import java.util.function.Supplier; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.search.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java index 42c886117..eb23a20d2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application; import co.elastic.clients.elasticsearch._types.InlineScript; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application._types.SearchApplicationTemplate /** @@ -64,7 +75,9 @@ public static SearchApplicationTemplate of(Function + * API name: {@code script} */ public final InlineScript script() { return this.script; @@ -103,7 +116,9 @@ public static class Builder extends WithJsonObjectBuilderBase private InlineScript script; /** - * Required - API name: {@code script} + * Required - The associated mustache template. + *

+ * API name: {@code script} */ public final Builder script(InlineScript value) { this.script = value; @@ -111,7 +126,9 @@ public final Builder script(InlineScript value) { } /** - * Required - API name: {@code script} + * Required - The associated mustache template. + *

+ * API name: {@code script} */ public final Builder script(Function> fn) { return this.script(fn.apply(new InlineScript.Builder()).build()); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java index 07244e875..c75be3999 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application.list; import co.elastic.clients.json.JsonpDeserializable; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.list.SearchApplicationListItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java index 6f1eb2c83..162f4d907 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.search_application.put_behavioral_analytics; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -37,6 +33,21 @@ import java.util.Objects; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: search_application.put_behavioral_analytics.AnalyticsAcknowledgeResponseBase /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java index f78f45e87..f0b08b58c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.FieldValue; @@ -39,12 +35,28 @@ import java.lang.Boolean; import java.lang.Long; import java.lang.String; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.ApiKey /** @@ -536,6 +548,66 @@ public final Builder sort(FieldValue value, FieldValue... values) { return this; } + /** + * API name: {@code _sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(String value, String... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code _sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(long value, long... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code _sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(double value, double... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + + /** + * API name: {@code _sort} + *

+ * Adds all passed values to sort. + */ + public final Builder sort(boolean value, boolean... values) { + this.sort = _listAdd(this.sort, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.sort = _listAddAll(this.sort, fieldValues); + return this; + } + /** * API name: {@code _sort} *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java index c02ec77df..435593547 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.ApplicationGlobalUserPrivileges /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java index 2b28799db..598029029 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.ApplicationPrivileges /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java index ca9a05186..6f3f2ece0 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -36,6 +32,21 @@ import java.util.Collections; import java.util.Objects; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.authenticate.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateResponse.java index 4f19acbd3..fb08644ee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch.security.authenticate.ServiceToken; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.authenticate.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ClusterPrivilege.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ClusterPrivilege.java new file mode 100644 index 000000000..d0fff2f06 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ClusterPrivilege.java @@ -0,0 +1,137 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum ClusterPrivilege implements JsonEnum { + All("all"), + + CancelTask("cancel_task"), + + CreateSnapshot("create_snapshot"), + + GrantApiKey("grant_api_key"), + + Manage("manage"), + + ManageApiKey("manage_api_key"), + + ManageCcr("manage_ccr"), + + ManageEnrich("manage_enrich"), + + ManageIlm("manage_ilm"), + + ManageIndexTemplates("manage_index_templates"), + + ManageIngestPipelines("manage_ingest_pipelines"), + + ManageLogstashPipelines("manage_logstash_pipelines"), + + ManageMl("manage_ml"), + + ManageOidc("manage_oidc"), + + ManageOwnApiKey("manage_own_api_key"), + + ManagePipeline("manage_pipeline"), + + ManageRollup("manage_rollup"), + + ManageSaml("manage_saml"), + + ManageSecurity("manage_security"), + + ManageServiceAccount("manage_service_account"), + + ManageSlm("manage_slm"), + + ManageToken("manage_token"), + + ManageTransform("manage_transform"), + + ManageUserProfile("manage_user_profile"), + + ManageWatcher("manage_watcher"), + + Monitor("monitor"), + + MonitorMl("monitor_ml"), + + MonitorRollup("monitor_rollup"), + + MonitorSnapshot("monitor_snapshot"), + + MonitorTextStructure("monitor_text_structure"), + + MonitorTransform("monitor_transform"), + + MonitorWatcher("monitor_watcher"), + + ReadCcr("read_ccr"), + + ReadIlm("read_ilm"), + + ReadPipeline("read_pipeline"), + + ReadSlm("read_slm"), + + TransportClient("transport_client"), + + ; + + private final String jsonValue; + + ClusterPrivilege(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ClusterPrivilege.values()); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java index 0a5cb5dd1..e4823b8b9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -47,6 +43,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.create_api_key.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyResponse.java index e17287891..f70e31721 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.create_api_key.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityAsyncClient.java index c5bfa1ee8..e86d803b1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the security namespace. */ @@ -71,39 +82,6 @@ public CompletableFuture authenticate() { this.transportOptions); } - // ----- Endpoint: security.clear_api_key_cache - - /** - * Clear a subset or all entries from the API key cache. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture clearApiKeyCache(ClearApiKeyCacheRequest request) { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) ClearApiKeyCacheRequest._ENDPOINT; - - return this.transport.performRequestAsync(request, endpoint, this.transportOptions); - } - - /** - * Clear a subset or all entries from the API key cache. - * - * @param fn - * a function that initializes a builder to create the - * {@link ClearApiKeyCacheRequest} - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture clearApiKeyCache( - Function> fn) { - return clearApiKeyCache(fn.apply(new ClearApiKeyCacheRequest.Builder()).build()); - } - // ----- Endpoint: security.create_api_key /** @@ -196,6 +174,52 @@ public CompletableFuture getApiKey() { this.transportOptions); } + // ----- Endpoint: security.has_privileges + + /** + * Determines whether the specified user has a specified list of privileges. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture hasPrivileges(HasPrivilegesRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) HasPrivilegesRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Determines whether the specified user has a specified list of privileges. + * + * @param fn + * a function that initializes a builder to create the + * {@link HasPrivilegesRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture hasPrivileges( + Function> fn) { + return hasPrivileges(fn.apply(new HasPrivilegesRequest.Builder()).build()); + } + + /** + * Determines whether the specified user has a specified list of privileges. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture hasPrivileges() { + return this.transport.performRequestAsync(new HasPrivilegesRequest.Builder().build(), + HasPrivilegesRequest._ENDPOINT, this.transportOptions); + } + // ----- Endpoint: security.invalidate_api_key /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityClient.java index b4b3dba58..b7e4d4b92 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the security namespace. */ @@ -69,41 +80,6 @@ public AuthenticateResponse authenticate() throws IOException, ElasticsearchExce this.transportOptions); } - // ----- Endpoint: security.clear_api_key_cache - - /** - * Clear a subset or all entries from the API key cache. - * - * @see Documentation - * on elastic.co - */ - - public ClearApiKeyCacheResponse clearApiKeyCache(ClearApiKeyCacheRequest request) - throws IOException, ElasticsearchException { - @SuppressWarnings("unchecked") - JsonEndpoint endpoint = (JsonEndpoint) ClearApiKeyCacheRequest._ENDPOINT; - - return this.transport.performRequest(request, endpoint, this.transportOptions); - } - - /** - * Clear a subset or all entries from the API key cache. - * - * @param fn - * a function that initializes a builder to create the - * {@link ClearApiKeyCacheRequest} - * @see Documentation - * on elastic.co - */ - - public final ClearApiKeyCacheResponse clearApiKeyCache( - Function> fn) - throws IOException, ElasticsearchException { - return clearApiKeyCache(fn.apply(new ClearApiKeyCacheRequest.Builder()).build()); - } - // ----- Endpoint: security.create_api_key /** @@ -197,6 +173,54 @@ public GetApiKeyResponse getApiKey() throws IOException, ElasticsearchException this.transportOptions); } + // ----- Endpoint: security.has_privileges + + /** + * Determines whether the specified user has a specified list of privileges. + * + * @see Documentation + * on elastic.co + */ + + public HasPrivilegesResponse hasPrivileges(HasPrivilegesRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) HasPrivilegesRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Determines whether the specified user has a specified list of privileges. + * + * @param fn + * a function that initializes a builder to create the + * {@link HasPrivilegesRequest} + * @see Documentation + * on elastic.co + */ + + public final HasPrivilegesResponse hasPrivileges( + Function> fn) + throws IOException, ElasticsearchException { + return hasPrivileges(fn.apply(new HasPrivilegesRequest.Builder()).build()); + } + + /** + * Determines whether the specified user has a specified list of privileges. + * + * @see Documentation + * on elastic.co + */ + + public HasPrivilegesResponse hasPrivileges() throws IOException, ElasticsearchException { + return this.transport.performRequest(new HasPrivilegesRequest.Builder().build(), HasPrivilegesRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: security.invalidate_api_key /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java index 4f74e84e0..9d77f2d3c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.FieldSecurity /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java index 56e60e2d4..4c2b575e8 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_api_key.Request /** @@ -57,6 +68,9 @@ */ public class GetApiKeyRequest extends RequestBase { + @Nullable + private final Boolean activeOnly; + @Nullable private final String id; @@ -79,6 +93,7 @@ public class GetApiKeyRequest extends RequestBase { private GetApiKeyRequest(Builder builder) { + this.activeOnly = builder.activeOnly; this.id = builder.id; this.name = builder.name; this.owner = builder.owner; @@ -92,6 +107,21 @@ public static GetApiKeyRequest of(Functionowner or name. If active_only is + * false, the response will include both active and inactive (expired or + * invalidated) keys. + *

+ * API name: {@code active_only} + */ + @Nullable + public final Boolean activeOnly() { + return this.activeOnly; + } + /** * An API key id. This parameter cannot be used with any of name, * realm_name or username. @@ -173,6 +203,9 @@ public final Boolean withLimitedBy() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean activeOnly; + @Nullable private String id; @@ -191,6 +224,21 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean withLimitedBy; + /** + * A boolean flag that can be used to query API keys that are currently active. + * An API key is considered active if it is neither invalidated, nor expired at + * query time. You can specify this together with other parameters such as + * owner or name. If active_only is + * false, the response will include both active and inactive (expired or + * invalidated) keys. + *

+ * API name: {@code active_only} + */ + public final Builder activeOnly(@Nullable Boolean value) { + this.activeOnly = value; + return this; + } + /** * An API key id. This parameter cannot be used with any of name, * realm_name or username. @@ -312,6 +360,9 @@ public GetApiKeyRequest build() { if (request.owner != null) { params.put("owner", String.valueOf(request.owner)); } + if (request.activeOnly != null) { + params.put("active_only", String.valueOf(request.activeOnly)); + } if (request.name != null) { params.put("name", request.name); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyResponse.java index 2124e0f88..40a0be76d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.get_api_key.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java index bd64f4de4..3e641701c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.GlobalPrivilege /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java new file mode 100644 index 000000000..68cbfd667 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java @@ -0,0 +1,388 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch.security.has_privileges.ApplicationPrivilegesCheck; +import co.elastic.clients.elasticsearch.security.has_privileges.IndexPrivilegesCheck; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: security.has_privileges.Request + +/** + * Determines whether the specified user has a specified list of privileges. + * + * @see API + * specification + */ +@JsonpDeserializable +public class HasPrivilegesRequest extends RequestBase implements JsonpSerializable { + private final List application; + + private final List cluster; + + private final List index; + + @Nullable + private final String user; + + // --------------------------------------------------------------------------------------------- + + private HasPrivilegesRequest(Builder builder) { + + this.application = ApiTypeHelper.unmodifiable(builder.application); + this.cluster = ApiTypeHelper.unmodifiable(builder.cluster); + this.index = ApiTypeHelper.unmodifiable(builder.index); + this.user = builder.user; + + } + + public static HasPrivilegesRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code application} + */ + public final List application() { + return this.application; + } + + /** + * A list of the cluster privileges that you want to check. + *

+ * API name: {@code cluster} + */ + public final List cluster() { + return this.cluster; + } + + /** + * API name: {@code index} + */ + public final List index() { + return this.index; + } + + /** + * Username + *

+ * API name: {@code user} + */ + @Nullable + public final String user() { + return this.user; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.application)) { + generator.writeKey("application"); + generator.writeStartArray(); + for (ApplicationPrivilegesCheck item0 : this.application) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.cluster)) { + generator.writeKey("cluster"); + generator.writeStartArray(); + for (String item0 : this.cluster) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.index)) { + generator.writeKey("index"); + generator.writeStartArray(); + for (IndexPrivilegesCheck item0 : this.index) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link HasPrivilegesRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private List application; + + @Nullable + private List cluster; + + @Nullable + private List index; + + @Nullable + private String user; + + /** + * API name: {@code application} + *

+ * Adds all elements of list to application. + */ + public final Builder application(List list) { + this.application = _listAddAll(this.application, list); + return this; + } + + /** + * API name: {@code application} + *

+ * Adds one or more values to application. + */ + public final Builder application(ApplicationPrivilegesCheck value, ApplicationPrivilegesCheck... values) { + this.application = _listAdd(this.application, value, values); + return this; + } + + /** + * API name: {@code application} + *

+ * Adds a value to application using a builder lambda. + */ + public final Builder application( + Function> fn) { + return application(fn.apply(new ApplicationPrivilegesCheck.Builder()).build()); + } + + /** + * A list of the cluster privileges that you want to check. + *

+ * API name: {@code cluster} + *

+ * Adds all elements of list to cluster. + */ + public final Builder cluster(List list) { + this.cluster = _listAddAll(this.cluster, list); + return this; + } + + /** + * A list of the cluster privileges that you want to check. + *

+ * API name: {@code cluster} + *

+ * Adds one or more values to cluster. + */ + public final Builder cluster(String value, String... values) { + this.cluster = _listAdd(this.cluster, value, values); + return this; + } + + /** + * API name: {@code index} + *

+ * Adds all elements of list to index. + */ + public final Builder index(List list) { + this.index = _listAddAll(this.index, list); + return this; + } + + /** + * API name: {@code index} + *

+ * Adds one or more values to index. + */ + public final Builder index(IndexPrivilegesCheck value, IndexPrivilegesCheck... values) { + this.index = _listAdd(this.index, value, values); + return this; + } + + /** + * API name: {@code index} + *

+ * Adds a value to index using a builder lambda. + */ + public final Builder index(Function> fn) { + return index(fn.apply(new IndexPrivilegesCheck.Builder()).build()); + } + + /** + * Username + *

+ * API name: {@code user} + */ + public final Builder user(@Nullable String value) { + this.user = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link HasPrivilegesRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public HasPrivilegesRequest build() { + _checkSingleUse(); + + return new HasPrivilegesRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link HasPrivilegesRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, HasPrivilegesRequest::setupHasPrivilegesRequestDeserializer); + + protected static void setupHasPrivilegesRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::application, JsonpDeserializer.arrayDeserializer(ApplicationPrivilegesCheck._DESERIALIZER), + "application"); + op.add(Builder::cluster, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "cluster"); + op.add(Builder::index, JsonpDeserializer.arrayDeserializer(IndexPrivilegesCheck._DESERIALIZER), "index"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code security.has_privileges}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/security.has_privileges", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _user = 1 << 0; + + int propsSet = 0; + + if (request.user() != null) + propsSet |= _user; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_security"); + buf.append("/user"); + buf.append("/_has_privileges"); + return buf.toString(); + } + if (propsSet == (_user)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_security"); + buf.append("/user"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.user, buf); + buf.append("/_has_privileges"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _user = 1 << 0; + + int propsSet = 0; + + if (request.user() != null) + propsSet |= _user; + + if (propsSet == 0) { + } + if (propsSet == (_user)) { + params.put("user", request.user); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, HasPrivilegesResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesResponse.java new file mode 100644 index 000000000..c84b9d9bc --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesResponse.java @@ -0,0 +1,343 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: security.has_privileges.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class HasPrivilegesResponse implements JsonpSerializable { + private final Map>> application; + + private final Map cluster; + + private final boolean hasAllRequested; + + private final Map> index; + + private final String username; + + // --------------------------------------------------------------------------------------------- + + private HasPrivilegesResponse(Builder builder) { + + this.application = ApiTypeHelper.unmodifiableRequired(builder.application, this, "application"); + this.cluster = ApiTypeHelper.unmodifiableRequired(builder.cluster, this, "cluster"); + this.hasAllRequested = ApiTypeHelper.requireNonNull(builder.hasAllRequested, this, "hasAllRequested"); + this.index = ApiTypeHelper.unmodifiableRequired(builder.index, this, "index"); + this.username = ApiTypeHelper.requireNonNull(builder.username, this, "username"); + + } + + public static HasPrivilegesResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code application} + */ + public final Map>> application() { + return this.application; + } + + /** + * Required - API name: {@code cluster} + */ + public final Map cluster() { + return this.cluster; + } + + /** + * Required - API name: {@code has_all_requested} + */ + public final boolean hasAllRequested() { + return this.hasAllRequested; + } + + /** + * Required - API name: {@code index} + */ + public final Map> index() { + return this.index; + } + + /** + * Required - API name: {@code username} + */ + public final String username() { + return this.username; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.application)) { + generator.writeKey("application"); + generator.writeStartObject(); + for (Map.Entry>> item0 : this.application.entrySet()) { + generator.writeKey(item0.getKey()); + generator.writeStartObject(); + if (item0.getValue() != null) { + for (Map.Entry> item1 : item0.getValue().entrySet()) { + generator.writeKey(item1.getKey()); + generator.writeStartObject(); + if (item1.getValue() != null) { + for (Map.Entry item2 : item1.getValue().entrySet()) { + generator.writeKey(item2.getKey()); + generator.write(item2.getValue()); + + } + } + generator.writeEnd(); + + } + } + generator.writeEnd(); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.cluster)) { + generator.writeKey("cluster"); + generator.writeStartObject(); + for (Map.Entry item0 : this.cluster.entrySet()) { + generator.writeKey(item0.getKey()); + generator.write(item0.getValue()); + + } + generator.writeEnd(); + + } + generator.writeKey("has_all_requested"); + generator.write(this.hasAllRequested); + + if (ApiTypeHelper.isDefined(this.index)) { + generator.writeKey("index"); + generator.writeStartObject(); + for (Map.Entry> item0 : this.index.entrySet()) { + generator.writeKey(item0.getKey()); + generator.writeStartObject(); + if (item0.getValue() != null) { + for (Map.Entry item1 : item0.getValue().entrySet()) { + generator.writeKey(item1.getKey()); + generator.write(item1.getValue()); + + } + } + generator.writeEnd(); + + } + generator.writeEnd(); + + } + generator.writeKey("username"); + generator.write(this.username); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link HasPrivilegesResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Map>> application; + + private Map cluster; + + private Boolean hasAllRequested; + + private Map> index; + + private String username; + + /** + * Required - API name: {@code application} + *

+ * Adds all entries of map to application. + */ + public final Builder application(Map>> map) { + this.application = _mapPutAll(this.application, map); + return this; + } + + /** + * Required - API name: {@code application} + *

+ * Adds an entry to application. + */ + public final Builder application(String key, Map> value) { + this.application = _mapPut(this.application, key, value); + return this; + } + + /** + * Required - API name: {@code cluster} + *

+ * Adds all entries of map to cluster. + */ + public final Builder cluster(Map map) { + this.cluster = _mapPutAll(this.cluster, map); + return this; + } + + /** + * Required - API name: {@code cluster} + *

+ * Adds an entry to cluster. + */ + public final Builder cluster(String key, Boolean value) { + this.cluster = _mapPut(this.cluster, key, value); + return this; + } + + /** + * Required - API name: {@code has_all_requested} + */ + public final Builder hasAllRequested(boolean value) { + this.hasAllRequested = value; + return this; + } + + /** + * Required - API name: {@code index} + *

+ * Adds all entries of map to index. + */ + public final Builder index(Map> map) { + this.index = _mapPutAll(this.index, map); + return this; + } + + /** + * Required - API name: {@code index} + *

+ * Adds an entry to index. + */ + public final Builder index(String key, Map value) { + this.index = _mapPut(this.index, key, value); + return this; + } + + /** + * Required - API name: {@code username} + */ + public final Builder username(String value) { + this.username = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link HasPrivilegesResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public HasPrivilegesResponse build() { + _checkSingleUse(); + + return new HasPrivilegesResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link HasPrivilegesResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, HasPrivilegesResponse::setupHasPrivilegesResponseDeserializer); + + protected static void setupHasPrivilegesResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::application, + JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.stringMapDeserializer( + JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.booleanDeserializer()))), + "application"); + op.add(Builder::cluster, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.booleanDeserializer()), + "cluster"); + op.add(Builder::hasAllRequested, JsonpDeserializer.booleanDeserializer(), "has_all_requested"); + op.add(Builder::index, JsonpDeserializer.stringMapDeserializer( + JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.booleanDeserializer())), "index"); + op.add(Builder::username, JsonpDeserializer.stringDeserializer(), "username"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/IndexPrivilege.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/IndexPrivilege.java index af36fae51..4394e1bd7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/IndexPrivilege.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/IndexPrivilege.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see API diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java index d58a2ddcc..01324a6f2 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.query_dsl.Query; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.IndicesPrivileges /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java index 10de48a67..9b1dabac4 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.invalidate_api_key.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyResponse.java index 30388e682..b34dd5c07 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorCause; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.invalidate_api_key.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java index 1d4649c6a..512a55fc1 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.ManageUserPrivileges /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java index 9fa998210..954a534f6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.Integer; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; @@ -49,6 +46,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.query_api_keys.Request /** @@ -302,6 +314,74 @@ public final Builder searchAfter(FieldValue value, FieldValue... values) { return this; } + /** + * Search after definition + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(String value, String... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (String v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Search after definition + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(long value, long... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (long v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Search after definition + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(double value, double... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (double v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + + /** + * Search after definition + *

+ * API name: {@code search_after} + *

+ * Adds all passed values to searchAfter. + */ + public final Builder searchAfter(boolean value, boolean... values) { + this.searchAfter = _listAdd(this.searchAfter, FieldValue.of(value)); + List fieldValues = new ArrayList<>(); + for (boolean v : values) { + fieldValues.add(FieldValue.of(v)); + } + this.searchAfter = _listAddAll(this.searchAfter, fieldValues); + return this; + } + /** * Search after definition *

diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java index 19ded4c67..264a0df97 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.query_api_keys.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java index 0eac72cf0..ed951f5ff 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RealmInfo /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java index 8a83dc4aa..482bdea2e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonData; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleDescriptor /** @@ -63,8 +74,7 @@ public class RoleDescriptor implements JsonpSerializable { private final List runAs; - @Nullable - private final TransientMetadataConfig transientMetadata; + private final Map transientMetadata; // --------------------------------------------------------------------------------------------- @@ -76,7 +86,7 @@ private RoleDescriptor(Builder builder) { this.applications = ApiTypeHelper.unmodifiable(builder.applications); this.metadata = ApiTypeHelper.unmodifiable(builder.metadata); this.runAs = ApiTypeHelper.unmodifiable(builder.runAs); - this.transientMetadata = builder.transientMetadata; + this.transientMetadata = ApiTypeHelper.unmodifiable(builder.transientMetadata); } @@ -145,8 +155,7 @@ public final List runAs() { /** * API name: {@code transient_metadata} */ - @Nullable - public final TransientMetadataConfig transientMetadata() { + public final Map transientMetadata() { return this.transientMetadata; } @@ -222,9 +231,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.transientMetadata != null) { + if (ApiTypeHelper.isDefined(this.transientMetadata)) { generator.writeKey("transient_metadata"); - this.transientMetadata.serialize(generator, mapper); + generator.writeStartObject(); + for (Map.Entry item0 : this.transientMetadata.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); } @@ -261,7 +276,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List runAs; @Nullable - private TransientMetadataConfig transientMetadata; + private Map transientMetadata; /** * A list of cluster privileges. These privileges define the cluster level @@ -453,18 +468,22 @@ public final Builder runAs(String value, String... values) { /** * API name: {@code transient_metadata} + *

+ * Adds all entries of map to transientMetadata. */ - public final Builder transientMetadata(@Nullable TransientMetadataConfig value) { - this.transientMetadata = value; + public final Builder transientMetadata(Map map) { + this.transientMetadata = _mapPutAll(this.transientMetadata, map); return this; } /** * API name: {@code transient_metadata} + *

+ * Adds an entry to transientMetadata. */ - public final Builder transientMetadata( - Function> fn) { - return this.transientMetadata(fn.apply(new TransientMetadataConfig.Builder()).build()); + public final Builder transientMetadata(String key, JsonData value) { + this.transientMetadata = _mapPut(this.transientMetadata, key, value); + return this; } @Override @@ -504,7 +523,8 @@ protected static void setupRoleDescriptorDeserializer(ObjectDeserializer diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineScript.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineScript.java index 7279e2428..6984132cb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineScript.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateInlineScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ScriptBase; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleTemplateInlineScript /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java index 049a4ae0e..6b07ec241 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.StoredScriptId; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security._types.RoleTemplateScript /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScriptBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScriptBuilders.java index ff2cc7195..55f8f5224 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScriptBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScriptBuilders.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.StoredScriptId; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link RoleTemplateScript} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java index c3dd49510..fbaff3b85 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java @@ -17,14 +17,11 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -45,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.update_api_key.Request /** @@ -72,6 +84,9 @@ */ @JsonpDeserializable public class UpdateApiKeyRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final Time expiration; + private final String id; private final Map metadata; @@ -82,6 +97,7 @@ public class UpdateApiKeyRequest extends RequestBase implements JsonpSerializabl private UpdateApiKeyRequest(Builder builder) { + this.expiration = builder.expiration; this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); this.metadata = ApiTypeHelper.unmodifiable(builder.metadata); this.roleDescriptors = ApiTypeHelper.unmodifiable(builder.roleDescriptors); @@ -92,6 +108,16 @@ public static UpdateApiKeyRequest of(Function + * API name: {@code expiration} + */ + @Nullable + public final Time expiration() { + return this.expiration; + } + /** * Required - The ID of the API key to update. *

@@ -139,6 +165,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.expiration != null) { + generator.writeKey("expiration"); + this.expiration.serialize(generator, mapper); + + } if (ApiTypeHelper.isDefined(this.metadata)) { generator.writeKey("metadata"); generator.writeStartObject(); @@ -173,6 +204,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Time expiration; + private String id; @Nullable @@ -181,6 +215,25 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map roleDescriptors; + /** + * Expiration time for the API key. + *

+ * API name: {@code expiration} + */ + public final Builder expiration(@Nullable Time value) { + this.expiration = value; + return this; + } + + /** + * Expiration time for the API key. + *

+ * API name: {@code expiration} + */ + public final Builder expiration(Function> fn) { + return this.expiration(fn.apply(new Time.Builder()).build()); + } + /** * Required - The ID of the API key to update. *

@@ -304,6 +357,7 @@ public UpdateApiKeyRequest build() { protected static void setupUpdateApiKeyRequestDeserializer(ObjectDeserializer op) { + op.add(Builder::expiration, Time._DESERIALIZER, "expiration"); op.add(Builder::metadata, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "metadata"); op.add(Builder::roleDescriptors, JsonpDeserializer.stringMapDeserializer(RoleDescriptor._DESERIALIZER), "role_descriptors"); diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java index fd30a2241..0be1faa89 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.update_api_key.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java index 06a563552..25218b7e7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.authenticate; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: security.authenticate.Token /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/ApplicationPrivilegesCheck.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/ApplicationPrivilegesCheck.java new file mode 100644 index 000000000..8ed2de79b --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/ApplicationPrivilegesCheck.java @@ -0,0 +1,272 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.has_privileges; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: security.has_privileges.ApplicationPrivilegesCheck + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ApplicationPrivilegesCheck implements JsonpSerializable { + private final String application; + + private final List privileges; + + private final List resources; + + // --------------------------------------------------------------------------------------------- + + private ApplicationPrivilegesCheck(Builder builder) { + + this.application = ApiTypeHelper.requireNonNull(builder.application, this, "application"); + this.privileges = ApiTypeHelper.unmodifiableRequired(builder.privileges, this, "privileges"); + this.resources = ApiTypeHelper.unmodifiableRequired(builder.resources, this, "resources"); + + } + + public static ApplicationPrivilegesCheck of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the application. + *

+ * API name: {@code application} + */ + public final String application() { + return this.application; + } + + /** + * Required - A list of the privileges that you want to check for the specified + * resources. May be either application privilege names, or the names of actions + * that are granted by those privileges + *

+ * API name: {@code privileges} + */ + public final List privileges() { + return this.privileges; + } + + /** + * Required - A list of resource names against which the privileges should be + * checked + *

+ * API name: {@code resources} + */ + public final List resources() { + return this.resources; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("application"); + generator.write(this.application); + + if (ApiTypeHelper.isDefined(this.privileges)) { + generator.writeKey("privileges"); + generator.writeStartArray(); + for (String item0 : this.privileges) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.resources)) { + generator.writeKey("resources"); + generator.writeStartArray(); + for (String item0 : this.resources) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ApplicationPrivilegesCheck}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String application; + + private List privileges; + + private List resources; + + /** + * Required - The name of the application. + *

+ * API name: {@code application} + */ + public final Builder application(String value) { + this.application = value; + return this; + } + + /** + * Required - A list of the privileges that you want to check for the specified + * resources. May be either application privilege names, or the names of actions + * that are granted by those privileges + *

+ * API name: {@code privileges} + *

+ * Adds all elements of list to privileges. + */ + public final Builder privileges(List list) { + this.privileges = _listAddAll(this.privileges, list); + return this; + } + + /** + * Required - A list of the privileges that you want to check for the specified + * resources. May be either application privilege names, or the names of actions + * that are granted by those privileges + *

+ * API name: {@code privileges} + *

+ * Adds one or more values to privileges. + */ + public final Builder privileges(String value, String... values) { + this.privileges = _listAdd(this.privileges, value, values); + return this; + } + + /** + * Required - A list of resource names against which the privileges should be + * checked + *

+ * API name: {@code resources} + *

+ * Adds all elements of list to resources. + */ + public final Builder resources(List list) { + this.resources = _listAddAll(this.resources, list); + return this; + } + + /** + * Required - A list of resource names against which the privileges should be + * checked + *

+ * API name: {@code resources} + *

+ * Adds one or more values to resources. + */ + public final Builder resources(String value, String... values) { + this.resources = _listAdd(this.resources, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ApplicationPrivilegesCheck}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ApplicationPrivilegesCheck build() { + _checkSingleUse(); + + return new ApplicationPrivilegesCheck(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ApplicationPrivilegesCheck} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ApplicationPrivilegesCheck::setupApplicationPrivilegesCheckDeserializer); + + protected static void setupApplicationPrivilegesCheckDeserializer( + ObjectDeserializer op) { + + op.add(Builder::application, JsonpDeserializer.stringDeserializer(), "application"); + op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "privileges"); + op.add(Builder::resources, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "resources"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java new file mode 100644 index 000000000..882011697 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java @@ -0,0 +1,283 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.has_privileges; + +import co.elastic.clients.elasticsearch.security.IndexPrivilege; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: security.has_privileges.IndexPrivilegesCheck + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class IndexPrivilegesCheck implements JsonpSerializable { + private final List names; + + private final List privileges; + + @Nullable + private final Boolean allowRestrictedIndices; + + // --------------------------------------------------------------------------------------------- + + private IndexPrivilegesCheck(Builder builder) { + + this.names = ApiTypeHelper.unmodifiableRequired(builder.names, this, "names"); + this.privileges = ApiTypeHelper.unmodifiableRequired(builder.privileges, this, "privileges"); + this.allowRestrictedIndices = builder.allowRestrictedIndices; + + } + + public static IndexPrivilegesCheck of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - A list of indices. + *

+ * API name: {@code names} + */ + public final List names() { + return this.names; + } + + /** + * Required - A list of the privileges that you want to check for the specified + * indices. + *

+ * API name: {@code privileges} + */ + public final List privileges() { + return this.privileges; + } + + /** + * This needs to be set to true (default is false) if using wildcards or regexps + * for patterns that cover restricted indices. Implicitly, restricted indices do + * not match index patterns because restricted indices usually have limited + * privileges and including them in pattern tests would render most such tests + * false. If restricted indices are explicitly included in the names list, + * privileges will be checked against them regardless of the value of + * allow_restricted_indices. + *

+ * API name: {@code allow_restricted_indices} + */ + @Nullable + public final Boolean allowRestrictedIndices() { + return this.allowRestrictedIndices; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.names)) { + generator.writeKey("names"); + generator.writeStartArray(); + for (String item0 : this.names) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.privileges)) { + generator.writeKey("privileges"); + generator.writeStartArray(); + for (String item0 : this.privileges) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.allowRestrictedIndices != null) { + generator.writeKey("allow_restricted_indices"); + generator.write(this.allowRestrictedIndices); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IndexPrivilegesCheck}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List names; + + private List privileges; + + @Nullable + private Boolean allowRestrictedIndices; + + /** + * Required - A list of indices. + *

+ * API name: {@code names} + *

+ * Adds all elements of list to names. + */ + public final Builder names(List list) { + this.names = _listAddAll(this.names, list); + return this; + } + + /** + * Required - A list of indices. + *

+ * API name: {@code names} + *

+ * Adds one or more values to names. + */ + public final Builder names(String value, String... values) { + this.names = _listAdd(this.names, value, values); + return this; + } + + /** + * Required - A list of the privileges that you want to check for the specified + * indices. + *

+ * API name: {@code privileges} + *

+ * Adds all elements of list to privileges. + */ + public final Builder privileges(List list) { + this.privileges = _listAddAll(this.privileges, list); + return this; + } + + /** + * Required - A list of the privileges that you want to check for the specified + * indices. + *

+ * API name: {@code privileges} + *

+ * Adds one or more values to privileges. + */ + public final Builder privileges(String value, String... values) { + this.privileges = _listAdd(this.privileges, value, values); + return this; + } + + /** + * This needs to be set to true (default is false) if using wildcards or regexps + * for patterns that cover restricted indices. Implicitly, restricted indices do + * not match index patterns because restricted indices usually have limited + * privileges and including them in pattern tests would render most such tests + * false. If restricted indices are explicitly included in the names list, + * privileges will be checked against them regardless of the value of + * allow_restricted_indices. + *

+ * API name: {@code allow_restricted_indices} + */ + public final Builder allowRestrictedIndices(@Nullable Boolean value) { + this.allowRestrictedIndices = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IndexPrivilegesCheck}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IndexPrivilegesCheck build() { + _checkSingleUse(); + + return new IndexPrivilegesCheck(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IndexPrivilegesCheck} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, IndexPrivilegesCheck::setupIndexPrivilegesCheckDeserializer); + + protected static void setupIndexPrivilegesCheckDeserializer(ObjectDeserializer op) { + + op.add(Builder::names, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "names"); + op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "privileges"); + op.add(Builder::allowRestrictedIndices, JsonpDeserializer.booleanDeserializer(), "allow_restricted_indices"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java new file mode 100644 index 000000000..b2de6cd73 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.clear_cursor.Request + +/** + * Clears the SQL cursor + * + * @see API + * specification + */ +@JsonpDeserializable +public class ClearCursorRequest extends RequestBase implements JsonpSerializable { + private final String cursor; + + // --------------------------------------------------------------------------------------------- + + private ClearCursorRequest(Builder builder) { + + this.cursor = ApiTypeHelper.requireNonNull(builder.cursor, this, "cursor"); + + } + + public static ClearCursorRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Cursor to clear. + *

+ * API name: {@code cursor} + */ + public final String cursor() { + return this.cursor; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("cursor"); + generator.write(this.cursor); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ClearCursorRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String cursor; + + /** + * Required - Cursor to clear. + *

+ * API name: {@code cursor} + */ + public final Builder cursor(String value) { + this.cursor = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ClearCursorRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ClearCursorRequest build() { + _checkSingleUse(); + + return new ClearCursorRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ClearCursorRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ClearCursorRequest::setupClearCursorRequestDeserializer); + + protected static void setupClearCursorRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::cursor, JsonpDeserializer.stringDeserializer(), "cursor"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code sql.clear_cursor}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/sql.clear_cursor", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + return "/_sql/close"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, ClearCursorResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorResponse.java new file mode 100644 index 000000000..2abf6e9db --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorResponse.java @@ -0,0 +1,154 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.clear_cursor.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ClearCursorResponse implements JsonpSerializable { + private final boolean succeeded; + + // --------------------------------------------------------------------------------------------- + + private ClearCursorResponse(Builder builder) { + + this.succeeded = ApiTypeHelper.requireNonNull(builder.succeeded, this, "succeeded"); + + } + + public static ClearCursorResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code succeeded} + */ + public final boolean succeeded() { + return this.succeeded; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("succeeded"); + generator.write(this.succeeded); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ClearCursorResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Boolean succeeded; + + /** + * Required - API name: {@code succeeded} + */ + public final Builder succeeded(boolean value) { + this.succeeded = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ClearCursorResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ClearCursorResponse build() { + _checkSingleUse(); + + return new ClearCursorResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ClearCursorResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ClearCursorResponse::setupClearCursorResponseDeserializer); + + protected static void setupClearCursorResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::succeeded, JsonpDeserializer.booleanDeserializer(), "succeeded"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java new file mode 100644 index 000000000..0e295d155 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java @@ -0,0 +1,176 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.Column + +/** + * + * @see API specification + */ +@JsonpDeserializable +public class Column implements JsonpSerializable { + private final String name; + + private final String type; + + // --------------------------------------------------------------------------------------------- + + private Column(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); + + } + + public static Column of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * Required - API name: {@code type} + */ + public final String type() { + return this.type; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("name"); + generator.write(this.name); + + generator.writeKey("type"); + generator.write(this.type); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link Column}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String name; + + private String type; + + /** + * Required - API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * Required - API name: {@code type} + */ + public final Builder type(String value) { + this.type = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link Column}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public Column build() { + _checkSingleUse(); + + return new Column(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link Column} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Column::setupColumnDeserializer); + + protected static void setupColumnDeserializer(ObjectDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java new file mode 100644 index 000000000..2563c40b6 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java @@ -0,0 +1,184 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.delete_async.Request + +/** + * Deletes an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. + * + * @see API + * specification + */ + +public class DeleteAsyncRequest extends RequestBase { + private final String id; + + // --------------------------------------------------------------------------------------------- + + private DeleteAsyncRequest(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + + } + + public static DeleteAsyncRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteAsyncRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String id; + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteAsyncRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteAsyncRequest build() { + _checkSingleUse(); + + return new DeleteAsyncRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code sql.delete_async}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/sql.delete_async", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_sql"); + buf.append("/async"); + buf.append("/delete"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteAsyncResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncResponse.java new file mode 100644 index 000000000..1557c1dd8 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncResponse.java @@ -0,0 +1,107 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +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.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.delete_async.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteAsyncResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteAsyncResponse(Builder builder) { + super(builder); + + } + + public static DeleteAsyncResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteAsyncResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteAsyncResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteAsyncResponse build() { + _checkSingleUse(); + + return new DeleteAsyncResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteAsyncResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteAsyncResponse::setupDeleteAsyncResponseDeserializer); + + protected static void setupDeleteAsyncResponseDeserializer(ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java new file mode 100644 index 000000000..fed7550c2 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the sql namespace. + */ +public class ElasticsearchSqlAsyncClient extends ApiClient { + + public ElasticsearchSqlAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchSqlAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchSqlAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchSqlAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: sql.clear_cursor + + /** + * Clears the SQL cursor + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture clearCursor(ClearCursorRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ClearCursorRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Clears the SQL cursor + * + * @param fn + * a function that initializes a builder to create the + * {@link ClearCursorRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture clearCursor( + Function> fn) { + return clearCursor(fn.apply(new ClearCursorRequest.Builder()).build()); + } + + // ----- Endpoint: sql.delete_async + + /** + * Deletes an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteAsync(DeleteAsyncRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteAsyncRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Deletes an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteAsyncRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteAsync( + Function> fn) { + return deleteAsync(fn.apply(new DeleteAsyncRequest.Builder()).build()); + } + + // ----- Endpoint: sql.get_async + + /** + * Returns the current status and available results for an async SQL search or + * stored synchronous SQL search + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getAsync(GetAsyncRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetAsyncRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the current status and available results for an async SQL search or + * stored synchronous SQL search + * + * @param fn + * a function that initializes a builder to create the + * {@link GetAsyncRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getAsync( + Function> fn) { + return getAsync(fn.apply(new GetAsyncRequest.Builder()).build()); + } + + // ----- Endpoint: sql.get_async_status + + /** + * Returns the current status of an async SQL search or a stored synchronous SQL + * search + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getAsyncStatus(GetAsyncStatusRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetAsyncStatusRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the current status of an async SQL search or a stored synchronous SQL + * search + * + * @param fn + * a function that initializes a builder to create the + * {@link GetAsyncStatusRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getAsyncStatus( + Function> fn) { + return getAsyncStatus(fn.apply(new GetAsyncStatusRequest.Builder()).build()); + } + + // ----- Endpoint: sql.query + + /** + * Executes a SQL request + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture query(QueryRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) QueryRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Executes a SQL request + * + * @param fn + * a function that initializes a builder to create the + * {@link QueryRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture query( + Function> fn) { + return query(fn.apply(new QueryRequest.Builder()).build()); + } + + /** + * Executes a SQL request + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture query() { + return this.transport.performRequestAsync(new QueryRequest.Builder().build(), QueryRequest._ENDPOINT, + this.transportOptions); + } + + // ----- Endpoint: sql.translate + + /** + * Translates SQL into Elasticsearch queries + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture translate(TranslateRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) TranslateRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Translates SQL into Elasticsearch queries + * + * @param fn + * a function that initializes a builder to create the + * {@link TranslateRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture translate( + Function> fn) { + return translate(fn.apply(new TranslateRequest.Builder()).build()); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java new file mode 100644 index 000000000..cc52ab771 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java @@ -0,0 +1,289 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the sql namespace. + */ +public class ElasticsearchSqlClient extends ApiClient { + + public ElasticsearchSqlClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchSqlClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchSqlClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchSqlClient(this.transport, transportOptions); + } + + // ----- Endpoint: sql.clear_cursor + + /** + * Clears the SQL cursor + * + * @see Documentation + * on elastic.co + */ + + public ClearCursorResponse clearCursor(ClearCursorRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ClearCursorRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Clears the SQL cursor + * + * @param fn + * a function that initializes a builder to create the + * {@link ClearCursorRequest} + * @see Documentation + * on elastic.co + */ + + public final ClearCursorResponse clearCursor( + Function> fn) + throws IOException, ElasticsearchException { + return clearCursor(fn.apply(new ClearCursorRequest.Builder()).build()); + } + + // ----- Endpoint: sql.delete_async + + /** + * Deletes an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. + * + * @see Documentation + * on elastic.co + */ + + public DeleteAsyncResponse deleteAsync(DeleteAsyncRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteAsyncRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Deletes an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteAsyncRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteAsyncResponse deleteAsync( + Function> fn) + throws IOException, ElasticsearchException { + return deleteAsync(fn.apply(new DeleteAsyncRequest.Builder()).build()); + } + + // ----- Endpoint: sql.get_async + + /** + * Returns the current status and available results for an async SQL search or + * stored synchronous SQL search + * + * @see Documentation + * on elastic.co + */ + + public GetAsyncResponse getAsync(GetAsyncRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetAsyncRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the current status and available results for an async SQL search or + * stored synchronous SQL search + * + * @param fn + * a function that initializes a builder to create the + * {@link GetAsyncRequest} + * @see Documentation + * on elastic.co + */ + + public final GetAsyncResponse getAsync(Function> fn) + throws IOException, ElasticsearchException { + return getAsync(fn.apply(new GetAsyncRequest.Builder()).build()); + } + + // ----- Endpoint: sql.get_async_status + + /** + * Returns the current status of an async SQL search or a stored synchronous SQL + * search + * + * @see Documentation + * on elastic.co + */ + + public GetAsyncStatusResponse getAsyncStatus(GetAsyncStatusRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetAsyncStatusRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the current status of an async SQL search or a stored synchronous SQL + * search + * + * @param fn + * a function that initializes a builder to create the + * {@link GetAsyncStatusRequest} + * @see Documentation + * on elastic.co + */ + + public final GetAsyncStatusResponse getAsyncStatus( + Function> fn) + throws IOException, ElasticsearchException { + return getAsyncStatus(fn.apply(new GetAsyncStatusRequest.Builder()).build()); + } + + // ----- Endpoint: sql.query + + /** + * Executes a SQL request + * + * @see Documentation + * on elastic.co + */ + + public QueryResponse query(QueryRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) QueryRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Executes a SQL request + * + * @param fn + * a function that initializes a builder to create the + * {@link QueryRequest} + * @see Documentation + * on elastic.co + */ + + public final QueryResponse query(Function> fn) + throws IOException, ElasticsearchException { + return query(fn.apply(new QueryRequest.Builder()).build()); + } + + /** + * Executes a SQL request + * + * @see Documentation + * on elastic.co + */ + + public QueryResponse query() throws IOException, ElasticsearchException { + return this.transport.performRequest(new QueryRequest.Builder().build(), QueryRequest._ENDPOINT, + this.transportOptions); + } + + // ----- Endpoint: sql.translate + + /** + * Translates SQL into Elasticsearch queries + * + * @see Documentation + * on elastic.co + */ + + public TranslateResponse translate(TranslateRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) TranslateRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Translates SQL into Elasticsearch queries + * + * @param fn + * a function that initializes a builder to create the + * {@link TranslateRequest} + * @see Documentation + * on elastic.co + */ + + public final TranslateResponse translate(Function> fn) + throws IOException, ElasticsearchException { + return translate(fn.apply(new TranslateRequest.Builder()).build()); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java new file mode 100644 index 000000000..7f5ed8074 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java @@ -0,0 +1,330 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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 java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.get_async.Request + +/** + * Returns the current status and available results for an async SQL search or + * stored synchronous SQL search + * + * @see API + * specification + */ + +public class GetAsyncRequest extends RequestBase { + @Nullable + private final String delimiter; + + @Nullable + private final String format; + + private final String id; + + @Nullable + private final Time keepAlive; + + @Nullable + private final Time waitForCompletionTimeout; + + // --------------------------------------------------------------------------------------------- + + private GetAsyncRequest(Builder builder) { + + this.delimiter = builder.delimiter; + this.format = builder.format; + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.keepAlive = builder.keepAlive; + this.waitForCompletionTimeout = builder.waitForCompletionTimeout; + + } + + public static GetAsyncRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Separator for CSV results. The API only supports this parameter for CSV + * responses. + *

+ * API name: {@code delimiter} + */ + @Nullable + public final String delimiter() { + return this.delimiter; + } + + /** + * Format for the response. You must specify a format using this parameter or + * the Accept HTTP header. If you specify both, the API uses this parameter. + *

+ * API name: {@code format} + */ + @Nullable + public final String format() { + return this.format; + } + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Retention period for the search and its results. Defaults to the + * keep_alive period for the original SQL search. + *

+ * API name: {@code keep_alive} + */ + @Nullable + public final Time keepAlive() { + return this.keepAlive; + } + + /** + * Period to wait for complete results. Defaults to no timeout, meaning the + * request waits for complete search results. + *

+ * API name: {@code wait_for_completion_timeout} + */ + @Nullable + public final Time waitForCompletionTimeout() { + return this.waitForCompletionTimeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetAsyncRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String delimiter; + + @Nullable + private String format; + + private String id; + + @Nullable + private Time keepAlive; + + @Nullable + private Time waitForCompletionTimeout; + + /** + * Separator for CSV results. The API only supports this parameter for CSV + * responses. + *

+ * API name: {@code delimiter} + */ + public final Builder delimiter(@Nullable String value) { + this.delimiter = value; + return this; + } + + /** + * Format for the response. You must specify a format using this parameter or + * the Accept HTTP header. If you specify both, the API uses this parameter. + *

+ * API name: {@code format} + */ + public final Builder format(@Nullable String value) { + this.format = value; + return this; + } + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Retention period for the search and its results. Defaults to the + * keep_alive period for the original SQL search. + *

+ * API name: {@code keep_alive} + */ + public final Builder keepAlive(@Nullable Time value) { + this.keepAlive = value; + return this; + } + + /** + * Retention period for the search and its results. Defaults to the + * keep_alive period for the original SQL search. + *

+ * API name: {@code keep_alive} + */ + public final Builder keepAlive(Function> fn) { + return this.keepAlive(fn.apply(new Time.Builder()).build()); + } + + /** + * Period to wait for complete results. Defaults to no timeout, meaning the + * request waits for complete search results. + *

+ * API name: {@code wait_for_completion_timeout} + */ + public final Builder waitForCompletionTimeout(@Nullable Time value) { + this.waitForCompletionTimeout = value; + return this; + } + + /** + * Period to wait for complete results. Defaults to no timeout, meaning the + * request waits for complete search results. + *

+ * API name: {@code wait_for_completion_timeout} + */ + public final Builder waitForCompletionTimeout(Function> fn) { + return this.waitForCompletionTimeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetAsyncRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetAsyncRequest build() { + _checkSingleUse(); + + return new GetAsyncRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code sql.get_async}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/sql.get_async", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_sql"); + buf.append("/async"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.delimiter != null) { + params.put("delimiter", request.delimiter); + } + if (request.format != null) { + params.put("format", request.format); + } + if (request.keepAlive != null) { + params.put("keep_alive", request.keepAlive._toJsonString()); + } + if (request.waitForCompletionTimeout != null) { + params.put("wait_for_completion_timeout", request.waitForCompletionTimeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, GetAsyncResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncResponse.java new file mode 100644 index 000000000..808307d36 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncResponse.java @@ -0,0 +1,395 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.get_async.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetAsyncResponse implements JsonpSerializable { + private final String id; + + private final boolean isRunning; + + private final boolean isPartial; + + private final List columns; + + @Nullable + private final String cursor; + + private final List> rows; + + // --------------------------------------------------------------------------------------------- + + private GetAsyncResponse(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.isRunning = ApiTypeHelper.requireNonNull(builder.isRunning, this, "isRunning"); + this.isPartial = ApiTypeHelper.requireNonNull(builder.isPartial, this, "isPartial"); + this.columns = ApiTypeHelper.unmodifiable(builder.columns); + this.cursor = builder.cursor; + this.rows = ApiTypeHelper.unmodifiableRequired(builder.rows, this, "rows"); + + } + + public static GetAsyncResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Identifier for the search. This value is only returned for async + * and saved synchronous searches. For CSV, TSV, and TXT responses, this value + * is returned in the Async-ID HTTP header. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Required - If true, the search is still running. If false, the + * search has finished. This value is only returned for async and saved + * synchronous searches. For CSV, TSV, and TXT responses, this value is returned + * in the Async-partial HTTP header. + *

+ * API name: {@code is_running} + */ + public final boolean isRunning() { + return this.isRunning; + } + + /** + * Required - If true, the response does not contain complete + * search results. If is_partial is true and + * is_running is true, the search is still running. If + * is_partial is true but is_running is + * false, the results are partial due to a failure or timeout. This + * value is only returned for async and saved synchronous searches. For CSV, + * TSV, and TXT responses, this value is returned in the + * Async-partial HTTP header. + *

+ * API name: {@code is_partial} + */ + public final boolean isPartial() { + return this.isPartial; + } + + /** + * Column headings for the search results. Each object is a column. + *

+ * API name: {@code columns} + */ + public final List columns() { + return this.columns; + } + + /** + * Cursor for the next set of paginated results. For CSV, TSV, and TXT + * responses, this value is returned in the Cursor HTTP header. + *

+ * API name: {@code cursor} + */ + @Nullable + public final String cursor() { + return this.cursor; + } + + /** + * Required - Values for the search results. + *

+ * API name: {@code rows} + */ + public final List> rows() { + return this.rows; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("id"); + generator.write(this.id); + + generator.writeKey("is_running"); + generator.write(this.isRunning); + + generator.writeKey("is_partial"); + generator.write(this.isPartial); + + if (ApiTypeHelper.isDefined(this.columns)) { + generator.writeKey("columns"); + generator.writeStartArray(); + for (Column item0 : this.columns) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.cursor != null) { + generator.writeKey("cursor"); + generator.write(this.cursor); + + } + if (ApiTypeHelper.isDefined(this.rows)) { + generator.writeKey("rows"); + generator.writeStartArray(); + for (List item0 : this.rows) { + generator.writeStartArray(); + if (item0 != null) { + for (JsonData item1 : item0) { + item1.serialize(generator, mapper); + + } + } + generator.writeEnd(); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetAsyncResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String id; + + private Boolean isRunning; + + private Boolean isPartial; + + @Nullable + private List columns; + + @Nullable + private String cursor; + + private List> rows; + + /** + * Required - Identifier for the search. This value is only returned for async + * and saved synchronous searches. For CSV, TSV, and TXT responses, this value + * is returned in the Async-ID HTTP header. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - If true, the search is still running. If false, the + * search has finished. This value is only returned for async and saved + * synchronous searches. For CSV, TSV, and TXT responses, this value is returned + * in the Async-partial HTTP header. + *

+ * API name: {@code is_running} + */ + public final Builder isRunning(boolean value) { + this.isRunning = value; + return this; + } + + /** + * Required - If true, the response does not contain complete + * search results. If is_partial is true and + * is_running is true, the search is still running. If + * is_partial is true but is_running is + * false, the results are partial due to a failure or timeout. This + * value is only returned for async and saved synchronous searches. For CSV, + * TSV, and TXT responses, this value is returned in the + * Async-partial HTTP header. + *

+ * API name: {@code is_partial} + */ + public final Builder isPartial(boolean value) { + this.isPartial = value; + return this; + } + + /** + * Column headings for the search results. Each object is a column. + *

+ * API name: {@code columns} + *

+ * Adds all elements of list to columns. + */ + public final Builder columns(List list) { + this.columns = _listAddAll(this.columns, list); + return this; + } + + /** + * Column headings for the search results. Each object is a column. + *

+ * API name: {@code columns} + *

+ * Adds one or more values to columns. + */ + public final Builder columns(Column value, Column... values) { + this.columns = _listAdd(this.columns, value, values); + return this; + } + + /** + * Column headings for the search results. Each object is a column. + *

+ * API name: {@code columns} + *

+ * Adds a value to columns using a builder lambda. + */ + public final Builder columns(Function> fn) { + return columns(fn.apply(new Column.Builder()).build()); + } + + /** + * Cursor for the next set of paginated results. For CSV, TSV, and TXT + * responses, this value is returned in the Cursor HTTP header. + *

+ * API name: {@code cursor} + */ + public final Builder cursor(@Nullable String value) { + this.cursor = value; + return this; + } + + /** + * Required - Values for the search results. + *

+ * API name: {@code rows} + *

+ * Adds all elements of list to rows. + */ + public final Builder rows(List> list) { + this.rows = _listAddAll(this.rows, list); + return this; + } + + /** + * Required - Values for the search results. + *

+ * API name: {@code rows} + *

+ * Adds one or more values to rows. + */ + public final Builder rows(List value, List... values) { + this.rows = _listAdd(this.rows, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetAsyncResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetAsyncResponse build() { + _checkSingleUse(); + + return new GetAsyncResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetAsyncResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + GetAsyncResponse::setupGetAsyncResponseDeserializer); + + protected static void setupGetAsyncResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::isRunning, JsonpDeserializer.booleanDeserializer(), "is_running"); + op.add(Builder::isPartial, JsonpDeserializer.booleanDeserializer(), "is_partial"); + op.add(Builder::columns, JsonpDeserializer.arrayDeserializer(Column._DESERIALIZER), "columns"); + op.add(Builder::cursor, JsonpDeserializer.stringDeserializer(), "cursor"); + op.add(Builder::rows, + JsonpDeserializer.arrayDeserializer(JsonpDeserializer.arrayDeserializer(JsonData._DESERIALIZER)), + "rows"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java new file mode 100644 index 000000000..f8a91c105 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java @@ -0,0 +1,184 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.get_async_status.Request + +/** + * Returns the current status of an async SQL search or a stored synchronous SQL + * search + * + * @see API + * specification + */ + +public class GetAsyncStatusRequest extends RequestBase { + private final String id; + + // --------------------------------------------------------------------------------------------- + + private GetAsyncStatusRequest(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + + } + + public static GetAsyncStatusRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetAsyncStatusRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String id; + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetAsyncStatusRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetAsyncStatusRequest build() { + _checkSingleUse(); + + return new GetAsyncStatusRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code sql.get_async_status}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/sql.get_async_status", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_sql"); + buf.append("/async"); + buf.append("/status"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.id, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _id = 1 << 0; + + int propsSet = 0; + + propsSet |= _id; + + if (propsSet == (_id)) { + params.put("id", request.id); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetAsyncStatusResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusResponse.java new file mode 100644 index 000000000..5a569cb8d --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusResponse.java @@ -0,0 +1,328 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.get_async_status.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetAsyncStatusResponse implements JsonpSerializable { + private final String id; + + private final boolean isRunning; + + private final boolean isPartial; + + private final long startTimeInMillis; + + private final long expirationTimeInMillis; + + @Nullable + private final Number completionStatus; + + // --------------------------------------------------------------------------------------------- + + private GetAsyncStatusResponse(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.isRunning = ApiTypeHelper.requireNonNull(builder.isRunning, this, "isRunning"); + this.isPartial = ApiTypeHelper.requireNonNull(builder.isPartial, this, "isPartial"); + this.startTimeInMillis = ApiTypeHelper.requireNonNull(builder.startTimeInMillis, this, "startTimeInMillis"); + this.expirationTimeInMillis = ApiTypeHelper.requireNonNull(builder.expirationTimeInMillis, this, + "expirationTimeInMillis"); + this.completionStatus = builder.completionStatus; + + } + + public static GetAsyncStatusResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Required - If true, the search is still running. If + * false, the search has finished. + *

+ * API name: {@code is_running} + */ + public final boolean isRunning() { + return this.isRunning; + } + + /** + * Required - If true, the response does not contain complete + * search results. If is_partial is true and + * is_running is true, the search is still running. If + * is_partial is true but is_running is + * false, the results are partial due to a failure or timeout. + *

+ * API name: {@code is_partial} + */ + public final boolean isPartial() { + return this.isPartial; + } + + /** + * Required - Timestamp, in milliseconds since the Unix epoch, when the search + * started. The API only returns this property for running searches. + *

+ * API name: {@code start_time_in_millis} + */ + public final long startTimeInMillis() { + return this.startTimeInMillis; + } + + /** + * Required - Timestamp, in milliseconds since the Unix epoch, when + * Elasticsearch will delete the search and its results, even if the search is + * still running. + *

+ * API name: {@code expiration_time_in_millis} + */ + public final long expirationTimeInMillis() { + return this.expirationTimeInMillis; + } + + /** + * HTTP status code for the search. The API only returns this property for + * completed searches. + *

+ * API name: {@code completion_status} + */ + @Nullable + public final Number completionStatus() { + return this.completionStatus; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("id"); + generator.write(this.id); + + generator.writeKey("is_running"); + generator.write(this.isRunning); + + generator.writeKey("is_partial"); + generator.write(this.isPartial); + + generator.writeKey("start_time_in_millis"); + generator.write(this.startTimeInMillis); + + generator.writeKey("expiration_time_in_millis"); + generator.write(this.expirationTimeInMillis); + + if (this.completionStatus != null) { + generator.writeKey("completion_status"); + generator.write(this.completionStatus.doubleValue()); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetAsyncStatusResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String id; + + private Boolean isRunning; + + private Boolean isPartial; + + private Long startTimeInMillis; + + private Long expirationTimeInMillis; + + @Nullable + private Number completionStatus; + + /** + * Required - Identifier for the search. + *

+ * API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - If true, the search is still running. If + * false, the search has finished. + *

+ * API name: {@code is_running} + */ + public final Builder isRunning(boolean value) { + this.isRunning = value; + return this; + } + + /** + * Required - If true, the response does not contain complete + * search results. If is_partial is true and + * is_running is true, the search is still running. If + * is_partial is true but is_running is + * false, the results are partial due to a failure or timeout. + *

+ * API name: {@code is_partial} + */ + public final Builder isPartial(boolean value) { + this.isPartial = value; + return this; + } + + /** + * Required - Timestamp, in milliseconds since the Unix epoch, when the search + * started. The API only returns this property for running searches. + *

+ * API name: {@code start_time_in_millis} + */ + public final Builder startTimeInMillis(long value) { + this.startTimeInMillis = value; + return this; + } + + /** + * Required - Timestamp, in milliseconds since the Unix epoch, when + * Elasticsearch will delete the search and its results, even if the search is + * still running. + *

+ * API name: {@code expiration_time_in_millis} + */ + public final Builder expirationTimeInMillis(long value) { + this.expirationTimeInMillis = value; + return this; + } + + /** + * HTTP status code for the search. The API only returns this property for + * completed searches. + *

+ * API name: {@code completion_status} + */ + public final Builder completionStatus(@Nullable Number value) { + this.completionStatus = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetAsyncStatusResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetAsyncStatusResponse build() { + _checkSingleUse(); + + return new GetAsyncStatusResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetAsyncStatusResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetAsyncStatusResponse::setupGetAsyncStatusResponseDeserializer); + + protected static void setupGetAsyncStatusResponseDeserializer( + ObjectDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::isRunning, JsonpDeserializer.booleanDeserializer(), "is_running"); + op.add(Builder::isPartial, JsonpDeserializer.booleanDeserializer(), "is_partial"); + op.add(Builder::startTimeInMillis, JsonpDeserializer.longDeserializer(), "start_time_in_millis"); + op.add(Builder::expirationTimeInMillis, JsonpDeserializer.longDeserializer(), "expiration_time_in_millis"); + op.add(Builder::completionStatus, JsonpDeserializer.numberDeserializer(), "completion_status"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java new file mode 100644 index 000000000..3b8400706 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java @@ -0,0 +1,846 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch._types.mapping.RuntimeField; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +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; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.query.Request + +/** + * Executes a SQL request + * + * @see API + * specification + */ +@JsonpDeserializable +public class QueryRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final String catalog; + + @Nullable + private final Boolean columnar; + + @Nullable + private final String cursor; + + @Nullable + private final Integer fetchSize; + + @Nullable + private final Boolean fieldMultiValueLeniency; + + @Nullable + private final Query filter; + + @Nullable + private final String format; + + @Nullable + private final Boolean indexUsingFrozen; + + @Nullable + private final Time keepAlive; + + @Nullable + private final Boolean keepOnCompletion; + + @Nullable + private final Time pageTimeout; + + private final Map params; + + @Nullable + private final String query; + + @Nullable + private final Time requestTimeout; + + private final Map runtimeMappings; + + @Nullable + private final String timeZone; + + @Nullable + private final Time waitForCompletionTimeout; + + // --------------------------------------------------------------------------------------------- + + private QueryRequest(Builder builder) { + + this.catalog = builder.catalog; + this.columnar = builder.columnar; + this.cursor = builder.cursor; + this.fetchSize = builder.fetchSize; + this.fieldMultiValueLeniency = builder.fieldMultiValueLeniency; + this.filter = builder.filter; + this.format = builder.format; + this.indexUsingFrozen = builder.indexUsingFrozen; + this.keepAlive = builder.keepAlive; + this.keepOnCompletion = builder.keepOnCompletion; + this.pageTimeout = builder.pageTimeout; + this.params = ApiTypeHelper.unmodifiable(builder.params); + this.query = builder.query; + this.requestTimeout = builder.requestTimeout; + this.runtimeMappings = ApiTypeHelper.unmodifiable(builder.runtimeMappings); + this.timeZone = builder.timeZone; + this.waitForCompletionTimeout = builder.waitForCompletionTimeout; + + } + + public static QueryRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Default catalog (cluster) for queries. If unspecified, the queries execute on + * the data in the local cluster only. + *

+ * API name: {@code catalog} + */ + @Nullable + public final String catalog() { + return this.catalog; + } + + /** + * If true, the results in a columnar fashion: one row represents all the values + * of a certain column from the current page of results. + *

+ * API name: {@code columnar} + */ + @Nullable + public final Boolean columnar() { + return this.columnar; + } + + /** + * Cursor used to retrieve a set of paginated results. If you specify a cursor, + * the API only uses the columnar and time_zone + * request body parameters. It ignores other request body parameters. + *

+ * API name: {@code cursor} + */ + @Nullable + public final String cursor() { + return this.cursor; + } + + /** + * The maximum number of rows (or entries) to return in one response + *

+ * API name: {@code fetch_size} + */ + @Nullable + public final Integer fetchSize() { + return this.fetchSize; + } + + /** + * 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 + public final Boolean fieldMultiValueLeniency() { + return this.fieldMultiValueLeniency; + } + + /** + * Elasticsearch query DSL for additional filtering. + *

+ * API name: {@code filter} + */ + @Nullable + public final Query filter() { + return this.filter; + } + + /** + * Format for the response. + *

+ * API name: {@code format} + */ + @Nullable + public final String format() { + return this.format; + } + + /** + * If true, the search can run on frozen indices. Defaults to false. + *

+ * API name: {@code index_using_frozen} + */ + @Nullable + public final Boolean indexUsingFrozen() { + return this.indexUsingFrozen; + } + + /** + * Retention period for an async or saved synchronous search. + *

+ * API name: {@code keep_alive} + */ + @Nullable + public final Time keepAlive() { + return this.keepAlive; + } + + /** + * If true, Elasticsearch stores synchronous searches if you also specify the + * wait_for_completion_timeout parameter. If false, Elasticsearch only stores + * async searches that don’t finish before the wait_for_completion_timeout. + *

+ * API name: {@code keep_on_completion} + */ + @Nullable + public final Boolean keepOnCompletion() { + return this.keepOnCompletion; + } + + /** + * The timeout before a pagination request fails. + *

+ * API name: {@code page_timeout} + */ + @Nullable + public final Time pageTimeout() { + return this.pageTimeout; + } + + /** + * Values for parameters in the query. + *

+ * API name: {@code params} + */ + public final Map params() { + return this.params; + } + + /** + * SQL query to run. + *

+ * API name: {@code query} + */ + @Nullable + public final String query() { + return this.query; + } + + /** + * The timeout before the request fails. + *

+ * API name: {@code request_timeout} + */ + @Nullable + public final Time requestTimeout() { + return this.requestTimeout; + } + + /** + * 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 final Map runtimeMappings() { + return this.runtimeMappings; + } + + /** + * ISO-8601 time zone ID for the search. + *

+ * API name: {@code time_zone} + */ + @Nullable + public final String timeZone() { + return this.timeZone; + } + + /** + * Period to wait for complete results. Defaults to no timeout, meaning the + * request waits for complete search results. If the search doesn’t finish + * within this period, the search becomes async. + *

+ * API name: {@code wait_for_completion_timeout} + */ + @Nullable + public final Time waitForCompletionTimeout() { + return this.waitForCompletionTimeout; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.catalog != null) { + generator.writeKey("catalog"); + generator.write(this.catalog); + + } + if (this.columnar != null) { + generator.writeKey("columnar"); + generator.write(this.columnar); + + } + if (this.cursor != null) { + generator.writeKey("cursor"); + generator.write(this.cursor); + + } + if (this.fetchSize != null) { + generator.writeKey("fetch_size"); + generator.write(this.fetchSize); + + } + if (this.fieldMultiValueLeniency != null) { + generator.writeKey("field_multi_value_leniency"); + generator.write(this.fieldMultiValueLeniency); + + } + if (this.filter != null) { + generator.writeKey("filter"); + this.filter.serialize(generator, mapper); + + } + if (this.indexUsingFrozen != null) { + generator.writeKey("index_using_frozen"); + generator.write(this.indexUsingFrozen); + + } + if (this.keepAlive != null) { + generator.writeKey("keep_alive"); + this.keepAlive.serialize(generator, mapper); + + } + if (this.keepOnCompletion != null) { + generator.writeKey("keep_on_completion"); + generator.write(this.keepOnCompletion); + + } + if (this.pageTimeout != null) { + generator.writeKey("page_timeout"); + this.pageTimeout.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.params)) { + generator.writeKey("params"); + generator.writeStartObject(); + for (Map.Entry item0 : this.params.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.query != null) { + generator.writeKey("query"); + generator.write(this.query); + + } + if (this.requestTimeout != null) { + generator.writeKey("request_timeout"); + this.requestTimeout.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.runtimeMappings)) { + generator.writeKey("runtime_mappings"); + generator.writeStartObject(); + for (Map.Entry item0 : this.runtimeMappings.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.timeZone != null) { + generator.writeKey("time_zone"); + generator.write(this.timeZone); + + } + if (this.waitForCompletionTimeout != null) { + generator.writeKey("wait_for_completion_timeout"); + this.waitForCompletionTimeout.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link QueryRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String catalog; + + @Nullable + private Boolean columnar; + + @Nullable + private String cursor; + + @Nullable + private Integer fetchSize; + + @Nullable + private Boolean fieldMultiValueLeniency; + + @Nullable + private Query filter; + + @Nullable + private String format; + + @Nullable + private Boolean indexUsingFrozen; + + @Nullable + private Time keepAlive; + + @Nullable + private Boolean keepOnCompletion; + + @Nullable + private Time pageTimeout; + + @Nullable + private Map params; + + @Nullable + private String query; + + @Nullable + private Time requestTimeout; + + @Nullable + private Map runtimeMappings; + + @Nullable + private String timeZone; + + @Nullable + private Time waitForCompletionTimeout; + + /** + * Default catalog (cluster) for queries. If unspecified, the queries execute on + * the data in the local cluster only. + *

+ * API name: {@code catalog} + */ + public final Builder catalog(@Nullable String value) { + this.catalog = value; + return this; + } + + /** + * If true, the results in a columnar fashion: one row represents all the values + * of a certain column from the current page of results. + *

+ * API name: {@code columnar} + */ + public final Builder columnar(@Nullable Boolean value) { + this.columnar = value; + return this; + } + + /** + * Cursor used to retrieve a set of paginated results. If you specify a cursor, + * the API only uses the columnar and time_zone + * request body parameters. It ignores other request body parameters. + *

+ * API name: {@code cursor} + */ + public final Builder cursor(@Nullable String value) { + this.cursor = value; + return this; + } + + /** + * The maximum number of rows (or entries) to return in one response + *

+ * API name: {@code fetch_size} + */ + public final Builder fetchSize(@Nullable Integer value) { + this.fetchSize = value; + return this; + } + + /** + * 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 final Builder fieldMultiValueLeniency(@Nullable Boolean value) { + this.fieldMultiValueLeniency = value; + return this; + } + + /** + * Elasticsearch query DSL for additional filtering. + *

+ * API name: {@code filter} + */ + public final Builder filter(@Nullable Query value) { + this.filter = value; + return this; + } + + /** + * Elasticsearch query DSL for additional filtering. + *

+ * API name: {@code filter} + */ + public final Builder filter(Function> fn) { + return this.filter(fn.apply(new Query.Builder()).build()); + } + + /** + * Format for the response. + *

+ * API name: {@code format} + */ + public final Builder format(@Nullable String value) { + this.format = value; + return this; + } + + /** + * If true, the search can run on frozen indices. Defaults to false. + *

+ * API name: {@code index_using_frozen} + */ + public final Builder indexUsingFrozen(@Nullable Boolean value) { + this.indexUsingFrozen = value; + return this; + } + + /** + * Retention period for an async or saved synchronous search. + *

+ * API name: {@code keep_alive} + */ + public final Builder keepAlive(@Nullable Time value) { + this.keepAlive = value; + return this; + } + + /** + * Retention period for an async or saved synchronous search. + *

+ * API name: {@code keep_alive} + */ + public final Builder keepAlive(Function> fn) { + return this.keepAlive(fn.apply(new Time.Builder()).build()); + } + + /** + * If true, Elasticsearch stores synchronous searches if you also specify the + * wait_for_completion_timeout parameter. If false, Elasticsearch only stores + * async searches that don’t finish before the wait_for_completion_timeout. + *

+ * API name: {@code keep_on_completion} + */ + public final Builder keepOnCompletion(@Nullable Boolean value) { + this.keepOnCompletion = value; + return this; + } + + /** + * The timeout before a pagination request fails. + *

+ * API name: {@code page_timeout} + */ + public final Builder pageTimeout(@Nullable Time value) { + this.pageTimeout = value; + return this; + } + + /** + * The timeout before a pagination request fails. + *

+ * API name: {@code page_timeout} + */ + public final Builder pageTimeout(Function> fn) { + return this.pageTimeout(fn.apply(new Time.Builder()).build()); + } + + /** + * Values for parameters in the query. + *

+ * API name: {@code params} + *

+ * Adds all entries of map to params. + */ + public final Builder params(Map map) { + this.params = _mapPutAll(this.params, map); + return this; + } + + /** + * Values for parameters in the query. + *

+ * API name: {@code params} + *

+ * Adds an entry to params. + */ + public final Builder params(String key, JsonData value) { + this.params = _mapPut(this.params, key, value); + return this; + } + + /** + * SQL query to run. + *

+ * API name: {@code query} + */ + public final Builder query(@Nullable String value) { + this.query = value; + return this; + } + + /** + * The timeout before the request fails. + *

+ * API name: {@code request_timeout} + */ + public final Builder requestTimeout(@Nullable Time value) { + this.requestTimeout = value; + return this; + } + + /** + * The timeout before the request fails. + *

+ * API name: {@code request_timeout} + */ + public final Builder requestTimeout(Function> fn) { + return this.requestTimeout(fn.apply(new Time.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} + *

+ * Adds all entries of map to runtimeMappings. + */ + public final Builder runtimeMappings(Map map) { + this.runtimeMappings = _mapPutAll(this.runtimeMappings, map); + return this; + } + + /** + * 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} + *

+ * Adds an entry to runtimeMappings. + */ + public final Builder runtimeMappings(String key, RuntimeField value) { + this.runtimeMappings = _mapPut(this.runtimeMappings, key, value); + return this; + } + + /** + * 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} + *

+ * Adds an entry to runtimeMappings using a builder lambda. + */ + public final Builder runtimeMappings(String key, + Function> fn) { + return runtimeMappings(key, fn.apply(new RuntimeField.Builder()).build()); + } + + /** + * ISO-8601 time zone ID for the search. + *

+ * API name: {@code time_zone} + */ + public final Builder timeZone(@Nullable String value) { + this.timeZone = value; + return this; + } + + /** + * Period to wait for complete results. Defaults to no timeout, meaning the + * request waits for complete search results. If the search doesn’t finish + * within this period, the search becomes async. + *

+ * API name: {@code wait_for_completion_timeout} + */ + public final Builder waitForCompletionTimeout(@Nullable Time value) { + this.waitForCompletionTimeout = value; + return this; + } + + /** + * Period to wait for complete results. Defaults to no timeout, meaning the + * request waits for complete search results. If the search doesn’t finish + * within this period, the search becomes async. + *

+ * API name: {@code wait_for_completion_timeout} + */ + public final Builder waitForCompletionTimeout(Function> fn) { + return this.waitForCompletionTimeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link QueryRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public QueryRequest build() { + _checkSingleUse(); + + return new QueryRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link QueryRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + QueryRequest::setupQueryRequestDeserializer); + + protected static void setupQueryRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::catalog, JsonpDeserializer.stringDeserializer(), "catalog"); + op.add(Builder::columnar, JsonpDeserializer.booleanDeserializer(), "columnar"); + op.add(Builder::cursor, JsonpDeserializer.stringDeserializer(), "cursor"); + op.add(Builder::fetchSize, JsonpDeserializer.integerDeserializer(), "fetch_size"); + op.add(Builder::fieldMultiValueLeniency, JsonpDeserializer.booleanDeserializer(), "field_multi_value_leniency"); + op.add(Builder::filter, Query._DESERIALIZER, "filter"); + op.add(Builder::indexUsingFrozen, JsonpDeserializer.booleanDeserializer(), "index_using_frozen"); + op.add(Builder::keepAlive, Time._DESERIALIZER, "keep_alive"); + op.add(Builder::keepOnCompletion, JsonpDeserializer.booleanDeserializer(), "keep_on_completion"); + op.add(Builder::pageTimeout, Time._DESERIALIZER, "page_timeout"); + op.add(Builder::params, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "params"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + op.add(Builder::requestTimeout, Time._DESERIALIZER, "request_timeout"); + op.add(Builder::runtimeMappings, JsonpDeserializer.stringMapDeserializer(RuntimeField._DESERIALIZER), + "runtime_mappings"); + op.add(Builder::timeZone, JsonpDeserializer.stringDeserializer(), "time_zone"); + op.add(Builder::waitForCompletionTimeout, Time._DESERIALIZER, "wait_for_completion_timeout"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code sql.query}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/sql.query", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + return "/_sql"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.format != null) { + params.put("format", request.format); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, QueryResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/QueryResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/QueryResponse.java new file mode 100644 index 000000000..dd8121407 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/QueryResponse.java @@ -0,0 +1,408 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.query.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class QueryResponse implements JsonpSerializable { + @Nullable + private final String id; + + @Nullable + private final Boolean isRunning; + + @Nullable + private final Boolean isPartial; + + private final List columns; + + @Nullable + private final String cursor; + + private final List> rows; + + // --------------------------------------------------------------------------------------------- + + private QueryResponse(Builder builder) { + + this.id = builder.id; + this.isRunning = builder.isRunning; + this.isPartial = builder.isPartial; + this.columns = ApiTypeHelper.unmodifiable(builder.columns); + this.cursor = builder.cursor; + this.rows = ApiTypeHelper.unmodifiableRequired(builder.rows, this, "rows"); + + } + + public static QueryResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Identifier for the search. This value is only returned for async and saved + * synchronous searches. For CSV, TSV, and TXT responses, this value is returned + * in the Async-ID HTTP header. + *

+ * API name: {@code id} + */ + @Nullable + public final String id() { + return this.id; + } + + /** + * If true, the search is still running. If false, the search has + * finished. This value is only returned for async and saved synchronous + * searches. For CSV, TSV, and TXT responses, this value is returned in the + * Async-partial HTTP header. + *

+ * API name: {@code is_running} + */ + @Nullable + public final Boolean isRunning() { + return this.isRunning; + } + + /** + * If true, the response does not contain complete search results. + * If is_partial is true and is_running + * is true, the search is still running. If is_partial + * is true but is_running is false, the + * results are partial due to a failure or timeout. This value is only returned + * for async and saved synchronous searches. For CSV, TSV, and TXT responses, + * this value is returned in the Async-partial HTTP header. + *

+ * API name: {@code is_partial} + */ + @Nullable + public final Boolean isPartial() { + return this.isPartial; + } + + /** + * Column headings for the search results. Each object is a column. + *

+ * API name: {@code columns} + */ + public final List columns() { + return this.columns; + } + + /** + * Cursor for the next set of paginated results. For CSV, TSV, and TXT + * responses, this value is returned in the Cursor HTTP header. + *

+ * API name: {@code cursor} + */ + @Nullable + public final String cursor() { + return this.cursor; + } + + /** + * Required - Values for the search results. + *

+ * API name: {@code rows} + */ + public final List> rows() { + return this.rows; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.id != null) { + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.isRunning != null) { + generator.writeKey("is_running"); + generator.write(this.isRunning); + + } + if (this.isPartial != null) { + generator.writeKey("is_partial"); + generator.write(this.isPartial); + + } + if (ApiTypeHelper.isDefined(this.columns)) { + generator.writeKey("columns"); + generator.writeStartArray(); + for (Column item0 : this.columns) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.cursor != null) { + generator.writeKey("cursor"); + generator.write(this.cursor); + + } + if (ApiTypeHelper.isDefined(this.rows)) { + generator.writeKey("rows"); + generator.writeStartArray(); + for (List item0 : this.rows) { + generator.writeStartArray(); + if (item0 != null) { + for (JsonData item1 : item0) { + item1.serialize(generator, mapper); + + } + } + generator.writeEnd(); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link QueryResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private String id; + + @Nullable + private Boolean isRunning; + + @Nullable + private Boolean isPartial; + + @Nullable + private List columns; + + @Nullable + private String cursor; + + private List> rows; + + /** + * Identifier for the search. This value is only returned for async and saved + * synchronous searches. For CSV, TSV, and TXT responses, this value is returned + * in the Async-ID HTTP header. + *

+ * API name: {@code id} + */ + public final Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * If true, the search is still running. If false, the search has + * finished. This value is only returned for async and saved synchronous + * searches. For CSV, TSV, and TXT responses, this value is returned in the + * Async-partial HTTP header. + *

+ * API name: {@code is_running} + */ + public final Builder isRunning(@Nullable Boolean value) { + this.isRunning = value; + return this; + } + + /** + * If true, the response does not contain complete search results. + * If is_partial is true and is_running + * is true, the search is still running. If is_partial + * is true but is_running is false, the + * results are partial due to a failure or timeout. This value is only returned + * for async and saved synchronous searches. For CSV, TSV, and TXT responses, + * this value is returned in the Async-partial HTTP header. + *

+ * API name: {@code is_partial} + */ + public final Builder isPartial(@Nullable Boolean value) { + this.isPartial = value; + return this; + } + + /** + * Column headings for the search results. Each object is a column. + *

+ * API name: {@code columns} + *

+ * Adds all elements of list to columns. + */ + public final Builder columns(List list) { + this.columns = _listAddAll(this.columns, list); + return this; + } + + /** + * Column headings for the search results. Each object is a column. + *

+ * API name: {@code columns} + *

+ * Adds one or more values to columns. + */ + public final Builder columns(Column value, Column... values) { + this.columns = _listAdd(this.columns, value, values); + return this; + } + + /** + * Column headings for the search results. Each object is a column. + *

+ * API name: {@code columns} + *

+ * Adds a value to columns using a builder lambda. + */ + public final Builder columns(Function> fn) { + return columns(fn.apply(new Column.Builder()).build()); + } + + /** + * Cursor for the next set of paginated results. For CSV, TSV, and TXT + * responses, this value is returned in the Cursor HTTP header. + *

+ * API name: {@code cursor} + */ + public final Builder cursor(@Nullable String value) { + this.cursor = value; + return this; + } + + /** + * Required - Values for the search results. + *

+ * API name: {@code rows} + *

+ * Adds all elements of list to rows. + */ + public final Builder rows(List> list) { + this.rows = _listAddAll(this.rows, list); + return this; + } + + /** + * Required - Values for the search results. + *

+ * API name: {@code rows} + *

+ * Adds one or more values to rows. + */ + public final Builder rows(List value, List... values) { + this.rows = _listAdd(this.rows, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link QueryResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public QueryResponse build() { + _checkSingleUse(); + + return new QueryResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link QueryResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + QueryResponse::setupQueryResponseDeserializer); + + protected static void setupQueryResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::isRunning, JsonpDeserializer.booleanDeserializer(), "is_running"); + op.add(Builder::isPartial, JsonpDeserializer.booleanDeserializer(), "is_partial"); + op.add(Builder::columns, JsonpDeserializer.arrayDeserializer(Column._DESERIALIZER), "columns"); + op.add(Builder::cursor, JsonpDeserializer.stringDeserializer(), "cursor"); + op.add(Builder::rows, + JsonpDeserializer.arrayDeserializer(JsonpDeserializer.arrayDeserializer(JsonData._DESERIALIZER)), + "rows"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java new file mode 100644 index 000000000..f43365497 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java @@ -0,0 +1,299 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.translate.Request + +/** + * Translates SQL into Elasticsearch queries + * + * @see API + * specification + */ +@JsonpDeserializable +public class TranslateRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final Integer fetchSize; + + @Nullable + private final Query filter; + + private final String query; + + @Nullable + private final String timeZone; + + // --------------------------------------------------------------------------------------------- + + private TranslateRequest(Builder builder) { + + this.fetchSize = builder.fetchSize; + this.filter = builder.filter; + this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query"); + this.timeZone = builder.timeZone; + + } + + public static TranslateRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * The maximum number of rows (or entries) to return in one response. + *

+ * API name: {@code fetch_size} + */ + @Nullable + public final Integer fetchSize() { + return this.fetchSize; + } + + /** + * Elasticsearch query DSL for additional filtering. + *

+ * API name: {@code filter} + */ + @Nullable + public final Query filter() { + return this.filter; + } + + /** + * Required - SQL query to run. + *

+ * API name: {@code query} + */ + public final String query() { + return this.query; + } + + /** + * ISO-8601 time zone ID for the search. + *

+ * API name: {@code time_zone} + */ + @Nullable + public final String timeZone() { + return this.timeZone; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.fetchSize != null) { + generator.writeKey("fetch_size"); + generator.write(this.fetchSize); + + } + if (this.filter != null) { + generator.writeKey("filter"); + this.filter.serialize(generator, mapper); + + } + generator.writeKey("query"); + generator.write(this.query); + + if (this.timeZone != null) { + generator.writeKey("time_zone"); + generator.write(this.timeZone); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TranslateRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Integer fetchSize; + + @Nullable + private Query filter; + + private String query; + + @Nullable + private String timeZone; + + /** + * The maximum number of rows (or entries) to return in one response. + *

+ * API name: {@code fetch_size} + */ + public final Builder fetchSize(@Nullable Integer value) { + this.fetchSize = value; + return this; + } + + /** + * Elasticsearch query DSL for additional filtering. + *

+ * API name: {@code filter} + */ + public final Builder filter(@Nullable Query value) { + this.filter = value; + return this; + } + + /** + * Elasticsearch query DSL for additional filtering. + *

+ * API name: {@code filter} + */ + public final Builder filter(Function> fn) { + return this.filter(fn.apply(new Query.Builder()).build()); + } + + /** + * Required - SQL query to run. + *

+ * API name: {@code query} + */ + public final Builder query(String value) { + this.query = value; + return this; + } + + /** + * ISO-8601 time zone ID for the search. + *

+ * API name: {@code time_zone} + */ + public final Builder timeZone(@Nullable String value) { + this.timeZone = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TranslateRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TranslateRequest build() { + _checkSingleUse(); + + return new TranslateRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TranslateRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + TranslateRequest::setupTranslateRequestDeserializer); + + protected static void setupTranslateRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::fetchSize, JsonpDeserializer.integerDeserializer(), "fetch_size"); + op.add(Builder::filter, Query._DESERIALIZER, "filter"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + op.add(Builder::timeZone, JsonpDeserializer.stringDeserializer(), "time_zone"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code sql.translate}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/sql.translate", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + return "/_sql/translate"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, TranslateResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateResponse.java new file mode 100644 index 000000000..198e39b30 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateResponse.java @@ -0,0 +1,400 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.sql; + +import co.elastic.clients.elasticsearch._types.SortOptions; +import co.elastic.clients.elasticsearch._types.aggregations.Aggregation; +import co.elastic.clients.elasticsearch._types.query_dsl.FieldAndFormat; +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.elasticsearch.core.search.SourceConfig; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: sql.translate.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TranslateResponse implements JsonpSerializable { + private final Map aggregations; + + @Nullable + private final Long size; + + @Nullable + private final SourceConfig source; + + private final List fields; + + @Nullable + private final Query query; + + private final List sort; + + // --------------------------------------------------------------------------------------------- + + private TranslateResponse(Builder builder) { + + this.aggregations = ApiTypeHelper.unmodifiable(builder.aggregations); + this.size = builder.size; + this.source = builder.source; + this.fields = ApiTypeHelper.unmodifiable(builder.fields); + this.query = builder.query; + this.sort = ApiTypeHelper.unmodifiable(builder.sort); + + } + + public static TranslateResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code aggregations} + */ + public final Map aggregations() { + return this.aggregations; + } + + /** + * API name: {@code size} + */ + @Nullable + public final Long size() { + return this.size; + } + + /** + * API name: {@code _source} + */ + @Nullable + public final SourceConfig source() { + return this.source; + } + + /** + * API name: {@code fields} + */ + public final List fields() { + return this.fields; + } + + /** + * API name: {@code query} + */ + @Nullable + public final Query query() { + return this.query; + } + + /** + * API name: {@code sort} + */ + public final List sort() { + return this.sort; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.aggregations)) { + generator.writeKey("aggregations"); + generator.writeStartObject(); + for (Map.Entry item0 : this.aggregations.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.size != null) { + generator.writeKey("size"); + generator.write(this.size); + + } + if (this.source != null) { + generator.writeKey("_source"); + this.source.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.fields)) { + generator.writeKey("fields"); + generator.writeStartArray(); + for (FieldAndFormat item0 : this.fields) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.query != null) { + generator.writeKey("query"); + this.query.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.sort)) { + generator.writeKey("sort"); + generator.writeStartArray(); + for (SortOptions item0 : this.sort) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TranslateResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private Map aggregations; + + @Nullable + private Long size; + + @Nullable + private SourceConfig source; + + @Nullable + private List fields; + + @Nullable + private Query query; + + @Nullable + private List sort; + + /** + * API name: {@code aggregations} + *

+ * Adds all entries of map to aggregations. + */ + public final Builder aggregations(Map map) { + this.aggregations = _mapPutAll(this.aggregations, map); + return this; + } + + /** + * API name: {@code aggregations} + *

+ * Adds an entry to aggregations. + */ + public final Builder aggregations(String key, Aggregation value) { + this.aggregations = _mapPut(this.aggregations, key, value); + return this; + } + + /** + * API name: {@code aggregations} + *

+ * Adds an entry to aggregations using a builder lambda. + */ + public final Builder aggregations(String key, Function> fn) { + return aggregations(key, fn.apply(new Aggregation.Builder()).build()); + } + + /** + * API name: {@code size} + */ + public final Builder size(@Nullable Long value) { + this.size = value; + return this; + } + + /** + * API name: {@code _source} + */ + public final Builder source(@Nullable SourceConfig value) { + this.source = value; + return this; + } + + /** + * API name: {@code _source} + */ + public final Builder source(Function> fn) { + return this.source(fn.apply(new SourceConfig.Builder()).build()); + } + + /** + * API name: {@code fields} + *

+ * Adds all elements of list to fields. + */ + public final Builder fields(List list) { + this.fields = _listAddAll(this.fields, list); + return this; + } + + /** + * API name: {@code fields} + *

+ * Adds one or more values to fields. + */ + public final Builder fields(FieldAndFormat value, FieldAndFormat... values) { + this.fields = _listAdd(this.fields, value, values); + return this; + } + + /** + * API name: {@code fields} + *

+ * Adds a value to fields using a builder lambda. + */ + public final Builder fields(Function> fn) { + return fields(fn.apply(new FieldAndFormat.Builder()).build()); + } + + /** + * API name: {@code query} + */ + public final Builder query(@Nullable Query value) { + this.query = value; + return this; + } + + /** + * API name: {@code query} + */ + public final Builder query(Function> fn) { + return this.query(fn.apply(new Query.Builder()).build()); + } + + /** + * API name: {@code sort} + *

+ * Adds all elements of list to sort. + */ + public final Builder sort(List list) { + this.sort = _listAddAll(this.sort, list); + return this; + } + + /** + * API name: {@code sort} + *

+ * Adds one or more values to sort. + */ + public final Builder sort(SortOptions value, SortOptions... values) { + this.sort = _listAdd(this.sort, value, values); + return this; + } + + /** + * API name: {@code sort} + *

+ * Adds a value to sort using a builder lambda. + */ + public final Builder sort(Function> fn) { + return sort(fn.apply(new SortOptions.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TranslateResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TranslateResponse build() { + _checkSingleUse(); + + return new TranslateResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TranslateResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TranslateResponse::setupTranslateResponseDeserializer); + + protected static void setupTranslateResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::aggregations, JsonpDeserializer.stringMapDeserializer(Aggregation._DESERIALIZER), + "aggregations"); + op.add(Builder::size, JsonpDeserializer.longDeserializer(), "size"); + op.add(Builder::source, SourceConfig._DESERIALIZER, "_source"); + op.add(Builder::fields, JsonpDeserializer.arrayDeserializer(FieldAndFormat._DESERIALIZER), "fields"); + op.add(Builder::query, Query._DESERIALIZER, "query"); + op.add(Builder::sort, JsonpDeserializer.arrayDeserializer(SortOptions._DESERIALIZER), "sort"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java index 2b708693d..8573eb849 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.delete_synonym.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java index 0db18ccb5..735909c83 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.delete_synonym.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java index 37137c86e..1ed23fb74 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.delete_synonym_rule.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java index 8aef72699..f3562290d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.delete_synonym_rule.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java index cfdec96f6..738a41a91 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.ApiClient; @@ -35,6 +31,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the synonyms namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java index e3b9491f5..d999cf000 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.ApiClient; @@ -36,6 +32,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the synonyms namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java index a6ce5de5b..19b1c69cc 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonym.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java index ed287c090..f0c8964dd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonym.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java index 476888f09..4e7a72b62 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonym_rule.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java index cb12fb6d6..5c07f3051 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonym_rule.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java index 9bf9b2fe5..cf6db2290 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonyms_sets.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java index 2095ab0a7..42f04cc17 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch.synonyms.get_synonyms_sets.SynonymsSetItem; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonyms_sets.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java index b03200b5a..2e528f779 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.put_synonym.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java index e95aa7299..4283ac056 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.Result; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.put_synonym.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java index 279192a2d..89802a028 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -39,12 +35,26 @@ import java.lang.String; 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; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.put_synonym_rule.Request /** @@ -60,7 +70,7 @@ public class PutSynonymRuleRequest extends RequestBase implements JsonpSerializa private final String setId; - private final List synonyms; + private final String synonyms; // --------------------------------------------------------------------------------------------- @@ -68,7 +78,7 @@ private PutSynonymRuleRequest(Builder builder) { this.ruleId = ApiTypeHelper.requireNonNull(builder.ruleId, this, "ruleId"); this.setId = ApiTypeHelper.requireNonNull(builder.setId, this, "setId"); - this.synonyms = ApiTypeHelper.unmodifiableRequired(builder.synonyms, this, "synonyms"); + this.synonyms = ApiTypeHelper.requireNonNull(builder.synonyms, this, "synonyms"); } @@ -97,7 +107,7 @@ public final String setId() { /** * Required - API name: {@code synonyms} */ - public final List synonyms() { + public final String synonyms() { return this.synonyms; } @@ -112,16 +122,8 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (ApiTypeHelper.isDefined(this.synonyms)) { - generator.writeKey("synonyms"); - generator.writeStartArray(); - for (String item0 : this.synonyms) { - generator.write(item0); - - } - generator.writeEnd(); - - } + generator.writeKey("synonyms"); + generator.write(this.synonyms); } @@ -138,7 +140,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String setId; - private List synonyms; + private String synonyms; /** * Required - The id of the synonym rule to be updated or created @@ -162,21 +164,9 @@ public final Builder setId(String value) { /** * Required - API name: {@code synonyms} - *

- * Adds all elements of list to synonyms. - */ - public final Builder synonyms(List list) { - this.synonyms = _listAddAll(this.synonyms, list); - return this; - } - - /** - * Required - API name: {@code synonyms} - *

- * Adds one or more values to synonyms. */ - public final Builder synonyms(String value, String... values) { - this.synonyms = _listAdd(this.synonyms, value, values); + public final Builder synonyms(String value) { + this.synonyms = value; return this; } @@ -208,8 +198,7 @@ public PutSynonymRuleRequest build() { protected static void setupPutSynonymRuleRequestDeserializer(ObjectDeserializer op) { - op.add(Builder::synonyms, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "synonyms"); + op.add(Builder::synonyms, JsonpDeserializer.stringDeserializer(), "synonyms"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java index 3ccfe320c..ae61eb8ed 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -32,6 +28,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.put_synonym_rule.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java index dd45a5ede..4c183e02e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms._types.SynonymRule /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java index def90b689..b9267ccf9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRuleRead.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms._types.SynonymRuleRead /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java index ff281e36f..2ce927bda 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymsUpdateResult.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms; import co.elastic.clients.elasticsearch._types.Result; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms._types.SynonymsUpdateResult /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java index b52e58954..3e81a0679 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.synonyms.get_synonyms_sets; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: synonyms.get_synonyms_sets.SynonymsSetItem /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java new file mode 100644 index 000000000..6fb17813d --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java @@ -0,0 +1,101 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.tasks; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the tasks namespace. + */ +public class ElasticsearchTasksAsyncClient extends ApiClient { + + public ElasticsearchTasksAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchTasksAsyncClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchTasksAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchTasksAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: tasks.get + + /** + * Returns information about a task. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture get(GetTasksRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetTasksRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns information about a task. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetTasksRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture get( + Function> fn) { + return get(fn.apply(new GetTasksRequest.Builder()).build()); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java new file mode 100644 index 000000000..4971ffa2e --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java @@ -0,0 +1,101 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.tasks; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Client for the tasks namespace. + */ +public class ElasticsearchTasksClient extends ApiClient { + + public ElasticsearchTasksClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchTasksClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchTasksClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchTasksClient(this.transport, transportOptions); + } + + // ----- Endpoint: tasks.get + + /** + * Returns information about a task. + * + * @see Documentation + * on elastic.co + */ + + public GetTasksResponse get(GetTasksRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetTasksRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns information about a task. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetTasksRequest} + * @see Documentation + * on elastic.co + */ + + public final GetTasksResponse get(Function> fn) + throws IOException, ElasticsearchException { + return get(fn.apply(new GetTasksRequest.Builder()).build()); + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java new file mode 100644 index 000000000..b5fcabfd0 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java @@ -0,0 +1,253 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.tasks; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +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 java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: tasks.get.Request + +/** + * Returns information about a task. + * + * @see API + * specification + */ + +public class GetTasksRequest extends RequestBase { + private final String taskId; + + @Nullable + private final Time timeout; + + @Nullable + private final Boolean waitForCompletion; + + // --------------------------------------------------------------------------------------------- + + private GetTasksRequest(Builder builder) { + + this.taskId = ApiTypeHelper.requireNonNull(builder.taskId, this, "taskId"); + this.timeout = builder.timeout; + this.waitForCompletion = builder.waitForCompletion; + + } + + public static GetTasksRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - ID of the task. + *

+ * API name: {@code task_id} + */ + public final String taskId() { + return this.taskId; + } + + /** + * 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 + public final Time timeout() { + return this.timeout; + } + + /** + * If true, the request blocks until the task has completed. + *

+ * API name: {@code wait_for_completion} + */ + @Nullable + public final Boolean waitForCompletion() { + return this.waitForCompletion; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetTasksRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String taskId; + + @Nullable + private Time timeout; + + @Nullable + private Boolean waitForCompletion; + + /** + * Required - ID of the task. + *

+ * API name: {@code task_id} + */ + public final Builder taskId(String value) { + this.taskId = value; + return this; + } + + /** + * 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 final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * 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 final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + /** + * If true, the request blocks until the task has completed. + *

+ * API name: {@code wait_for_completion} + */ + public final Builder waitForCompletion(@Nullable Boolean value) { + this.waitForCompletion = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetTasksRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetTasksRequest build() { + _checkSingleUse(); + + return new GetTasksRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code tasks.get}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/tasks.get", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _taskId = 1 << 0; + + int propsSet = 0; + + propsSet |= _taskId; + + if (propsSet == (_taskId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_tasks"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _taskId = 1 << 0; + + int propsSet = 0; + + propsSet |= _taskId; + + if (propsSet == (_taskId)) { + params.put("taskId", request.taskId); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.waitForCompletion != null) { + params.put("wait_for_completion", String.valueOf(request.waitForCompletion)); + } + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, GetTasksResponse._DESERIALIZER); +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksResponse.java new file mode 100644 index 000000000..264893fb9 --- /dev/null +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksResponse.java @@ -0,0 +1,252 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.tasks; + +import co.elastic.clients.elasticsearch._types.ErrorCause; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: tasks.get.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetTasksResponse implements JsonpSerializable { + private final boolean completed; + + private final TaskInfo task; + + @Nullable + private final JsonData response; + + @Nullable + private final ErrorCause error; + + // --------------------------------------------------------------------------------------------- + + private GetTasksResponse(Builder builder) { + + this.completed = ApiTypeHelper.requireNonNull(builder.completed, this, "completed"); + this.task = ApiTypeHelper.requireNonNull(builder.task, this, "task"); + this.response = builder.response; + this.error = builder.error; + + } + + public static GetTasksResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code completed} + */ + public final boolean completed() { + return this.completed; + } + + /** + * Required - API name: {@code task} + */ + public final TaskInfo task() { + return this.task; + } + + /** + * API name: {@code response} + */ + @Nullable + public final JsonData response() { + return this.response; + } + + /** + * API name: {@code error} + */ + @Nullable + public final ErrorCause error() { + return this.error; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("completed"); + generator.write(this.completed); + + generator.writeKey("task"); + this.task.serialize(generator, mapper); + + if (this.response != null) { + generator.writeKey("response"); + this.response.serialize(generator, mapper); + + } + if (this.error != null) { + generator.writeKey("error"); + this.error.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetTasksResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Boolean completed; + + private TaskInfo task; + + @Nullable + private JsonData response; + + @Nullable + private ErrorCause error; + + /** + * Required - API name: {@code completed} + */ + public final Builder completed(boolean value) { + this.completed = value; + return this; + } + + /** + * Required - API name: {@code task} + */ + public final Builder task(TaskInfo value) { + this.task = value; + return this; + } + + /** + * Required - API name: {@code task} + */ + public final Builder task(Function> fn) { + return this.task(fn.apply(new TaskInfo.Builder()).build()); + } + + /** + * API name: {@code response} + */ + public final Builder response(@Nullable JsonData value) { + this.response = value; + return this; + } + + /** + * API name: {@code error} + */ + public final Builder error(@Nullable ErrorCause value) { + this.error = value; + return this; + } + + /** + * API name: {@code error} + */ + public final Builder error(Function> fn) { + return this.error(fn.apply(new ErrorCause.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetTasksResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetTasksResponse build() { + _checkSingleUse(); + + return new GetTasksResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetTasksResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + GetTasksResponse::setupGetTasksResponseDeserializer); + + protected static void setupGetTasksResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::completed, JsonpDeserializer.booleanDeserializer(), "completed"); + op.add(Builder::task, TaskInfo._DESERIALIZER, "task"); + op.add(Builder::response, JsonData._DESERIALIZER, "response"); + op.add(Builder::error, ErrorCause._DESERIALIZER, "error"); + + } + +} diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfo.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfo.java index d44219cd6..587de240e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfo.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.tasks; import co.elastic.clients.elasticsearch._types.Time; @@ -44,6 +40,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: tasks._types.TaskInfo /** @@ -86,7 +97,7 @@ public class TaskInfo implements JsonpSerializable { // --------------------------------------------------------------------------------------------- - protected TaskInfo(AbstractBuilder builder) { + private TaskInfo(Builder builder) { this.action = ApiTypeHelper.requireNonNull(builder.action, this, "action"); this.cancelled = builder.cancelled; @@ -104,7 +115,7 @@ protected TaskInfo(AbstractBuilder builder) { } - public static TaskInfo taskInfoOf(Function> fn) { + public static TaskInfo of(Function> fn) { return fn.apply(new Builder()).build(); } @@ -288,28 +299,7 @@ public String toString() { * Builder for {@link TaskInfo}. */ - public static class Builder extends TaskInfo.AbstractBuilder implements ObjectBuilder { - @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link TaskInfo}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public TaskInfo build() { - _checkSingleUse(); - - return new TaskInfo(this); - } - } - - public abstract static class AbstractBuilder> - extends - WithJsonObjectBuilderBase { + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String action; @Nullable @@ -344,33 +334,33 @@ public abstract static class AbstractBuilder * Adds all entries of map to headers. */ - public final BuilderT headers(Map map) { + public final Builder headers(Map map) { this.headers = _mapPutAll(this.headers, map); - return self(); + return this; } /** @@ -388,56 +378,56 @@ public final BuilderT headers(Map map) { *

* Adds an entry to headers. */ - public final BuilderT headers(String key, String value) { + public final Builder headers(String key, String value) { this.headers = _mapPut(this.headers, key, value); - return self(); + return this; } /** * Required - API name: {@code id} */ - public final BuilderT id(long value) { + public final Builder id(long value) { this.id = value; - return self(); + return this; } /** * Required - API name: {@code node} */ - public final BuilderT node(String value) { + public final Builder node(String value) { this.node = value; - return self(); + return this; } /** * API name: {@code running_time} */ - public final BuilderT runningTime(@Nullable Time value) { + public final Builder runningTime(@Nullable Time value) { this.runningTime = value; - return self(); + return this; } /** * API name: {@code running_time} */ - public final BuilderT runningTime(Function> fn) { + public final Builder runningTime(Function> fn) { return this.runningTime(fn.apply(new Time.Builder()).build()); } /** * Required - API name: {@code running_time_in_nanos} */ - public final BuilderT runningTimeInNanos(long value) { + public final Builder runningTimeInNanos(long value) { this.runningTimeInNanos = value; - return self(); + return this; } /** * Required - API name: {@code start_time_in_millis} */ - public final BuilderT startTimeInMillis(long value) { + public final Builder startTimeInMillis(long value) { this.startTimeInMillis = value; - return self(); + return this; } /** @@ -445,29 +435,43 @@ public final BuilderT startTimeInMillis(long value) { *

* API name: {@code status} */ - public final BuilderT status(@Nullable JsonData value) { + public final Builder status(@Nullable JsonData value) { this.status = value; - return self(); + return this; } /** * Required - API name: {@code type} */ - public final BuilderT type(String value) { + public final Builder type(String value) { this.type = value; - return self(); + return this; } /** * API name: {@code parent_task_id} */ - public final BuilderT parentTaskId(@Nullable String value) { + public final Builder parentTaskId(@Nullable String value) { this.parentTaskId = value; - return self(); + return this; + } + + @Override + protected Builder self() { + return this; } - protected abstract BuilderT self(); + /** + * Builds a {@link TaskInfo}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TaskInfo build() { + _checkSingleUse(); + return new TaskInfo(this); + } } // --------------------------------------------------------------------------------------------- @@ -478,23 +482,22 @@ public final BuilderT parentTaskId(@Nullable String value) { public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, TaskInfo::setupTaskInfoDeserializer); - protected static > void setupTaskInfoDeserializer( - ObjectDeserializer op) { - - op.add(AbstractBuilder::action, JsonpDeserializer.stringDeserializer(), "action"); - op.add(AbstractBuilder::cancelled, JsonpDeserializer.booleanDeserializer(), "cancelled"); - op.add(AbstractBuilder::cancellable, JsonpDeserializer.booleanDeserializer(), "cancellable"); - op.add(AbstractBuilder::description, JsonpDeserializer.stringDeserializer(), "description"); - op.add(AbstractBuilder::headers, - JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.stringDeserializer()), "headers"); - op.add(AbstractBuilder::id, JsonpDeserializer.longDeserializer(), "id"); - op.add(AbstractBuilder::node, JsonpDeserializer.stringDeserializer(), "node"); - op.add(AbstractBuilder::runningTime, Time._DESERIALIZER, "running_time"); - op.add(AbstractBuilder::runningTimeInNanos, JsonpDeserializer.longDeserializer(), "running_time_in_nanos"); - op.add(AbstractBuilder::startTimeInMillis, JsonpDeserializer.longDeserializer(), "start_time_in_millis"); - op.add(AbstractBuilder::status, JsonData._DESERIALIZER, "status"); - op.add(AbstractBuilder::type, JsonpDeserializer.stringDeserializer(), "type"); - op.add(AbstractBuilder::parentTaskId, JsonpDeserializer.stringDeserializer(), "parent_task_id"); + protected static void setupTaskInfoDeserializer(ObjectDeserializer op) { + + op.add(Builder::action, JsonpDeserializer.stringDeserializer(), "action"); + op.add(Builder::cancelled, JsonpDeserializer.booleanDeserializer(), "cancelled"); + op.add(Builder::cancellable, JsonpDeserializer.booleanDeserializer(), "cancellable"); + op.add(Builder::description, JsonpDeserializer.stringDeserializer(), "description"); + op.add(Builder::headers, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.stringDeserializer()), + "headers"); + op.add(Builder::id, JsonpDeserializer.longDeserializer(), "id"); + op.add(Builder::node, JsonpDeserializer.stringDeserializer(), "node"); + op.add(Builder::runningTime, Time._DESERIALIZER, "running_time"); + op.add(Builder::runningTimeInNanos, JsonpDeserializer.longDeserializer(), "running_time_in_nanos"); + op.add(Builder::startTimeInMillis, JsonpDeserializer.longDeserializer(), "start_time_in_millis"); + op.add(Builder::status, JsonData._DESERIALIZER, "status"); + op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type"); + op.add(Builder::parentTaskId, JsonpDeserializer.stringDeserializer(), "parent_task_id"); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java index 5ce014a31..c8368e0f5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.delete_transform.Request /** @@ -54,6 +65,9 @@ */ public class DeleteTransformRequest extends RequestBase { + @Nullable + private final Boolean deleteDestIndex; + @Nullable private final Boolean force; @@ -66,6 +80,7 @@ public class DeleteTransformRequest extends RequestBase { private DeleteTransformRequest(Builder builder) { + this.deleteDestIndex = builder.deleteDestIndex; this.force = builder.force; this.timeout = builder.timeout; this.transformId = ApiTypeHelper.requireNonNull(builder.transformId, this, "transformId"); @@ -76,6 +91,17 @@ public static DeleteTransformRequest of(Function + * API name: {@code delete_dest_index} + */ + @Nullable + public final Boolean deleteDestIndex() { + return this.deleteDestIndex; + } + /** * If this value is false, the transform must be stopped before it can be * deleted. If true, the transform is deleted regardless of its current state. @@ -116,6 +142,9 @@ public final String transformId() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean deleteDestIndex; + @Nullable private Boolean force; @@ -124,6 +153,17 @@ public static class Builder extends RequestBase.AbstractBuilder private String transformId; + /** + * If this value is true, the destination index is deleted together with the + * transform. If false, the destination index will not be deleted + *

+ * API name: {@code delete_dest_index} + */ + public final Builder deleteDestIndex(@Nullable Boolean value) { + this.deleteDestIndex = value; + return this; + } + /** * If this value is false, the transform must be stopped before it can be * deleted. If true, the transform is deleted regardless of its current state. @@ -235,6 +275,9 @@ public DeleteTransformRequest build() { // Request parameters request -> { Map params = new HashMap<>(); + if (request.deleteDestIndex != null) { + params.put("delete_dest_index", String.valueOf(request.deleteDestIndex)); + } if (request.force != null) { params.put("force", String.valueOf(request.force)); } diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformResponse.java index 5634f5c51..0080c8d0e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.delete_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java index 73dc98431..ab68b4eb5 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonpDeserializable; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Destination /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java index 9f338c8c3..60cedff92 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.ApiClient; @@ -37,6 +33,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the transform namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java index 5d457f8eb..a2b4ebc44 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.ApiClient; @@ -38,6 +34,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Client for the transform namespace. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java index 80c9d173b..35a8d62aa 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -45,6 +41,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformResponse.java index de00727a9..11dd5b1ee 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch.transform.get_transform.TransformSummary; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java index 6a50ce899..ac3be6670 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.stream.Collectors; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsResponse.java index 8c52d691e..2b0caff19 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch.transform.get_transform_stats.TransformStats; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java index b601f6fee..7a76fde6c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Latest /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java index e524cbb52..98dbc2fbb 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.aggregations.Aggregation; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Pivot /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupBy.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupBy.java index f0d5a1267..ce733a064 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupBy.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupBy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.aggregations.DateHistogramAggregation; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.PivotGroupByContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByBuilders.java index 901bbea0c..9a991f047 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByBuilders.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.aggregations.DateHistogramAggregation; @@ -30,6 +26,21 @@ import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link PivotGroupBy} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByVariant.java index 99638ab96..28313dff9 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PivotGroupByVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link PivotGroupBy} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java index 8cf7f5c07..e0613a13d 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.preview_transform.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformResponse.java index e10f4b588..d9f3e440b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch.indices.IndexState; @@ -43,6 +39,21 @@ import java.util.function.Supplier; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.preview_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java index e17867d59..970953ec6 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.put_transform.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformResponse.java index 8762a18c9..b86b2ee7a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.put_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java index e38b01b40..513d0b781 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.reset_transform.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformResponse.java index 329180d86..7872d41b3 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.reset_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicy.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicy.java index 91dbc8363..fa990054b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicy.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.RetentionPolicyContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyBuilders.java index 4b641a60a..90b985b40 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link RetentionPolicy} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyVariant.java index 4d48484f5..b4e9bbc8b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicyVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link RetentionPolicy} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java index f49ba9d6e..c881bbef7 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.schedule_now_transform.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java index cd7e7f4b9..b39e9f979 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.schedule_now_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java index 16a9d7b0b..1be72a0fd 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Settings /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java index 0d7a9156f..77861d74c 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.mapping.RuntimeField; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.Source /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java index 5fcaaac1b..1b59c6a83 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.start_transform.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformResponse.java index f05a9bd39..515bf747f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.start_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java index 507cb6676..3c60d2738 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -43,6 +39,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.stop_transform.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformResponse.java index 0b4490113..951697f6a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -33,6 +29,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.stop_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Sync.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Sync.java index 43a41fcb2..c9de8fb00 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Sync.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/Sync.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.json.JsonEnum; @@ -42,6 +38,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.SyncContainer /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/SyncBuilders.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/SyncBuilders.java index ebab2ee54..6edd77b9e 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/SyncBuilders.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/SyncBuilders.java @@ -17,15 +17,26 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.util.ObjectBuilder; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Builders for {@link Sync} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/SyncVariant.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/SyncVariant.java index f158cd32d..b072ad029 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/SyncVariant.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/SyncVariant.java @@ -17,12 +17,23 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * Base interface for {@link Sync} variants. */ diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java index b32e75b99..9b6394add 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.RetentionPolicy /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java index c0eadd5ac..33a700025 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.Time; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform._types.TimeSync /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java index 46bf96597..8860b021f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.ErrorResponse; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.update_transform.Request /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformResponse.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformResponse.java index 63986b7b9..a9f23e097 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformResponse.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform; import co.elastic.clients.elasticsearch._types.Time; @@ -46,6 +42,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.update_transform.Response /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java index ac8736000..305d07e5b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform; import co.elastic.clients.elasticsearch._types.Time; @@ -51,6 +47,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform.TransformSummary /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java index 1b9817d4c..81f9e00db 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.CheckpointStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java index d1d146869..f3a5eb90b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.Checkpointing /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java index 374ad9a54..f4d91ad46 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.TransformIndexerStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java index 7f4531e3a..e33d79f50 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.TransformProgress /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java index eb2166728..d2547415a 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.TransformStats /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java index 7002d30c9..d3fd23b2f 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.transform.get_transform_stats; import co.elastic.clients.elasticsearch._types.HealthStatus; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: transform.get_transform_stats.TransformStatsHealth /** diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionStatusOptions.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionStatusOptions.java index 6d661eaf1..cb946f020 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionStatusOptions.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionStatusOptions.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.watcher; import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + /** * * @see Date: Tue, 12 Mar 2024 20:44:07 +0100 Subject: [PATCH 16/25] Add misc improvements to the framework (#760) Adds a number of improvements and bugfixes to the JSON and utility classes: JSON framework: * A new `BufferingJsonpMapper` allows the creation of `JsonGenerator` that store JSON events in a buffer that can be replayed. This is useful to efficiently create synthetic JSON documents. * An additional `JsonpMapper.deserialize` method variant accepts the current JSON event. Fixes #741 * The Jackson implementation of `JsonpMapper` now enables the `ACCEPT_SINGLE_VALUE_AS_ARRAY` deserialization feature. This allows single values in a JSON stream to be considered as a single-value collection. API & transport framework: * `ElasticsearchException` now holds the low level http response, so that the application can inspect the details of the error. * Endpoints now have a `call` methods, to make calling endpoints programmatically easier. This is for advanced use, as an application will normally use the `ElasticsearchClient` that hides endpoint objects. * A `BinaryDataResponse` can now easily be created from a byte array. Test framework: * The `ElasticsearchTestServer` now tries to contact an Elasticsearch server running on `http://elastic:changeme@localhost:9200` before spawning a container. * A `MockHttpClient` has been added that allows writing integration-like tests without requiring a running server. This is an alternative to using `com.sun.net.httpserver.HttpServer` when we want to test http response decoding but don't need to test the network layer. --- .../_types/ElasticsearchException.java | 21 ++- .../_types/ElasticsearchException.java | 21 ++- .../elasticsearch/_types/FieldValue.java | 5 + .../clients/json/BufferingJsonGenerator.java | 38 +++++ .../clients/json/BufferingJsonpMapper.java | 28 ++++ .../clients/json/DelegatingJsonpMapper.java | 5 + .../clients/json/JsonpDeserializer.java | 2 +- .../co/elastic/clients/json/JsonpMapper.java | 12 ++ .../elastic/clients/json/JsonpMapperBase.java | 27 ++- .../co/elastic/clients/json/JsonpUtils.java | 4 +- .../json/jackson/JacksonJsonpGenerator.java | 41 +++++ .../json/jackson/JacksonJsonpMapper.java | 21 ++- .../transport/ElasticsearchTransportBase.java | 2 +- .../elastic/clients/transport/Endpoint.java | 19 +++ .../endpoints/BinaryDataResponse.java | 5 + .../clients/util/ByteArrayBinaryData.java | 4 +- .../ElasticsearchTestServer.java | 71 +++++--- .../json/jackson/JacksonMapperTest.java | 27 +++ .../clients/testkit/MockHttpClient.java | 156 ++++++++++++++++++ 19 files changed, 478 insertions(+), 31 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/json/BufferingJsonGenerator.java create mode 100644 java-client/src/main/java/co/elastic/clients/json/BufferingJsonpMapper.java create mode 100644 java-client/src/test/java/co/elastic/clients/testkit/MockHttpClient.java diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java index 5307ed515..aa350d76b 100644 --- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java @@ -19,6 +19,10 @@ package co.elastic.clients.elasticsearch._types; +import co.elastic.clients.transport.http.TransportHttpClient; + +import javax.annotation.Nullable; + /** * Exception thrown by API client methods when Elasticsearch could not accept or * process a request. @@ -31,11 +35,18 @@ public class ElasticsearchException extends RuntimeException { private final ErrorResponse response; private final String endpointId; + @Nullable + private final TransportHttpClient.Response httpResponse; - public ElasticsearchException(String endpointId, ErrorResponse response) { + public ElasticsearchException(String endpointId, ErrorResponse response, @Nullable TransportHttpClient.Response httpResponse) { super("[" + endpointId + "] failed: [" + response.error().type() + "] " + response.error().reason()); this.response = response; this.endpointId = endpointId; + this.httpResponse = httpResponse; + } + + public ElasticsearchException(String endpointId, ErrorResponse response) { + this(endpointId, response, null); } /** @@ -66,4 +77,12 @@ public ErrorCause error() { public int status() { return this.response.status(); } + + /** + * The underlying http response, if available. + */ + @Nullable + public TransportHttpClient.Response httpResponse() { + return this.httpResponse; + } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java index 5307ed515..aa350d76b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java @@ -19,6 +19,10 @@ package co.elastic.clients.elasticsearch._types; +import co.elastic.clients.transport.http.TransportHttpClient; + +import javax.annotation.Nullable; + /** * Exception thrown by API client methods when Elasticsearch could not accept or * process a request. @@ -31,11 +35,18 @@ public class ElasticsearchException extends RuntimeException { private final ErrorResponse response; private final String endpointId; + @Nullable + private final TransportHttpClient.Response httpResponse; - public ElasticsearchException(String endpointId, ErrorResponse response) { + public ElasticsearchException(String endpointId, ErrorResponse response, @Nullable TransportHttpClient.Response httpResponse) { super("[" + endpointId + "] failed: [" + response.error().type() + "] " + response.error().reason()); this.response = response; this.endpointId = endpointId; + this.httpResponse = httpResponse; + } + + public ElasticsearchException(String endpointId, ErrorResponse response) { + this(endpointId, response, null); } /** @@ -66,4 +77,12 @@ public ErrorCause error() { public int status() { return this.response.status(); } + + /** + * The underlying http response, if available. + */ + @Nullable + public TransportHttpClient.Response httpResponse() { + return this.httpResponse; + } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java index e68f12532..9267fae3c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java @@ -33,6 +33,7 @@ import co.elastic.clients.util.ObjectBuilderBase; import co.elastic.clients.util.TaggedUnion; import co.elastic.clients.util.TaggedUnionUtils; +import jakarta.json.Json; import jakarta.json.stream.JsonGenerator; import jakarta.json.stream.JsonParser; @@ -69,6 +70,10 @@ public static FieldValue of(JsonData value) { return new FieldValue(Kind.Any, value); } + public static FieldValue of(Object value) { + return of(JsonData.of(value)); + } + public static final FieldValue NULL = new FieldValue(Kind.Null, null); public static final FieldValue TRUE = new FieldValue(Kind.Boolean, Boolean.TRUE); public static final FieldValue FALSE = new FieldValue(Kind.Boolean, Boolean.FALSE); diff --git a/java-client/src/main/java/co/elastic/clients/json/BufferingJsonGenerator.java b/java-client/src/main/java/co/elastic/clients/json/BufferingJsonGenerator.java new file mode 100644 index 000000000..7152c0290 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/json/BufferingJsonGenerator.java @@ -0,0 +1,38 @@ +/* + * 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. + */ + +package co.elastic.clients.json; + +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; + +public interface BufferingJsonGenerator extends JsonGenerator { + + /** + * Close this generator and return the buffered content. + */ + JsonData getJsonData(); + + /** + * Close this generator and return the buffered content as a parser. + */ + JsonParser getParser(); + + void copyValue(JsonParser parser); +} diff --git a/java-client/src/main/java/co/elastic/clients/json/BufferingJsonpMapper.java b/java-client/src/main/java/co/elastic/clients/json/BufferingJsonpMapper.java new file mode 100644 index 000000000..628455423 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/json/BufferingJsonpMapper.java @@ -0,0 +1,28 @@ +/* + * 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. + */ + +package co.elastic.clients.json; + +/** + * A Jsonp mapper that has the additional capability of being able to buffer events. + */ +public interface BufferingJsonpMapper extends JsonpMapper { + + BufferingJsonGenerator createBufferingGenerator(); +} diff --git a/java-client/src/main/java/co/elastic/clients/json/DelegatingJsonpMapper.java b/java-client/src/main/java/co/elastic/clients/json/DelegatingJsonpMapper.java index c43aabf72..e8626304f 100644 --- a/java-client/src/main/java/co/elastic/clients/json/DelegatingJsonpMapper.java +++ b/java-client/src/main/java/co/elastic/clients/json/DelegatingJsonpMapper.java @@ -44,6 +44,11 @@ public T deserialize(JsonParser parser, Type type) { return mapper.deserialize(parser, type); } + @Override + public T deserialize(JsonParser parser, Type type, JsonParser.Event event) { + return mapper.deserialize(parser, type, event); + } + @Override public void serialize(T value, JsonGenerator generator) { mapper.serialize(value, generator); diff --git a/java-client/src/main/java/co/elastic/clients/json/JsonpDeserializer.java b/java-client/src/main/java/co/elastic/clients/json/JsonpDeserializer.java index 03a76c562..51af1f999 100644 --- a/java-client/src/main/java/co/elastic/clients/json/JsonpDeserializer.java +++ b/java-client/src/main/java/co/elastic/clients/json/JsonpDeserializer.java @@ -110,7 +110,7 @@ public T deserialize(JsonParser parser, JsonpMapper mapper) { @Override public T deserialize(JsonParser parser, JsonpMapper mapper, JsonParser.Event event) { - throw new UnsupportedOperationException(); + return mapper.deserialize(parser, type, event); } }; } diff --git a/java-client/src/main/java/co/elastic/clients/json/JsonpMapper.java b/java-client/src/main/java/co/elastic/clients/json/JsonpMapper.java index e3b02c4de..880b7d6c0 100644 --- a/java-client/src/main/java/co/elastic/clients/json/JsonpMapper.java +++ b/java-client/src/main/java/co/elastic/clients/json/JsonpMapper.java @@ -54,6 +54,18 @@ default T deserialize(JsonParser parser, Class clazz) { */ T deserialize(JsonParser parser, Type type); + /** + * Deserialize an object, given its class and the current event the parser is at. + */ + default T deserialize(JsonParser parser, Class clazz, JsonParser.Event event) { + return deserialize(parser, (Type)clazz, event); + } + + /** + * Deserialize an object, given its type and the current event the parser is at. + */ + T deserialize(JsonParser parser, Type type, JsonParser.Event event); + /** * Serialize an object. */ diff --git a/java-client/src/main/java/co/elastic/clients/json/JsonpMapperBase.java b/java-client/src/main/java/co/elastic/clients/json/JsonpMapperBase.java index 5f1f2594a..963b46bff 100644 --- a/java-client/src/main/java/co/elastic/clients/json/JsonpMapperBase.java +++ b/java-client/src/main/java/co/elastic/clients/json/JsonpMapperBase.java @@ -61,23 +61,44 @@ protected JsonpMapperBase addAttribute(String name, Object value) { return this; } + //----- Deserialization + @Override public T deserialize(JsonParser parser, Type type) { + @SuppressWarnings("unchecked") + T result = (T)getDeserializer(type).deserialize(parser, this); + return result; + } + + @Override + public T deserialize(JsonParser parser, Type type, JsonParser.Event event) { + @SuppressWarnings("unchecked") + T result = (T)getDeserializer(type).deserialize(parser, this, event); + return result; + } + + private JsonpDeserializer getDeserializer(Type type) { JsonpDeserializer deserializer = findDeserializer(type); if (deserializer != null) { - return deserializer.deserialize(parser, this); + return deserializer; } @SuppressWarnings("unchecked") - T result = (T)getDefaultDeserializer(type).deserialize(parser, this); + JsonpDeserializer result = getDefaultDeserializer(type); return result; } + /** + * Find a built-in deserializer for a given class, if any. + */ @Nullable public static JsonpDeserializer findDeserializer(Class clazz) { return findDeserializer((Type)clazz); } + /** + * Find a built-in deserializer for a given type, if any. + */ @Nullable @SuppressWarnings("unchecked") public static JsonpDeserializer findDeserializer(Type type) { @@ -101,6 +122,8 @@ public static JsonpDeserializer findDeserializer(Type type) { return null; } + //----- Serialization + @Nullable @SuppressWarnings("unchecked") public static JsonpSerializer findSerializer(T value) { diff --git a/java-client/src/main/java/co/elastic/clients/json/JsonpUtils.java b/java-client/src/main/java/co/elastic/clients/json/JsonpUtils.java index fff4b148d..4eea2d430 100644 --- a/java-client/src/main/java/co/elastic/clients/json/JsonpUtils.java +++ b/java-client/src/main/java/co/elastic/clients/json/JsonpUtils.java @@ -412,10 +412,10 @@ public void close() { return dest; } - public static String toJsonString(JsonpSerializable value, JsonpMapper mapper) { + public static String toJsonString(Object value, JsonpMapper mapper) { StringWriter writer = new StringWriter(); JsonGenerator generator = mapper.jsonProvider().createGenerator(writer); - value.serialize(generator, mapper); + mapper.serialize(value, generator); generator.close(); return writer.toString(); } diff --git a/java-client/src/main/java/co/elastic/clients/json/jackson/JacksonJsonpGenerator.java b/java-client/src/main/java/co/elastic/clients/json/jackson/JacksonJsonpGenerator.java index 5f04bcae8..664d3ae9a 100644 --- a/java-client/src/main/java/co/elastic/clients/json/jackson/JacksonJsonpGenerator.java +++ b/java-client/src/main/java/co/elastic/clients/json/jackson/JacksonJsonpGenerator.java @@ -19,12 +19,16 @@ package co.elastic.clients.json.jackson; +import co.elastic.clients.json.BufferingJsonGenerator; +import co.elastic.clients.json.JsonData; import com.fasterxml.jackson.core.JsonStreamContext; +import com.fasterxml.jackson.databind.util.TokenBuffer; import jakarta.json.JsonNumber; import jakarta.json.JsonString; import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerationException; import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; import java.io.IOException; import java.math.BigDecimal; @@ -42,6 +46,43 @@ public JacksonJsonpGenerator(com.fasterxml.jackson.core.JsonGenerator generator) this.generator = generator; } + public static class Buffering extends JacksonJsonpGenerator implements BufferingJsonGenerator { + + private final JacksonJsonpMapper mapper; + + public Buffering(JacksonJsonpMapper mapper) { + super(new TokenBuffer(mapper.objectMapper(), false)); + this.mapper = mapper; + } + + @Override + public JsonData getJsonData() { + this.close(); + return new JacksonJsonBuffer((TokenBuffer)jacksonGenerator(), mapper); + } + + @Override + public JsonParser getParser() { + this.close(); + TokenBuffer tokenBuffer = (TokenBuffer) jacksonGenerator(); + return new JacksonJsonpParser(tokenBuffer.asParser(), mapper); + } + + @Override + public void copyValue(JsonParser parser) { + if (!(parser instanceof JacksonJsonpGenerator)) { + throw new IllegalArgumentException("Can only be used with a JacksonJsonpGenerator"); + } + + com.fasterxml.jackson.core.JsonParser jkParser = ((JacksonJsonpParser) parser).jacksonParser(); + try { + jacksonGenerator().copyCurrentStructure(jkParser); + } catch (IOException e) { + throw JacksonUtils.convertException(e); + } + } + } + /** * Returns the underlying Jackson generator. */ diff --git a/java-client/src/main/java/co/elastic/clients/json/jackson/JacksonJsonpMapper.java b/java-client/src/main/java/co/elastic/clients/json/jackson/JacksonJsonpMapper.java index 6df9c6c85..84841afee 100644 --- a/java-client/src/main/java/co/elastic/clients/json/jackson/JacksonJsonpMapper.java +++ b/java-client/src/main/java/co/elastic/clients/json/jackson/JacksonJsonpMapper.java @@ -19,12 +19,15 @@ package co.elastic.clients.json.jackson; +import co.elastic.clients.json.BufferingJsonGenerator; +import co.elastic.clients.json.BufferingJsonpMapper; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpDeserializerBase; import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.JsonpMapperBase; import co.elastic.clients.json.JsonpSerializer; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import jakarta.json.spi.JsonProvider; @@ -35,18 +38,20 @@ import java.lang.reflect.Type; import java.util.EnumSet; -public class JacksonJsonpMapper extends JsonpMapperBase { +public class JacksonJsonpMapper extends JsonpMapperBase implements BufferingJsonpMapper { private final JacksonJsonProvider provider; private final ObjectMapper objectMapper; private JacksonJsonpMapper(ObjectMapper objectMapper, JacksonJsonProvider provider) { + // No need to configure here, as this constructor is only called with the objectMapper + // of an existing JacksonJsonpMapper, and has therefore alredy been configured. this.objectMapper = objectMapper; this.provider = provider; } public JacksonJsonpMapper(ObjectMapper objectMapper) { - this.objectMapper = objectMapper; + this.objectMapper = configure(objectMapper); // Order is important as JacksonJsonProvider(this) will get ObjectMapper this.provider = new JacksonJsonProvider(this); } @@ -58,6 +63,13 @@ public JacksonJsonpMapper() { ); } + private static ObjectMapper configure(ObjectMapper objectMapper) { + // Accept single objects as collections. This is useful in the context of Elasticsearch since + // Lucene has no concept of multivalued field and fields with a single value will be returned + // as a single object even if other instances of the same field have multiple values. + return objectMapper.enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY); + } + @Override public JsonpMapper withAttribute(String name, T value) { return new JacksonJsonpMapper(this.objectMapper, this.provider).addAttribute(name, value); @@ -101,6 +113,11 @@ public void serialize(T value, JsonGenerator generator) { } } + @Override + public BufferingJsonGenerator createBufferingGenerator() { + return new JacksonJsonpGenerator.Buffering(this); + } + private class JacksonValueParser extends JsonpDeserializerBase { private final Type type; diff --git a/java-client/src/main/java/co/elastic/clients/transport/ElasticsearchTransportBase.java b/java-client/src/main/java/co/elastic/clients/transport/ElasticsearchTransportBase.java index dcc316189..7d1e98608 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/ElasticsearchTransportBase.java +++ b/java-client/src/main/java/co/elastic/clients/transport/ElasticsearchTransportBase.java @@ -342,7 +342,7 @@ private ResponseT getApiResponse( try (JsonParser parser = mapper.jsonProvider().createParser(content)) { ErrorT error = errorDeserializer.deserialize(parser, mapper); // TODO: have the endpoint provide the exception constructor - throw new ElasticsearchException(endpoint.id(), (ErrorResponse) error); + throw new ElasticsearchException(endpoint.id(), (ErrorResponse) error, clientResp); } } catch(JsonException | MissingRequiredPropertyException errorEx) { // Could not decode exception, try the response type diff --git a/java-client/src/main/java/co/elastic/clients/transport/Endpoint.java b/java-client/src/main/java/co/elastic/clients/transport/Endpoint.java index 3ed47254d..e9b0c11d0 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/Endpoint.java +++ b/java-client/src/main/java/co/elastic/clients/transport/Endpoint.java @@ -19,12 +19,15 @@ package co.elastic.clients.transport; +import co.elastic.clients.ApiClient; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.transport.endpoints.BinaryEndpoint; import javax.annotation.Nullable; +import java.io.IOException; import java.util.Collections; import java.util.Map; +import java.util.concurrent.CompletableFuture; /** * An endpoint links requests and responses to HTTP protocol encoding. It also defines the error response @@ -118,4 +121,20 @@ default BinaryEndpoint withBinaryResponse() { null ); } + + default ResponseT call(RequestT request, Transport transport) throws IOException { + return transport.performRequest(request, this, null); + } + + default ResponseT call(RequestT request, ApiClient client) throws IOException { + return client._transport().performRequest(request, this, null); + } + + default CompletableFuture callAsync(RequestT request, Transport transport) throws IOException { + return transport.performRequestAsync(request, this, null); + } + + default CompletableFuture callAsync(RequestT request, ApiClient client) throws IOException { + return client._transport().performRequestAsync(request, this, null); + } } diff --git a/java-client/src/main/java/co/elastic/clients/transport/endpoints/BinaryDataResponse.java b/java-client/src/main/java/co/elastic/clients/transport/endpoints/BinaryDataResponse.java index 937edc10f..f75662a25 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/endpoints/BinaryDataResponse.java +++ b/java-client/src/main/java/co/elastic/clients/transport/endpoints/BinaryDataResponse.java @@ -20,6 +20,7 @@ package co.elastic.clients.transport.endpoints; import co.elastic.clients.util.BinaryData; +import co.elastic.clients.util.ByteArrayBinaryData; import java.io.IOException; import java.io.InputStream; @@ -50,4 +51,8 @@ public InputStream content() throws IOException { @Override public void close() throws IOException { } + + public static BinaryDataResponse of(byte[] data, String contentType) { + return new BinaryDataResponse(new ByteArrayBinaryData(data, contentType)); + } } diff --git a/java-client/src/main/java/co/elastic/clients/util/ByteArrayBinaryData.java b/java-client/src/main/java/co/elastic/clients/util/ByteArrayBinaryData.java index 6509e77ab..9641b013f 100644 --- a/java-client/src/main/java/co/elastic/clients/util/ByteArrayBinaryData.java +++ b/java-client/src/main/java/co/elastic/clients/util/ByteArrayBinaryData.java @@ -43,14 +43,14 @@ public class ByteArrayBinaryData implements BinaryData { private final int length; private final String contentType; - ByteArrayBinaryData(byte[] bytes, int offset, int length, String contentType) { + public ByteArrayBinaryData(byte[] bytes, int offset, int length, String contentType) { this.contentType = contentType; this.bytes = bytes; this.offset = offset; this.length = length; } - ByteArrayBinaryData(byte[] bytes, String contentType) { + public ByteArrayBinaryData(byte[] bytes, String contentType) { this.contentType = contentType; this.bytes = bytes; this.offset = 0; diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/ElasticsearchTestServer.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/ElasticsearchTestServer.java index 037fc028d..498bce9ae 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/ElasticsearchTestServer.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/ElasticsearchTestServer.java @@ -36,11 +36,17 @@ import org.elasticsearch.client.RestClient; import org.testcontainers.elasticsearch.ElasticsearchContainer; import org.testcontainers.images.builder.ImageFromDockerfile; +import org.testcontainers.shaded.org.apache.commons.io.IOUtils; import org.testcontainers.utility.DockerImageName; import javax.net.ssl.SSLContext; import java.io.IOException; +import java.io.InputStream; +import java.net.HttpURLConnection; +import java.net.URL; +import java.nio.charset.StandardCharsets; import java.time.Duration; +import java.util.Base64; public class ElasticsearchTestServer implements AutoCloseable { @@ -55,9 +61,30 @@ public class ElasticsearchTestServer implements AutoCloseable { public static synchronized ElasticsearchTestServer global() { if (global == null) { - System.out.println("Starting global ES test server."); - global = new ElasticsearchTestServer(); - global.start(); + + // Try localhost:9200 + try { + String localUrl = "http://localhost:9200"; + HttpURLConnection connection = (HttpURLConnection) new URL(localUrl).openConnection(); + connection.setRequestProperty("Authorization", "Basic " + + Base64.getEncoder().encodeToString("elastic:changeme".getBytes(StandardCharsets.UTF_8))); + + try (InputStream input = connection.getInputStream()) { + String content = IOUtils.toString(input, StandardCharsets.UTF_8); + if (content.contains("You Know, for Search")) { + System.out.println("Found a running ES server at http://localhost:9200/"); + + global = new ElasticsearchTestServer(); + global.setup(localUrl, null); + } + } + } catch (Exception e) { + // Create container + System.out.println("Starting global ES test server."); + global = new ElasticsearchTestServer(); + global.start(); + } + Runtime.getRuntime().addShutdownHook(new Thread(() -> { System.out.println("Stopping global ES test server."); global.close(); @@ -70,8 +97,27 @@ public ElasticsearchTestServer(String... plugins) { this.plugins = plugins; } + protected void setup(String url, SSLContext sslContext) { + BasicCredentialsProvider credsProv = new BasicCredentialsProvider(); + credsProv.setCredentials( + AuthScope.ANY, new UsernamePasswordCredentials("elastic", "changeme") + ); + restClient = RestClient.builder(HttpHost.create(url)) + .setHttpClientConfigCallback(hc -> hc + .setDefaultCredentialsProvider(credsProv) + .setSSLContext(sslContext) + ) + .build(); + transport = new RestClientTransport(restClient, mapper); + client = new ElasticsearchClient(transport); + } + public synchronized ElasticsearchTestServer start() { - Version version = Version.VERSION.major() < 8 ? new Version(7,17,5,false) : new Version(8,3,3,false); + if (this.client != null) { + return this; + } + + Version version = Version.VERSION.major() < 8 ? new Version(7,17,5,false) : new Version(8,12,0,false); // Note we could use version.major() + "." + version.minor() + "-SNAPSHOT" but plugins won't install on a snapshot version String esImage = "docker.elastic.co/elasticsearch/elasticsearch:" + version; @@ -101,25 +147,12 @@ public synchronized ElasticsearchTestServer start() { .withPassword("changeme"); container.start(); - int port = container.getMappedPort(9200); - boolean useTLS = version.major() >= 8; - HttpHost host = new HttpHost("localhost", port, useTLS ? "https": "http"); SSLContext sslContext = useTLS ? container.createSslContextFromCa() : null; + String url = (useTLS ? "https://" : "http://") + container.getHttpHostAddress(); - BasicCredentialsProvider credsProv = new BasicCredentialsProvider(); - credsProv.setCredentials( - AuthScope.ANY, new UsernamePasswordCredentials("elastic", "changeme") - ); - restClient = RestClient.builder(host) - .setHttpClientConfigCallback(hc -> hc - .setDefaultCredentialsProvider(credsProv) - .setSSLContext(sslContext) - ) - .build(); - transport = new RestClientTransport(restClient, mapper); - client = new ElasticsearchClient(transport); + setup(url, sslContext); return this; } diff --git a/java-client/src/test/java/co/elastic/clients/json/jackson/JacksonMapperTest.java b/java-client/src/test/java/co/elastic/clients/json/jackson/JacksonMapperTest.java index e4bb42bc4..56d42d7ac 100644 --- a/java-client/src/test/java/co/elastic/clients/json/jackson/JacksonMapperTest.java +++ b/java-client/src/test/java/co/elastic/clients/json/jackson/JacksonMapperTest.java @@ -23,14 +23,19 @@ import co.elastic.clients.testkit.ModelTestCase; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonNaming; import org.junit.jupiter.api.Test; import java.io.IOException; +import java.util.Collections; +import java.util.List; public class JacksonMapperTest extends ModelTestCase { @@ -72,4 +77,26 @@ public TestData deserialize(JsonParser jp, DeserializationContext ctx) throws IO } } } + + @Test + public void testSingleValueAsList() { + JsonpMapper jsonpMapper = new JacksonJsonpMapper(); + + String json = "{\"_index\":\"foo\",\"_id\":\"1\",\"_source\":{\"emp_no\":42,\"job_positions\":\"SWE\"}}"; + + Hit testDataHit = fromJson(json, + Hit.createHitDeserializer(JsonpDeserializer.of(EmpData.class)), + jsonpMapper + ); + EmpData data = testDataHit.source(); + assertEquals(42, data.empNo); + assertEquals(Collections.singletonList("SWE"), data.jobPositions); + } + + @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) + @JsonIgnoreProperties(ignoreUnknown = true) + public static class EmpData { + public int empNo; + public List jobPositions; + } } diff --git a/java-client/src/test/java/co/elastic/clients/testkit/MockHttpClient.java b/java-client/src/test/java/co/elastic/clients/testkit/MockHttpClient.java new file mode 100644 index 000000000..cc2c0e878 --- /dev/null +++ b/java-client/src/test/java/co/elastic/clients/testkit/MockHttpClient.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. + */ + +package co.elastic.clients.testkit; + +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.transport.ElasticsearchTransportBase; +import co.elastic.clients.transport.TransportException; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.http.TransportHttpClient; +import co.elastic.clients.util.BinaryData; +import org.jetbrains.annotations.Nullable; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ConcurrentHashMap; + +public class MockHttpClient implements TransportHttpClient { + + private static final Response NotFound = new MockResponse(404, null); + + Map responses = new ConcurrentHashMap<>(); + + public MockHttpClient add(String path, String contentType, byte[] data) { + responses.put(path, new MockResponse(200, BinaryData.of(data, contentType))); + return this; + } + + public MockHttpClient add(String path, String contentType, String text) { + responses.put(path, new MockResponse(200, BinaryData.of(text.getBytes(StandardCharsets.UTF_8), contentType))); + return this; + } + + public ElasticsearchClient client() { + return client(new ModelTestCase() {}.mapper); + } + + public ElasticsearchClient client(JsonpMapper mapper) { + return new ElasticsearchClient(new ElasticsearchTransportBase(this, null, mapper) { + @Override + public void close() throws IOException { + super.close(); + } + }); + } + + + @Override + public Response performRequest( + String endpointId, @Nullable TransportHttpClient.Node node, Request request, TransportOptions option + ) throws IOException { + Response response = responses.get(request.path()); + + if (response == null) { + throw new TransportException(NotFound, "Not found", endpointId); + } + + return response; + } + + @Override + public CompletableFuture performRequestAsync( + String endpointId, @Nullable TransportHttpClient.Node node, Request request, TransportOptions options + ) { + CompletableFuture result = new CompletableFuture<>(); + try { + Response response = performRequest(endpointId, node, request, options); + result.complete(response); + } catch (Exception e) { + result.completeExceptionally(e); + } + return result; + } + + @Override + public void close() throws IOException { + } + + private static class MockResponse implements TransportHttpClient.Response { + + private final int statusCode; + private final BinaryData body; + private final Map headers; + + MockResponse(int statusCode, BinaryData body) { + this.statusCode = statusCode; + this.headers = new HashMap<>(); + this.body = body; + + if (body != null) { + headers.put("content-type", body.contentType()); + } + headers.put("x-elastic-product", "Elasticsearch"); + } + + @Override + public Node node() { + return null; + } + + @Override + public int statusCode() { + return statusCode; + } + + @Nullable + @Override + public String header(String name) { + return headers.get(name.toLowerCase()); + } + + @Override + public List headers(String name) { + String header = header(name); + return header == null ? null : Collections.singletonList(header); + } + + @Nullable + @Override + public BinaryData body() throws IOException { + return body; + } + + @Nullable + @Override + public Object originalResponse() { + return null; + } + + @Override + public void close() throws IOException { + } + } +} From d1dfacdcea21ff9f670d3c5de13ee62bd1b65c5d Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Wed, 13 Mar 2024 17:03:56 +0100 Subject: [PATCH 17/25] Add ES|QL helpers (#762) Adds helpers for ES|QL. The ES|QL result format is meant to be compact: it is composed of a metadata part giving field names and their types and a 2D array of values, which isn't easy to use in application code. This PR provides adapters that convert the ES|QL JSON result format into higher level types that are easier to use. Two adapters are provided: * An `ObjectsAdatper` that combines field names and values from the array to build a collection of objects using JSON to object mapping * A `ResultSetAdpater` that provides an implementation of the well-known JDBC `ResultSet`. This is a cursor-based API where the application can inspect at runtime the type and names of the ES|QL results, and is therefore more suited for ad-hoc or dynamic queries where the result structure isn't known in advance. Along with adapters, additional methods in `ElasticsearchEsqlClient` provide simple way to send queries using just a string and optional parameters when you don't need to specify additional request details. --- .../_helpers/esql/EsqlAdapter.java | 47 + .../_helpers/esql/EsqlAdapterBase.java | 69 + .../_helpers/esql/EsqlHelper.java | 114 ++ .../_helpers/esql/EsqlMetadata.java | 77 + .../_helpers/esql/ObjectsEsqlAdapter.java | 110 ++ .../_helpers/esql/jdbc/Cursor.java | 48 + .../_helpers/esql/jdbc/EsType.java | 86 ++ .../_helpers/esql/jdbc/ExtraTypes.java | 47 + .../_helpers/esql/jdbc/JdbcColumnInfo.java | 111 ++ .../_helpers/esql/jdbc/JdbcDateUtils.java | 97 ++ .../_helpers/esql/jdbc/JdbcResultSet.java | 1274 +++++++++++++++++ .../esql/jdbc/JdbcResultSetMetaData.java | 174 +++ .../_helpers/esql/jdbc/JdbcWrapper.java | 41 + .../_helpers/esql/jdbc/JsonpCursor.java | 146 ++ .../esql/jdbc/ResultSetEsqlAdapter.java | 57 + .../_helpers/esql/jdbc/StringUtils.java | 169 +++ .../_helpers/esql/jdbc/TypeConverter.java | 681 +++++++++ .../_helpers/esql/jdbc/TypeUtils.java | 147 ++ .../_types/ElasticsearchException.java | 3 +- .../elasticsearch/_types/FieldValue.java | 1 - .../esql/ElasticsearchEsqlAsyncClient.java | 41 + .../esql/ElasticsearchEsqlClient.java | 42 + .../esql/EsqlAdapterEndToEndTest.java | 194 +++ .../_helpers/esql/EsqlAdapterTest.java | 91 ++ .../_helpers/esql/employees.ndjson | 201 +++ 25 files changed, 4066 insertions(+), 2 deletions(-) create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapter.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterBase.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlHelper.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlMetadata.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/ObjectsEsqlAdapter.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/Cursor.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/EsType.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/ExtraTypes.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcColumnInfo.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcDateUtils.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcResultSet.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcResultSetMetaData.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcWrapper.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JsonpCursor.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/ResultSetEsqlAdapter.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/StringUtils.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/TypeConverter.java create mode 100644 java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/TypeUtils.java create mode 100644 java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.java create mode 100644 java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java create mode 100644 java-client/src/test/resources/co/elastic/clients/elasticsearch/_helpers/esql/employees.ndjson diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapter.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapter.java new file mode 100644 index 000000000..0be4ad393 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapter.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch.esql.QueryRequest; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.endpoints.BinaryResponse; + +import java.io.IOException; + +/** + * A deserializer for ES|QL responses. + */ +public interface EsqlAdapter { + /** + * ESQL result format this deserializer accepts (text, csv, json, arrow, etc.) + */ + String format(); + + /** + * For JSON results, whether the result should be organized in rows or columns + */ + boolean columnar(); + + /** + * Deserialize the raw http response returned by the server + */ + Result deserialize(ApiClient client, QueryRequest request, BinaryResponse response) throws IOException; +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterBase.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterBase.java new file mode 100644 index 000000000..374de7f07 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterBase.java @@ -0,0 +1,69 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql; + +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpMappingException; +import co.elastic.clients.json.JsonpUtils; +import jakarta.json.stream.JsonParser; + +import java.util.List; + +public abstract class EsqlAdapterBase implements EsqlAdapter { + + /** + * Reads the header of an ES|QL response, moving the parser at the beginning of the first value row. + * The caller can then read row arrays until finding an end array that closes the top-level array. + */ + public static EsqlMetadata readHeader(JsonParser parser, JsonpMapper mapper) { + JsonpUtils.expectNextEvent(parser, JsonParser.Event.START_OBJECT); + JsonpUtils.expectNextEvent(parser, JsonParser.Event.KEY_NAME); + + if (!"columns".equals(parser.getString())) { + throw new JsonpMappingException("Expecting a 'columns' property, but found '" + parser.getString() + "'", parser.getLocation()); + } + + List columns = JsonpDeserializer + .arrayDeserializer(EsqlMetadata.EsqlColumn._DESERIALIZER) + .deserialize(parser, mapper); + + EsqlMetadata result = new EsqlMetadata(); + result.columns = columns; + + JsonpUtils.expectNextEvent(parser, JsonParser.Event.KEY_NAME); + + if (!"values".equals(parser.getString())) { + throw new JsonpMappingException("Expecting a 'values' property, but found '" + parser.getString() + "'", parser.getLocation()); + } + + JsonpUtils.expectNextEvent(parser, JsonParser.Event.START_ARRAY); + + return result; + } + + /** + * Checks the footer of an ES|QL response, once the values have been read. + */ + public static void readFooter(JsonParser parser) { + JsonpUtils.expectNextEvent(parser, JsonParser.Event.END_OBJECT); + } + +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlHelper.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlHelper.java new file mode 100644 index 000000000..a57afcdb3 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlHelper.java @@ -0,0 +1,114 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql; + +import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch.esql.ElasticsearchEsqlAsyncClient; +import co.elastic.clients.elasticsearch.esql.ElasticsearchEsqlClient; +import co.elastic.clients.elasticsearch.esql.QueryRequest; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.transport.endpoints.BinaryResponse; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +public class EsqlHelper { + + //----- Synchronous + + public static T query( + ElasticsearchEsqlClient client, EsqlAdapter adapter, String query, Object... params + ) throws IOException { + QueryRequest request = buildRequest(adapter, query, params); + BinaryResponse response = client.query(request); + return adapter.deserialize(client, request, response); + } + + public static T query(ElasticsearchEsqlClient client, EsqlAdapter adapter, QueryRequest request) throws IOException { + request = buildRequest(adapter, request); + BinaryResponse response = client.query(request); + return adapter.deserialize(client, request, response); + } + + //----- Asynchronous + + public static CompletableFuture queryAsync( + ElasticsearchEsqlAsyncClient client, EsqlAdapter adapter, String query, Object... params + ) { + return doQueryAsync(client, adapter, buildRequest(adapter, query, params)); + } + + public static CompletableFuture queryAsync( + ElasticsearchEsqlAsyncClient client, EsqlAdapter adapter, QueryRequest request + ) { + return doQueryAsync(client, adapter, buildRequest(adapter, request)); + } + + private static CompletableFuture doQueryAsync( + ElasticsearchEsqlAsyncClient client, EsqlAdapter adapter, QueryRequest request + ) { + return client + .query(request) + .thenApply(r -> { + try { + return adapter.deserialize(client, request, r); + } catch (IOException e) { + throw new RuntimeException(e); + } + }); + } + + //----- Utilities + + private static QueryRequest buildRequest(EsqlAdapter adapter, String query, Object... params) { + return QueryRequest.of(esql -> esql + .format(adapter.format()) + .columnar(adapter.columnar()) + .query(query) + .params(asFieldValues(params)) + ); + } + + private static QueryRequest buildRequest(EsqlAdapter adapter, QueryRequest request) { + return QueryRequest.of(q -> q + // Set/override format and columnar + .format(adapter.format()) + .columnar(adapter.columnar()) + + .delimiter(request.delimiter()) + .filter(request.filter()) + .locale(request.locale()) + .params(request.params()) + .query(request.query()) + ); + } + + private static List asFieldValues(Object... objects) { + + List result = new ArrayList<>(objects.length); + for (Object object: objects) { + result.add(FieldValue.of(JsonData.of(object))); + } + + return result; + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlMetadata.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlMetadata.java new file mode 100644 index 000000000..d4e23d00b --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlMetadata.java @@ -0,0 +1,77 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql; + +import co.elastic.clients.json.JsonpDeserializable; +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 co.elastic.clients.util.ObjectBuilderBase; + +import java.util.List; + +public class EsqlMetadata { + + @JsonpDeserializable + public static class EsqlColumn { + private String name; + private String type; + + public String name() { + return name; + } + + public String type() { + return type; + } + + public static class Builder extends ObjectBuilderBase implements ObjectBuilder { + EsqlColumn object = new EsqlColumn(); + + public Builder name(String value) { + object.name = value; + return this; + } + + public Builder type(String value) { + object.type = value; + return this; + } + + @Override + public EsqlColumn build() { + _checkSingleUse(); + return object; + } + } + + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy( + EsqlColumn.Builder::new, EsqlColumn::setupEsqlColumnDeserializer + ); + + protected static void setupEsqlColumnDeserializer(ObjectDeserializer op) { + op.add(EsqlColumn.Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(EsqlColumn.Builder::type, JsonpDeserializer.stringDeserializer(), "type"); + } + } + + public List columns; +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/ObjectsEsqlAdapter.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/ObjectsEsqlAdapter.java new file mode 100644 index 000000000..9de683553 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/ObjectsEsqlAdapter.java @@ -0,0 +1,110 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch.esql.QueryRequest; +import co.elastic.clients.json.BufferingJsonGenerator; +import co.elastic.clients.json.BufferingJsonpMapper; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.endpoints.BinaryResponse; +import jakarta.json.stream.JsonParser; + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.List; + +/** + * And ES|QL adapter that returns an iterable of domain objects + */ +class ObjectsEsqlAdapter implements EsqlAdapter> { + + public static ObjectsEsqlAdapter of(Class clazz) { + return new ObjectsEsqlAdapter<>(clazz); + } + + public static ObjectsEsqlAdapter of(Type type) { + return new ObjectsEsqlAdapter<>(type); + } + + private final Type type; + + ObjectsEsqlAdapter(Type type) { + this.type = type; + } + + @Override + public String format() { + return "json"; + } + + @Override + public boolean columnar() { + return false; + } + + @Override + public Iterable deserialize(ApiClient client, QueryRequest request, BinaryResponse response) + throws IOException { + JsonpMapper mapper = client._jsonpMapper(); + + if (!(mapper instanceof BufferingJsonpMapper)) { + throw new IllegalArgumentException("ES|QL object mapping currently only works with JacksonJsonpMapper"); + } + + JsonParser parser = mapper.jsonProvider().createParser(response.content()); + + List columns = EsqlAdapterBase.readHeader(parser, mapper).columns; + + List results = new ArrayList<>(); + JsonParser.Event event; + + while ((event = parser.next()) != JsonParser.Event.END_ARRAY) { + // Start of row + JsonpUtils.expectEvent(parser, JsonParser.Event.START_ARRAY, event); + + results.add(parseRow(columns, parser, mapper)); + + // End of row + JsonpUtils.expectNextEvent(parser, JsonParser.Event.END_ARRAY); + } + + EsqlAdapterBase.readFooter(parser); + + return results; + } + + private T parseRow(List columns, JsonParser parser, JsonpMapper mapper) { + // FIXME: add a second implementation not requiring a buffering parser + BufferingJsonGenerator buffer = ((BufferingJsonpMapper) mapper).createBufferingGenerator(); + + buffer.writeStartObject(); + for (EsqlMetadata.EsqlColumn column : columns) { + buffer.writeKey(column.name()); + JsonpUtils.copy(parser, buffer); + } + buffer.writeEnd(); + + return mapper.deserialize(buffer.getParser(), type); + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/Cursor.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/Cursor.java new file mode 100644 index 000000000..53660fe3b --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/Cursor.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.sql.SQLException; +import java.util.List; + +interface Cursor { + + List columns(); + + default int columnSize() { + return columns().size(); + } + + boolean next() throws SQLException; + + Object column(int column); + + /** + * Number of rows that this cursor has pulled back from the + * server in the current batch. + */ + int batchSize(); + + void close() throws SQLException; + + List warnings(); + + void clearWarnings(); +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/EsType.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/EsType.java new file mode 100644 index 000000000..0d356d05b --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/EsType.java @@ -0,0 +1,86 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.sql.SQLType; +import java.sql.Types; + +enum EsType implements SQLType { + + NULL(Types.NULL), + UNSUPPORTED(Types.OTHER), + BOOLEAN(Types.BOOLEAN), + BYTE(Types.TINYINT), + SHORT(Types.SMALLINT), + INTEGER(Types.INTEGER), + LONG(Types.BIGINT), + DOUBLE(Types.DOUBLE), + FLOAT(Types.REAL), + HALF_FLOAT(Types.FLOAT), + SCALED_FLOAT(Types.FLOAT), + KEYWORD(Types.VARCHAR), + TEXT(Types.VARCHAR), + OBJECT(Types.STRUCT), + NESTED(Types.STRUCT), + BINARY(Types.VARBINARY), + DATE(Types.DATE), + TIME(Types.TIME), + DATETIME(Types.TIMESTAMP), + IP(Types.VARCHAR), + INTERVAL_YEAR(ExtraTypes.INTERVAL_YEAR), + INTERVAL_MONTH(ExtraTypes.INTERVAL_MONTH), + INTERVAL_YEAR_TO_MONTH(ExtraTypes.INTERVAL_YEAR_MONTH), + INTERVAL_DAY(ExtraTypes.INTERVAL_DAY), + INTERVAL_HOUR(ExtraTypes.INTERVAL_HOUR), + INTERVAL_MINUTE(ExtraTypes.INTERVAL_MINUTE), + INTERVAL_SECOND(ExtraTypes.INTERVAL_SECOND), + INTERVAL_DAY_TO_HOUR(ExtraTypes.INTERVAL_DAY_HOUR), + INTERVAL_DAY_TO_MINUTE(ExtraTypes.INTERVAL_DAY_MINUTE), + INTERVAL_DAY_TO_SECOND(ExtraTypes.INTERVAL_DAY_SECOND), + INTERVAL_HOUR_TO_MINUTE(ExtraTypes.INTERVAL_HOUR_MINUTE), + INTERVAL_HOUR_TO_SECOND(ExtraTypes.INTERVAL_HOUR_SECOND), + INTERVAL_MINUTE_TO_SECOND(ExtraTypes.INTERVAL_MINUTE_SECOND), + GEO_POINT(ExtraTypes.GEOMETRY), + GEO_SHAPE(ExtraTypes.GEOMETRY), + SHAPE(ExtraTypes.GEOMETRY), + UNSIGNED_LONG(Types.NUMERIC), + VERSION(Types.VARCHAR); + + private final Integer type; + + EsType(int type) { + this.type = Integer.valueOf(type); + } + + @Override + public String getName() { + return name(); + } + + @Override + public String getVendor() { + return "co.elastic.clients"; + } + + @Override + public Integer getVendorTypeNumber() { + return type; + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/ExtraTypes.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/ExtraTypes.java new file mode 100644 index 000000000..69d875c1e --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/ExtraTypes.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.sql.JDBCType; +import java.sql.Types; + +/** + * Provides ODBC-based codes for the missing SQL data types from {@link Types}/{@link JDBCType}. + */ +final class ExtraTypes { + + private ExtraTypes() {} + + static final int INTERVAL_YEAR = 101; + static final int INTERVAL_MONTH = 102; + static final int INTERVAL_DAY = 103; + static final int INTERVAL_HOUR = 104; + static final int INTERVAL_MINUTE = 105; + static final int INTERVAL_SECOND = 106; + static final int INTERVAL_YEAR_MONTH = 107; + static final int INTERVAL_DAY_HOUR = 108; + static final int INTERVAL_DAY_MINUTE = 109; + static final int INTERVAL_DAY_SECOND = 110; + static final int INTERVAL_HOUR_MINUTE = 111; + static final int INTERVAL_HOUR_SECOND = 112; + static final int INTERVAL_MINUTE_SECOND = 113; + static final int GEOMETRY = 114; + +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcColumnInfo.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcColumnInfo.java new file mode 100644 index 000000000..6043429bc --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcColumnInfo.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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.sql.SQLException; +import java.util.Objects; + +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.StringUtils.EMPTY; + +class JdbcColumnInfo { + public final String catalog; + public final String schema; + public final String table; + public final String label; + public final String name; + public final int displaySize; + public final EsType type; + + JdbcColumnInfo(String name, String type) throws SQLException { + this(name, TypeUtils.of(type), "", "", "", "", 0); + } + + JdbcColumnInfo(String name, EsType type, String table, String catalog, String schema, String label, int displaySize) { + if (name == null) { + throw new IllegalArgumentException("[name] must not be null"); + } + if (type == null) { + throw new IllegalArgumentException("[type] must not be null"); + } + if (table == null) { + throw new IllegalArgumentException("[table] must not be null"); + } + if (catalog == null) { + throw new IllegalArgumentException("[catalog] must not be null"); + } + if (schema == null) { + throw new IllegalArgumentException("[schema] must not be null"); + } + if (label == null) { + throw new IllegalArgumentException("[label] must not be null"); + } + this.name = name; + this.type = type; + this.table = table; + this.catalog = catalog; + this.schema = schema; + this.label = label; + this.displaySize = displaySize; + } + + int displaySize() { + // 0 - means unknown + return displaySize; + } + + @Override + public String toString() { + StringBuilder b = new StringBuilder(); + if (false == EMPTY.equals(table)) { + b.append(table).append('.'); + } + b.append(name).append("').toString(); + } + + @Override + public boolean equals(Object obj) { + if (obj == null || obj.getClass() != getClass()) { + return false; + } + JdbcColumnInfo other = (JdbcColumnInfo) obj; + return name.equals(other.name) + && type.equals(other.type) + && table.equals(other.table) + && catalog.equals(other.catalog) + && schema.equals(other.schema) + && label.equals(other.label) + && displaySize == other.displaySize; + } + + @Override + public int hashCode() { + return Objects.hash(name, type, table, catalog, schema, label, displaySize); + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcDateUtils.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcDateUtils.java new file mode 100644 index 000000000..47297d6a0 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcDateUtils.java @@ -0,0 +1,97 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.sql.Date; +import java.sql.Time; +import java.sql.Timestamp; +import java.time.LocalDate; +import java.time.OffsetTime; +import java.time.ZonedDateTime; +import java.util.function.Function; + +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.StringUtils.ISO_DATETIME_WITH_NANOS; +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.StringUtils.ISO_TIME_WITH_NANOS; + +/** + * JDBC specific datetime specific utility methods. Because of lack of visibility, this class borrows code + * from {@code org.elasticsearch.xpack.sql.util.DateUtils} and {@code org.elasticsearch.xpack.sql.proto.StringUtils}. + */ +class JdbcDateUtils { + + private JdbcDateUtils() {} + + // In Java 8 LocalDate.EPOCH is not available, introduced with later Java versions + private static final LocalDate EPOCH = LocalDate.of(1970, 1, 1); + + static ZonedDateTime asZonedDateTime(String date) { + return ISO_DATETIME_WITH_NANOS.parse(date, ZonedDateTime::from); + } + + static long dateTimeAsMillisSinceEpoch(String date) { + return asZonedDateTime(date).toInstant().toEpochMilli(); + } + + static long timeAsMillisSinceEpoch(String date) { + return ISO_TIME_WITH_NANOS.parse(date, OffsetTime::from).atDate(EPOCH).toInstant().toEpochMilli(); + } + + static Date asDate(String date) { + ZonedDateTime zdt = asZonedDateTime(date); + return new Date(zdt.toLocalDate().atStartOfDay(zdt.getZone()).toInstant().toEpochMilli()); + } + + static Time asTime(String date) { + ZonedDateTime zdt = asZonedDateTime(date); + return new Time(zdt.toLocalTime().atDate(EPOCH).atZone(zdt.getZone()).toInstant().toEpochMilli()); + } + + static Time timeAsTime(String date) { + OffsetTime ot = ISO_TIME_WITH_NANOS.parse(date, OffsetTime::from); + return new Time(ot.atDate(EPOCH).toInstant().toEpochMilli()); + } + + static Timestamp asTimestamp(long millisSinceEpoch) { + return new Timestamp(millisSinceEpoch); + } + + static Timestamp asTimestamp(String date) { + ZonedDateTime zdt = asZonedDateTime(date); + Timestamp timestamp = new Timestamp(zdt.toInstant().toEpochMilli()); + timestamp.setNanos(zdt.getNano()); + return timestamp; + } + + static Timestamp timeAsTimestamp(String date) { + return new Timestamp(timeAsMillisSinceEpoch(date)); + } + + /* + * Handles the value received as parameter, as either String (a ZonedDateTime formatted in ISO 8601 standard with millis) - + * date fields being returned formatted like this. Or a Long value, in case of Histograms. + */ + static R asDateTimeField(Object value, Function asDateTimeMethod, Function ctor) { + if (value instanceof String) { + return asDateTimeMethod.apply((String) value); + } else { + return ctor.apply(((Number) value).longValue()); + } + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcResultSet.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcResultSet.java new file mode 100644 index 000000000..62836137f --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcResultSet.java @@ -0,0 +1,1274 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.io.InputStream; +import java.io.Reader; +import java.math.BigDecimal; +import java.net.URL; +import java.sql.Array; +import java.sql.Blob; +import java.sql.Clob; +import java.sql.Date; +import java.sql.NClob; +import java.sql.Ref; +import java.sql.ResultSet; +import java.sql.ResultSetMetaData; +import java.sql.RowId; +import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; +import java.sql.SQLWarning; +import java.sql.SQLXML; +import java.sql.Statement; +import java.sql.Time; +import java.sql.Timestamp; +import java.util.Calendar; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.TimeZone; + +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.EsType.DATE; +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.EsType.DATETIME; +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.EsType.TIME; +import static java.lang.String.format; + +class JdbcResultSet implements ResultSet, JdbcWrapper { + + // temporary calendar instance (per connection) used for normalizing the date and time + // even though the cfg is already in UTC format, JDBC 3.0 requires java.sql.Time to have its date + // removed (set to Jan 01 1970) and java.sql.Date to have its HH:mm:ss component removed + // instead of dealing with longs, a Calendar object is used instead + private final Calendar defaultCalendar; + + private final Statement statement; + private Cursor cursor; + private final Map nameToIndex = new LinkedHashMap<>(); + + private boolean closed = false; + private boolean wasNull = false; + private boolean wasLast = false; + + private int rowNumber; + + JdbcResultSet(Cursor cursor) { + this.statement = null; + this.cursor = cursor; + // statement can be null so we have to extract the timeZone from the non-nullable cfg + // TODO: should we consider the locale as well? + TimeZone cfgTimeZone = TimeZone.getDefault(); + this.defaultCalendar = Calendar.getInstance(cfgTimeZone, Locale.ROOT); + + List columns = cursor.columns(); + for (int i = 0; i < columns.size(); i++) { + nameToIndex.put(columns.get(i).name, Integer.valueOf(i + 1)); + } + } + + private Object column(int columnIndex) throws SQLException { + checkOpen(); + if (columnIndex < 1 || columnIndex > cursor.columnSize()) { + throw new SQLException("Invalid column index [" + columnIndex + "]"); + } + if (wasLast || rowNumber < 1) { + throw new SQLException("No row available"); + } + Object object = null; + try { + object = cursor.column(columnIndex - 1); + } catch (Exception iae) { + throw new SQLException(iae.getMessage()); + } + wasNull = (object == null); + return object; + } + + private int column(String columnName) throws SQLException { + checkOpen(); + Integer index = nameToIndex.get(columnName); + if (index == null) { + throw new SQLException("Invalid column label [" + columnName + "]"); + } + return index.intValue(); + } + + private EsType columnType(int columnIndex) { + return cursor.columns().get(columnIndex - 1).type; + } + + void checkOpen() throws SQLException { + if (isClosed()) { + throw new SQLException("Closed result set"); + } + } + + @Override + public boolean next() throws SQLException { + checkOpen(); + if (cursor.next()) { + rowNumber++; + return true; + } + wasLast = true; + return false; + } + + @Override + public void close() throws SQLException { + if (closed == false) { + closed = true; +// if (statement != null) { +// statement.resultSetWasClosed(); +// } + cursor.close(); + } + } + + @Override + public boolean wasNull() throws SQLException { + checkOpen(); + return wasNull; + } + + @Override + public String getString(int columnIndex) throws SQLException { + return getObject(columnIndex, String.class); + } + + @Override + public boolean getBoolean(int columnIndex) throws SQLException { + return column(columnIndex) != null ? getObject(columnIndex, Boolean.class) : false; + } + + @Override + public byte getByte(int columnIndex) throws SQLException { + return column(columnIndex) != null ? getObject(columnIndex, Byte.class) : 0; + } + + @Override + public short getShort(int columnIndex) throws SQLException { + return column(columnIndex) != null ? getObject(columnIndex, Short.class) : 0; + } + + @Override + public int getInt(int columnIndex) throws SQLException { + return column(columnIndex) != null ? getObject(columnIndex, Integer.class) : 0; + } + + @Override + public long getLong(int columnIndex) throws SQLException { + return column(columnIndex) != null ? getObject(columnIndex, Long.class) : 0; + } + + @Override + public float getFloat(int columnIndex) throws SQLException { + return column(columnIndex) != null ? getObject(columnIndex, Float.class) : 0; + } + + @Override + public double getDouble(int columnIndex) throws SQLException { + return column(columnIndex) != null ? getObject(columnIndex, Double.class) : 0; + } + + @Override + public byte[] getBytes(int columnIndex) throws SQLException { + try { + return (byte[]) column(columnIndex); + } catch (ClassCastException cce) { + throw new SQLException("unable to convert column " + columnIndex + " to a byte array", cce); + } + } + + @Override + public Date getDate(int columnIndex) throws SQLException { + return asDate(columnIndex); + } + + @Override + public Time getTime(int columnIndex) throws SQLException { + return asTime(columnIndex); + } + + @Override + public Timestamp getTimestamp(int columnIndex) throws SQLException { + return asTimeStamp(columnIndex); + } + + @Override + public String getString(String columnLabel) throws SQLException { + return getString(column(columnLabel)); + } + + @Override + public boolean getBoolean(String columnLabel) throws SQLException { + return getBoolean(column(columnLabel)); + } + + @Override + public byte getByte(String columnLabel) throws SQLException { + return getByte(column(columnLabel)); + } + + @Override + public short getShort(String columnLabel) throws SQLException { + return getShort(column(columnLabel)); + } + + @Override + public int getInt(String columnLabel) throws SQLException { + return getInt(column(columnLabel)); + } + + @Override + public long getLong(String columnLabel) throws SQLException { + return getLong(column(columnLabel)); + } + + @Override + public float getFloat(String columnLabel) throws SQLException { + return getFloat(column(columnLabel)); + } + + @Override + public double getDouble(String columnLabel) throws SQLException { + return getDouble(column(columnLabel)); + } + + @Override + public byte[] getBytes(String columnLabel) throws SQLException { + return getBytes(column(columnLabel)); + } + + @Override + public Date getDate(String columnLabel) throws SQLException { + // TODO: the error message in case the value in the column cannot be converted to a Date refers to a column index + // (for example - "unable to convert column 4 to a long") and not to the column name, which is a bit confusing. + // Should we reconsider this? Maybe by catching the exception here and rethrowing it with the columnLabel instead. + return getDate(column(columnLabel)); + } + + private Long dateTimeAsMillis(int columnIndex) throws SQLException { + Object val = column(columnIndex); + EsType type = columnType(columnIndex); + + if (val == null) { + return null; + } + + try { + // TODO: the B6 appendix of the jdbc spec does mention CHAR, VARCHAR, LONGVARCHAR, DATE, TIMESTAMP as supported + // jdbc types that should be handled by getDate and getTime methods. From all of those we support VARCHAR and + // TIMESTAMP. Should we consider the VARCHAR conversion as a later enhancement? + if (DATETIME == type) { + // the cursor can return an Integer if the date-since-epoch is small enough, XContentParser (Jackson) will + // return the "smallest" data type for numbers when parsing + // TODO: this should probably be handled server side + if (val instanceof String) { + return JdbcDateUtils.asZonedDateTime((String) val).toInstant().toEpochMilli(); + } else { + return ((Number) val).longValue(); + } + } + if (DATE == type) { + return JdbcDateUtils.dateTimeAsMillisSinceEpoch(val.toString()); + } + if (TIME == type) { + return JdbcDateUtils.timeAsMillisSinceEpoch(val.toString()); + } + return (Long) val; + } catch (ClassCastException cce) { + throw new SQLException( + format(Locale.ROOT, "Unable to convert value [%.128s] of type [%s] to a Long", val, type.getName()), + cce + ); + } + } + + private Date asDate(int columnIndex) throws SQLException { + Object val = column(columnIndex); + + if (val == null) { + return null; + } + + EsType type = columnType(columnIndex); + if (type == TIME) { + return new Date(0L); + } + + try { + return JdbcDateUtils.asDate(val.toString()); + } catch (Exception e) { + throw new SQLException(format(Locale.ROOT, "Unable to convert value [%.128s] of type [%s] to a Date", val, type.getName()), e); + } + } + + private Time asTime(int columnIndex) throws SQLException { + Object val = column(columnIndex); + + if (val == null) { + return null; + } + + EsType type = columnType(columnIndex); + if (type == DATE) { + return new Time(0L); + } + + try { + if (type == TIME) { + return JdbcDateUtils.timeAsTime(val.toString()); + } + return JdbcDateUtils.asTime(val.toString()); + } catch (Exception e) { + throw new SQLException(format(Locale.ROOT, "Unable to convert value [%.128s] of type [%s] to a Time", val, type.getName()), e); + } + } + + private Timestamp asTimeStamp(int columnIndex) throws SQLException { + Object val = column(columnIndex); + + if (val == null) { + return null; + } + + EsType type = columnType(columnIndex); + try { + if (val instanceof Number) { + return JdbcDateUtils.asTimestamp(((Number) val).longValue()); + } + if (type == TIME) { + return JdbcDateUtils.timeAsTimestamp(val.toString()); + } + return JdbcDateUtils.asTimestamp(val.toString()); + } catch (Exception e) { + throw new SQLException( + format(Locale.ROOT, "Unable to convert value [%.128s] of type [%s] to a Timestamp", val, type.getName()), + e + ); + } + } + + private Calendar safeCalendar(Calendar calendar) { + return calendar == null ? defaultCalendar : calendar; + } + + @Override + public Date getDate(int columnIndex, Calendar cal) throws SQLException { + return TypeConverter.convertDate(dateTimeAsMillis(columnIndex), safeCalendar(cal)); + } + + @Override + public Date getDate(String columnLabel, Calendar cal) throws SQLException { + return getDate(column(columnLabel), cal); + } + + @Override + public Time getTime(int columnIndex, Calendar cal) throws SQLException { + EsType type = columnType(columnIndex); + if (type == DATE) { + return new Time(0L); + } + return TypeConverter.convertTime(dateTimeAsMillis(columnIndex), safeCalendar(cal)); + } + + @Override + public Time getTime(String columnLabel) throws SQLException { + return getTime(column(columnLabel)); + } + + @Override + public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { + Timestamp ts = getTimestamp(columnIndex); + if (ts == null) { + return null; + } + return TypeConverter.convertTimestamp(ts.getTime(), ts.getNanos(), safeCalendar(cal)); + } + + @Override + public Timestamp getTimestamp(String columnLabel) throws SQLException { + return getTimestamp(column(columnLabel)); + } + + @Override + public Time getTime(String columnLabel, Calendar cal) throws SQLException { + return getTime(column(columnLabel), cal); + } + + @Override + public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException { + return getTimestamp(column(columnLabel), cal); + } + + @Override + public ResultSetMetaData getMetaData() throws SQLException { + return new JdbcResultSetMetaData(this, cursor.columns()); + } + + @Override + public Object getObject(int columnIndex) throws SQLException { + return convert(columnIndex, null); + } + + @Override + public T getObject(int columnIndex, Class type) throws SQLException { + if (type == null) { + throw new SQLException("type is null"); + } + + return convert(columnIndex, type); + } + + private T convert(int columnIndex, Class type) throws SQLException { + Object val = column(columnIndex); + + if (val == null) { + return null; + } + + EsType columnType = columnType(columnIndex); + String typeString = type != null ? type.getSimpleName() : columnType.getName(); + + return TypeConverter.convert(val, columnType, type, typeString); + } + + @Override + public Object getObject(int columnIndex, Map> map) throws SQLException { + if (map == null || map.isEmpty()) { + return getObject(columnIndex); + } + throw new SQLFeatureNotSupportedException("getObject with non-empty Map not supported"); + } + + @Override + public Object getObject(String columnLabel) throws SQLException { + return getObject(column(columnLabel)); + } + + @Override + public T getObject(String columnLabel, Class type) throws SQLException { + return getObject(column(columnLabel), type); + } + + @Override + public Object getObject(String columnLabel, Map> map) throws SQLException { + return getObject(column(columnLabel), map); + } + + @Override + public int findColumn(String columnLabel) throws SQLException { + return column(columnLabel); + } + + @Override + public boolean isBeforeFirst() throws SQLException { + return rowNumber == 0; + } + + @Override + public boolean isAfterLast() throws SQLException { + return rowNumber > 0 && wasLast; + } + + @Override + public boolean isFirst() throws SQLException { + return rowNumber == 1; + } + + @Override + public boolean isLast() throws SQLException { + throw new SQLFeatureNotSupportedException("isLast not supported"); + } + + @Override + public int getRow() throws SQLException { + return rowNumber; + } + + @Override + public void setFetchSize(int rows) throws SQLException { + checkOpen(); + if (rows < 0) { + throw new SQLException("Rows is negative"); + } + if (rows != getFetchSize()) { + throw new SQLException("Fetch size cannot be changed"); + } + // ignore fetch size since scrolls cannot be changed in flight + } + + @Override + public int getFetchSize() throws SQLException { + /* + * Instead of returning the fetch size the user requested we make a + * stab at returning the fetch size that we actually used, returning + * the batch size of the current row. This allows us to assert these + * batch sizes in testing and lets us point users to something that + * they can use for debugging. + */ + checkOpen(); + return cursor.batchSize(); + } + + @Override + public Statement getStatement() throws SQLException { + checkOpen(); + return statement; + } + + @Override + public boolean isClosed() { + return closed; + } + + @Override + @Deprecated + public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException { + BigDecimal bd = getBigDecimal(columnIndex); + // The API doesn't allow for specifying a rounding behavior, although BigDecimals did have a way of controlling rounding, even + // before the API got deprecated => default to fail if scaling can't return an exactly equal value, since this behavior was + // expected by (old) callers as well. + return bd == null ? null : bd.setScale(scale); + } + + @Override + public InputStream getAsciiStream(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("AsciiStream not supported"); + } + + @Override + @Deprecated + public InputStream getUnicodeStream(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("UnicodeStream not supported"); + } + + @Override + public InputStream getBinaryStream(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("BinaryStream not supported"); + } + + @Override + @Deprecated + public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException { + return getBigDecimal(column(columnLabel), scale); + } + + @Override + public InputStream getAsciiStream(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("AsciiStream not supported"); + } + + @Override + @Deprecated + public InputStream getUnicodeStream(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("UnicodeStream not supported"); + } + + @Override + public InputStream getBinaryStream(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("BinaryStream not supported"); + } + + @Override + public SQLWarning getWarnings() throws SQLException { + checkOpen(); + SQLWarning sqlWarning = null; + for (String warning : cursor.warnings()) { + if (sqlWarning == null) { + sqlWarning = new SQLWarning(warning); + } else { + sqlWarning.setNextWarning(new SQLWarning(warning)); + } + } + return sqlWarning; + } + + @Override + public void clearWarnings() throws SQLException { + checkOpen(); + cursor.clearWarnings(); + } + + @Override + public String getCursorName() throws SQLException { + throw new SQLFeatureNotSupportedException("Cursor name not supported"); + } + + @Override + public Reader getCharacterStream(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("CharacterStream not supported"); + } + + @Override + public Reader getCharacterStream(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("CharacterStream not supported"); + } + + @Override + public BigDecimal getBigDecimal(int columnIndex) throws SQLException { + return convert(columnIndex, BigDecimal.class); + } + + @Override + public BigDecimal getBigDecimal(String columnLabel) throws SQLException { + return getBigDecimal(column(columnLabel)); + } + + @Override + public void beforeFirst() throws SQLException { + throw new SQLException("ResultSet is forward-only"); + } + + @Override + public void afterLast() throws SQLException { + throw new SQLException("ResultSet is forward-only"); + } + + @Override + public boolean first() throws SQLException { + throw new SQLException("ResultSet is forward-only"); + } + + @Override + public boolean last() throws SQLException { + throw new SQLException("ResultSet is forward-only"); + } + + @Override + public boolean absolute(int row) throws SQLException { + throw new SQLException("ResultSet is forward-only"); + } + + @Override + public boolean relative(int rows) throws SQLException { + throw new SQLException("ResultSet is forward-only"); + } + + @Override + public boolean previous() throws SQLException { + throw new SQLException("ResultSet is forward-only"); + } + + @Override + public int getType() throws SQLException { + checkOpen(); + return TYPE_FORWARD_ONLY; + } + + @Override + public int getConcurrency() throws SQLException { + checkOpen(); + return CONCUR_READ_ONLY; + } + + @Override + public void setFetchDirection(int direction) throws SQLException { + checkOpen(); + if (direction != FETCH_FORWARD) { + throw new SQLException("Fetch direction must be FETCH_FORWARD"); + } + } + + @Override + public int getFetchDirection() throws SQLException { + checkOpen(); + return FETCH_FORWARD; + } + + @Override + public boolean rowUpdated() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public boolean rowInserted() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public boolean rowDeleted() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNull(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBoolean(int columnIndex, boolean x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateByte(int columnIndex, byte x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateShort(int columnIndex, short x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateInt(int columnIndex, int x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateLong(int columnIndex, long x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateFloat(int columnIndex, float x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateDouble(int columnIndex, double x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateString(int columnIndex, String x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBytes(int columnIndex, byte[] x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateDate(int columnIndex, Date x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateTime(int columnIndex, Time x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateObject(int columnIndex, Object x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNull(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBoolean(String columnLabel, boolean x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateByte(String columnLabel, byte x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateShort(String columnLabel, short x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateInt(String columnLabel, int x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateLong(String columnLabel, long x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateFloat(String columnLabel, float x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateDouble(String columnLabel, double x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateString(String columnLabel, String x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBytes(String columnLabel, byte[] x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateDate(String columnLabel, Date x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateTime(String columnLabel, Time x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateObject(String columnLabel, Object x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void insertRow() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateRow() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void deleteRow() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void cancelRowUpdates() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void moveToInsertRow() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void refreshRow() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void moveToCurrentRow() throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public Ref getRef(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("Ref not supported"); + } + + @Override + public Blob getBlob(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("Blob not supported"); + } + + @Override + public Clob getClob(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("Clob not supported"); + } + + @Override + public Array getArray(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("Array not supported"); + } + + @Override + public Ref getRef(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("Ref not supported"); + } + + @Override + public Blob getBlob(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("Blob not supported"); + } + + @Override + public Clob getClob(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("Clob not supported"); + } + + @Override + public Array getArray(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("Array not supported"); + } + + @Override + public URL getURL(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("URL not supported"); + } + + @Override + public URL getURL(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("URL not supported"); + } + + @Override + public void updateRef(int columnIndex, Ref x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateRef(String columnLabel, Ref x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBlob(int columnIndex, Blob x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBlob(String columnLabel, Blob x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateClob(int columnIndex, Clob x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateClob(String columnLabel, Clob x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateArray(int columnIndex, Array x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateArray(String columnLabel, Array x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public RowId getRowId(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("RowId not supported"); + } + + @Override + public RowId getRowId(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("RowId not supported"); + } + + @Override + public void updateRowId(int columnIndex, RowId x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateRowId(String columnLabel, RowId x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public int getHoldability() throws SQLException { + checkOpen(); + return HOLD_CURSORS_OVER_COMMIT; + } + + @Override + public void updateNString(int columnIndex, String nString) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNString(String columnLabel, String nString) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNClob(int columnIndex, NClob nClob) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNClob(String columnLabel, NClob nClob) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public NClob getNClob(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("NClob not supported"); + } + + @Override + public NClob getNClob(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("NClob not supported"); + } + + @Override + public SQLXML getSQLXML(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("SQLXML not supported"); + } + + @Override + public SQLXML getSQLXML(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("SQLXML not supported"); + } + + @Override + public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public String getNString(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("NString not supported"); + } + + @Override + public String getNString(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("NString not supported"); + } + + @Override + public Reader getNCharacterStream(int columnIndex) throws SQLException { + throw new SQLFeatureNotSupportedException("NCharacterStream not supported"); + } + + @Override + public Reader getNCharacterStream(String columnLabel) throws SQLException { + throw new SQLFeatureNotSupportedException("NCharacterStream not supported"); + } + + @Override + public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateClob(int columnIndex, Reader reader, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateClob(String columnLabel, Reader reader, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateCharacterStream(int columnIndex, Reader x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateClob(int columnIndex, Reader reader) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateClob(String columnLabel, Reader reader) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNClob(int columnIndex, Reader reader) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public void updateNClob(String columnLabel, Reader reader) throws SQLException { + throw new SQLFeatureNotSupportedException("Writes not supported"); + } + + @Override + public String toString() { + return format( + Locale.ROOT, + "%s:row %d:cursor size %d:%s", + getClass().getSimpleName(), + rowNumber, + cursor.batchSize(), + cursor.columns() + ); + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcResultSetMetaData.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcResultSetMetaData.java new file mode 100644 index 000000000..a404518c5 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcResultSetMetaData.java @@ -0,0 +1,174 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.sql.ResultSetMetaData; +import java.sql.SQLException; +import java.util.List; +import java.util.Locale; + +import static java.lang.String.format; +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.StringUtils.EMPTY; + +class JdbcResultSetMetaData implements ResultSetMetaData, JdbcWrapper { + + private final JdbcResultSet rs; + private final List columns; + + JdbcResultSetMetaData(JdbcResultSet rs, List columns) { + this.rs = rs; + this.columns = columns; + } + + @Override + public int getColumnCount() throws SQLException { + checkOpen(); + return columns.size(); + } + + @Override + public boolean isAutoIncrement(int column) throws SQLException { + column(column); + return false; + } + + @Override + public boolean isCaseSensitive(int column) throws SQLException { + column(column); + return true; + } + + @Override + public boolean isSearchable(int column) throws SQLException { + column(column); + return true; + } + + @Override + public boolean isCurrency(int column) throws SQLException { + column(column); + return false; + } + + @Override + public int isNullable(int column) throws SQLException { + column(column); + return columnNullableUnknown; + } + + @Override + public boolean isSigned(int column) throws SQLException { + return TypeUtils.isSigned(column(column).type); + } + + @Override + public int getColumnDisplaySize(int column) throws SQLException { + return column(column).displaySize(); + } + + @Override + public String getColumnLabel(int column) throws SQLException { + JdbcColumnInfo info = column(column); + return EMPTY.equals(info.label) ? info.name : info.label; + } + + @Override + public String getColumnName(int column) throws SQLException { + return column(column).name; + } + + @Override + public String getSchemaName(int column) throws SQLException { + return column(column).schema; + } + + @Override + public int getPrecision(int column) throws SQLException { + column(column); + return 0; + } + + @Override + public int getScale(int column) throws SQLException { + return column(column).displaySize(); + } + + @Override + public String getTableName(int column) throws SQLException { + return column(column).table; + } + + @Override + public String getCatalogName(int column) throws SQLException { + return column(column).catalog; + } + + @Override + public int getColumnType(int column) throws SQLException { + return column(column).type.getVendorTypeNumber(); + } + + @Override + public String getColumnTypeName(int column) throws SQLException { + return column(column).type.getName(); + } + + @Override + public boolean isReadOnly(int column) throws SQLException { + column(column); + return true; + } + + @Override + public boolean isWritable(int column) throws SQLException { + column(column); + return false; + } + + @Override + public boolean isDefinitelyWritable(int column) throws SQLException { + column(column); + return false; + } + + @Override + public String getColumnClassName(int column) throws SQLException { + return TypeUtils.classOf(column(column).type).getName(); + } + + private void checkOpen() throws SQLException { + if (rs != null) { + rs.checkOpen(); + } + } + + private JdbcColumnInfo column(int column) throws SQLException { + checkOpen(); + if (column < 1 || column > columns.size()) { + throw new SQLException("Invalid column index [" + column + "]"); + } + return columns.get(column - 1); + } + + @Override + public String toString() { + return format(Locale.ROOT, "%s(%s)", getClass().getSimpleName(), columns); + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcWrapper.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcWrapper.java new file mode 100644 index 000000000..7fffd10a1 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JdbcWrapper.java @@ -0,0 +1,41 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.sql.SQLException; +import java.sql.Wrapper; + +interface JdbcWrapper extends Wrapper { + + @Override + default boolean isWrapperFor(Class iface) throws SQLException { + return iface != null && iface.isAssignableFrom(getClass()); + } + + @SuppressWarnings("unchecked") + @Override + default T unwrap(Class iface) throws SQLException { + if (isWrapperFor(iface)) { + return (T) this; + } + throw new SQLException(); + } +} + diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JsonpCursor.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JsonpCursor.java new file mode 100644 index 000000000..a3be17c85 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/JsonpCursor.java @@ -0,0 +1,146 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import co.elastic.clients.elasticsearch._helpers.esql.EsqlAdapterBase; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlMetadata; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.UnexpectedJsonEventException; +import jakarta.json.stream.JsonParser; + +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +class JsonpCursor implements Cursor { + + private final JsonParser parser; + private final JsonpMapper mapper; + private final List columns; + private List record = new ArrayList<>(); + + JsonpCursor(EsqlMetadata metadata, JsonParser parser, JsonpMapper mapper) { + this.parser = parser; + this.mapper = mapper; + + this.columns = metadata.columns.stream() + .map(col -> { + try { + return new JdbcColumnInfo(col.name(), col.type()); + } catch (SQLException e) { + throw new RuntimeException(e); + } + }) + .collect(Collectors.toList()); + } + + @Override + public List columns() { + return columns; + } + + @Override + public boolean next() throws SQLException { + if (record == null) { + // We're done + return false; + } + + JsonParser.Event event = parser.next(); + if (event != JsonParser.Event.START_ARRAY) { + // End of values + record = null; + JsonpUtils.expectEvent(parser, JsonParser.Event.END_ARRAY, event); + EsqlAdapterBase.readFooter(parser); + return false; + } + + record.clear(); + while ((event = parser.next()) != JsonParser.Event.END_ARRAY) { + record.add(readValue(parser, event)); + } + + return true; + } + + private Object readValue(JsonParser parser, JsonParser.Event event) { + switch (event) { + case VALUE_STRING: + return parser.getString(); + case VALUE_NUMBER: + return parser.isIntegralNumber() ? parser.getLong() : parser.getBigDecimal().doubleValue(); + case VALUE_FALSE: + return Boolean.FALSE; + case VALUE_TRUE: + return Boolean.TRUE; + case VALUE_NULL: + return null; + case START_OBJECT: { + Map map = new HashMap<>(); + while ((event = parser.next()) != JsonParser.Event.END_OBJECT) { + String key = JsonpUtils.expectKeyName(parser, event); + map.put(key, readValue(parser, parser.next())); + } + return map; + } + case START_ARRAY: { + List list = new ArrayList<>(); + while ((event = parser.next()) != JsonParser.Event.END_ARRAY) { + list.add(readValue(parser, event)); + } + return list; + } + default: + throw new UnexpectedJsonEventException(parser, event); + } + } + + @Override + public Object column(int column) { + return record.get(column); + } + + @Override + public int batchSize() { + return 0; + } + + @Override + public void close() throws SQLException { + // Consume the JSON stream + while (next()) { + // Nothing + } + } + + @Override + public List warnings() { + return Collections.emptyList(); + } + + @Override + public void clearWarnings() { + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/ResultSetEsqlAdapter.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/ResultSetEsqlAdapter.java new file mode 100644 index 000000000..fd34334fa --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/ResultSetEsqlAdapter.java @@ -0,0 +1,57 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlAdapterBase; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlMetadata; +import co.elastic.clients.elasticsearch.esql.QueryRequest; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.endpoints.BinaryResponse; +import jakarta.json.stream.JsonParser; + +import java.sql.ResultSet; + +import java.io.IOException; + +public class ResultSetEsqlAdapter extends EsqlAdapterBase { + + public static final ResultSetEsqlAdapter INSTANCE = new ResultSetEsqlAdapter(); + + @Override + public String format() { + return "json"; + } + + @Override + public boolean columnar() { + return false; + } + + @Override + public ResultSet deserialize(ApiClient client, QueryRequest request, BinaryResponse response) + throws IOException { + JsonpMapper mapper = client._jsonpMapper(); + JsonParser parser = mapper.jsonProvider().createParser(response.content()); + EsqlMetadata metadata = EsqlAdapterBase.readHeader(parser, mapper); + return new JdbcResultSet(new JsonpCursor(metadata, parser, mapper)); + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/StringUtils.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/StringUtils.java new file mode 100644 index 000000000..953f693a3 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/StringUtils.java @@ -0,0 +1,169 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.sql.Timestamp; +import java.time.Duration; +import java.time.OffsetTime; +import java.time.Period; +import java.time.ZonedDateTime; +import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeFormatterBuilder; +import java.util.Locale; +import java.util.Objects; +import java.util.concurrent.TimeUnit; + +import static java.time.format.DateTimeFormatter.ISO_LOCAL_DATE; +import static java.time.temporal.ChronoField.HOUR_OF_DAY; +import static java.time.temporal.ChronoField.MILLI_OF_SECOND; +import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; +import static java.time.temporal.ChronoField.NANO_OF_SECOND; +import static java.time.temporal.ChronoField.SECOND_OF_MINUTE; + +final class StringUtils { + + public static final String EMPTY = ""; + + public static final DateTimeFormatter ISO_DATETIME_WITH_NANOS = new DateTimeFormatterBuilder().parseCaseInsensitive() + .append(ISO_LOCAL_DATE) + .appendLiteral('T') + .appendValue(HOUR_OF_DAY, 2) + .appendLiteral(':') + .appendValue(MINUTE_OF_HOUR, 2) + .appendLiteral(':') + .appendValue(SECOND_OF_MINUTE, 2) + .appendFraction(NANO_OF_SECOND, 3, 9, true) + .appendOffsetId() + .toFormatter(Locale.ROOT); + + public static final DateTimeFormatter ISO_DATETIME_WITH_MILLIS = new DateTimeFormatterBuilder().parseCaseInsensitive() + .append(ISO_LOCAL_DATE) + .appendLiteral('T') + .appendValue(HOUR_OF_DAY, 2) + .appendLiteral(':') + .appendValue(MINUTE_OF_HOUR, 2) + .appendLiteral(':') + .appendValue(SECOND_OF_MINUTE, 2) + .appendFraction(MILLI_OF_SECOND, 3, 3, true) + .appendOffsetId() + .toFormatter(Locale.ROOT); + + public static final DateTimeFormatter ISO_TIME_WITH_NANOS = new DateTimeFormatterBuilder().parseCaseInsensitive() + .appendValue(HOUR_OF_DAY, 2) + .appendLiteral(':') + .appendValue(MINUTE_OF_HOUR, 2) + .appendLiteral(':') + .appendValue(SECOND_OF_MINUTE, 2) + .appendFraction(NANO_OF_SECOND, 3, 9, true) + .appendOffsetId() + .toFormatter(Locale.ROOT); + + public static final DateTimeFormatter ISO_TIME_WITH_MILLIS = new DateTimeFormatterBuilder().parseCaseInsensitive() + .appendValue(HOUR_OF_DAY, 2) + .appendLiteral(':') + .appendValue(MINUTE_OF_HOUR, 2) + .appendLiteral(':') + .appendValue(SECOND_OF_MINUTE, 2) + .appendFraction(MILLI_OF_SECOND, 3, 3, true) + .appendOffsetId() + .toFormatter(Locale.ROOT); + + private static final int SECONDS_PER_MINUTE = 60; + private static final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60; + private static final int SECONDS_PER_DAY = SECONDS_PER_HOUR * 24; + + private StringUtils() {} + + public static String toString(Object value) { + if (value == null) { + return "null"; + } + + if (value instanceof ZonedDateTime) { + return ((ZonedDateTime) value).format(ISO_DATETIME_WITH_NANOS); + } + if (value instanceof OffsetTime) { + return ((OffsetTime) value).format(ISO_TIME_WITH_NANOS); + } + if (value instanceof Timestamp) { + Timestamp ts = (Timestamp) value; + return ts.toInstant().toString(); + } + + // handle intervals + // YEAR/MONTH/YEAR TO MONTH -> YEAR TO MONTH + if (value instanceof Period) { + // +yyy-mm - 7 chars + StringBuilder sb = new StringBuilder(7); + Period p = (Period) value; + if (p.isNegative()) { + sb.append("-"); + p = p.negated(); + } else { + sb.append("+"); + } + sb.append(p.getYears()); + sb.append("-"); + sb.append(p.getMonths()); + return sb.toString(); + } + + // DAY/HOUR/MINUTE/SECOND (and variations) -> DAY_TO_SECOND + if (value instanceof Duration) { + // +ddd hh:mm:ss.mmmmmmmmm - 23 chars + StringBuilder sb = new StringBuilder(23); + Duration d = (Duration) value; + if (d.isNegative()) { + sb.append("-"); + d = d.negated(); + } else { + sb.append("+"); + } + + long durationInSec = d.getSeconds(); + + sb.append(durationInSec / SECONDS_PER_DAY); + sb.append(" "); + durationInSec = durationInSec % SECONDS_PER_DAY; + sb.append(indent(durationInSec / SECONDS_PER_HOUR)); + sb.append(":"); + durationInSec = durationInSec % SECONDS_PER_HOUR; + sb.append(indent(durationInSec / SECONDS_PER_MINUTE)); + sb.append(":"); + durationInSec = durationInSec % SECONDS_PER_MINUTE; + sb.append(indent(durationInSec)); + long millis = TimeUnit.NANOSECONDS.toMillis(d.getNano()); + if (millis > 0) { + sb.append("."); + while (millis % 10 == 0) { + millis /= 10; + } + sb.append(millis); + } + return sb.toString(); + } + + return Objects.toString(value); + } + + private static String indent(long timeUnit) { + return timeUnit < 10 ? "0" + timeUnit : Long.toString(timeUnit); + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/TypeConverter.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/TypeConverter.java new file mode 100644 index 000000000..2977e98c9 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/TypeConverter.java @@ -0,0 +1,681 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.sql.Date; +import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; +import java.sql.Time; +import java.sql.Timestamp; +import java.time.Duration; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.LocalTime; +import java.time.OffsetDateTime; +import java.time.OffsetTime; +import java.time.Period; +import java.util.Calendar; +import java.util.GregorianCalendar; +import java.util.Locale; +import java.util.function.Function; + +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.JdbcDateUtils.asDateTimeField; +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.JdbcDateUtils.timeAsTime; +import static java.lang.String.format; + +import static java.util.Calendar.DAY_OF_MONTH; +import static java.util.Calendar.ERA; +import static java.util.Calendar.HOUR_OF_DAY; +import static java.util.Calendar.MILLISECOND; +import static java.util.Calendar.MINUTE; +import static java.util.Calendar.MONTH; +import static java.util.Calendar.SECOND; +import static java.util.Calendar.YEAR; +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.EsType.DATE; +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.EsType.DATETIME; +import static co.elastic.clients.elasticsearch._helpers.esql.jdbc.EsType.TIME; + +/** + * Conversion utilities for conversion of JDBC types to Java type and back + *

+ * Only the following JDBC types are supported as part of Elasticsearch response and parameters. + * See org.elasticsearch.xpack.sql.type.DataType for details. + *

+ * NULL, BOOLEAN, TINYINT, SMALLINT, INTEGER, BIGINT, DOUBLE, REAL, FLOAT, VARCHAR, VARBINARY and TIMESTAMP + */ +final class TypeConverter { + + private TypeConverter() {} + + /** + * Converts millisecond after epoc to date + */ + static Date convertDate(Long millis, Calendar cal) { + return dateTimeConvert(millis, cal, c -> { + c.set(HOUR_OF_DAY, 0); + c.set(MINUTE, 0); + c.set(SECOND, 0); + c.set(MILLISECOND, 0); + return new Date(c.getTimeInMillis()); + }); + } + + /** + * Converts millisecond after epoc to time + */ + static Time convertTime(Long millis, Calendar cal) { + return dateTimeConvert(millis, cal, c -> { + c.set(ERA, GregorianCalendar.AD); + c.set(YEAR, 1970); + c.set(MONTH, 0); + c.set(DAY_OF_MONTH, 1); + return new Time(c.getTimeInMillis()); + }); + } + + /** + * Converts millisecond after epoch to timestamp + */ + static Timestamp convertTimestamp(Long millis, int nanos, Calendar cal) { + Timestamp ts = dateTimeConvert(millis, cal, c -> new Timestamp(c.getTimeInMillis())); + if (ts != null) { + ts.setNanos(nanos); + } + return ts; + } + + private static T dateTimeConvert(Long millis, Calendar c, Function creator) { + if (millis == null) { + return null; + } + long initial = c.getTimeInMillis(); + try { + c.setTimeInMillis(millis); + return creator.apply(c); + } finally { + c.setTimeInMillis(initial); + } + } + + /** + * Converts object val from columnType to type + */ + @SuppressWarnings("unchecked") + static T convert(Object val, EsType columnType, Class type, String typeString) throws SQLException { + if (type == null) { + return (T) convert(val, columnType, typeString); + } + + // if the value type is the same as the target, no conversion is needed + // make sure though to check the internal type against the desired one + // since otherwise the internal object format can leak out + // (for example dates when longs are requested or intervals for strings) + if (type.isInstance(val) && TypeUtils.classOf(columnType) == type) { + try { + return type.cast(val); + } catch (ClassCastException cce) { + failConversion(val, columnType, typeString, type, cce); + } + } + + if (type == String.class) { + return (T) asString(convert(val, columnType, typeString)); + } + if (type == Boolean.class) { + return (T) asBoolean(val, columnType, typeString); + } + if (type == Byte.class) { + return (T) asByte(val, columnType, typeString); + } + if (type == Short.class) { + return (T) asShort(val, columnType, typeString); + } + if (type == Integer.class) { + return (T) asInteger(val, columnType, typeString); + } + if (type == Long.class) { + return (T) asLong(val, columnType, typeString); + } + if (type == BigInteger.class) { + return (T) asBigInteger(val, columnType, typeString); + } + if (type == Float.class) { + return (T) asFloat(val, columnType, typeString); + } + if (type == Double.class) { + return (T) asDouble(val, columnType, typeString); + } + if (type == Date.class) { + return (T) asDate(val, columnType, typeString); + } + if (type == Time.class) { + return (T) asTime(val, columnType, typeString); + } + if (type == Timestamp.class) { + return (T) asTimestamp(val, columnType, typeString); + } + if (type == byte[].class) { + return (T) asByteArray(val, columnType, typeString); + } + if (type == BigDecimal.class) { + return (T) asBigDecimal(val, columnType, typeString); + } + // + // JDK 8 types + // + if (type == LocalDate.class) { + return (T) asLocalDate(val, columnType, typeString); + } + if (type == LocalTime.class) { + return (T) asLocalTime(val, columnType, typeString); + } + if (type == LocalDateTime.class) { + return (T) asLocalDateTime(val, columnType, typeString); + } + if (type == OffsetTime.class) { + return (T) asOffsetTime(val, columnType, typeString); + } + if (type == OffsetDateTime.class) { + return (T) asOffsetDateTime(val, columnType, typeString); + } + + return failConversion(val, columnType, typeString, type); + } + + /** + * Converts the object from JSON representation to the specified JDBCType + */ + static Object convert(Object v, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case NULL: + return null; + case BOOLEAN: + case TEXT: + case KEYWORD: + return v; // These types are already represented correctly in JSON + case BYTE: + return ((Number) v).byteValue(); // Parser might return it as integer or long - need to update to the correct type + case SHORT: + return ((Number) v).shortValue(); // Parser might return it as integer or long - need to update to the correct type + case INTEGER: + return ((Number) v).intValue(); + case LONG: + return ((Number) v).longValue(); + case UNSIGNED_LONG: + return asBigInteger(v, columnType, typeString); + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return doubleValue(v); // Double might be represented as string for infinity and NaN values + case FLOAT: + return floatValue(v); // Float might be represented as string for infinity and NaN values + case DATE: + return asDateTimeField(v, JdbcDateUtils::asDate, Date::new); + case TIME: + return timeAsTime(v.toString()); + case DATETIME: + return asDateTimeField(v, JdbcDateUtils::asTimestamp, Timestamp::new); + case INTERVAL_YEAR: + case INTERVAL_MONTH: + case INTERVAL_YEAR_TO_MONTH: + return Period.parse(v.toString()); + case INTERVAL_DAY: + case INTERVAL_HOUR: + case INTERVAL_MINUTE: + case INTERVAL_SECOND: + case INTERVAL_DAY_TO_HOUR: + case INTERVAL_DAY_TO_MINUTE: + case INTERVAL_DAY_TO_SECOND: + case INTERVAL_HOUR_TO_MINUTE: + case INTERVAL_HOUR_TO_SECOND: + case INTERVAL_MINUTE_TO_SECOND: + return Duration.parse(v.toString()); + case GEO_POINT: + case GEO_SHAPE: + case SHAPE: + case IP: + case VERSION: + return v.toString(); + default: + throw new SQLException("Unexpected column type [" + typeString + "]"); + + } + } + + private static Double doubleValue(Object v) { + if (v instanceof String) { + switch ((String) v) { + case "NaN": + return Double.NaN; + case "Infinity": + return Double.POSITIVE_INFINITY; + case "-Infinity": + return Double.NEGATIVE_INFINITY; + default: + return Double.parseDouble((String) v); + } + } + return ((Number) v).doubleValue(); + } + + private static Float floatValue(Object v) { + if (v instanceof String) { + switch ((String) v) { + case "NaN": + return Float.NaN; + case "Infinity": + return Float.POSITIVE_INFINITY; + case "-Infinity": + return Float.NEGATIVE_INFINITY; + default: + return Float.parseFloat((String) v); + } + } + return ((Number) v).floatValue(); + } + + private static String asString(Object nativeValue) { + return nativeValue == null ? null : StringUtils.toString(nativeValue); + } + + private static T failConversion(Object value, EsType columnType, String typeString, Class target) throws SQLException { + return failConversion(value, columnType, typeString, target, null); + } + + private static T failConversion(Object value, EsType columnType, String typeString, Class target, Exception e) + throws SQLException { + String message = format(Locale.ROOT, "Unable to convert value [%.128s] of type [%s] to [%s]", value, columnType, typeString); + throw e != null ? new SQLException(message, e) : new SQLException(message); + } + + private static Boolean asBoolean(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + case BYTE: + case SHORT: + case INTEGER: + case LONG: + case UNSIGNED_LONG: + case FLOAT: + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return Boolean.valueOf(((Number) val).doubleValue() != 0); + case KEYWORD: + case TEXT: + return Boolean.valueOf((String) val); + default: + return failConversion(val, columnType, typeString, Boolean.class); + } + } + + private static Byte asByte(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + return Byte.valueOf(((Boolean) val).booleanValue() ? (byte) 1 : (byte) 0); + case BYTE: + case SHORT: + case INTEGER: + case LONG: + return safeToByte(((Number) val).longValue()); + case UNSIGNED_LONG: + return safeToByte(asBigInteger(val, columnType, typeString)); + case FLOAT: + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return safeToByte(safeToLong(((Number) val).doubleValue())); + case KEYWORD: + case TEXT: + try { + return Byte.valueOf((String) val); + } catch (NumberFormatException e) { + return failConversion(val, columnType, typeString, Byte.class, e); + } + default: + } + + return failConversion(val, columnType, typeString, Byte.class); + } + + private static Short asShort(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + return Short.valueOf(((Boolean) val).booleanValue() ? (short) 1 : (short) 0); + case BYTE: + case SHORT: + case INTEGER: + case LONG: + return safeToShort(((Number) val).longValue()); + case UNSIGNED_LONG: + return safeToShort(asBigInteger(val, columnType, typeString)); + case FLOAT: + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return safeToShort(safeToLong(((Number) val).doubleValue())); + case KEYWORD: + case TEXT: + try { + return Short.valueOf((String) val); + } catch (NumberFormatException e) { + return failConversion(val, columnType, typeString, Short.class, e); + } + default: + } + return failConversion(val, columnType, typeString, Short.class); + } + + private static Integer asInteger(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + return Integer.valueOf(((Boolean) val).booleanValue() ? 1 : 0); + case BYTE: + case SHORT: + case INTEGER: + case LONG: + return safeToInt(((Number) val).longValue()); + case UNSIGNED_LONG: + return safeToInt(asBigInteger(val, columnType, typeString)); + case FLOAT: + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return safeToInt(safeToLong(((Number) val).doubleValue())); + case KEYWORD: + case TEXT: + try { + return Integer.valueOf((String) val); + } catch (NumberFormatException e) { + return failConversion(val, columnType, typeString, Integer.class, e); + } + default: + } + return failConversion(val, columnType, typeString, Integer.class); + } + + private static Long asLong(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + return Long.valueOf(((Boolean) val).booleanValue() ? 1 : 0); + case BYTE: + case SHORT: + case INTEGER: + case LONG: + return Long.valueOf(((Number) val).longValue()); + case UNSIGNED_LONG: + return safeToLong(asBigInteger(val, columnType, typeString)); + case FLOAT: + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return safeToLong(((Number) val).doubleValue()); + // TODO: should we support conversion to TIMESTAMP? + // The spec says that getLong() should support the following types conversions: + // TINYINT, SMALLINT, INTEGER, BIGINT, REAL, FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, BOOLEAN, CHAR, VARCHAR, LONGVARCHAR + // case TIMESTAMP: + // return ((Number) val).longValue(); + case KEYWORD: + case TEXT: + try { + return Long.valueOf((String) val); + } catch (NumberFormatException e) { + return failConversion(val, columnType, typeString, Long.class, e); + } + default: + } + + return failConversion(val, columnType, typeString, Long.class); + } + + private static Float asFloat(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + return Float.valueOf(((Boolean) val).booleanValue() ? 1 : 0); + case BYTE: + case SHORT: + case INTEGER: + case LONG: + return Float.valueOf(((Number) val).longValue()); + case UNSIGNED_LONG: + return asBigInteger(val, columnType, typeString).floatValue(); + case FLOAT: + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return Float.valueOf(((Number) val).floatValue()); + case KEYWORD: + case TEXT: + try { + return Float.valueOf((String) val); + } catch (NumberFormatException e) { + return failConversion(val, columnType, typeString, Float.class, e); + } + default: + } + return failConversion(val, columnType, typeString, Float.class); + } + + private static Double asDouble(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + return Double.valueOf(((Boolean) val).booleanValue() ? 1 : 0); + case BYTE: + case SHORT: + case INTEGER: + case LONG: + return Double.valueOf(((Number) val).longValue()); + case UNSIGNED_LONG: + return asBigInteger(val, columnType, typeString).doubleValue(); + case FLOAT: + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return Double.valueOf(((Number) val).doubleValue()); + case KEYWORD: + case TEXT: + try { + return Double.valueOf((String) val); + } catch (NumberFormatException e) { + return failConversion(val, columnType, typeString, Double.class, e); + } + default: + } + return failConversion(val, columnType, typeString, Double.class); + } + + private static Date asDate(Object val, EsType columnType, String typeString) throws SQLException { + if (columnType == DATETIME || columnType == DATE) { + return asDateTimeField(val, JdbcDateUtils::asDate, Date::new); + } + if (columnType == TIME) { + return new Date(0L); + } + return failConversion(val, columnType, typeString, Date.class); + } + + private static Time asTime(Object val, EsType columnType, String typeString) throws SQLException { + if (columnType == DATETIME) { + return asDateTimeField(val, JdbcDateUtils::asTime, Time::new); + } + if (columnType == TIME) { + return asDateTimeField(val, JdbcDateUtils::timeAsTime, Time::new); + } + if (columnType == DATE) { + return new Time(0L); + } + return failConversion(val, columnType, typeString, Time.class); + } + + private static Timestamp asTimestamp(Object val, EsType columnType, String typeString) throws SQLException { + if (columnType == DATETIME || columnType == DATE) { + return asDateTimeField(val, JdbcDateUtils::asTimestamp, Timestamp::new); + } + if (columnType == TIME) { + return asDateTimeField(val, JdbcDateUtils::timeAsTimestamp, Timestamp::new); + } + return failConversion(val, columnType, typeString, Timestamp.class); + } + + private static byte[] asByteArray(Object val, EsType columnType, String typeString) throws SQLException { + throw new SQLFeatureNotSupportedException(); + } + + private static BigInteger asBigInteger(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + return ((Boolean) val).booleanValue() ? BigInteger.ONE : BigInteger.ZERO; + case BYTE: + case SHORT: + case INTEGER: + case LONG: + return BigInteger.valueOf(((Number) val).longValue()); + case FLOAT: + case HALF_FLOAT: + case SCALED_FLOAT: + case DOUBLE: + return BigDecimal.valueOf(((Number) val).doubleValue()).toBigInteger(); + // Aggs can return floats dressed as UL types (bugUrl="https://github.com/elastic/elasticsearch/issues/65413") + case UNSIGNED_LONG: + case KEYWORD: + case TEXT: + try { + return new BigDecimal(val.toString()).toBigInteger(); + } catch (NumberFormatException e) { + return failConversion(val, columnType, typeString, BigInteger.class, e); + } + default: + } + return failConversion(val, columnType, typeString, BigInteger.class); + } + + private static BigDecimal asBigDecimal(Object val, EsType columnType, String typeString) throws SQLException { + switch (columnType) { + case BOOLEAN: + return (Boolean) val ? BigDecimal.ONE : BigDecimal.ZERO; + case BYTE: + case SHORT: + case INTEGER: + case LONG: + return BigDecimal.valueOf(((Number) val).longValue()); + case UNSIGNED_LONG: + return new BigDecimal(asBigInteger(val, columnType, typeString)); + case FLOAT: + case HALF_FLOAT: + // floats are passed in as doubles here, so we need to dip into string to keep original float's (reduced) precision. + return new BigDecimal(String.valueOf(((Number) val).floatValue())); + case DOUBLE: + case SCALED_FLOAT: + return BigDecimal.valueOf(((Number) val).doubleValue()); + case KEYWORD: + case TEXT: + try { + return new BigDecimal((String) val); + } catch (NumberFormatException nfe) { + return failConversion(val, columnType, typeString, BigDecimal.class, nfe); + } + // TODO: should we implement numeric - interval types conversions too; ever needed? ODBC does mandate it + // https://docs.microsoft.com/en-us/sql/odbc/reference/appendixes/converting-data-from-c-to-sql-data-types + } + return failConversion(val, columnType, typeString, BigDecimal.class); + } + + private static LocalDate asLocalDate(Object val, EsType columnType, String typeString) throws SQLException { + throw new SQLFeatureNotSupportedException(); + } + + private static LocalTime asLocalTime(Object val, EsType columnType, String typeString) throws SQLException { + throw new SQLFeatureNotSupportedException(); + } + + private static LocalDateTime asLocalDateTime(Object val, EsType columnType, String typeString) throws SQLException { + throw new SQLFeatureNotSupportedException(); + } + + private static OffsetTime asOffsetTime(Object val, EsType columnType, String typeString) throws SQLException { + throw new SQLFeatureNotSupportedException(); + } + + private static OffsetDateTime asOffsetDateTime(Object val, EsType columnType, String typeString) throws SQLException { + throw new SQLFeatureNotSupportedException(); + } + + private static byte safeToByte(Number n) throws SQLException { + if (n instanceof BigInteger) { + try { + return ((BigInteger) n).byteValueExact(); + } catch (ArithmeticException ae) { + throw new SQLException(format(Locale.ROOT, "Numeric %s out of range", n)); + } + } + long x = n.longValue(); + if (x > Byte.MAX_VALUE || x < Byte.MIN_VALUE) { + throw new SQLException(format(Locale.ROOT, "Numeric %s out of range", n)); + } + return (byte) x; + } + + private static short safeToShort(Number n) throws SQLException { + if (n instanceof BigInteger) { + try { + return ((BigInteger) n).shortValueExact(); + } catch (ArithmeticException ae) { + throw new SQLException(format(Locale.ROOT, "Numeric %s out of range", n)); + } + } + long x = n.longValue(); + if (x > Short.MAX_VALUE || x < Short.MIN_VALUE) { + throw new SQLException(format(Locale.ROOT, "Numeric %s out of range", n)); + } + return (short) x; + } + + private static int safeToInt(Number n) throws SQLException { + if (n instanceof BigInteger) { + try { + return ((BigInteger) n).intValueExact(); + } catch (ArithmeticException ae) { + throw new SQLException(format(Locale.ROOT, "Numeric %s out of range", n)); + } + } + long x = n.longValue(); + if (x > Integer.MAX_VALUE || x < Integer.MIN_VALUE) { + throw new SQLException(format(Locale.ROOT, "Numeric %s out of range", n)); + } + return (int) x; + } + + private static long safeToLong(Number n) throws SQLException { + if (n instanceof BigInteger) { + try { + return ((BigInteger) n).longValueExact(); + } catch (ArithmeticException ae) { + throw new SQLException(format(Locale.ROOT, "Numeric %s out of range", n)); + } + } + double x = n.doubleValue(); + if (x > Long.MAX_VALUE || x < Long.MIN_VALUE) { + throw new SQLException(format(Locale.ROOT, "Numeric %s out of range", Double.toString(x))); + } + return Math.round(x); + } +} diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/TypeUtils.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/TypeUtils.java new file mode 100644 index 000000000..d7a728028 --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/jdbc/TypeUtils.java @@ -0,0 +1,147 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql.jdbc; + +import java.math.BigInteger; +import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; +import java.sql.Timestamp; +import java.time.Duration; +import java.time.LocalDateTime; +import java.time.Period; +import java.util.Calendar; +import java.util.Collections; +import java.util.EnumSet; +import java.util.GregorianCalendar; +import java.util.LinkedHashMap; +import java.util.Locale; +import java.util.Map; +import java.util.Set; + +import static java.util.Collections.unmodifiableMap; + +final class TypeUtils { + + private TypeUtils() {} + + private static final Map, EsType> CLASS_TO_TYPE; + private static final Map> TYPE_TO_CLASS; + private static final Map ENUM_NAME_TO_TYPE; + + private static final Set SIGNED_TYPE = EnumSet.of( + EsType.BYTE, + EsType.SHORT, + EsType.INTEGER, + EsType.LONG, + EsType.FLOAT, + EsType.HALF_FLOAT, + EsType.SCALED_FLOAT, + EsType.DOUBLE, + EsType.DATETIME + ); + + public static final int LONG_MAX_LENGTH = String.valueOf(Long.MAX_VALUE).length(); // type length value as defined in ES + + static { + // Note: keep in sync with org.elasticsearch.xpack.sql.qa.jdbc.JdbcTestUtils#CLASS_TO_ES_TYPE + Map, EsType> aMap = new LinkedHashMap<>(); + aMap.put(Boolean.class, EsType.BOOLEAN); + aMap.put(Byte.class, EsType.BYTE); + aMap.put(Short.class, EsType.SHORT); + aMap.put(Integer.class, EsType.INTEGER); + aMap.put(Long.class, EsType.LONG); + aMap.put(BigInteger.class, EsType.UNSIGNED_LONG); + aMap.put(Float.class, EsType.FLOAT); + aMap.put(Double.class, EsType.DOUBLE); + aMap.put(String.class, EsType.KEYWORD); + aMap.put(byte[].class, EsType.BINARY); + aMap.put(Timestamp.class, EsType.DATETIME); + + // apart from the mappings in {@code DataType} three more Java classes can be mapped to a {@code JDBCType.TIMESTAMP} + // according to B-4 table from the jdbc4.2 spec + aMap.put(Calendar.class, EsType.DATETIME); + aMap.put(GregorianCalendar.class, EsType.DATETIME); + aMap.put(java.util.Date.class, EsType.DATETIME); + aMap.put(java.sql.Date.class, EsType.DATETIME); + aMap.put(java.sql.Time.class, EsType.TIME); + aMap.put(LocalDateTime.class, EsType.DATETIME); + CLASS_TO_TYPE = Collections.unmodifiableMap(aMap); + + Map> types = new LinkedHashMap<>(); + types.put(EsType.BOOLEAN, Boolean.class); + types.put(EsType.BYTE, Byte.class); + types.put(EsType.SHORT, Short.class); + types.put(EsType.INTEGER, Integer.class); + types.put(EsType.LONG, Long.class); + types.put(EsType.UNSIGNED_LONG, BigInteger.class); + types.put(EsType.DOUBLE, Double.class); + types.put(EsType.FLOAT, Float.class); + types.put(EsType.HALF_FLOAT, Double.class); + types.put(EsType.SCALED_FLOAT, Double.class); + types.put(EsType.KEYWORD, String.class); + types.put(EsType.TEXT, String.class); + types.put(EsType.BINARY, byte[].class); + types.put(EsType.DATETIME, Timestamp.class); + types.put(EsType.IP, String.class); + types.put(EsType.VERSION, String.class); + types.put(EsType.INTERVAL_YEAR, Period.class); + types.put(EsType.INTERVAL_MONTH, Period.class); + types.put(EsType.INTERVAL_YEAR_TO_MONTH, Period.class); + types.put(EsType.INTERVAL_DAY, Duration.class); + types.put(EsType.INTERVAL_HOUR, Duration.class); + types.put(EsType.INTERVAL_MINUTE, Duration.class); + types.put(EsType.INTERVAL_SECOND, Duration.class); + types.put(EsType.INTERVAL_DAY_TO_HOUR, Duration.class); + types.put(EsType.INTERVAL_DAY_TO_MINUTE, Duration.class); + types.put(EsType.INTERVAL_DAY_TO_SECOND, Duration.class); + types.put(EsType.INTERVAL_HOUR_TO_MINUTE, Duration.class); + types.put(EsType.INTERVAL_HOUR_TO_SECOND, Duration.class); + types.put(EsType.INTERVAL_MINUTE_TO_SECOND, Duration.class); + types.put(EsType.GEO_POINT, String.class); + types.put(EsType.GEO_SHAPE, String.class); + types.put(EsType.SHAPE, String.class); + + TYPE_TO_CLASS = unmodifiableMap(types); + + Map strings = new LinkedHashMap<>(); + + for (EsType dataType : EsType.values()) { + strings.put(dataType.getName().toLowerCase(Locale.ROOT), dataType); + } + + ENUM_NAME_TO_TYPE = unmodifiableMap(strings); + } + + static boolean isSigned(EsType type) { + return SIGNED_TYPE.contains(type); + } + + static Class classOf(EsType type) { + return TYPE_TO_CLASS.get(type); + } + + static EsType of(String name) throws SQLException { + EsType dataType = ENUM_NAME_TO_TYPE.get(name); + if (dataType == null) { + throw new SQLFeatureNotSupportedException("Unsupported Data type [" + name + "]"); + } + return dataType; + } +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java index aa350d76b..bad5ca106 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java @@ -38,7 +38,8 @@ public class ElasticsearchException extends RuntimeException { @Nullable private final TransportHttpClient.Response httpResponse; - public ElasticsearchException(String endpointId, ErrorResponse response, @Nullable TransportHttpClient.Response httpResponse) { + public ElasticsearchException(String endpointId, ErrorResponse response, + @Nullable TransportHttpClient.Response httpResponse) { super("[" + endpointId + "] failed: [" + response.error().type() + "] " + response.error().reason()); this.response = response; this.endpointId = endpointId; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java index 9267fae3c..289399e10 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java @@ -33,7 +33,6 @@ import co.elastic.clients.util.ObjectBuilderBase; import co.elastic.clients.util.TaggedUnion; import co.elastic.clients.util.TaggedUnionUtils; -import jakarta.json.Json; import jakarta.json.stream.JsonGenerator; import jakarta.json.stream.JsonParser; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java index 023e943fb..5bc1b79fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch.esql; import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlAdapter; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlHelper; import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.transport.ElasticsearchTransport; import co.elastic.clients.transport.Endpoint; @@ -98,4 +100,43 @@ public final CompletableFuture query( return query(fn.apply(new QueryRequest.Builder()).build()); } + /** + * Executes an ES|QL request and adapts its result to a target type. + * + * @param adapter + * the ES|QL response adapter + * @param query + * the ES|QL query + * @param parameters + * values for query parameters, if any + */ + public final CompletableFuture query(EsqlAdapter adapter, String query, Object... parameters) { + return EsqlHelper.queryAsync(this, adapter, query, parameters); + } + + /** + * Executes an ES|QL request and adapts its result to a target type. + * + * @param adapter + * the ES|QL response adapter + * @param request + * the ES|QL request + */ + public final CompletableFuture query(EsqlAdapter adapter, QueryRequest request) { + return EsqlHelper.queryAsync(this, adapter, request); + } + + /** + * Executes an ES|QL request and adapts its result to a target type. + * + * @param adapter + * the ES|QL response adapter + * @param fn + * the ES|QL request builder + */ + public final CompletableFuture query(EsqlAdapter adapter, + Function> fn) { + return EsqlHelper.queryAsync(this, adapter, fn.apply(new QueryRequest.Builder()).build()); + } + } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java index d1f81c92f..93cbebacc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch.esql; import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlAdapter; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlHelper; import co.elastic.clients.elasticsearch._types.ElasticsearchException; import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.transport.ElasticsearchTransport; @@ -99,4 +101,44 @@ public final BinaryResponse query(Function T query(EsqlAdapter adapter, String query, Object... parameters) + throws IOException, ElasticsearchException { + return EsqlHelper.query(this, adapter, query, parameters); + } + + /** + * Executes an ES|QL request and adapts its result to a target type. + * + * @param adapter + * the ES|QL response adapter + * @param request + * the ES|QL request + */ + public final T query(EsqlAdapter adapter, QueryRequest request) throws IOException, ElasticsearchException { + return EsqlHelper.query(this, adapter, request); + } + + /** + * Executes an ES|QL request and adapts its result to a target type. + * + * @param adapter + * the ES|QL response adapter + * @param fn + * the ES|QL request builder + */ + public final T query(EsqlAdapter adapter, Function> fn) + throws IOException, ElasticsearchException { + return query(adapter, fn.apply(new QueryRequest.Builder()).build()); + } + } diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.java new file mode 100644 index 000000000..557d31703 --- /dev/null +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql; + +import co.elastic.clients.elasticsearch.ElasticsearchAsyncClient; +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.elasticsearch.ElasticsearchTestServer; +import co.elastic.clients.elasticsearch._helpers.esql.jdbc.ResultSetEsqlAdapter; +import co.elastic.clients.json.jackson.JacksonJsonpMapper; +import co.elastic.clients.transport.rest_client.RestClientTransport; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.annotation.JsonNaming; +import org.apache.commons.io.IOUtils; +import org.apache.http.entity.ByteArrayEntity; +import org.apache.http.entity.ContentType; +import org.elasticsearch.client.Request; +import org.elasticsearch.client.RestClient; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +import java.io.InputStream; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.time.ZoneId; +import java.time.format.DateTimeFormatter; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +public class EsqlAdapterEndToEndTest extends Assertions { + + static ElasticsearchClient esClient; + + @BeforeAll + public static void setup() throws Exception { + ElasticsearchClient global = ElasticsearchTestServer.global().client(); + RestClient restClient = ((RestClientTransport) global._transport()).restClient(); + esClient = new ElasticsearchClient(new RestClientTransport(restClient, new JacksonJsonpMapper())); + + esClient.indices().delete(d -> d.index("employees").ignoreUnavailable(true)); + + Request request = new Request("POST", "/employees/_bulk?refresh=true"); + + InputStream resourceAsStream = EsqlAdapterTest.class.getResourceAsStream("employees.ndjson"); + byte[] bytes = IOUtils.toByteArray(resourceAsStream); + request.setEntity(new ByteArrayEntity(bytes, ContentType.APPLICATION_JSON)); + + restClient.performRequest(request); + } + + @Test + public void resultSetTest() throws Exception { + + ResultSet rs = esClient.esql().query( + ResultSetEsqlAdapter.INSTANCE, + "FROM employees | WHERE emp_no == ? or emp_no == ? | KEEP emp_no, job_positions, hire_date | SORT emp_no | LIMIT 300", + // Testing parameters. Note that FROM and LIMIT do not accept parameters + "10042", "10002" + ); + + { + assertTrue(rs.next()); + assertEquals("10002", rs.getString("emp_no")); + + // Single valued fields come back as single value even if other rows have multiple values + @SuppressWarnings("unchecked") + String job = (String) rs.getObject("job_positions"); + assertEquals("Senior Team Lead", job); + } + + { + assertTrue(rs.next()); + assertEquals("10042", rs.getString("emp_no")); + + java.sql.Date hireDate = rs.getDate("hire_date"); + assertEquals("1993-03-21", hireDate.toString()); + + Timestamp hireDate1 = rs.getTimestamp("hire_date"); + assertEquals( + "1993-03-21T00:00:00Z[UTC]", + DateTimeFormatter.ISO_DATE_TIME.format(hireDate1.toInstant().atZone(ZoneId.of("UTC"))) + ); + + @SuppressWarnings("unchecked") + List jobs = (List) rs.getObject("job_positions"); + + assertEquals(4, jobs.size()); + assertEquals("Architect", jobs.get(0)); + } + + assertFalse(rs.next()); + } + + @Test + public void objectsTest() throws Exception { + Iterable result = esClient.esql().query( + ObjectsEsqlAdapter.of(EmpData.class), + "FROM employees | WHERE emp_no == ? or emp_no == ? | KEEP emp_no, job_positions, hire_date | SORT emp_no | LIMIT 300", + // Testing parameters. Note that FROM and LIMIT do not accept parameters + "10042", "10002" + ); + + Iterator it = result.iterator(); + + { + EmpData emp = it.next(); + assertEquals("10002", emp.empNo); + List jobPositions = emp.jobPositions; + // In addition to the value, this tests that single strings are correctly deserialized as a list + assertEquals(Arrays.asList("Senior Team Lead"), emp.jobPositions); + } + + { + EmpData emp = it.next(); + assertEquals("10042", emp.empNo); + assertEquals(Arrays.asList("Architect", "Business Analyst", "Internship", "Junior Developer"), emp.jobPositions); + + assertEquals("1993-03-21T00:00:00Z[UTC]", + DateTimeFormatter.ISO_DATE_TIME.format(emp.hireDate.toInstant().atZone(ZoneId.of("UTC"))) + ); + } + + assertFalse(it.hasNext()); + + } + + @Test + public void asyncObjects() throws Exception { + + ElasticsearchAsyncClient asyncClient = new ElasticsearchAsyncClient(esClient._transport(), esClient._transportOptions()); + + + CompletableFuture> future = asyncClient.esql().query( + ObjectsEsqlAdapter.of(EmpData.class), + "FROM employees | WHERE emp_no == ? or emp_no == ? | KEEP emp_no, job_positions, hire_date | SORT emp_no | LIMIT 300", + // Testing parameters. Note that FROM and LIMIT do not accept parameters + "10042", "10002" + ); + + future.thenApply(result -> { + Iterator it = result.iterator(); + + { + EmpData emp = it.next(); + assertEquals("10002", emp.empNo); + List jobPositions = emp.jobPositions; + // In addition to the value, this tests that single strings are correctly deserialized as a list + assertEquals(Arrays.asList("Senior Team Lead"), emp.jobPositions); + } + + { + EmpData emp = it.next(); + assertEquals("10042", emp.empNo); + assertEquals(Arrays.asList("Architect", "Business Analyst", "Internship", "Junior Developer"), emp.jobPositions); + + assertEquals("1993-03-21T00:00:00Z[UTC]", + DateTimeFormatter.ISO_DATE_TIME.format(emp.hireDate.toInstant().atZone(ZoneId.of("UTC"))) + ); + } + + assertFalse(it.hasNext()); + return null; + } + ).get(); + } + + @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) + @JsonIgnoreProperties(ignoreUnknown = true) + public static class EmpData { + public String empNo; + public java.util.Date hireDate; + public List jobPositions; + } +} diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java new file mode 100644 index 000000000..2b67ec1d1 --- /dev/null +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java @@ -0,0 +1,91 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch._helpers.esql; + +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.elasticsearch._helpers.esql.jdbc.ResultSetEsqlAdapter; +import co.elastic.clients.json.jackson.JacksonJsonpMapper; +import co.elastic.clients.testkit.MockHttpClient; +import co.elastic.clients.transport.endpoints.BinaryResponse; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import java.io.IOException; +import java.sql.ResultSet; +import java.sql.Types; + +public class EsqlAdapterTest extends Assertions { + + String json = "{\n" + + " \"columns\": [\n" + + "\t{\"name\": \"avg_salary\", \"type\": \"double\"},\n" + + "\t{\"name\": \"lang\", \t\"type\": \"keyword\"}\n" + + " ],\n" + + " \"values\": [\n" + + "\t[43760.0, \"Spanish\"],\n" + + "\t[48644.0, \"French\"],\n" + + "\t[48832.0, \"German\"]\n" + + " ]\n" + + "}\n"; + + ElasticsearchClient esClient = new MockHttpClient() + .add("/_query", "application/json", json) + .client(new JacksonJsonpMapper()); // object deserializer needs a buffering mapper + + public static class Data { + public double avg_salary; + public String lang; + } + + @Test + public void testObjectDeserializer() throws IOException { + + BinaryResponse response = esClient.esql().query(q -> q + .query("FROM foo") + .format("json") + ); + + Iterable data = esClient.esql().query( + new ObjectsEsqlAdapter<>(Data.class), + "FROM employees | STATS avg_salary = AVG(salary) by country" + ); + + for (Data d: data) { + System.out.println(d.lang + " " + d.avg_salary); + } + } + + @Test + public void testResultSetAdapter() throws Exception { + + ResultSet resultSet = esClient.esql().query( + ResultSetEsqlAdapter.INSTANCE, + "FROM employees | STATS avg_salary = AVG(salary) by country" + ); + + assertEquals(2, resultSet.getMetaData().getColumnCount()); + assertEquals(Types.DOUBLE, resultSet.getMetaData().getColumnType(1)); + assertEquals(Types.VARCHAR, resultSet.getMetaData().getColumnType(2)); + + while (resultSet.next()) { + System.out.println(resultSet.getDouble("avg_salary") + " " + resultSet.getString(2)); + } + } +} diff --git a/java-client/src/test/resources/co/elastic/clients/elasticsearch/_helpers/esql/employees.ndjson b/java-client/src/test/resources/co/elastic/clients/elasticsearch/_helpers/esql/employees.ndjson new file mode 100644 index 000000000..f1e9adf7e --- /dev/null +++ b/java-client/src/test/resources/co/elastic/clients/elasticsearch/_helpers/esql/employees.ndjson @@ -0,0 +1,201 @@ +{ "index" : {} } +{"birth_date":["1953-09-02T00:00:00Z"],"emp_no":["10001"],"first_name":["Georgi"],"gender":["M"],"hire_date":["1986-06-26T00:00:00Z"],"languages":["2"],"last_name":["Facello"],"salary":["57305"],"height":["2.03"],"still_hired":["true"],"avg_worked_seconds":["268728049"],"job_positions":["Senior Python Developer","Accountant"],"is_rehired":["false","true"],"salary_change":["1.19"]} +{ "index" : {} } +{"birth_date":["1964-06-02T00:00:00Z"],"emp_no":["10002"],"first_name":["Bezalel"],"gender":["F"],"hire_date":["1985-11-21T00:00:00Z"],"languages":["5"],"last_name":["Simmel"],"salary":["56371"],"height":["2.08"],"still_hired":["true"],"avg_worked_seconds":["328922887"],"job_positions":["Senior Team Lead"],"is_rehired":["false","false"],"salary_change":["-7.23","11.17"]} +{ "index" : {} } +{"birth_date":["1959-12-03T00:00:00Z"],"emp_no":["10003"],"first_name":["Parto"],"gender":["M"],"hire_date":["1986-08-28T00:00:00Z"],"languages":["4"],"last_name":["Bamford"],"salary":["61805"],"height":["1.83"],"still_hired":["false"],"avg_worked_seconds":["200296405"],"salary_change":["14.68","12.82"]} +{ "index" : {} } +{"birth_date":["1954-05-01T00:00:00Z"],"emp_no":["10004"],"first_name":["Chirstian"],"gender":["M"],"hire_date":["1986-12-01T00:00:00Z"],"languages":["5"],"last_name":["Koblick"],"salary":["36174"],"height":["1.78"],"still_hired":["true"],"avg_worked_seconds":["311267831"],"job_positions":["Reporting Analyst","Tech Lead","Head Human Resources","Support Engineer"],"is_rehired":["true"],"salary_change":["3.65","-0.35","1.13","13.48"]} +{ "index" : {} } +{"birth_date":["1955-01-21T00:00:00Z"],"emp_no":["10005"],"first_name":["Kyoichi"],"gender":["M"],"hire_date":["1989-09-12T00:00:00Z"],"languages":["1"],"last_name":["Maliniak"],"salary":["63528"],"height":["2.05"],"still_hired":["true"],"avg_worked_seconds":["244294991"],"is_rehired":["false","false","false","true"],"salary_change":["-2.14","13.07"]} +{ "index" : {} } +{"birth_date":["1953-04-20T00:00:00Z"],"emp_no":["10006"],"first_name":["Anneke"],"gender":["F"],"hire_date":["1989-06-02T00:00:00Z"],"languages":["3"],"last_name":["Preusig"],"salary":["60335"],"height":["1.56"],"still_hired":["false"],"avg_worked_seconds":["372957040"],"job_positions":["Tech Lead","Principal Support Engineer","Senior Team Lead"],"salary_change":["-3.90"]} +{ "index" : {} } +{"birth_date":["1957-05-23T00:00:00Z"],"emp_no":["10007"],"first_name":["Tzvetan"],"gender":["F"],"hire_date":["1989-02-10T00:00:00Z"],"languages":["4"],"last_name":["Zielinski"],"salary":["74572"],"height":["1.70"],"still_hired":["true"],"avg_worked_seconds":["393084805"],"is_rehired":["true","false","true","false"],"salary_change":["-7.06","1.99","0.57"]} +{ "index" : {} } +{"birth_date":["1958-02-19T00:00:00Z"],"emp_no":["10008"],"first_name":["Saniya"],"gender":["M"],"hire_date":["1994-09-15T00:00:00Z"],"languages":["2"],"last_name":["Kalloufi"],"salary":["43906"],"height":["2.10"],"still_hired":["true"],"avg_worked_seconds":["283074758"],"job_positions":["Senior Python Developer","Junior Developer","Purchase Manager","Internship"],"is_rehired":["true","false"],"salary_change":["12.68","3.54","0.75","-2.92"]} +{ "index" : {} } +{"birth_date":["1952-04-19T00:00:00Z"],"emp_no":["10009"],"first_name":["Sumant"],"gender":["F"],"hire_date":["1985-02-18T00:00:00Z"],"languages":["1"],"last_name":["Peac"],"salary":["66174"],"height":["1.85"],"still_hired":["false"],"avg_worked_seconds":["236805489"],"job_positions":["Senior Python Developer","Internship"]} +{ "index" : {} } +{"birth_date":["1963-06-01T00:00:00Z"],"emp_no":["10010"],"first_name":["Duangkaew"],"hire_date":["1989-08-24T00:00:00Z"],"languages":["4"],"last_name":["Piveteau"],"salary":["45797"],"height":["1.70"],"still_hired":["false"],"avg_worked_seconds":["315236372"],"job_positions":["Architect","Reporting Analyst","Tech Lead","Purchase Manager"],"is_rehired":["true","true","false","false"],"salary_change":["5.05","-6.77","4.69","12.15"]} +{ "index" : {} } +{"birth_date":["1953-11-07T00:00:00Z"],"emp_no":["10011"],"first_name":["Mary"],"hire_date":["1990-01-22T00:00:00Z"],"languages":["5"],"last_name":["Sluis"],"salary":["31120"],"height":["1.50"],"still_hired":["true"],"avg_worked_seconds":["239615525"],"job_positions":["Architect","Reporting Analyst","Tech Lead","Senior Team Lead"],"is_rehired":["true","true"],"salary_change":["10.35","-7.82","8.73","3.48"]} +{ "index" : {} } +{"birth_date":["1960-10-04T00:00:00Z"],"emp_no":["10012"],"first_name":["Patricio"],"hire_date":["1992-12-18T00:00:00Z"],"languages":["5"],"last_name":["Bridgland"],"salary":["48942"],"height":["1.97"],"still_hired":["false"],"avg_worked_seconds":["365510850"],"job_positions":["Head Human Resources","Accountant"],"is_rehired":["false","true","true","false"],"salary_change":["0.04"]} +{ "index" : {} } +{"birth_date":["1963-06-07T00:00:00Z"],"emp_no":["10013"],"first_name":["Eberhardt"],"hire_date":["1985-10-20T00:00:00Z"],"languages":["1"],"last_name":["Terkki"],"salary":["48735"],"height":["1.94"],"still_hired":["true"],"avg_worked_seconds":["253864340"],"job_positions":["Reporting Analyst"],"is_rehired":["true","true"]} +{ "index" : {} } +{"birth_date":["1956-02-12T00:00:00Z"],"emp_no":["10014"],"first_name":["Berni"],"hire_date":["1987-03-11T00:00:00Z"],"languages":["5"],"last_name":["Genin"],"salary":["37137"],"height":["1.99"],"still_hired":["false"],"avg_worked_seconds":["225049139"],"job_positions":["Reporting Analyst","Data Scientist","Head Human Resources"],"salary_change":["-1.89","9.07"]} +{ "index" : {} } +{"birth_date":["1959-08-19T00:00:00Z"],"emp_no":["10015"],"first_name":["Guoxiang"],"hire_date":["1987-07-02T00:00:00Z"],"languages":["5"],"last_name":["Nooteboom"],"salary":["25324"],"height":["1.66"],"still_hired":["true"],"avg_worked_seconds":["390266432"],"job_positions":["Principal Support Engineer","Junior Developer","Head Human Resources","Support Engineer"],"is_rehired":["true","false","false","false"],"salary_change":["14.25","12.40"]} +{ "index" : {} } +{"birth_date":["1961-05-02T00:00:00Z"],"emp_no":["10016"],"first_name":["Kazuhito"],"hire_date":["1995-01-27T00:00:00Z"],"languages":["2"],"last_name":["Cappelletti"],"salary":["61358"],"height":["1.54"],"still_hired":["false"],"avg_worked_seconds":["253029411"],"job_positions":["Reporting Analyst","Python Developer","Accountant","Purchase Manager"],"is_rehired":["false","false"],"salary_change":["-5.18","7.69"]} +{ "index" : {} } +{"birth_date":["1958-07-06T00:00:00Z"],"emp_no":["10017"],"first_name":["Cristinel"],"hire_date":["1993-08-03T00:00:00Z"],"languages":["2"],"last_name":["Bouloucos"],"salary":["58715"],"height":["1.74"],"still_hired":["false"],"avg_worked_seconds":["236703986"],"job_positions":["Data Scientist","Head Human Resources","Purchase Manager"],"is_rehired":["true","false","true","true"],"salary_change":["-6.33"]} +{ "index" : {} } +{"birth_date":["1954-06-19T00:00:00Z"],"emp_no":["10018"],"first_name":["Kazuhide"],"hire_date":["1987-04-03T00:00:00Z"],"languages":["2"],"last_name":["Peha"],"salary":["56760"],"height":["1.97"],"still_hired":["false"],"avg_worked_seconds":["309604079"],"job_positions":["Junior Developer"],"is_rehired":["false","false","true","true"],"salary_change":["-1.64","11.51","-5.32"]} +{ "index" : {} } +{"birth_date":["1953-01-23T00:00:00Z"],"emp_no":["10019"],"first_name":["Lillian"],"hire_date":["1999-04-30T00:00:00Z"],"languages":["1"],"last_name":["Haddadi"],"salary":["73717"],"height":["2.06"],"still_hired":["false"],"avg_worked_seconds":["342855721"],"job_positions":["Purchase Manager"],"is_rehired":["false","false"],"salary_change":["-6.84","8.42","-7.26"]} +{ "index" : {} } +{"birth_date":["1952-12-24T00:00:00Z"],"emp_no":["10020"],"first_name":["Mayuko"],"gender":["M"],"hire_date":["1991-01-26T00:00:00Z"],"last_name":["Warwick"],"salary":["40031"],"height":["1.41"],"still_hired":["false"],"avg_worked_seconds":["373309605"],"job_positions":["Tech Lead"],"is_rehired":["true","true","false"],"salary_change":["-5.81"]} +{ "index" : {} } +{"birth_date":["1960-02-20T00:00:00Z"],"emp_no":["10021"],"first_name":["Ramzi"],"gender":["M"],"hire_date":["1988-02-10T00:00:00Z"],"last_name":["Erde"],"salary":["60408"],"height":["1.47"],"still_hired":["false"],"avg_worked_seconds":["287654610"],"job_positions":["Support Engineer"],"is_rehired":["true"]} +{ "index" : {} } +{"birth_date":["1952-07-08T00:00:00Z"],"emp_no":["10022"],"first_name":["Shahaf"],"gender":["M"],"hire_date":["1995-08-22T00:00:00Z"],"last_name":["Famili"],"salary":["48233"],"height":["1.82"],"still_hired":["false"],"avg_worked_seconds":["233521306"],"job_positions":["Reporting Analyst","Data Scientist","Python Developer","Internship"],"is_rehired":["true","false"],"salary_change":["12.09","2.85"]} +{ "index" : {} } +{"birth_date":["1953-09-29T00:00:00Z"],"emp_no":["10023"],"first_name":["Bojan"],"gender":["F"],"hire_date":["1989-12-17T00:00:00Z"],"last_name":["Montemayor"],"salary":["47896"],"height":["1.75"],"still_hired":["true"],"avg_worked_seconds":["330870342"],"job_positions":["Accountant","Support Engineer","Purchase Manager"],"is_rehired":["true","true","false"],"salary_change":["14.63","0.80"]} +{ "index" : {} } +{"birth_date":["1958-09-05T00:00:00Z"],"emp_no":["10024"],"first_name":["Suzette"],"gender":["F"],"hire_date":["1997-05-19T00:00:00Z"],"last_name":["Pettey"],"salary":["64675"],"height":["2.08"],"still_hired":["true"],"avg_worked_seconds":["367717671"],"job_positions":["Junior Developer"],"is_rehired":["true","true","true","true"]} +{ "index" : {} } +{"birth_date":["1958-10-31T00:00:00Z"],"emp_no":["10025"],"first_name":["Prasadram"],"gender":["M"],"hire_date":["1987-08-17T00:00:00Z"],"last_name":["Heyers"],"salary":["47411"],"height":["1.87"],"still_hired":["false"],"avg_worked_seconds":["371270797"],"job_positions":["Accountant"],"is_rehired":["true","false"],"salary_change":["-4.33","-2.90","12.06","-3.46"]} +{ "index" : {} } +{"birth_date":["1953-04-03T00:00:00Z"],"emp_no":["10026"],"first_name":["Yongqiao"],"gender":["M"],"hire_date":["1995-03-20T00:00:00Z"],"last_name":["Berztiss"],"salary":["28336"],"height":["2.10"],"still_hired":["true"],"avg_worked_seconds":["359208133"],"job_positions":["Reporting Analyst"],"is_rehired":["false","true"],"salary_change":["-7.37","10.62","11.20"]} +{ "index" : {} } +{"birth_date":["1962-07-10T00:00:00Z"],"emp_no":["10027"],"first_name":["Divier"],"gender":["F"],"hire_date":["1989-07-07T00:00:00Z"],"last_name":["Reistad"],"salary":["73851"],"height":["1.53"],"still_hired":["false"],"avg_worked_seconds":["374037782"],"job_positions":["Senior Python Developer"],"is_rehired":["false"]} +{ "index" : {} } +{"birth_date":["1963-11-26T00:00:00Z"],"emp_no":["10028"],"first_name":["Domenick"],"gender":["M"],"hire_date":["1991-10-22T00:00:00Z"],"last_name":["Tempesti"],"salary":["39356"],"height":["2.07"],"still_hired":["true"],"avg_worked_seconds":["226435054"],"job_positions":["Tech Lead","Python Developer","Accountant","Internship"],"is_rehired":["true","false","false","true"]} +{ "index" : {} } +{"birth_date":["1956-12-13T00:00:00Z"],"emp_no":["10029"],"first_name":["Otmar"],"gender":["M"],"hire_date":["1985-11-20T00:00:00Z"],"last_name":["Herbst"],"salary":["74999"],"height":["1.99"],"still_hired":["false"],"avg_worked_seconds":["257694181"],"job_positions":["Senior Python Developer","Data Scientist","Principal Support Engineer"],"is_rehired":["true"],"salary_change":["-0.32","-1.90","-8.19"]} +{ "index" : {} } +{"birth_date":["1958-07-14T00:00:00Z"],"emp_no":["10030"],"gender":["M"],"hire_date":["1994-02-17T00:00:00Z"],"languages":["3"],"last_name":["Demeyer"],"salary":["67492"],"height":["1.92"],"still_hired":["false"],"avg_worked_seconds":["394597613"],"job_positions":["Tech Lead","Data Scientist","Senior Team Lead"],"is_rehired":["true","false","false"],"salary_change":["-0.40"]} +{ "index" : {} } +{"birth_date":["1959-01-27T00:00:00Z"],"emp_no":["10031"],"gender":["M"],"hire_date":["1991-09-01T00:00:00Z"],"languages":["4"],"last_name":["Joslin"],"salary":["37716"],"height":["1.68"],"still_hired":["false"],"avg_worked_seconds":["348545109"],"job_positions":["Architect","Senior Python Developer","Purchase Manager","Senior Team Lead"],"is_rehired":["false"]} +{ "index" : {} } +{"birth_date":["1960-08-09T00:00:00Z"],"emp_no":["10032"],"gender":["F"],"hire_date":["1990-06-20T00:00:00Z"],"languages":["3"],"last_name":["Reistad"],"salary":["62233"],"height":["2.10"],"still_hired":["false"],"avg_worked_seconds":["277622619"],"job_positions":["Architect","Senior Python Developer","Junior Developer","Purchase Manager"],"is_rehired":["false","false"],"salary_change":["9.32","-4.92"]} +{ "index" : {} } +{"birth_date":["1956-11-14T00:00:00Z"],"emp_no":["10033"],"gender":["M"],"hire_date":["1987-03-18T00:00:00Z"],"languages":["1"],"last_name":["Merlo"],"salary":["70011"],"height":["1.63"],"still_hired":["false"],"avg_worked_seconds":["208374744"],"is_rehired":["true"]} +{ "index" : {} } +{"birth_date":["1962-12-29T00:00:00Z"],"emp_no":["10034"],"gender":["M"],"hire_date":["1988-09-21T00:00:00Z"],"languages":["1"],"last_name":["Swan"],"salary":["39878"],"height":["1.46"],"still_hired":["false"],"avg_worked_seconds":["214393176"],"job_positions":["Business Analyst","Data Scientist","Python Developer","Accountant"],"is_rehired":["false"],"salary_change":["-8.46"]} +{ "index" : {} } +{"birth_date":["1953-02-08T00:00:00Z"],"emp_no":["10035"],"gender":["M"],"hire_date":["1988-09-05T00:00:00Z"],"languages":["5"],"last_name":["Chappelet"],"salary":["25945"],"height":["1.81"],"still_hired":["false"],"avg_worked_seconds":["203838153"],"job_positions":["Senior Python Developer","Data Scientist"],"is_rehired":["false"],"salary_change":["-2.54","-6.58"]} +{ "index" : {} } +{"birth_date":["1959-08-10T00:00:00Z"],"emp_no":["10036"],"gender":["M"],"hire_date":["1992-01-03T00:00:00Z"],"languages":["4"],"last_name":["Portugali"],"salary":["60781"],"height":["1.61"],"still_hired":["false"],"avg_worked_seconds":["305493131"],"job_positions":["Senior Python Developer"],"is_rehired":["true","false","false"]} +{ "index" : {} } +{"birth_date":["1963-07-22T00:00:00Z"],"emp_no":["10037"],"gender":["M"],"hire_date":["1990-12-05T00:00:00Z"],"languages":["2"],"last_name":["Makrucki"],"salary":["37691"],"height":["2.00"],"still_hired":["true"],"avg_worked_seconds":["359217000"],"job_positions":["Senior Python Developer","Tech Lead","Accountant"],"is_rehired":["false"],"salary_change":["-7.08"]} +{ "index" : {} } +{"birth_date":["1960-07-20T00:00:00Z"],"emp_no":["10038"],"gender":["M"],"hire_date":["1989-09-20T00:00:00Z"],"languages":["4"],"last_name":["Lortz"],"salary":["35222"],"height":["1.53"],"still_hired":["true"],"avg_worked_seconds":["314036411"],"job_positions":["Senior Python Developer","Python Developer","Support Engineer"]} +{ "index" : {} } +{"birth_date":["1959-10-01T00:00:00Z"],"emp_no":["10039"],"gender":["M"],"hire_date":["1988-01-19T00:00:00Z"],"languages":["2"],"last_name":["Brender"],"salary":["36051"],"height":["1.55"],"still_hired":["false"],"avg_worked_seconds":["243221262"],"job_positions":["Business Analyst","Python Developer","Principal Support Engineer"],"is_rehired":["true","true"],"salary_change":["-6.90"]} +{ "index" : {} } +{"emp_no":["10040"],"first_name":["Weiyi"],"gender":["F"],"hire_date":["1993-02-14T00:00:00Z"],"languages":["4"],"last_name":["Meriste"],"salary":["37112"],"height":["1.90"],"still_hired":["false"],"avg_worked_seconds":["244478622"],"job_positions":["Principal Support Engineer"],"is_rehired":["true","false","true","true"],"salary_change":["6.97","14.74","-8.94","1.92"]} +{ "index" : {} } +{"emp_no":["10041"],"first_name":["Uri"],"gender":["F"],"hire_date":["1989-11-12T00:00:00Z"],"languages":["1"],"last_name":["Lenart"],"salary":["56415"],"height":["1.75"],"still_hired":["false"],"avg_worked_seconds":["287789442"],"job_positions":["Data Scientist","Head Human Resources","Internship","Senior Team Lead"],"salary_change":["9.21","0.05","7.29","-2.94"]} +{ "index" : {} } +{"emp_no":["10042"],"first_name":["Magy"],"gender":["F"],"hire_date":["1993-03-21T00:00:00Z"],"languages":["3"],"last_name":["Stamatiou"],"salary":["30404"],"height":["1.44"],"still_hired":["true"],"avg_worked_seconds":["246355863"],"job_positions":["Architect","Business Analyst","Junior Developer","Internship"],"salary_change":["-9.28","9.42"]} +{ "index" : {} } +{"emp_no":["10043"],"first_name":["Yishay"],"gender":["M"],"hire_date":["1990-10-20T00:00:00Z"],"languages":["1"],"last_name":["Tzvieli"],"salary":["34341"],"height":["1.52"],"still_hired":["true"],"avg_worked_seconds":["287222180"],"job_positions":["Data Scientist","Python Developer","Support Engineer"],"is_rehired":["false","true","true"],"salary_change":["-5.17","4.62","7.42"]} +{ "index" : {} } +{"emp_no":["10044"],"first_name":["Mingsen"],"gender":["F"],"hire_date":["1994-05-21T00:00:00Z"],"languages":["1"],"last_name":["Casley"],"salary":["39728"],"height":["2.06"],"still_hired":["false"],"avg_worked_seconds":["387408356"],"job_positions":["Tech Lead","Principal Support Engineer","Accountant","Support Engineer"],"is_rehired":["true","true"],"salary_change":["8.09"]} +{ "index" : {} } +{"emp_no":["10045"],"first_name":["Moss"],"gender":["M"],"hire_date":["1989-09-02T00:00:00Z"],"languages":["3"],"last_name":["Shanbhogue"],"salary":["74970"],"height":["1.70"],"still_hired":["false"],"avg_worked_seconds":["371418933"],"job_positions":["Principal Support Engineer","Junior Developer","Accountant","Purchase Manager"],"is_rehired":["true","false"]} +{ "index" : {} } +{"emp_no":["10046"],"first_name":["Lucien"],"gender":["M"],"hire_date":["1992-06-20T00:00:00Z"],"languages":["4"],"last_name":["Rosenbaum"],"salary":["50064"],"height":["1.52"],"still_hired":["true"],"avg_worked_seconds":["302353405"],"job_positions":["Principal Support Engineer","Junior Developer","Head Human Resources","Internship"],"is_rehired":["true","true","false","true"],"salary_change":["2.39"]} +{ "index" : {} } +{"emp_no":["10047"],"first_name":["Zvonko"],"gender":["M"],"hire_date":["1989-03-31T00:00:00Z"],"languages":["4"],"last_name":["Nyanchama"],"salary":["42716"],"height":["1.52"],"still_hired":["true"],"avg_worked_seconds":["306369346"],"job_positions":["Architect","Data Scientist","Principal Support Engineer","Senior Team Lead"],"is_rehired":["true"],"salary_change":["-6.36","12.12"]} +{ "index" : {} } +{"emp_no":["10048"],"first_name":["Florian"],"gender":["M"],"hire_date":["1985-02-24T00:00:00Z"],"languages":["3"],"last_name":["Syrotiuk"],"salary":["26436"],"height":["2.00"],"still_hired":["false"],"avg_worked_seconds":["248451647"],"job_positions":["Internship"],"is_rehired":["true","true"]} +{ "index" : {} } +{"emp_no":["10049"],"first_name":["Basil"],"gender":["F"],"hire_date":["1992-05-04T00:00:00Z"],"languages":["5"],"last_name":["Tramer"],"salary":["37853"],"height":["1.52"],"still_hired":["true"],"avg_worked_seconds":["320725709"],"job_positions":["Senior Python Developer","Business Analyst"],"salary_change":["-1.05"]} +{ "index" : {} } +{"birth_date":["1958-05-21T00:00:00Z"],"emp_no":["10050"],"first_name":["Yinghua"],"gender":["M"],"hire_date":["1990-12-25T00:00:00Z"],"languages":["2"],"last_name":["Dredge"],"salary":["43026"],"height":["1.96"],"still_hired":["true"],"avg_worked_seconds":["242731798"],"job_positions":["Reporting Analyst","Junior Developer","Accountant","Support Engineer"],"is_rehired":["true"],"salary_change":["8.70","10.94"]} +{ "index" : {} } +{"birth_date":["1953-07-28T00:00:00Z"],"emp_no":["10051"],"first_name":["Hidefumi"],"gender":["M"],"hire_date":["1992-10-15T00:00:00Z"],"languages":["3"],"last_name":["Caine"],"salary":["58121"],"height":["1.89"],"still_hired":["true"],"avg_worked_seconds":["374753122"],"job_positions":["Business Analyst","Accountant","Purchase Manager"]} +{ "index" : {} } +{"birth_date":["1961-02-26T00:00:00Z"],"emp_no":["10052"],"first_name":["Heping"],"gender":["M"],"hire_date":["1988-05-21T00:00:00Z"],"languages":["1"],"last_name":["Nitsch"],"salary":["55360"],"height":["1.79"],"still_hired":["true"],"avg_worked_seconds":["299654717"],"is_rehired":["true","true","false"],"salary_change":["-0.55","-1.89","-4.22","-6.03"]} +{ "index" : {} } +{"birth_date":["1954-09-13T00:00:00Z"],"emp_no":["10053"],"first_name":["Sanjiv"],"gender":["F"],"hire_date":["1986-02-04T00:00:00Z"],"languages":["3"],"last_name":["Zschoche"],"salary":["54462"],"height":["1.58"],"still_hired":["false"],"avg_worked_seconds":["368103911"],"job_positions":["Support Engineer"],"is_rehired":["true","false","true","false"],"salary_change":["-7.67","-3.25"]} +{ "index" : {} } +{"birth_date":["1957-04-04T00:00:00Z"],"emp_no":["10054"],"first_name":["Mayumi"],"gender":["M"],"hire_date":["1995-03-13T00:00:00Z"],"languages":["4"],"last_name":["Schueller"],"salary":["65367"],"height":["1.82"],"still_hired":["false"],"avg_worked_seconds":["297441693"],"job_positions":["Principal Support Engineer"],"is_rehired":["false","false"]} +{ "index" : {} } +{"birth_date":["1956-06-06T00:00:00Z"],"emp_no":["10055"],"first_name":["Georgy"],"gender":["M"],"hire_date":["1992-04-27T00:00:00Z"],"languages":["5"],"last_name":["Dredge"],"salary":["49281"],"height":["2.04"],"still_hired":["false"],"avg_worked_seconds":["283157844"],"job_positions":["Senior Python Developer","Head Human Resources","Internship","Support Engineer"],"is_rehired":["false","false","true"],"salary_change":["7.34","12.99","3.17"]} +{ "index" : {} } +{"birth_date":["1961-09-01T00:00:00Z"],"emp_no":["10056"],"first_name":["Brendon"],"gender":["F"],"hire_date":["1990-02-01T00:00:00Z"],"languages":["2"],"last_name":["Bernini"],"salary":["33370"],"height":["1.57"],"still_hired":["true"],"avg_worked_seconds":["349086555"],"job_positions":["Senior Team Lead"],"is_rehired":["true","false","false"],"salary_change":["10.99","-5.17"]} +{ "index" : {} } +{"birth_date":["1954-05-30T00:00:00Z"],"emp_no":["10057"],"first_name":["Ebbe"],"gender":["F"],"hire_date":["1992-01-15T00:00:00Z"],"languages":["4"],"last_name":["Callaway"],"salary":["27215"],"height":["1.59"],"still_hired":["true"],"avg_worked_seconds":["324356269"],"job_positions":["Python Developer","Head Human Resources"],"salary_change":["-6.73","-2.43","-5.27","1.03"]} +{ "index" : {} } +{"birth_date":["1954-10-01T00:00:00Z"],"emp_no":["10058"],"first_name":["Berhard"],"gender":["M"],"hire_date":["1987-04-13T00:00:00Z"],"languages":["3"],"last_name":["McFarlin"],"salary":["38376"],"height":["1.83"],"still_hired":["false"],"avg_worked_seconds":["268378108"],"job_positions":["Principal Support Engineer"],"salary_change":["-4.89"]} +{ "index" : {} } +{"birth_date":["1953-09-19T00:00:00Z"],"emp_no":["10059"],"first_name":["Alejandro"],"gender":["F"],"hire_date":["1991-06-26T00:00:00Z"],"languages":["2"],"last_name":["McAlpine"],"salary":["44307"],"height":["1.48"],"still_hired":["false"],"avg_worked_seconds":["237368465"],"job_positions":["Architect","Principal Support Engineer","Purchase Manager","Senior Team Lead"],"is_rehired":["false"],"salary_change":["5.53","13.38","-4.69","6.27"]} +{ "index" : {} } +{"birth_date":["1961-10-15T00:00:00Z"],"emp_no":["10060"],"first_name":["Breannda"],"gender":["M"],"hire_date":["1987-11-02T00:00:00Z"],"languages":["2"],"last_name":["Billingsley"],"salary":["29175"],"height":["1.42"],"still_hired":["true"],"avg_worked_seconds":["341158890"],"job_positions":["Business Analyst","Data Scientist","Senior Team Lead"],"is_rehired":["false","false","true","false"],"salary_change":["-1.76","-0.85"]} +{ "index" : {} } +{"birth_date":["1962-10-19T00:00:00Z"],"emp_no":["10061"],"first_name":["Tse"],"gender":["M"],"hire_date":["1985-09-17T00:00:00Z"],"languages":["1"],"last_name":["Herber"],"salary":["49095"],"height":["1.45"],"still_hired":["false"],"avg_worked_seconds":["327550310"],"job_positions":["Purchase Manager","Senior Team Lead"],"is_rehired":["false","true"],"salary_change":["14.39","-2.58","-0.95"]} +{ "index" : {} } +{"birth_date":["1961-11-02T00:00:00Z"],"emp_no":["10062"],"first_name":["Anoosh"],"gender":["M"],"hire_date":["1991-08-30T00:00:00Z"],"languages":["3"],"last_name":["Peyn"],"salary":["65030"],"height":["1.70"],"still_hired":["false"],"avg_worked_seconds":["203989706"],"job_positions":["Python Developer","Senior Team Lead"],"is_rehired":["false","true","true"],"salary_change":["-1.17"]} +{ "index" : {} } +{"birth_date":["1952-08-06T00:00:00Z"],"emp_no":["10063"],"first_name":["Gino"],"gender":["F"],"hire_date":["1989-04-08T00:00:00Z"],"languages":["3"],"last_name":["Leonhardt"],"salary":["52121"],"height":["1.78"],"still_hired":["true"],"avg_worked_seconds":["214068302"],"is_rehired":["true"]} +{ "index" : {} } +{"birth_date":["1959-04-07T00:00:00Z"],"emp_no":["10064"],"first_name":["Udi"],"gender":["M"],"hire_date":["1985-11-20T00:00:00Z"],"languages":["5"],"last_name":["Jansch"],"salary":["33956"],"height":["1.93"],"still_hired":["false"],"avg_worked_seconds":["307364077"],"job_positions":["Purchase Manager"],"is_rehired":["false","false","true","false"],"salary_change":["-8.66","-2.52"]} +{ "index" : {} } +{"birth_date":["1963-04-14T00:00:00Z"],"emp_no":["10065"],"first_name":["Satosi"],"gender":["M"],"hire_date":["1988-05-18T00:00:00Z"],"languages":["2"],"last_name":["Awdeh"],"salary":["50249"],"height":["1.59"],"still_hired":["false"],"avg_worked_seconds":["372660279"],"job_positions":["Business Analyst","Data Scientist","Principal Support Engineer"],"is_rehired":["false","true"],"salary_change":["-1.47","14.44","-9.81"]} +{ "index" : {} } +{"birth_date":["1952-11-13T00:00:00Z"],"emp_no":["10066"],"first_name":["Kwee"],"gender":["M"],"hire_date":["1986-02-26T00:00:00Z"],"languages":["5"],"last_name":["Schusler"],"salary":["31897"],"height":["2.10"],"still_hired":["true"],"avg_worked_seconds":["360906451"],"job_positions":["Senior Python Developer","Data Scientist","Accountant","Internship"],"is_rehired":["true","true","true"],"salary_change":["5.94"]} +{ "index" : {} } +{"birth_date":["1953-01-07T00:00:00Z"],"emp_no":["10067"],"first_name":["Claudi"],"gender":["M"],"hire_date":["1987-03-04T00:00:00Z"],"languages":["2"],"last_name":["Stavenow"],"salary":["52044"],"height":["1.77"],"still_hired":["true"],"avg_worked_seconds":["347664141"],"job_positions":["Tech Lead","Principal Support Engineer"],"is_rehired":["false","false"],"salary_change":["8.72","4.44"]} +{ "index" : {} } +{"birth_date":["1962-11-26T00:00:00Z"],"emp_no":["10068"],"first_name":["Charlene"],"gender":["M"],"hire_date":["1987-08-07T00:00:00Z"],"languages":["3"],"last_name":["Brattka"],"salary":["28941"],"height":["1.58"],"still_hired":["true"],"avg_worked_seconds":["233999584"],"job_positions":["Architect"],"is_rehired":["true"],"salary_change":["3.43","-5.61","-5.29"]} +{ "index" : {} } +{"birth_date":["1960-09-06T00:00:00Z"],"emp_no":["10069"],"first_name":["Margareta"],"gender":["F"],"hire_date":["1989-11-05T00:00:00Z"],"languages":["5"],"last_name":["Bierman"],"salary":["41933"],"height":["1.77"],"still_hired":["true"],"avg_worked_seconds":["366512352"],"job_positions":["Business Analyst","Junior Developer","Purchase Manager","Support Engineer"],"is_rehired":["false"],"salary_change":["-3.34","-6.33","6.23","-0.31"]} +{ "index" : {} } +{"birth_date":["1955-08-20T00:00:00Z"],"emp_no":["10070"],"first_name":["Reuven"],"gender":["M"],"hire_date":["1985-10-14T00:00:00Z"],"languages":["3"],"last_name":["Garigliano"],"salary":["54329"],"height":["1.77"],"still_hired":["true"],"avg_worked_seconds":["347188604"],"is_rehired":["true","true","true"],"salary_change":["-5.90"]} +{ "index" : {} } +{"birth_date":["1958-01-21T00:00:00Z"],"emp_no":["10071"],"first_name":["Hisao"],"gender":["M"],"hire_date":["1987-10-01T00:00:00Z"],"languages":["2"],"last_name":["Lipner"],"salary":["40612"],"height":["2.07"],"still_hired":["false"],"avg_worked_seconds":["306671693"],"job_positions":["Business Analyst","Reporting Analyst","Senior Team Lead"],"is_rehired":["false","false","false"],"salary_change":["-2.69"]} +{ "index" : {} } +{"birth_date":["1952-05-15T00:00:00Z"],"emp_no":["10072"],"first_name":["Hironoby"],"gender":["F"],"hire_date":["1988-07-21T00:00:00Z"],"languages":["5"],"last_name":["Sidou"],"salary":["54518"],"height":["1.82"],"still_hired":["true"],"avg_worked_seconds":["209506065"],"job_positions":["Architect","Tech Lead","Python Developer","Senior Team Lead"],"is_rehired":["false","false","true","false"],"salary_change":["11.21","-2.30","2.22","-5.44"]} +{ "index" : {} } +{"birth_date":["1954-02-23T00:00:00Z"],"emp_no":["10073"],"first_name":["Shir"],"gender":["M"],"hire_date":["1991-12-01T00:00:00Z"],"languages":["4"],"last_name":["McClurg"],"salary":["32568"],"height":["1.66"],"still_hired":["false"],"avg_worked_seconds":["314930367"],"job_positions":["Principal Support Engineer","Python Developer","Junior Developer","Purchase Manager"],"is_rehired":["true","false"],"salary_change":["-5.67"]} +{ "index" : {} } +{"birth_date":["1955-08-28T00:00:00Z"],"emp_no":["10074"],"first_name":["Mokhtar"],"gender":["F"],"hire_date":["1990-08-13T00:00:00Z"],"languages":["5"],"last_name":["Bernatsky"],"salary":["38992"],"height":["1.64"],"still_hired":["true"],"avg_worked_seconds":["382397583"],"job_positions":["Senior Python Developer","Python Developer"],"is_rehired":["true","false","false","true"],"salary_change":["6.70","1.98","-5.64","2.96"]} +{ "index" : {} } +{"birth_date":["1960-03-09T00:00:00Z"],"emp_no":["10075"],"first_name":["Gao"],"gender":["F"],"hire_date":["1987-03-19T00:00:00Z"],"languages":["5"],"last_name":["Dolinsky"],"salary":["51956"],"height":["1.94"],"still_hired":["false"],"avg_worked_seconds":["370238919"],"job_positions":["Purchase Manager"],"is_rehired":["true"],"salary_change":["9.63","-3.29","8.42"]} +{ "index" : {} } +{"birth_date":["1952-06-13T00:00:00Z"],"emp_no":["10076"],"first_name":["Erez"],"gender":["F"],"hire_date":["1985-07-09T00:00:00Z"],"languages":["3"],"last_name":["Ritzmann"],"salary":["62405"],"height":["1.83"],"still_hired":["false"],"avg_worked_seconds":["376240317"],"job_positions":["Architect","Senior Python Developer"],"is_rehired":["false"],"salary_change":["-6.90","-1.30","8.75"]} +{ "index" : {} } +{"birth_date":["1964-04-18T00:00:00Z"],"emp_no":["10077"],"first_name":["Mona"],"gender":["M"],"hire_date":["1990-03-02T00:00:00Z"],"languages":["5"],"last_name":["Azuma"],"salary":["46595"],"height":["1.68"],"still_hired":["false"],"avg_worked_seconds":["351960222"],"job_positions":["Internship"],"salary_change":["-0.01"]} +{ "index" : {} } +{"birth_date":["1959-12-25T00:00:00Z"],"emp_no":["10078"],"first_name":["Danel"],"gender":["F"],"hire_date":["1987-05-26T00:00:00Z"],"languages":["2"],"last_name":["Mondadori"],"salary":["69904"],"height":["1.81"],"still_hired":["true"],"avg_worked_seconds":["377116038"],"job_positions":["Architect","Principal Support Engineer","Internship"],"is_rehired":["true"],"salary_change":["-7.88","9.98","12.52"]} +{ "index" : {} } +{"birth_date":["1961-10-05T00:00:00Z"],"emp_no":["10079"],"first_name":["Kshitij"],"gender":["F"],"hire_date":["1986-03-27T00:00:00Z"],"languages":["2"],"last_name":["Gils"],"salary":["32263"],"height":["1.59"],"still_hired":["false"],"avg_worked_seconds":["320953330"],"is_rehired":["false"],"salary_change":["7.58"]} +{ "index" : {} } +{"birth_date":["1957-12-03T00:00:00Z"],"emp_no":["10080"],"first_name":["Premal"],"gender":["M"],"hire_date":["1985-11-19T00:00:00Z"],"languages":["5"],"last_name":["Baek"],"salary":["52833"],"height":["1.80"],"still_hired":["false"],"avg_worked_seconds":["239266137"],"job_positions":["Senior Python Developer"],"salary_change":["-4.35","7.36","5.56"]} +{ "index" : {} } +{"birth_date":["1960-12-17T00:00:00Z"],"emp_no":["10081"],"first_name":["Zhongwei"],"gender":["M"],"hire_date":["1986-10-30T00:00:00Z"],"languages":["2"],"last_name":["Rosen"],"salary":["50128"],"height":["1.44"],"still_hired":["true"],"avg_worked_seconds":["321375511"],"job_positions":["Accountant","Internship"],"is_rehired":["false","false","false"]} +{ "index" : {} } +{"birth_date":["1963-09-09T00:00:00Z"],"emp_no":["10082"],"first_name":["Parviz"],"gender":["M"],"hire_date":["1990-01-03T00:00:00Z"],"languages":["4"],"last_name":["Lortz"],"salary":["49818"],"height":["1.61"],"still_hired":["false"],"avg_worked_seconds":["232522994"],"job_positions":["Principal Support Engineer"],"is_rehired":["false"],"salary_change":["1.19","-3.39"]} +{ "index" : {} } +{"birth_date":["1959-07-23T00:00:00Z"],"emp_no":["10083"],"first_name":["Vishv"],"gender":["M"],"hire_date":["1987-03-31T00:00:00Z"],"languages":["1"],"last_name":["Zockler"],"salary":["39110"],"height":["1.42"],"still_hired":["false"],"avg_worked_seconds":["331236443"],"job_positions":["Head Human Resources"]} +{ "index" : {} } +{"birth_date":["1960-05-25T00:00:00Z"],"emp_no":["10084"],"first_name":["Tuval"],"gender":["M"],"hire_date":["1995-12-15T00:00:00Z"],"languages":["1"],"last_name":["Kalloufi"],"salary":["28035"],"height":["1.51"],"still_hired":["true"],"avg_worked_seconds":["359067056"],"job_positions":["Principal Support Engineer"],"is_rehired":["false"]} +{ "index" : {} } +{"birth_date":["1962-11-07T00:00:00Z"],"emp_no":["10085"],"first_name":["Kenroku"],"gender":["M"],"hire_date":["1994-04-09T00:00:00Z"],"languages":["5"],"last_name":["Malabarba"],"salary":["35742"],"height":["2.01"],"still_hired":["true"],"avg_worked_seconds":["353404008"],"job_positions":["Senior Python Developer","Business Analyst","Tech Lead","Accountant"],"salary_change":["11.67","6.75","8.40"]} +{ "index" : {} } +{"birth_date":["1962-11-19T00:00:00Z"],"emp_no":["10086"],"first_name":["Somnath"],"gender":["M"],"hire_date":["1990-02-16T00:00:00Z"],"languages":["1"],"last_name":["Foote"],"salary":["68547"],"height":["1.74"],"still_hired":["true"],"avg_worked_seconds":["328580163"],"job_positions":["Senior Python Developer"],"is_rehired":["false","true"],"salary_change":["13.61"]} +{ "index" : {} } +{"birth_date":["1959-07-23T00:00:00Z"],"emp_no":["10087"],"first_name":["Xinglin"],"gender":["F"],"hire_date":["1986-09-08T00:00:00Z"],"languages":["5"],"last_name":["Eugenio"],"salary":["32272"],"height":["1.74"],"still_hired":["true"],"avg_worked_seconds":["305782871"],"job_positions":["Junior Developer","Internship"],"is_rehired":["false","false"],"salary_change":["-2.05"]} +{ "index" : {} } +{"birth_date":["1954-02-25T00:00:00Z"],"emp_no":["10088"],"first_name":["Jungsoon"],"gender":["F"],"hire_date":["1988-09-02T00:00:00Z"],"languages":["5"],"last_name":["Syrzycki"],"salary":["39638"],"height":["1.91"],"still_hired":["false"],"avg_worked_seconds":["330714423"],"job_positions":["Reporting Analyst","Business Analyst","Tech Lead"],"is_rehired":["true"]} +{ "index" : {} } +{"birth_date":["1963-03-21T00:00:00Z"],"emp_no":["10089"],"first_name":["Sudharsan"],"gender":["F"],"hire_date":["1986-08-12T00:00:00Z"],"languages":["4"],"last_name":["Flasterstein"],"salary":["43602"],"height":["1.57"],"still_hired":["true"],"avg_worked_seconds":["232951673"],"job_positions":["Junior Developer","Accountant"],"is_rehired":["true","false","false","false"]} +{ "index" : {} } +{"birth_date":["1961-05-30T00:00:00Z"],"emp_no":["10090"],"first_name":["Kendra"],"gender":["M"],"hire_date":["1986-03-14T00:00:00Z"],"languages":["2"],"last_name":["Hofting"],"salary":["44956"],"height":["2.03"],"still_hired":["true"],"avg_worked_seconds":["212460105"],"is_rehired":["false","false","false","true"],"salary_change":["7.15","-1.85","3.60"]} +{ "index" : {} } +{"birth_date":["1955-10-04T00:00:00Z"],"emp_no":["10091"],"first_name":["Amabile"],"gender":["M"],"hire_date":["1992-11-18T00:00:00Z"],"languages":["3"],"last_name":["Gomatam"],"salary":["38645"],"height":["2.09"],"still_hired":["true"],"avg_worked_seconds":["242582807"],"job_positions":["Reporting Analyst","Python Developer"],"is_rehired":["true","true","false","false"],"salary_change":["-9.23","7.50","5.85","5.19"]} +{ "index" : {} } +{"birth_date":["1964-10-18T00:00:00Z"],"emp_no":["10092"],"first_name":["Valdiodio"],"gender":["F"],"hire_date":["1989-09-22T00:00:00Z"],"languages":["1"],"last_name":["Niizuma"],"salary":["25976"],"height":["1.75"],"still_hired":["false"],"avg_worked_seconds":["313407352"],"job_positions":["Junior Developer","Accountant"],"is_rehired":["false","false","true","true"],"salary_change":["8.78","0.39","-6.77","8.30"]} +{ "index" : {} } +{"birth_date":["1964-06-11T00:00:00Z"],"emp_no":["10093"],"first_name":["Sailaja"],"gender":["M"],"hire_date":["1996-11-05T00:00:00Z"],"languages":["3"],"last_name":["Desikan"],"salary":["45656"],"height":["1.69"],"still_hired":["false"],"avg_worked_seconds":["315904921"],"job_positions":["Reporting Analyst","Tech Lead","Principal Support Engineer","Purchase Manager"],"salary_change":["-0.88"]} +{ "index" : {} } +{"birth_date":["1957-05-25T00:00:00Z"],"emp_no":["10094"],"first_name":["Arumugam"],"gender":["F"],"hire_date":["1987-04-18T00:00:00Z"],"languages":["5"],"last_name":["Ossenbruggen"],"salary":["66817"],"height":["2.10"],"still_hired":["false"],"avg_worked_seconds":["332920135"],"job_positions":["Senior Python Developer","Principal Support Engineer","Accountant"],"is_rehired":["true","false","true"],"salary_change":["2.22","7.92"]} +{ "index" : {} } +{"birth_date":["1965-01-03T00:00:00Z"],"emp_no":["10095"],"first_name":["Hilari"],"gender":["M"],"hire_date":["1986-07-15T00:00:00Z"],"languages":["4"],"last_name":["Morton"],"salary":["37702"],"height":["1.55"],"still_hired":["false"],"avg_worked_seconds":["321850475"],"is_rehired":["true","true","false","false"],"salary_change":["-3.93","-6.66"]} +{ "index" : {} } +{"birth_date":["1954-09-16T00:00:00Z"],"emp_no":["10096"],"first_name":["Jayson"],"gender":["M"],"hire_date":["1990-01-14T00:00:00Z"],"languages":["4"],"last_name":["Mandell"],"salary":["43889"],"height":["1.94"],"still_hired":["false"],"avg_worked_seconds":["204381503"],"job_positions":["Architect","Reporting Analyst"],"is_rehired":["false","false","false"]} +{ "index" : {} } +{"birth_date":["1952-02-27T00:00:00Z"],"emp_no":["10097"],"first_name":["Remzi"],"gender":["M"],"hire_date":["1990-09-15T00:00:00Z"],"languages":["3"],"last_name":["Waschkowski"],"salary":["71165"],"height":["1.53"],"still_hired":["false"],"avg_worked_seconds":["206258084"],"job_positions":["Reporting Analyst","Tech Lead"],"is_rehired":["true","false"],"salary_change":["-1.12"]} +{ "index" : {} } +{"birth_date":["1961-09-23T00:00:00Z"],"emp_no":["10098"],"first_name":["Sreekrishna"],"gender":["F"],"hire_date":["1985-05-13T00:00:00Z"],"languages":["4"],"last_name":["Servieres"],"salary":["44817"],"height":["2.00"],"still_hired":["false"],"avg_worked_seconds":["272392146"],"job_positions":["Architect","Internship","Senior Team Lead"],"is_rehired":["false"],"salary_change":["-2.83","8.31","4.38"]} +{ "index" : {} } +{"birth_date":["1956-05-25T00:00:00Z"],"emp_no":["10099"],"first_name":["Valter"],"gender":["F"],"hire_date":["1988-10-18T00:00:00Z"],"languages":["2"],"last_name":["Sullins"],"salary":["73578"],"height":["1.81"],"still_hired":["true"],"avg_worked_seconds":["377713748"],"is_rehired":["true","true"],"salary_change":["10.71","14.26","-8.78","-3.98"]} +{ "index" : {} } +{"birth_date":["1953-04-21T00:00:00Z"],"emp_no":["10100"],"first_name":["Hironobu"],"gender":["F"],"hire_date":["1987-09-21T00:00:00Z"],"languages":["4"],"last_name":["Haraldson"],"salary":["68431"],"height":["1.77"],"still_hired":["true"],"avg_worked_seconds":["223910853"],"job_positions":["Purchase Manager"],"is_rehired":["false","true","true","false"],"salary_change":["13.97","-7.49"]} + From d0f1aadd6910f15f1e89c9c05114f990ad4cf575 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Thu, 14 Mar 2024 16:49:54 +0100 Subject: [PATCH 18/25] public object adapter class, comment (#764) --- .../clients/elasticsearch/_helpers/esql/EsqlAdapter.java | 2 +- .../_helpers/esql/{ => objects}/ObjectsEsqlAdapter.java | 9 ++++++--- .../_helpers/esql/EsqlAdapterEndToEndTest.java | 1 + .../elasticsearch/_helpers/esql/EsqlAdapterTest.java | 1 + 4 files changed, 9 insertions(+), 4 deletions(-) rename java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/{ => objects}/ObjectsEsqlAdapter.java (90%) diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapter.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapter.java index 0be4ad393..6fa64dc06 100644 --- a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapter.java +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapter.java @@ -36,7 +36,7 @@ public interface EsqlAdapter { String format(); /** - * For JSON results, whether the result should be organized in rows or columns + * For JSON like results, whether the result should be organized in rows or columns */ boolean columnar(); diff --git a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/ObjectsEsqlAdapter.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/objects/ObjectsEsqlAdapter.java similarity index 90% rename from java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/ObjectsEsqlAdapter.java rename to java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/objects/ObjectsEsqlAdapter.java index 9de683553..243542ebd 100644 --- a/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/ObjectsEsqlAdapter.java +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/objects/ObjectsEsqlAdapter.java @@ -17,9 +17,12 @@ * under the License. */ -package co.elastic.clients.elasticsearch._helpers.esql; +package co.elastic.clients.elasticsearch._helpers.esql.objects; import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlAdapter; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlAdapterBase; +import co.elastic.clients.elasticsearch._helpers.esql.EsqlMetadata; import co.elastic.clients.elasticsearch.esql.QueryRequest; import co.elastic.clients.json.BufferingJsonGenerator; import co.elastic.clients.json.BufferingJsonpMapper; @@ -37,7 +40,7 @@ /** * And ES|QL adapter that returns an iterable of domain objects */ -class ObjectsEsqlAdapter implements EsqlAdapter> { +public class ObjectsEsqlAdapter implements EsqlAdapter> { public static ObjectsEsqlAdapter of(Class clazz) { return new ObjectsEsqlAdapter<>(clazz); @@ -49,7 +52,7 @@ public static ObjectsEsqlAdapter of(Type type) { private final Type type; - ObjectsEsqlAdapter(Type type) { + public ObjectsEsqlAdapter(Type type) { this.type = type; } diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.java index 557d31703..3cfd884bf 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.java @@ -23,6 +23,7 @@ import co.elastic.clients.elasticsearch.ElasticsearchClient; import co.elastic.clients.elasticsearch.ElasticsearchTestServer; import co.elastic.clients.elasticsearch._helpers.esql.jdbc.ResultSetEsqlAdapter; +import co.elastic.clients.elasticsearch._helpers.esql.objects.ObjectsEsqlAdapter; import co.elastic.clients.json.jackson.JacksonJsonpMapper; import co.elastic.clients.transport.rest_client.RestClientTransport; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java index 2b67ec1d1..95917ca55 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java @@ -21,6 +21,7 @@ import co.elastic.clients.elasticsearch.ElasticsearchClient; import co.elastic.clients.elasticsearch._helpers.esql.jdbc.ResultSetEsqlAdapter; +import co.elastic.clients.elasticsearch._helpers.esql.objects.ObjectsEsqlAdapter; import co.elastic.clients.json.jackson.JacksonJsonpMapper; import co.elastic.clients.testkit.MockHttpClient; import co.elastic.clients.transport.endpoints.BinaryResponse; From a5ecc5e7b1b90fb6172ffdbe2803535de2915e16 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Wed, 13 Mar 2024 19:07:27 +0100 Subject: [PATCH 19/25] [codegen] Update to latest API spec --- .../_types/mapping/ObjectProperty.java | 29 +++ .../_types/mapping/TypeMapping.java | 29 +++ .../elasticsearch/doc-files/api-spec.html | 103 ++++---- .../elasticsearch/indices/IndexSettings.java | 49 +++- .../indices/SettingsSimilarity.java | 233 ++++++++---------- .../indices/SettingsSimilarityBm25.java | 69 ++++-- .../indices/SettingsSimilarityBoolean.java | 139 +++++++++++ .../indices/SettingsSimilarityBuilders.java | 75 +++--- .../indices/SettingsSimilarityDfi.java | 3 + .../indices/SettingsSimilarityDfr.java | 3 + .../indices/SettingsSimilarityIb.java | 3 + .../indices/SettingsSimilarityLmd.java | 35 ++- .../indices/SettingsSimilarityLmj.java | 29 ++- ...f.java => SettingsSimilarityScripted.java} | 73 ++++-- .../indices/SettingsSimilarityVariant.java | 4 +- .../ml/PutTrainedModelRequest.java | 43 ++++ .../ml/TrainedModelPrefixStrings.java | 36 ++- 17 files changed, 653 insertions(+), 302 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java rename java-client/src/main/java/co/elastic/clients/elasticsearch/indices/{SettingsSimilarityScriptedTfidf.java => SettingsSimilarityScripted.java} (69%) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java index 4d281df08..0110f5a42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java @@ -59,12 +59,16 @@ public class ObjectProperty extends CorePropertyBase implements PropertyVariant @Nullable private final Boolean enabled; + @Nullable + private final Boolean subobjects; + // --------------------------------------------------------------------------------------------- private ObjectProperty(Builder builder) { super(builder); this.enabled = builder.enabled; + this.subobjects = builder.subobjects; } @@ -88,6 +92,14 @@ public final Boolean enabled() { return this.enabled; } + /** + * API name: {@code subobjects} + */ + @Nullable + public final Boolean subobjects() { + return this.subobjects; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "object"); @@ -97,6 +109,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.enabled); } + if (this.subobjects != null) { + generator.writeKey("subobjects"); + generator.write(this.subobjects); + + } } @@ -112,6 +129,9 @@ public static class Builder extends CorePropertyBase.AbstractBuilder @Nullable private Boolean enabled; + @Nullable + private Boolean subobjects; + /** * API name: {@code enabled} */ @@ -120,6 +140,14 @@ public final Builder enabled(@Nullable Boolean value) { return this; } + /** + * API name: {@code subobjects} + */ + public final Builder subobjects(@Nullable Boolean value) { + this.subobjects = value; + return this; + } + @Override protected Builder self() { return this; @@ -149,6 +177,7 @@ public ObjectProperty build() { protected static void setupObjectPropertyDeserializer(ObjectDeserializer op) { CorePropertyBase.setupCorePropertyBaseDeserializer(op); op.add(Builder::enabled, JsonpDeserializer.booleanDeserializer(), "enabled"); + op.add(Builder::subobjects, JsonpDeserializer.booleanDeserializer(), "subobjects"); op.ignore("type"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TypeMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TypeMapping.java index c48c99c17..8cfd5e3e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TypeMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TypeMapping.java @@ -103,6 +103,9 @@ public class TypeMapping implements JsonpSerializable { @Nullable private final Boolean enabled; + @Nullable + private final Boolean subobjects; + @Nullable private final DataStreamTimestamp dataStreamTimestamp; @@ -125,6 +128,7 @@ private TypeMapping(Builder builder) { this.source = builder.source; this.runtime = ApiTypeHelper.unmodifiable(builder.runtime); this.enabled = builder.enabled; + this.subobjects = builder.subobjects; this.dataStreamTimestamp = builder.dataStreamTimestamp; } @@ -248,6 +252,14 @@ public final Boolean enabled() { return this.enabled; } + /** + * API name: {@code subobjects} + */ + @Nullable + public final Boolean subobjects() { + return this.subobjects; + } + /** * API name: {@code _data_stream_timestamp} */ @@ -376,6 +388,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("enabled"); generator.write(this.enabled); + } + if (this.subobjects != null) { + generator.writeKey("subobjects"); + generator.write(this.subobjects); + } if (this.dataStreamTimestamp != null) { generator.writeKey("_data_stream_timestamp"); @@ -442,6 +459,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean enabled; + @Nullable + private Boolean subobjects; + @Nullable private DataStreamTimestamp dataStreamTimestamp; @@ -686,6 +706,14 @@ public final Builder enabled(@Nullable Boolean value) { return this; } + /** + * API name: {@code subobjects} + */ + public final Builder subobjects(@Nullable Boolean value) { + this.subobjects = value; + return this; + } + /** * API name: {@code _data_stream_timestamp} */ @@ -747,6 +775,7 @@ protected static void setupTypeMappingDeserializer(ObjectDeserializer 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/0a63a19b96834d9bcaad0738cb0c6850dd326d20/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/914f9d86ce92f92b40647fbdcb491164a8d7c0bc/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. 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 f13e79d5c..3cc7eff40 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 @@ -225,8 +225,7 @@ public class IndexSettings implements JsonpSerializable { @Nullable private final Queries queries; - @Nullable - private final SettingsSimilarity similarity; + private final Map similarity; @Nullable private final MappingLimitSettings mapping; @@ -297,7 +296,7 @@ private IndexSettings(Builder builder) { this.settings = builder.settings; this.timeSeries = builder.timeSeries; this.queries = builder.queries; - this.similarity = builder.similarity; + this.similarity = ApiTypeHelper.unmodifiable(builder.similarity); this.mapping = builder.mapping; this.indexingSlowlog = builder.indexingSlowlog; this.indexingPressure = builder.indexingPressure; @@ -735,8 +734,7 @@ public final Queries queries() { *

* API name: {@code similarity} */ - @Nullable - public final SettingsSimilarity similarity() { + public final Map similarity() { return this.similarity; } @@ -1054,9 +1052,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.queries.serialize(generator, mapper); } - if (this.similarity != null) { + if (ApiTypeHelper.isDefined(this.similarity)) { generator.writeKey("similarity"); - this.similarity.serialize(generator, mapper); + generator.writeStartObject(); + for (Map.Entry item0 : this.similarity.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); } if (this.mapping != null) { @@ -1277,7 +1281,7 @@ public final Builder otherSettings(String key, JsonData value) { private Queries queries; @Nullable - private SettingsSimilarity similarity; + private Map similarity; @Nullable private MappingLimitSettings mapping; @@ -1858,9 +1862,11 @@ public final Builder queries(Function> f * scored. *

* API name: {@code similarity} + *

+ * Adds all entries of map to similarity. */ - public final Builder similarity(@Nullable SettingsSimilarity value) { - this.similarity = value; + public final Builder similarity(Map map) { + this.similarity = _mapPutAll(this.similarity, map); return this; } @@ -1869,9 +1875,25 @@ public final Builder similarity(@Nullable SettingsSimilarity value) { * scored. *

* API name: {@code similarity} + *

+ * Adds an entry to similarity. + */ + public final Builder similarity(String key, SettingsSimilarity value) { + this.similarity = _mapPut(this.similarity, key, value); + return this; + } + + /** + * Configure custom similarity settings to customize how search results are + * scored. + *

+ * API name: {@code similarity} + *

+ * Adds an entry to similarity using a builder lambda. */ - public final Builder similarity(Function> fn) { - return this.similarity(fn.apply(new SettingsSimilarity.Builder()).build()); + public final Builder similarity(String key, + Function> fn) { + return similarity(key, fn.apply(new SettingsSimilarity.Builder()).build()); } /** @@ -2030,7 +2052,8 @@ protected static void setupIndexSettingsDeserializer(ObjectDeserializer */ @JsonpDeserializable -public class SettingsSimilarity implements OpenTaggedUnion, JsonpSerializable { +public class SettingsSimilarity + implements + TaggedUnion, + JsonpSerializable { /** * {@link SettingsSimilarity} variant kinds. @@ -74,22 +75,21 @@ public class SettingsSimilarity implements OpenTaggedUnion"); this._value = ApiTypeHelper.requireNonNull(value, this, ""); - this._customKind = null; } @@ -130,7 +129,6 @@ private SettingsSimilarity(Builder builder) { this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); - this._customKind = builder._customKind; } @@ -139,165 +137,146 @@ public static SettingsSimilarity of(Function implements ObjectBuilder { private Kind _kind; - private Object _value; - private String _customKind; + private SettingsSimilarityVariant _value; @Override protected Builder self() { @@ -328,6 +306,17 @@ public ObjectBuilder bm25( return this.bm25(fn.apply(new SettingsSimilarityBm25.Builder()).build()); } + public ObjectBuilder boolean_(SettingsSimilarityBoolean v) { + this._kind = Kind.Boolean; + this._value = v; + return this; + } + + public ObjectBuilder boolean_( + Function> fn) { + return this.boolean_(fn.apply(new SettingsSimilarityBoolean.Builder()).build()); + } + public ObjectBuilder dfi(SettingsSimilarityDfi v) { this._kind = Kind.Dfi; this._value = v; @@ -361,53 +350,37 @@ public ObjectBuilder ib( return this.ib(fn.apply(new SettingsSimilarityIb.Builder()).build()); } - public ObjectBuilder lmd(SettingsSimilarityLmd v) { - this._kind = Kind.Lmd; + public ObjectBuilder lmdirichlet(SettingsSimilarityLmd v) { + this._kind = Kind.LMDirichlet; this._value = v; return this; } - public ObjectBuilder lmd( + public ObjectBuilder lmdirichlet( Function> fn) { - return this.lmd(fn.apply(new SettingsSimilarityLmd.Builder()).build()); + return this.lmdirichlet(fn.apply(new SettingsSimilarityLmd.Builder()).build()); } - public ObjectBuilder lmj(SettingsSimilarityLmj v) { - this._kind = Kind.Lmj; + public ObjectBuilder lmjelinekmercer(SettingsSimilarityLmj v) { + this._kind = Kind.LMJelinekMercer; this._value = v; return this; } - public ObjectBuilder lmj( + public ObjectBuilder lmjelinekmercer( Function> fn) { - return this.lmj(fn.apply(new SettingsSimilarityLmj.Builder()).build()); + return this.lmjelinekmercer(fn.apply(new SettingsSimilarityLmj.Builder()).build()); } - public ObjectBuilder scriptedTfidf(SettingsSimilarityScriptedTfidf v) { - this._kind = Kind.ScriptedTfidf; + public ObjectBuilder scripted(SettingsSimilarityScripted v) { + this._kind = Kind.Scripted; this._value = v; return this; } - public ObjectBuilder scriptedTfidf( - Function> fn) { - return this.scriptedTfidf(fn.apply(new SettingsSimilarityScriptedTfidf.Builder()).build()); - } - - /** - * Define this {@code SettingsSimilarity} as a plugin-defined variant. - * - * @param name - * the plugin-defined identifier - * @param data - * the data for this custom {@code SettingsSimilarity}. It is - * converted internally to {@link JsonData}. - */ - public ObjectBuilder _custom(String name, Object data) { - this._kind = Kind._Custom; - this._customKind = name; - this._value = JsonData.of(data); - return this; + public ObjectBuilder scripted( + Function> fn) { + return this.scripted(fn.apply(new SettingsSimilarityScripted.Builder()).build()); } public SettingsSimilarity build() { @@ -419,18 +392,16 @@ public SettingsSimilarity build() { protected static void setupSettingsSimilarityDeserializer(ObjectDeserializer op) { - op.add(Builder::bm25, SettingsSimilarityBm25._DESERIALIZER, "bm25"); - op.add(Builder::dfi, SettingsSimilarityDfi._DESERIALIZER, "dfi"); - op.add(Builder::dfr, SettingsSimilarityDfr._DESERIALIZER, "dfr"); - op.add(Builder::ib, SettingsSimilarityIb._DESERIALIZER, "ib"); - op.add(Builder::lmd, SettingsSimilarityLmd._DESERIALIZER, "lmd"); - op.add(Builder::lmj, SettingsSimilarityLmj._DESERIALIZER, "lmj"); - op.add(Builder::scriptedTfidf, SettingsSimilarityScriptedTfidf._DESERIALIZER, "scripted_tfidf"); - - op.setUnknownFieldHandler((builder, name, parser, mapper) -> { - JsonpUtils.ensureCustomVariantsAllowed(parser, mapper); - builder._custom(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); - }); + op.add(Builder::bm25, SettingsSimilarityBm25._DESERIALIZER, "BM25"); + op.add(Builder::boolean_, SettingsSimilarityBoolean._DESERIALIZER, "boolean"); + op.add(Builder::dfi, SettingsSimilarityDfi._DESERIALIZER, "DFI"); + op.add(Builder::dfr, SettingsSimilarityDfr._DESERIALIZER, "DFR"); + op.add(Builder::ib, SettingsSimilarityIb._DESERIALIZER, "IB"); + op.add(Builder::lmdirichlet, SettingsSimilarityLmd._DESERIALIZER, "LMDirichlet"); + op.add(Builder::lmjelinekmercer, SettingsSimilarityLmj._DESERIALIZER, "LMJelinekMercer"); + op.add(Builder::scripted, SettingsSimilarityScripted._DESERIALIZER, "scripted"); + + op.setTypeProperty("type", null); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java index addd2cfb5..82ff73383 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java @@ -26,7 +26,6 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; @@ -34,6 +33,7 @@ import java.lang.Double; import java.util.Objects; import java.util.function.Function; +import javax.annotation.Nullable; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -60,19 +60,22 @@ */ @JsonpDeserializable public class SettingsSimilarityBm25 implements SettingsSimilarityVariant, JsonpSerializable { - private final double b; + @Nullable + private final Double b; - private final boolean discountOverlaps; + @Nullable + private final Boolean discountOverlaps; - private final double k1; + @Nullable + private final Double k1; // --------------------------------------------------------------------------------------------- private SettingsSimilarityBm25(Builder builder) { - this.b = ApiTypeHelper.requireNonNull(builder.b, this, "b"); - this.discountOverlaps = ApiTypeHelper.requireNonNull(builder.discountOverlaps, this, "discountOverlaps"); - this.k1 = ApiTypeHelper.requireNonNull(builder.k1, this, "k1"); + this.b = builder.b; + this.discountOverlaps = builder.discountOverlaps; + this.k1 = builder.k1; } @@ -89,23 +92,26 @@ public SettingsSimilarity.Kind _settingsSimilarityKind() { } /** - * Required - API name: {@code b} + * API name: {@code b} */ - public final double b() { + @Nullable + public final Double b() { return this.b; } /** - * Required - API name: {@code discount_overlaps} + * API name: {@code discount_overlaps} */ - public final boolean discountOverlaps() { + @Nullable + public final Boolean discountOverlaps() { return this.discountOverlaps; } /** - * Required - API name: {@code k1} + * API name: {@code k1} */ - public final double k1() { + @Nullable + public final Double k1() { return this.k1; } @@ -120,14 +126,23 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("b"); - generator.write(this.b); + generator.write("type", "BM25"); - generator.writeKey("discount_overlaps"); - generator.write(this.discountOverlaps); + if (this.b != null) { + generator.writeKey("b"); + generator.write(this.b); - generator.writeKey("k1"); - generator.write(this.k1); + } + if (this.discountOverlaps != null) { + generator.writeKey("discount_overlaps"); + generator.write(this.discountOverlaps); + + } + if (this.k1 != null) { + generator.writeKey("k1"); + generator.write(this.k1); + + } } @@ -145,32 +160,35 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable private Double b; + @Nullable private Boolean discountOverlaps; + @Nullable private Double k1; /** - * Required - API name: {@code b} + * API name: {@code b} */ - public final Builder b(double value) { + public final Builder b(@Nullable Double value) { this.b = value; return this; } /** - * Required - API name: {@code discount_overlaps} + * API name: {@code discount_overlaps} */ - public final Builder discountOverlaps(boolean value) { + public final Builder discountOverlaps(@Nullable Boolean value) { this.discountOverlaps = value; return this; } /** - * Required - API name: {@code k1} + * API name: {@code k1} */ - public final Builder k1(double value) { + public final Builder k1(@Nullable Double value) { this.k1 = value; return this; } @@ -208,6 +226,7 @@ protected static void setupSettingsSimilarityBm25Deserializer( op.add(Builder::discountOverlaps, JsonpDeserializer.booleanDeserializer(), "discount_overlaps"); op.add(Builder::k1, JsonpDeserializer.doubleDeserializer(), "k1"); + op.ignore("type"); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java new file mode 100644 index 000000000..e3016b8f1 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.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. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices._types.SettingsSimilarityBoolean + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SettingsSimilarityBoolean implements SettingsSimilarityVariant, JsonpSerializable { + // --------------------------------------------------------------------------------------------- + + private SettingsSimilarityBoolean(Builder builder) { + + } + + public static SettingsSimilarityBoolean of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * SettingsSimilarity variant kind. + */ + @Override + public SettingsSimilarity.Kind _settingsSimilarityKind() { + return SettingsSimilarity.Kind.Boolean; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "boolean"); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SettingsSimilarityBoolean}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SettingsSimilarityBoolean}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SettingsSimilarityBoolean build() { + _checkSingleUse(); + + return new SettingsSimilarityBoolean(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SettingsSimilarityBoolean} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SettingsSimilarityBoolean::setupSettingsSimilarityBooleanDeserializer); + + protected static void setupSettingsSimilarityBooleanDeserializer( + ObjectDeserializer op) { + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBuilders.java index e21e3cef0..454f72af1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBuilders.java @@ -45,7 +45,7 @@ private SettingsSimilarityBuilders() { } /** - * Creates a builder for the {@link SettingsSimilarityBm25 bm25} + * Creates a builder for the {@link SettingsSimilarityBm25 BM25} * {@code SettingsSimilarity} variant. */ public static SettingsSimilarityBm25.Builder bm25() { @@ -53,7 +53,7 @@ public static SettingsSimilarityBm25.Builder bm25() { } /** - * Creates a SettingsSimilarity of the {@link SettingsSimilarityBm25 bm25} + * Creates a SettingsSimilarity of the {@link SettingsSimilarityBm25 BM25} * {@code SettingsSimilarity} variant. */ public static SettingsSimilarity bm25( @@ -64,7 +64,26 @@ public static SettingsSimilarity bm25( } /** - * Creates a builder for the {@link SettingsSimilarityDfi dfi} + * Creates a builder for the {@link SettingsSimilarityBoolean boolean} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityBoolean.Builder boolean_() { + return new SettingsSimilarityBoolean.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityBoolean boolean} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity boolean_( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.boolean_(fn.apply(new SettingsSimilarityBoolean.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityDfi DFI} * {@code SettingsSimilarity} variant. */ public static SettingsSimilarityDfi.Builder dfi() { @@ -72,7 +91,7 @@ public static SettingsSimilarityDfi.Builder dfi() { } /** - * Creates a SettingsSimilarity of the {@link SettingsSimilarityDfi dfi} + * Creates a SettingsSimilarity of the {@link SettingsSimilarityDfi DFI} * {@code SettingsSimilarity} variant. */ public static SettingsSimilarity dfi( @@ -83,7 +102,7 @@ public static SettingsSimilarity dfi( } /** - * Creates a builder for the {@link SettingsSimilarityDfr dfr} + * Creates a builder for the {@link SettingsSimilarityDfr DFR} * {@code SettingsSimilarity} variant. */ public static SettingsSimilarityDfr.Builder dfr() { @@ -91,7 +110,7 @@ public static SettingsSimilarityDfr.Builder dfr() { } /** - * Creates a SettingsSimilarity of the {@link SettingsSimilarityDfr dfr} + * Creates a SettingsSimilarity of the {@link SettingsSimilarityDfr DFR} * {@code SettingsSimilarity} variant. */ public static SettingsSimilarity dfr( @@ -102,7 +121,7 @@ public static SettingsSimilarity dfr( } /** - * Creates a builder for the {@link SettingsSimilarityIb ib} + * Creates a builder for the {@link SettingsSimilarityIb IB} * {@code SettingsSimilarity} variant. */ public static SettingsSimilarityIb.Builder ib() { @@ -110,7 +129,7 @@ public static SettingsSimilarityIb.Builder ib() { } /** - * Creates a SettingsSimilarity of the {@link SettingsSimilarityIb ib} + * Creates a SettingsSimilarity of the {@link SettingsSimilarityIb IB} * {@code SettingsSimilarity} variant. */ public static SettingsSimilarity ib( @@ -121,59 +140,59 @@ public static SettingsSimilarity ib( } /** - * Creates a builder for the {@link SettingsSimilarityLmd lmd} + * Creates a builder for the {@link SettingsSimilarityLmd LMDirichlet} * {@code SettingsSimilarity} variant. */ - public static SettingsSimilarityLmd.Builder lmd() { + public static SettingsSimilarityLmd.Builder lmdirichlet() { return new SettingsSimilarityLmd.Builder(); } /** - * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmd lmd} + * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmd LMDirichlet} * {@code SettingsSimilarity} variant. */ - public static SettingsSimilarity lmd( + public static SettingsSimilarity lmdirichlet( Function> fn) { SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); - builder.lmd(fn.apply(new SettingsSimilarityLmd.Builder()).build()); + builder.lmdirichlet(fn.apply(new SettingsSimilarityLmd.Builder()).build()); return builder.build(); } /** - * Creates a builder for the {@link SettingsSimilarityLmj lmj} + * Creates a builder for the {@link SettingsSimilarityLmj LMJelinekMercer} * {@code SettingsSimilarity} variant. */ - public static SettingsSimilarityLmj.Builder lmj() { + public static SettingsSimilarityLmj.Builder lmjelinekmercer() { return new SettingsSimilarityLmj.Builder(); } /** - * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmj lmj} - * {@code SettingsSimilarity} variant. + * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmj + * LMJelinekMercer} {@code SettingsSimilarity} variant. */ - public static SettingsSimilarity lmj( + public static SettingsSimilarity lmjelinekmercer( Function> fn) { SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); - builder.lmj(fn.apply(new SettingsSimilarityLmj.Builder()).build()); + builder.lmjelinekmercer(fn.apply(new SettingsSimilarityLmj.Builder()).build()); return builder.build(); } /** - * Creates a builder for the {@link SettingsSimilarityScriptedTfidf - * scripted_tfidf} {@code SettingsSimilarity} variant. + * Creates a builder for the {@link SettingsSimilarityScripted scripted} + * {@code SettingsSimilarity} variant. */ - public static SettingsSimilarityScriptedTfidf.Builder scriptedTfidf() { - return new SettingsSimilarityScriptedTfidf.Builder(); + public static SettingsSimilarityScripted.Builder scripted() { + return new SettingsSimilarityScripted.Builder(); } /** - * Creates a SettingsSimilarity of the {@link SettingsSimilarityScriptedTfidf - * scripted_tfidf} {@code SettingsSimilarity} variant. + * Creates a SettingsSimilarity of the {@link SettingsSimilarityScripted + * scripted} {@code SettingsSimilarity} variant. */ - public static SettingsSimilarity scriptedTfidf( - Function> fn) { + public static SettingsSimilarity scripted( + Function> fn) { SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); - builder.scriptedTfidf(fn.apply(new SettingsSimilarityScriptedTfidf.Builder()).build()); + builder.scripted(fn.apply(new SettingsSimilarityScripted.Builder()).build()); return builder.build(); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java index acc0cfb49..596a78bd3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java @@ -101,6 +101,8 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.write("type", "DFI"); + generator.writeKey("independence_measure"); this.independenceMeasure.serialize(generator, mapper); @@ -160,6 +162,7 @@ protected static void setupSettingsSimilarityDfiDeserializer(ObjectDeserializer< op.add(Builder::independenceMeasure, DFIIndependenceMeasure._DESERIALIZER, "independence_measure"); + op.ignore("type"); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java index 168953aab..9e022df97 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java @@ -122,6 +122,8 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.write("type", "DFR"); + generator.writeKey("after_effect"); this.afterEffect.serialize(generator, mapper); generator.writeKey("basic_model"); @@ -207,6 +209,7 @@ protected static void setupSettingsSimilarityDfrDeserializer(ObjectDeserializer< op.add(Builder::basicModel, DFRBasicModel._DESERIALIZER, "basic_model"); op.add(Builder::normalization, Normalization._DESERIALIZER, "normalization"); + op.ignore("type"); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java index 19ebcd6dc..ad8bf0ba1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java @@ -122,6 +122,8 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.write("type", "IB"); + generator.writeKey("distribution"); this.distribution.serialize(generator, mapper); generator.writeKey("lambda"); @@ -207,6 +209,7 @@ protected static void setupSettingsSimilarityIbDeserializer(ObjectDeserializer implements ObjectBuilder { - private Integer mu; + @Nullable + private Double mu; /** - * Required - API name: {@code mu} + * API name: {@code mu} */ - public final Builder mu(int value) { + public final Builder mu(@Nullable Double value) { this.mu = value; return this; } @@ -156,8 +164,9 @@ public SettingsSimilarityLmd build() { protected static void setupSettingsSimilarityLmdDeserializer(ObjectDeserializer op) { - op.add(Builder::mu, JsonpDeserializer.integerDeserializer(), "mu"); + op.add(Builder::mu, JsonpDeserializer.doubleDeserializer(), "mu"); + op.ignore("type"); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java index 11a0e7140..5c8998fd8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java @@ -26,13 +26,13 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Double; import java.util.Objects; import java.util.function.Function; +import javax.annotation.Nullable; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -59,13 +59,14 @@ */ @JsonpDeserializable public class SettingsSimilarityLmj implements SettingsSimilarityVariant, JsonpSerializable { - private final double lambda; + @Nullable + private final Double lambda; // --------------------------------------------------------------------------------------------- private SettingsSimilarityLmj(Builder builder) { - this.lambda = ApiTypeHelper.requireNonNull(builder.lambda, this, "lambda"); + this.lambda = builder.lambda; } @@ -78,13 +79,14 @@ public static SettingsSimilarityLmj of(Function implements ObjectBuilder { + @Nullable private Double lambda; /** - * Required - API name: {@code lambda} + * API name: {@code lambda} */ - public final Builder lambda(double value) { + public final Builder lambda(@Nullable Double value) { this.lambda = value; return this; } @@ -158,6 +166,7 @@ protected static void setupSettingsSimilarityLmjDeserializer(ObjectDeserializer< op.add(Builder::lambda, JsonpDeserializer.doubleDeserializer(), "lambda"); + op.ignore("type"); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScriptedTfidf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScripted.java similarity index 69% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScriptedTfidf.java rename to java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScripted.java index 35d8fe7f7..daa33e276 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScriptedTfidf.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScripted.java @@ -50,28 +50,31 @@ // //---------------------------------------------------------------- -// typedef: indices._types.SettingsSimilarityScriptedTfidf +// typedef: indices._types.SettingsSimilarityScripted /** * * @see API + * "../doc-files/api-spec.html#indices._types.SettingsSimilarityScripted">API * specification */ @JsonpDeserializable -public class SettingsSimilarityScriptedTfidf implements SettingsSimilarityVariant, JsonpSerializable { +public class SettingsSimilarityScripted implements SettingsSimilarityVariant, JsonpSerializable { private final Script script; + @Nullable + private final Script weightScript; + // --------------------------------------------------------------------------------------------- - private SettingsSimilarityScriptedTfidf(Builder builder) { + private SettingsSimilarityScripted(Builder builder) { this.script = ApiTypeHelper.requireNonNull(builder.script, this, "script"); + this.weightScript = builder.weightScript; } - public static SettingsSimilarityScriptedTfidf of( - Function> fn) { + public static SettingsSimilarityScripted of(Function> fn) { return fn.apply(new Builder()).build(); } @@ -80,7 +83,7 @@ public static SettingsSimilarityScriptedTfidf of( */ @Override public SettingsSimilarity.Kind _settingsSimilarityKind() { - return SettingsSimilarity.Kind.ScriptedTfidf; + return SettingsSimilarity.Kind.Scripted; } /** @@ -90,6 +93,14 @@ public final Script script() { return this.script; } + /** + * API name: {@code weight_script} + */ + @Nullable + public final Script weightScript() { + return this.weightScript; + } + /** * Serialize this object to JSON. */ @@ -101,9 +112,17 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.write("type", "scripted"); + generator.writeKey("script"); this.script.serialize(generator, mapper); + if (this.weightScript != null) { + generator.writeKey("weight_script"); + this.weightScript.serialize(generator, mapper); + + } + } @Override @@ -114,14 +133,17 @@ public String toString() { // --------------------------------------------------------------------------------------------- /** - * Builder for {@link SettingsSimilarityScriptedTfidf}. + * Builder for {@link SettingsSimilarityScripted}. */ public static class Builder extends WithJsonObjectBuilderBase implements - ObjectBuilder { + ObjectBuilder { private Script script; + @Nullable + private Script weightScript; + /** * Required - API name: {@code script} */ @@ -137,37 +159,54 @@ public final Builder script(Function> fn) return this.script(fn.apply(new Script.Builder()).build()); } + /** + * API name: {@code weight_script} + */ + public final Builder weightScript(@Nullable Script value) { + this.weightScript = value; + return this; + } + + /** + * API name: {@code weight_script} + */ + public final Builder weightScript(Function> fn) { + return this.weightScript(fn.apply(new Script.Builder()).build()); + } + @Override protected Builder self() { return this; } /** - * Builds a {@link SettingsSimilarityScriptedTfidf}. + * Builds a {@link SettingsSimilarityScripted}. * * @throws NullPointerException * if some of the required fields are null. */ - public SettingsSimilarityScriptedTfidf build() { + public SettingsSimilarityScripted build() { _checkSingleUse(); - return new SettingsSimilarityScriptedTfidf(this); + return new SettingsSimilarityScripted(this); } } // --------------------------------------------------------------------------------------------- /** - * Json deserializer for {@link SettingsSimilarityScriptedTfidf} + * Json deserializer for {@link SettingsSimilarityScripted} */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, SettingsSimilarityScriptedTfidf::setupSettingsSimilarityScriptedTfidfDeserializer); + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SettingsSimilarityScripted::setupSettingsSimilarityScriptedDeserializer); - protected static void setupSettingsSimilarityScriptedTfidfDeserializer( - ObjectDeserializer op) { + protected static void setupSettingsSimilarityScriptedDeserializer( + ObjectDeserializer op) { op.add(Builder::script, Script._DESERIALIZER, "script"); + op.add(Builder::weightScript, Script._DESERIALIZER, "weight_script"); + op.ignore("type"); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java index badfa9446..b77e52300 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch.indices; +import co.elastic.clients.json.JsonpSerializable; + //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. //---------------------------------------------------------------- @@ -37,7 +39,7 @@ /** * Base interface for {@link SettingsSimilarity} variants. */ -public interface SettingsSimilarityVariant { +public interface SettingsSimilarityVariant extends JsonpSerializable { SettingsSimilarity.Kind _settingsSimilarityKind(); 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 933adbbc7..181bbeddf 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 @@ -103,6 +103,9 @@ public class PutTrainedModelRequest extends RequestBase implements JsonpSerializ @Nullable private final String platformArchitecture; + @Nullable + private final TrainedModelPrefixStrings prefixStrings; + private final List tags; // --------------------------------------------------------------------------------------------- @@ -120,6 +123,7 @@ private PutTrainedModelRequest(Builder builder) { this.modelSizeBytes = builder.modelSizeBytes; this.modelType = builder.modelType; this.platformArchitecture = builder.platformArchitecture; + this.prefixStrings = builder.prefixStrings; this.tags = ApiTypeHelper.unmodifiable(builder.tags); } @@ -255,6 +259,16 @@ public final String platformArchitecture() { return this.platformArchitecture; } + /** + * Optional prefix strings applied at inference + *

+ * API name: {@code prefix_strings} + */ + @Nullable + public final TrainedModelPrefixStrings prefixStrings() { + return this.prefixStrings; + } + /** * An array of tags to organize the model. *

@@ -318,6 +332,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("platform_architecture"); generator.write(this.platformArchitecture); + } + if (this.prefixStrings != null) { + generator.writeKey("prefix_strings"); + this.prefixStrings.serialize(generator, mapper); + } if (ApiTypeHelper.isDefined(this.tags)) { generator.writeKey("tags"); @@ -373,6 +392,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String platformArchitecture; + @Nullable + private TrainedModelPrefixStrings prefixStrings; + @Nullable private List tags; @@ -536,6 +558,26 @@ public final Builder platformArchitecture(@Nullable String value) { return this; } + /** + * Optional prefix strings applied at inference + *

+ * API name: {@code prefix_strings} + */ + public final Builder prefixStrings(@Nullable TrainedModelPrefixStrings value) { + this.prefixStrings = value; + return this; + } + + /** + * Optional prefix strings applied at inference + *

+ * API name: {@code prefix_strings} + */ + public final Builder prefixStrings( + Function> fn) { + return this.prefixStrings(fn.apply(new TrainedModelPrefixStrings.Builder()).build()); + } + /** * An array of tags to organize the model. *

@@ -598,6 +640,7 @@ protected static void setupPutTrainedModelRequestDeserializer( op.add(Builder::modelSizeBytes, JsonpDeserializer.longDeserializer(), "model_size_bytes"); op.add(Builder::modelType, TrainedModelType._DESERIALIZER, "model_type"); op.add(Builder::platformArchitecture, JsonpDeserializer.stringDeserializer(), "platform_architecture"); + op.add(Builder::prefixStrings, TrainedModelPrefixStrings._DESERIALIZER, "prefix_strings"); op.add(Builder::tags, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "tags"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java index 4055149d4..5bfde5862 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java @@ -26,7 +26,6 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; @@ -60,16 +59,18 @@ */ @JsonpDeserializable public class TrainedModelPrefixStrings implements JsonpSerializable { + @Nullable private final String ingest; + @Nullable private final String search; // --------------------------------------------------------------------------------------------- private TrainedModelPrefixStrings(Builder builder) { - this.ingest = ApiTypeHelper.requireNonNull(builder.ingest, this, "ingest"); - this.search = ApiTypeHelper.requireNonNull(builder.search, this, "search"); + this.ingest = builder.ingest; + this.search = builder.search; } @@ -78,19 +79,21 @@ public static TrainedModelPrefixStrings of(Function * API name: {@code ingest} */ + @Nullable public final String ingest() { return this.ingest; } /** - * Required - String prepended to input at search + * String prepended to input at search *

* API name: {@code search} */ + @Nullable public final String search() { return this.search; } @@ -106,11 +109,16 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("ingest"); - generator.write(this.ingest); + if (this.ingest != null) { + generator.writeKey("ingest"); + generator.write(this.ingest); - generator.writeKey("search"); - generator.write(this.search); + } + if (this.search != null) { + generator.writeKey("search"); + generator.write(this.search); + + } } @@ -128,26 +136,28 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable private String ingest; + @Nullable private String search; /** - * Required - String prepended to input at ingest + * String prepended to input at ingest *

* API name: {@code ingest} */ - public final Builder ingest(String value) { + public final Builder ingest(@Nullable String value) { this.ingest = value; return this; } /** - * Required - String prepended to input at search + * String prepended to input at search *

* API name: {@code search} */ - public final Builder search(String value) { + public final Builder search(@Nullable String value) { this.search = value; return this; } From c074f8341ffbda2fd4ca19686fc723db403474a3 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Tue, 26 Mar 2024 17:01:52 +0100 Subject: [PATCH 20/25] Update Jackson version (#768) --- docs/getting-started.asciidoc | 4 ++-- docs/setup/installation.asciidoc | 4 ++-- example-transports/build.gradle.kts | 2 +- java-client-serverless/build.gradle.kts | 2 +- java-client-serverless/docs/getting-started.mdx | 4 ++-- java-client/build.gradle.kts | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/getting-started.asciidoc b/docs/getting-started.asciidoc index c5f76ed1b..624d9b485 100644 --- a/docs/getting-started.asciidoc +++ b/docs/getting-started.asciidoc @@ -23,7 +23,7 @@ show usage with Jackson. -------------------------------------------------- dependencies { implementation 'co.elastic.clients:elasticsearch-java:{version}' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.0' } -------------------------------------------------- @@ -47,7 +47,7 @@ dependencies: com.fasterxml.jackson.core jackson-databind - 2.12.3 + 2.17.0 diff --git a/docs/setup/installation.asciidoc b/docs/setup/installation.asciidoc index 43715feda..e5684fce0 100644 --- a/docs/setup/installation.asciidoc +++ b/docs/setup/installation.asciidoc @@ -25,7 +25,7 @@ available at https://snapshots.elastic.co/maven/. -------------------------------------------------- dependencies { implementation 'co.elastic.clients:elasticsearch-java:{version}' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.0' } -------------------------------------------------- @@ -50,7 +50,7 @@ dependencies: com.fasterxml.jackson.core jackson-databind - 2.12.3 + 2.17.0 diff --git a/example-transports/build.gradle.kts b/example-transports/build.gradle.kts index 12849f582..df3109362 100644 --- a/example-transports/build.gradle.kts +++ b/example-transports/build.gradle.kts @@ -33,7 +33,7 @@ java { dependencies { - val jacksonVersion = "2.13.3" + val jacksonVersion = "2.17.0" api("io.netty", "netty-codec-http", "4.1.93.Final") diff --git a/java-client-serverless/build.gradle.kts b/java-client-serverless/build.gradle.kts index b7ee174bf..9081809c9 100644 --- a/java-client-serverless/build.gradle.kts +++ b/java-client-serverless/build.gradle.kts @@ -192,7 +192,7 @@ publishing { dependencies { val elasticsearchVersion = "8.10.0" - val jacksonVersion = "2.13.3" + val jacksonVersion = "2.17.0" val openTelemetryVersion = "1.29.0" // Apache 2.0 diff --git a/java-client-serverless/docs/getting-started.mdx b/java-client-serverless/docs/getting-started.mdx index f466abaaf..89c731088 100644 --- a/java-client-serverless/docs/getting-started.mdx +++ b/java-client-serverless/docs/getting-started.mdx @@ -27,7 +27,7 @@ You can add the Elasticsearch Serverless Java client to your Java project using ```groovy dependencies { implementation 'co.elastic.clients:elasticsearch-java-serverless:1.0.0-20231031' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.0' } ``` @@ -48,7 +48,7 @@ In the `pom.xml` of your project, add the following dependencies: com.fasterxml.jackson.core jackson-databind - 2.12.3 + 2.17.0 diff --git a/java-client/build.gradle.kts b/java-client/build.gradle.kts index 7db58d67e..7e231684f 100644 --- a/java-client/build.gradle.kts +++ b/java-client/build.gradle.kts @@ -188,7 +188,7 @@ dependencies { // Compile and test with the last 7.x version to make sure transition scenarios where // the Java API client coexists with a 7.x HLRC work fine val elasticsearchVersion = "8.10.0" - val jacksonVersion = "2.13.3" + val jacksonVersion = "2.17.0" val openTelemetryVersion = "1.29.0" // Apache 2.0 From 7eb733fcc5dbfeaf3ae45b64363b3ce995d6b5fe Mon Sep 17 00:00:00 2001 From: Laura Date: Thu, 28 Mar 2024 11:22:03 +0100 Subject: [PATCH 21/25] 8.13 release doc --- docs/release-notes/release-highlights.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/release-notes/release-highlights.asciidoc b/docs/release-notes/release-highlights.asciidoc index 1fca8fadb..655358434 100644 --- a/docs/release-notes/release-highlights.asciidoc +++ b/docs/release-notes/release-highlights.asciidoc @@ -8,6 +8,7 @@ For a list of detailed changes, including bug fixes, please see the https://gith [discrete] ==== Version 8.13 +* Add ES|QL helpers - https://github.com/elastic/elasticsearch-java/pull/763[#763] * Add an example SpringBoot application - https://github.com/elastic/elasticsearch-java/pull/737[#737] [discrete] From 5f277eef6e4b4b49e74f84f7ab76fb369e1d3e1e Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Fri, 5 Apr 2024 10:49:40 +0200 Subject: [PATCH 22/25] [codegen] Update to latest API spec --- .../aggregations/CardinalityAggregate.java | 12 +- .../aggregations/CardinalityAggregation.java | 15 +- .../aggregations/CompositeAggregate.java | 15 +- .../aggregations/CompositeAggregation.java | 15 +- .../aggregations/DateRangeAggregate.java | 12 +- .../aggregations/DateRangeAggregation.java | 15 +- .../aggregations/DoubleTermsAggregate.java | 15 +- .../_types/aggregations/FilterAggregate.java | 12 +- .../_types/aggregations/FiltersAggregate.java | 15 +- .../aggregations/LongTermsAggregate.java | 15 +- .../_types/aggregations/MissingAggregate.java | 12 +- .../aggregations/MissingAggregation.java | 12 +- .../aggregations/MultiTermsAggregate.java | 15 +- .../_types/aggregations/RangeAggregate.java | 15 +- .../_types/aggregations/RangeAggregation.java | 12 +- .../aggregations/StringTermsAggregate.java | 15 +- .../_types/aggregations/TermsAggregation.java | 16 +- .../aggregations/UnmappedTermsAggregate.java | 15 +- .../aggregations/ValueCountAggregate.java | 12 +- .../aggregations/ValueCountAggregation.java | 15 +- .../_types/mapping/DynamicProperty.java | 2 +- .../_types/mapping/Property.java | 20 +- .../_types/mapping/PropertyBuilders.java | 6 +- .../_types/query_dsl/BoolQuery.java | 12 +- .../_types/query_dsl/ExistsQuery.java | 12 +- .../_types/query_dsl/IdsQuery.java | 12 +- .../_types/query_dsl/MatchAllQuery.java | 12 +- .../_types/query_dsl/MatchQuery.java | 12 +- .../_types/query_dsl/PrefixQuery.java | 12 +- .../_types/query_dsl/RangeQuery.java | 12 +- .../query_dsl/SimpleQueryStringQuery.java | 12 +- .../_types/query_dsl/TermQuery.java | 12 +- .../_types/query_dsl/TermsQuery.java | 12 +- .../_types/query_dsl/WildcardQuery.java | 12 +- .../elasticsearch/core/GetRequest.java | 36 + .../elasticsearch/core/MgetRequest.java | 36 + .../elasticsearch/core/SearchRequest.java | 36 + .../elasticsearch/doc-files/api-spec.html | 110 +-- .../inference/CompletionResult.java | 155 ++++ .../inference/InferenceRequest.java | 33 + .../inference/InferenceResult.java | 70 ++ .../inference/InferenceResultBuilders.java | 5 +- .../inference/RankedDocument.java | 211 ++++++ .../elasticsearch/inference/TaskType.java | 4 + .../ml/PutTrainedModelRequest.java | 30 + .../elasticsearch/security/ApiKey.java | 68 ++ .../security/GetApiKeyRequest.java | 32 + .../security/QueryApiKeysRequest.java | 191 ++++- .../security/QueryApiKeysResponse.java | 61 ++ .../elasticsearch/security/RoleMapping.java | 68 +- .../query_api_keys/ApiKeyAggregate.java | 632 ++++++++++++++++ .../ApiKeyAggregateBuilders.java | 302 ++++++++ .../ApiKeyAggregateVariant.java | 48 ++ .../query_api_keys/ApiKeyAggregation.java | 680 ++++++++++++++++++ .../ApiKeyAggregationBuilders.java | 222 ++++++ .../ApiKeyAggregationVariant.java | 48 ++ .../ApiKeyFiltersAggregation.java | 274 +++++++ .../security/query_api_keys/ApiKeyQuery.java | 575 +++++++++++++++ .../query_api_keys/ApiKeyQueryBuilders.java | 254 +++++++ .../query_api_keys/ApiKeyQueryVariant.java | 48 ++ 60 files changed, 4513 insertions(+), 156 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionResult.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RankedDocument.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregate.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregateBuilders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregateVariant.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregationBuilders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregationVariant.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQueryBuilders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQueryVariant.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregate.java index 6c49f3d3a..05ff6d5a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -55,7 +57,7 @@ * specification */ @JsonpDeserializable -public class CardinalityAggregate extends AggregateBase implements AggregateVariant { +public class CardinalityAggregate extends AggregateBase implements AggregateVariant, ApiKeyAggregateVariant { private final long value; // --------------------------------------------------------------------------------------------- @@ -79,6 +81,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Cardinality; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Cardinality; + } + /** * Required - API name: {@code value} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java index c3e2abb40..93dbffd56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -56,7 +58,10 @@ * specification */ @JsonpDeserializable -public class CardinalityAggregation extends MetricAggregationBase implements AggregationVariant { +public class CardinalityAggregation extends MetricAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant { @Nullable private final Integer precisionThreshold; @@ -89,6 +94,14 @@ public Aggregation.Kind _aggregationKind() { return Aggregation.Kind.Cardinality; } + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.Cardinality; + } + /** * A unique count below which counts are expected to be close to accurate. This * allows to trade memory for accuracy. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java index c7bff08d6..96d0c0340 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -58,7 +60,10 @@ * specification */ @JsonpDeserializable -public class CompositeAggregate extends MultiBucketAggregateBase implements AggregateVariant { +public class CompositeAggregate extends MultiBucketAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { private final Map afterKey; // --------------------------------------------------------------------------------------------- @@ -82,6 +87,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Composite; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Composite; + } + /** * API name: {@code after_key} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java index 6d37f9eb8..bef6c6964 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -60,7 +62,10 @@ * specification */ @JsonpDeserializable -public class CompositeAggregation extends BucketAggregationBase implements AggregationVariant { +public class CompositeAggregation extends BucketAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant { private final Map after; @Nullable @@ -91,6 +96,14 @@ public Aggregation.Kind _aggregationKind() { return Aggregation.Kind.Composite; } + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.Composite; + } + /** * When paginating, use the after_key value returned in the * previous response to retrieve the next page. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java index 539c1e932..6e059c5ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -56,7 +58,7 @@ * specification */ @JsonpDeserializable -public class DateRangeAggregate extends RangeAggregate implements AggregateVariant { +public class DateRangeAggregate extends RangeAggregate implements AggregateVariant, ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private DateRangeAggregate(Builder builder) { @@ -76,6 +78,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.DateRange; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.DateRange; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java index 3eeeee615..b0373ce0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -59,7 +61,10 @@ * specification */ @JsonpDeserializable -public class DateRangeAggregation extends BucketAggregationBase implements AggregationVariant { +public class DateRangeAggregation extends BucketAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant { @Nullable private final String field; @@ -103,6 +108,14 @@ public Aggregation.Kind _aggregationKind() { return Aggregation.Kind.DateRange; } + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.DateRange; + } + /** * The date field whose values are use to build ranges. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java index ad5ed709e..a63a9778f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -54,7 +56,10 @@ * specification */ @JsonpDeserializable -public class DoubleTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class DoubleTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private DoubleTermsAggregate(Builder builder) { @@ -74,6 +79,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Dterms; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Dterms; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java index 9b8e65a29..981e04d97 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -52,7 +54,7 @@ * specification */ @JsonpDeserializable -public class FilterAggregate extends SingleBucketAggregateBase implements AggregateVariant { +public class FilterAggregate extends SingleBucketAggregateBase implements AggregateVariant, ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private FilterAggregate(Builder builder) { @@ -72,6 +74,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Filter; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Filter; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java index b5cd960c1..7e91f9e37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -52,7 +54,10 @@ * specification */ @JsonpDeserializable -public class FiltersAggregate extends MultiBucketAggregateBase implements AggregateVariant { +public class FiltersAggregate extends MultiBucketAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private FiltersAggregate(Builder builder) { @@ -72,6 +77,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Filters; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Filters; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsAggregate.java index b767542c5..2c23f2e9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -54,7 +56,10 @@ * specification */ @JsonpDeserializable -public class LongTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class LongTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private LongTermsAggregate(Builder builder) { @@ -74,6 +79,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Lterms; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Lterms; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregate.java index 1b37d9867..5843bfd58 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -52,7 +54,7 @@ * specification */ @JsonpDeserializable -public class MissingAggregate extends SingleBucketAggregateBase implements AggregateVariant { +public class MissingAggregate extends SingleBucketAggregateBase implements AggregateVariant, ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private MissingAggregate(Builder builder) { @@ -72,6 +74,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Missing; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Missing; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java index 425e69521..fab470c25 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -56,7 +58,7 @@ * specification */ @JsonpDeserializable -public class MissingAggregation extends BucketAggregationBase implements AggregationVariant { +public class MissingAggregation extends BucketAggregationBase implements AggregationVariant, ApiKeyAggregationVariant { @Nullable private final String field; @@ -85,6 +87,14 @@ public Aggregation.Kind _aggregationKind() { return Aggregation.Kind.Missing; } + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.Missing; + } + /** * The name of the field. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregate.java index d28228969..195a8a189 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -52,7 +54,10 @@ * specification */ @JsonpDeserializable -public class MultiTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class MultiTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private MultiTermsAggregate(Builder builder) { @@ -72,6 +77,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.MultiTerms; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.MultiTerms; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java index 72ee7748c..d61c0ad3c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -53,7 +55,10 @@ * specification */ @JsonpDeserializable -public class RangeAggregate extends MultiBucketAggregateBase implements AggregateVariant { +public class RangeAggregate extends MultiBucketAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- protected RangeAggregate(AbstractBuilder builder) { @@ -73,6 +78,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Range; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Range; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java index ae98f4715..92c37eec6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; import co.elastic.clients.elasticsearch._types.Script; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -60,7 +62,7 @@ * specification */ @JsonpDeserializable -public class RangeAggregation extends BucketAggregationBase implements AggregationVariant { +public class RangeAggregation extends BucketAggregationBase implements AggregationVariant, ApiKeyAggregationVariant { @Nullable private final String field; @@ -104,6 +106,14 @@ public Aggregation.Kind _aggregationKind() { return Aggregation.Kind.Range; } + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.Range; + } + /** * The date field whose values are use to build ranges. *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java index 2bccc1369..09df0144f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -53,7 +55,10 @@ * specification */ @JsonpDeserializable -public class StringTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class StringTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private StringTermsAggregate(Builder builder) { @@ -73,6 +78,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Sterms; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Sterms; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java index f6be9fdf1..97b4bc9e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.elasticsearch._types.FieldValue; import co.elastic.clients.elasticsearch._types.Script; import co.elastic.clients.elasticsearch._types.SortOrder; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant; import co.elastic.clients.elasticsearch.transform.PivotGroupBy; import co.elastic.clients.elasticsearch.transform.PivotGroupByVariant; import co.elastic.clients.json.JsonpDeserializable; @@ -65,7 +67,11 @@ * specification */ @JsonpDeserializable -public class TermsAggregation extends BucketAggregationBase implements AggregationVariant, PivotGroupByVariant { +public class TermsAggregation extends BucketAggregationBase + implements + AggregationVariant, + PivotGroupByVariant, + ApiKeyAggregationVariant { @Nullable private final TermsAggregationCollectMode collectMode; @@ -157,6 +163,14 @@ public PivotGroupBy.Kind _pivotGroupByKind() { return PivotGroupBy.Kind.Terms; } + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.Terms; + } + /** * Determines how child aggregations should be calculated: breadth-first or * depth-first. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java index 005f3ebec..e7f95a30d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -55,7 +57,10 @@ * specification */ @JsonpDeserializable -public class UnmappedTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class UnmappedTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private UnmappedTermsAggregate(Builder builder) { @@ -75,6 +80,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.Umterms; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.Umterms; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java index dfc389349..c7bed70e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregateVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -53,7 +55,7 @@ * specification */ @JsonpDeserializable -public class ValueCountAggregate extends SingleMetricAggregateBase implements AggregateVariant { +public class ValueCountAggregate extends SingleMetricAggregateBase implements AggregateVariant, ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private ValueCountAggregate(Builder builder) { @@ -73,6 +75,14 @@ public Aggregate.Kind _aggregateKind() { return Aggregate.Kind.ValueCount; } + /** + * ApiKeyAggregate variant kind. + */ + @Override + public ApiKeyAggregate.Kind _apiKeyAggregateKind() { + return ApiKeyAggregate.Kind.ValueCount; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java index dc95726b5..79c67d0dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -52,7 +54,10 @@ * specification */ @JsonpDeserializable -public class ValueCountAggregation extends FormattableMetricAggregation implements AggregationVariant { +public class ValueCountAggregation extends FormattableMetricAggregation + implements + AggregationVariant, + ApiKeyAggregationVariant { // --------------------------------------------------------------------------------------------- private ValueCountAggregation(Builder builder) { @@ -72,6 +77,14 @@ public Aggregation.Kind _aggregationKind() { return Aggregation.Kind.ValueCount; } + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.ValueCount; + } + // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java index a50c79389..e13a89e69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java @@ -166,7 +166,7 @@ public static DynamicProperty of(Function doubleRange( return this.doubleRange(fn.apply(new DoubleRangeProperty.Builder()).build()); } - public ObjectBuilder dynamicProperty(DynamicProperty v) { - this._kind = Kind.DynamicProperty; + public ObjectBuilder dynamicType(DynamicProperty v) { + this._kind = Kind.DynamicType; this._value = v; return this; } - public ObjectBuilder dynamicProperty( + public ObjectBuilder dynamicType( Function> fn) { - return this.dynamicProperty(fn.apply(new DynamicProperty.Builder()).build()); + return this.dynamicType(fn.apply(new DynamicProperty.Builder()).build()); } public ObjectBuilder alias(FieldAliasProperty v) { @@ -1621,7 +1621,7 @@ protected static void setupPropertyDeserializer(ObjectDeserializer op) op.add(Builder::denseVector, DenseVectorProperty._DESERIALIZER, "dense_vector"); op.add(Builder::double_, DoubleNumberProperty._DESERIALIZER, "double"); op.add(Builder::doubleRange, DoubleRangeProperty._DESERIALIZER, "double_range"); - op.add(Builder::dynamicProperty, DynamicProperty._DESERIALIZER, "{dynamic_property}"); + op.add(Builder::dynamicType, DynamicProperty._DESERIALIZER, "{dynamic_property}"); op.add(Builder::alias, FieldAliasProperty._DESERIALIZER, "alias"); op.add(Builder::flattened, FlattenedProperty._DESERIALIZER, "flattened"); op.add(Builder::float_, FloatNumberProperty._DESERIALIZER, "float"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java index 0c2a12553..c4ead33dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java @@ -264,7 +264,7 @@ public static Property doubleRange(Function> fn) { + public static Property dynamicType(Function> fn) { Property.Builder builder = new Property.Builder(); - builder.dynamicProperty(fn.apply(new DynamicProperty.Builder()).build()); + builder.dynamicType(fn.apply(new DynamicProperty.Builder()).build()); return builder.build(); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoolQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoolQuery.java index cb89a2086..e7af0105c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoolQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoolQuery.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -56,7 +58,7 @@ * specification */ @JsonpDeserializable -public class BoolQuery extends QueryBase implements QueryVariant { +public class BoolQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { private final List filter; @Nullable @@ -85,6 +87,14 @@ public static BoolQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Bool; + } + /** * Query variant kind. */ 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 81acf91ec..b958d6fd0 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 @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -55,7 +57,7 @@ * specification */ @JsonpDeserializable -public class ExistsQuery extends QueryBase implements QueryVariant { +public class ExistsQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { private final String field; // --------------------------------------------------------------------------------------------- @@ -71,6 +73,14 @@ public static ExistsQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Exists; + } + /** * Query variant kind. */ 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 dff3c474b..75a04fee3 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 @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -56,7 +58,7 @@ * specification */ @JsonpDeserializable -public class IdsQuery extends QueryBase implements QueryVariant { +public class IdsQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { private final List values; // --------------------------------------------------------------------------------------------- @@ -72,6 +74,14 @@ public static IdsQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Ids; + } + /** * Query variant kind. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java index 6f7e3bf13..f119c6418 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -52,7 +54,7 @@ * specification */ @JsonpDeserializable -public class MatchAllQuery extends QueryBase implements QueryVariant { +public class MatchAllQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { // --------------------------------------------------------------------------------------------- private MatchAllQuery(Builder builder) { @@ -64,6 +66,14 @@ public static MatchAllQuery of(Function> f return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.MatchAll; + } + /** * Query variant kind. */ 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 index 1bd44d100..5b8d885a4 100644 --- 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 @@ -20,6 +20,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -59,7 +61,7 @@ * specification */ @JsonpDeserializable -public class MatchQuery extends QueryBase implements QueryVariant { +public class MatchQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { // Single key dictionary private final String field; @@ -127,6 +129,14 @@ public static MatchQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Match; + } + /** * Query variant kind. */ 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 index c175451ea..37a9cab6e 100644 --- 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 @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -56,7 +58,7 @@ * specification */ @JsonpDeserializable -public class PrefixQuery extends QueryBase implements QueryVariant { +public class PrefixQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { // Single key dictionary private final String field; @@ -84,6 +86,14 @@ public static PrefixQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Prefix; + } + /** * Query variant kind. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java index 162b789a6..242c1d40f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQuery.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -56,7 +58,7 @@ * specification */ @JsonpDeserializable -public class RangeQuery extends RangeQueryBase implements QueryVariant { +public class RangeQuery extends RangeQueryBase implements ApiKeyQueryVariant, QueryVariant { // Single key dictionary private final String field; @@ -105,6 +107,14 @@ public static RangeQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Range; + } + /** * Query variant kind. */ 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 c23153bdc..ed1878df9 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 @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonEnums; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -60,7 +62,7 @@ * specification */ @JsonpDeserializable -public class SimpleQueryStringQuery extends QueryBase implements QueryVariant { +public class SimpleQueryStringQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { @Nullable private final String analyzer; @@ -122,6 +124,14 @@ public static SimpleQueryStringQuery of(Function */ @JsonpDeserializable -public class TermQuery extends QueryBase implements QueryVariant { +public class TermQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { // Single key dictionary private final String field; @@ -81,6 +83,14 @@ public static TermQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Term; + } + /** * Query variant kind. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQuery.java index 8a5b715aa..176c3e32d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQuery.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -55,7 +57,7 @@ * specification */ @JsonpDeserializable -public class TermsQuery extends QueryBase implements QueryVariant { +public class TermsQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { private final String field; private final TermsQueryField terms; @@ -73,6 +75,14 @@ public static TermsQuery of(Function> fn) { return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Terms; + } + /** * Query variant kind. */ 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 index 50c6811a6..ad0c60f89 100644 --- 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 @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch._types.query_dsl; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -57,7 +59,7 @@ * specification */ @JsonpDeserializable -public class WildcardQuery extends QueryBase implements QueryVariant { +public class WildcardQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { // Single key dictionary private final String field; @@ -90,6 +92,14 @@ public static WildcardQuery of(Function> f return fn.apply(new Builder()).build(); } + /** + * ApiKeyQuery variant kind. + */ + @Override + public ApiKeyQuery.Kind _apiKeyQueryKind() { + return ApiKeyQuery.Kind.Wildcard; + } + /** * Query variant kind. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java index f576edff6..7bc8ca60d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java @@ -75,6 +75,9 @@ public class GetRequest extends RequestBase { private final List sourceIncludes; + @Nullable + private final Boolean forceSyntheticSource; + private final String id; private final String index; @@ -106,6 +109,7 @@ private GetRequest(Builder builder) { this.source = builder.source; this.sourceExcludes = ApiTypeHelper.unmodifiable(builder.sourceExcludes); this.sourceIncludes = ApiTypeHelper.unmodifiable(builder.sourceIncludes); + this.forceSyntheticSource = builder.forceSyntheticSource; this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); this.preference = builder.preference; @@ -151,6 +155,19 @@ public final List sourceIncludes() { return this.sourceIncludes; } + /** + * Should this request force synthetic _source? Use this to test if the mapping + * supports synthetic _source and to get a sense of the worst case performance. + * Fetches with this enabled will be slower the enabling synthetic source + * natively in the index. + *

+ * API name: {@code force_synthetic_source} + */ + @Nullable + public final Boolean forceSyntheticSource() { + return this.forceSyntheticSource; + } + /** * Required - Unique identifier of the document. *

@@ -259,6 +276,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List sourceIncludes; + @Nullable + private Boolean forceSyntheticSource; + private String id; private String index; @@ -353,6 +373,19 @@ public final Builder sourceIncludes(String value, String... values) { return this; } + /** + * Should this request force synthetic _source? Use this to test if the mapping + * supports synthetic _source and to get a sense of the worst case performance. + * Fetches with this enabled will be slower the enabling synthetic source + * natively in the index. + *

+ * API name: {@code force_synthetic_source} + */ + public final Builder forceSyntheticSource(@Nullable Boolean value) { + this.forceSyntheticSource = value; + return this; + } + /** * Required - Unique identifier of the document. *

@@ -565,6 +598,9 @@ public GetRequest build() { params.put("_source_excludes", request.sourceExcludes.stream().map(v -> v).collect(Collectors.joining(","))); } + if (request.forceSyntheticSource != null) { + params.put("force_synthetic_source", String.valueOf(request.forceSyntheticSource)); + } if (ApiTypeHelper.isDefined(request.sourceIncludes)) { params.put("_source_includes", request.sourceIncludes.stream().map(v -> v).collect(Collectors.joining(","))); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java index 13609d804..d220b257d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java @@ -78,6 +78,9 @@ public class MgetRequest extends RequestBase implements JsonpSerializable { private final List docs; + @Nullable + private final Boolean forceSyntheticSource; + private final List ids; @Nullable @@ -105,6 +108,7 @@ private MgetRequest(Builder builder) { this.sourceExcludes = ApiTypeHelper.unmodifiable(builder.sourceExcludes); this.sourceIncludes = ApiTypeHelper.unmodifiable(builder.sourceIncludes); this.docs = ApiTypeHelper.unmodifiable(builder.docs); + this.forceSyntheticSource = builder.forceSyntheticSource; this.ids = ApiTypeHelper.unmodifiable(builder.ids); this.index = builder.index; this.preference = builder.preference; @@ -164,6 +168,19 @@ public final List docs() { return this.docs; } + /** + * Should this request force synthetic _source? Use this to test if the mapping + * supports synthetic _source and to get a sense of the worst case performance. + * Fetches with this enabled will be slower the enabling synthetic source + * natively in the index. + *

+ * API name: {@code force_synthetic_source} + */ + @Nullable + public final Boolean forceSyntheticSource() { + return this.forceSyntheticSource; + } + /** * The IDs of the documents you want to retrieve. Allowed when the index is * specified in the request URI. @@ -291,6 +308,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List docs; + @Nullable + private Boolean forceSyntheticSource; + @Nullable private List ids; @@ -431,6 +451,19 @@ public final Builder docs(Function + * API name: {@code force_synthetic_source} + */ + public final Builder forceSyntheticSource(@Nullable Boolean value) { + this.forceSyntheticSource = value; + return this; + } + /** * The IDs of the documents you want to retrieve. Allowed when the index is * specified in the request URI. @@ -652,6 +685,9 @@ protected static void setupMgetRequestDeserializer(ObjectDeserializer v).collect(Collectors.joining(","))); } + if (request.forceSyntheticSource != null) { + params.put("force_synthetic_source", String.valueOf(request.forceSyntheticSource)); + } if (ApiTypeHelper.isDefined(request.sourceIncludes)) { params.put("_source_includes", request.sourceIncludes.stream().map(v -> v).collect(Collectors.joining(","))); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index db9894637..56b195fe7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java @@ -138,6 +138,9 @@ public class SearchRequest extends RequestBase implements JsonpSerializable { private final List fields; + @Nullable + private final Boolean forceSyntheticSource; + @Nullable private final Integer from; @@ -265,6 +268,7 @@ private SearchRequest(Builder builder) { this.explain = builder.explain; this.ext = ApiTypeHelper.unmodifiable(builder.ext); this.fields = ApiTypeHelper.unmodifiable(builder.fields); + this.forceSyntheticSource = builder.forceSyntheticSource; this.from = builder.from; this.highlight = builder.highlight; this.ignoreThrottled = builder.ignoreThrottled; @@ -490,6 +494,19 @@ public final List fields() { return this.fields; } + /** + * Should this request force synthetic _source? Use this to test if the mapping + * supports synthetic _source and to get a sense of the worst case performance. + * Fetches with this enabled will be slower the enabling synthetic source + * natively in the index. + *

+ * API name: {@code force_synthetic_source} + */ + @Nullable + public final Boolean forceSyntheticSource() { + return this.forceSyntheticSource; + } + /** * Starting document offset. Needs to be non-negative. By default, you cannot * page through more than 10,000 hits using the from and @@ -1257,6 +1274,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List fields; + @Nullable + private Boolean forceSyntheticSource; + @Nullable private Integer from; @@ -1691,6 +1711,19 @@ public final Builder fields(Function + * API name: {@code force_synthetic_source} + */ + public final Builder forceSyntheticSource(@Nullable Boolean value) { + this.forceSyntheticSource = value; + return this; + } + /** * Starting document offset. Needs to be non-negative. By default, you cannot * page through more than 10,000 hits using the from and @@ -2686,6 +2719,9 @@ protected static void setupSearchRequestDeserializer(ObjectDeserializer 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/914f9d86ce92f92b40647fbdcb491164a8d7c0bc/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/76da5bd28f23df7f75a6c16eead9e75045f6f7bb/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionResult.java new file mode 100644 index 000000000..345149456 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionResult.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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.CompletionResult + +/** + * The completion result object + * + * @see API + * specification + */ +@JsonpDeserializable +public class CompletionResult implements JsonpSerializable { + private final String result; + + // --------------------------------------------------------------------------------------------- + + private CompletionResult(Builder builder) { + + this.result = ApiTypeHelper.requireNonNull(builder.result, this, "result"); + + } + + public static CompletionResult of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code result} + */ + public final String result() { + return this.result; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("result"); + generator.write(this.result); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link CompletionResult}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String result; + + /** + * Required - API name: {@code result} + */ + public final Builder result(String value) { + this.result = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link CompletionResult}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public CompletionResult build() { + _checkSingleUse(); + + return new CompletionResult(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link CompletionResult} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + CompletionResult::setupCompletionResultDeserializer); + + protected static void setupCompletionResultDeserializer(ObjectDeserializer op) { + + op.add(Builder::result, JsonpDeserializer.stringDeserializer(), "result"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java index aaa83cb1c..ed280cff9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java @@ -71,6 +71,9 @@ public class InferenceRequest extends RequestBase implements JsonpSerializable { private final List input; + @Nullable + private final String query; + @Nullable private final JsonData taskSettings; @@ -83,6 +86,7 @@ private InferenceRequest(Builder builder) { this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); this.input = ApiTypeHelper.unmodifiableRequired(builder.input, this, "input"); + this.query = builder.query; this.taskSettings = builder.taskSettings; this.taskType = builder.taskType; @@ -110,6 +114,16 @@ public final List input() { return this.input; } + /** + * Query input, required for rerank task. Not required for other tasks. + *

+ * API name: {@code query} + */ + @Nullable + public final String query() { + return this.query; + } + /** * Optional task settings *

@@ -150,6 +164,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + } + if (this.query != null) { + generator.writeKey("query"); + generator.write(this.query); + } if (this.taskSettings != null) { generator.writeKey("task_settings"); @@ -172,6 +191,9 @@ public static class Builder extends RequestBase.AbstractBuilder private List input; + @Nullable + private String query; + @Nullable private JsonData taskSettings; @@ -212,6 +234,16 @@ public final Builder input(String value, String... values) { return this; } + /** + * Query input, required for rerank task. Not required for other tasks. + *

+ * API name: {@code query} + */ + public final Builder query(@Nullable String value) { + this.query = value; + return this; + } + /** * Optional task settings *

@@ -261,6 +293,7 @@ public InferenceRequest build() { protected static void setupInferenceRequestDeserializer(ObjectDeserializer op) { op.add(Builder::input, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "input"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); op.add(Builder::taskSettings, JsonData._DESERIALIZER, "task_settings"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java index 616d2ea5b..ea2615821 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java @@ -81,6 +81,10 @@ public enum Kind implements JsonEnum { SparseEmbedding("sparse_embedding"), + Completion("completion"), + + Rerank("rerank"), + ; private final String jsonValue; @@ -179,6 +183,40 @@ public List sparseEmbedding() { return TaggedUnionUtils.get(this, Kind.SparseEmbedding); } + /** + * Is this variant instance of kind {@code completion}? + */ + public boolean isCompletion() { + return _kind == Kind.Completion; + } + + /** + * Get the {@code completion} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code completion} kind. + */ + public List completion() { + return TaggedUnionUtils.get(this, Kind.Completion); + } + + /** + * Is this variant instance of kind {@code rerank}? + */ + public boolean isRerank() { + return _kind == Kind.Rerank; + } + + /** + * Get the {@code rerank} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code rerank} kind. + */ + public List rerank() { + return TaggedUnionUtils.get(this, Kind.Rerank); + } + @Override @SuppressWarnings("unchecked") public void serialize(JsonGenerator generator, JsonpMapper mapper) { @@ -216,6 +254,24 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + break; + case Completion : + generator.writeStartArray(); + for (CompletionResult item0 : ((List) this._value)) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + break; + case Rerank : + generator.writeStartArray(); + for (RankedDocument item0 : ((List) this._value)) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + break; } } @@ -255,6 +311,18 @@ public ObjectBuilder sparseEmbedding(List completion(List v) { + this._kind = Kind.Completion; + this._value = v; + return this; + } + + public ObjectBuilder rerank(List v) { + this._kind = Kind.Rerank; + this._value = v; + return this; + } + public InferenceResult build() { _checkSingleUse(); return new InferenceResult(this); @@ -270,6 +338,8 @@ protected static void setupInferenceResultDeserializer(ObjectDeserializer * Variants text_embedding_bytes, text_embedding, - * sparse_embedding are not available here as they don't have a - * dedicated class. Use {@link InferenceResult}'s builder for these. + * sparse_embedding, completion, rerank + * are not available here as they don't have a dedicated class. Use + * {@link InferenceResult}'s builder for these. * */ public class InferenceResultBuilders { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RankedDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RankedDocument.java new file mode 100644 index 000000000..dc5cee823 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RankedDocument.java @@ -0,0 +1,211 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.RankedDocument + +/** + * The rerank result object representing a single ranked document id: the + * original index of the document in the request score: the score of the + * document relative to the query text: Optional, the text of the document, if + * requested + * + * @see API + * specification + */ +@JsonpDeserializable +public class RankedDocument implements JsonpSerializable { + private final String index; + + private final String score; + + @Nullable + private final String text; + + // --------------------------------------------------------------------------------------------- + + private RankedDocument(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.score = ApiTypeHelper.requireNonNull(builder.score, this, "score"); + this.text = builder.text; + + } + + public static RankedDocument of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code index} + */ + public final String index() { + return this.index; + } + + /** + * Required - API name: {@code score} + */ + public final String score() { + return this.score; + } + + /** + * API name: {@code text} + */ + @Nullable + public final String text() { + return this.text; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("index"); + generator.write(this.index); + + generator.writeKey("score"); + generator.write(this.score); + + if (this.text != null) { + generator.writeKey("text"); + generator.write(this.text); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RankedDocument}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String index; + + private String score; + + @Nullable + private String text; + + /** + * Required - API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * Required - API name: {@code score} + */ + public final Builder score(String value) { + this.score = value; + return this; + } + + /** + * API name: {@code text} + */ + public final Builder text(@Nullable String value) { + this.text = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RankedDocument}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RankedDocument build() { + _checkSingleUse(); + + return new RankedDocument(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RankedDocument} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + RankedDocument::setupRankedDocumentDeserializer); + + protected static void setupRankedDocumentDeserializer(ObjectDeserializer op) { + + op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "index"); + op.add(Builder::score, JsonpDeserializer.stringDeserializer(), "score"); + op.add(Builder::text, JsonpDeserializer.stringDeserializer(), "text"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java index f64455e15..cfcc95195 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.java @@ -49,6 +49,10 @@ public enum TaskType implements JsonEnum { TextEmbedding("text_embedding"), + Rerank("rerank"), + + Completion("completion"), + ; private final String jsonValue; 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 181bbeddf..4c17d7248 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 @@ -108,6 +108,9 @@ public class PutTrainedModelRequest extends RequestBase implements JsonpSerializ private final List tags; + @Nullable + private final Boolean waitForCompletion; + // --------------------------------------------------------------------------------------------- private PutTrainedModelRequest(Builder builder) { @@ -125,6 +128,7 @@ private PutTrainedModelRequest(Builder builder) { this.platformArchitecture = builder.platformArchitecture; this.prefixStrings = builder.prefixStrings; this.tags = ApiTypeHelper.unmodifiable(builder.tags); + this.waitForCompletion = builder.waitForCompletion; } @@ -278,6 +282,16 @@ public final List tags() { return this.tags; } + /** + * Whether to wait for all child operations (e.g. model download) to complete. + *

+ * API name: {@code wait_for_completion} + */ + @Nullable + public final Boolean waitForCompletion() { + return this.waitForCompletion; + } + /** * Serialize this object to JSON. */ @@ -398,6 +412,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List tags; + @Nullable + private Boolean waitForCompletion; + /** * The compressed (GZipped and Base64 encoded) inference definition of the * model. If compressed_definition is specified, then definition cannot be @@ -602,6 +619,16 @@ public final Builder tags(String value, String... values) { return this; } + /** + * Whether to wait for all child operations (e.g. model download) to complete. + *

+ * API name: {@code wait_for_completion} + */ + public final Builder waitForCompletion(@Nullable Boolean value) { + this.waitForCompletion = value; + return this; + } + @Override protected Builder self() { return this; @@ -697,6 +724,9 @@ protected static void setupPutTrainedModelRequestDeserializer( // Request parameters request -> { Map params = new HashMap<>(); + if (request.waitForCompletion != null) { + params.put("wait_for_completion", String.valueOf(request.waitForCompletion)); + } if (request.deferDefinitionDecompression != null) { params.put("defer_definition_decompression", String.valueOf(request.deferDefinitionDecompression)); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java index f0b08b58c..60ef53c24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java @@ -82,9 +82,15 @@ public class ApiKey implements JsonpSerializable { @Nullable private final String realm; + @Nullable + private final String realmType; + @Nullable private final String username; + @Nullable + private final String profileUid; + private final Map metadata; private final Map roleDescriptors; @@ -103,7 +109,9 @@ private ApiKey(Builder builder) { this.invalidated = builder.invalidated; this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); this.realm = builder.realm; + this.realmType = builder.realmType; this.username = builder.username; + this.profileUid = builder.profileUid; this.metadata = ApiTypeHelper.unmodifiable(builder.metadata); this.roleDescriptors = ApiTypeHelper.unmodifiable(builder.roleDescriptors); this.limitedBy = ApiTypeHelper.unmodifiable(builder.limitedBy); @@ -174,6 +182,16 @@ public final String realm() { return this.realm; } + /** + * Realm type of the principal for which this API key was created + *

+ * API name: {@code realm_type} + */ + @Nullable + public final String realmType() { + return this.realmType; + } + /** * Principal for which this API key was created *

@@ -184,6 +202,17 @@ public final String username() { return this.username; } + /** + * The profile uid for the API key owner principal, if requested and if it + * exists + *

+ * API name: {@code profile_uid} + */ + @Nullable + public final String profileUid() { + return this.profileUid; + } + /** * Metadata of the API key *

@@ -259,11 +288,21 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("realm"); generator.write(this.realm); + } + if (this.realmType != null) { + generator.writeKey("realm_type"); + generator.write(this.realmType); + } if (this.username != null) { generator.writeKey("username"); generator.write(this.username); + } + if (this.profileUid != null) { + generator.writeKey("profile_uid"); + generator.write(this.profileUid); + } if (ApiTypeHelper.isDefined(this.metadata)) { generator.writeKey("metadata"); @@ -346,9 +385,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String realm; + @Nullable + private String realmType; + @Nullable private String username; + @Nullable + private String profileUid; + @Nullable private Map metadata; @@ -422,6 +467,16 @@ public final Builder realm(@Nullable String value) { return this; } + /** + * Realm type of the principal for which this API key was created + *

+ * API name: {@code realm_type} + */ + public final Builder realmType(@Nullable String value) { + this.realmType = value; + return this; + } + /** * Principal for which this API key was created *

@@ -432,6 +487,17 @@ public final Builder username(@Nullable String value) { return this; } + /** + * The profile uid for the API key owner principal, if requested and if it + * exists + *

+ * API name: {@code profile_uid} + */ + public final Builder profileUid(@Nullable String value) { + this.profileUid = value; + return this; + } + /** * Metadata of the API key *

@@ -651,7 +717,9 @@ protected static void setupApiKeyDeserializer(ObjectDeserializer op.add(Builder::invalidated, JsonpDeserializer.booleanDeserializer(), "invalidated"); op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); op.add(Builder::realm, JsonpDeserializer.stringDeserializer(), "realm"); + op.add(Builder::realmType, JsonpDeserializer.stringDeserializer(), "realm_type"); op.add(Builder::username, JsonpDeserializer.stringDeserializer(), "username"); + op.add(Builder::profileUid, JsonpDeserializer.stringDeserializer(), "profile_uid"); op.add(Builder::metadata, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "metadata"); op.add(Builder::roleDescriptors, JsonpDeserializer.stringMapDeserializer(RoleDescriptor._DESERIALIZER), "role_descriptors"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java index 4c2b575e8..be99892a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java @@ -89,6 +89,9 @@ public class GetApiKeyRequest extends RequestBase { @Nullable private final Boolean withLimitedBy; + @Nullable + private final Boolean withProfileUid; + // --------------------------------------------------------------------------------------------- private GetApiKeyRequest(Builder builder) { @@ -100,6 +103,7 @@ private GetApiKeyRequest(Builder builder) { this.realmName = builder.realmName; this.username = builder.username; this.withLimitedBy = builder.withLimitedBy; + this.withProfileUid = builder.withProfileUid; } @@ -194,6 +198,17 @@ public final Boolean withLimitedBy() { return this.withLimitedBy; } + /** + * Determines whether to also retrieve the profile uid, for the API key owner + * principal, if it exists. + *

+ * API name: {@code with_profile_uid} + */ + @Nullable + public final Boolean withProfileUid() { + return this.withProfileUid; + } + // --------------------------------------------------------------------------------------------- /** @@ -224,6 +239,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean withLimitedBy; + @Nullable + private Boolean withProfileUid; + /** * A boolean flag that can be used to query API keys that are currently active. * An API key is considered active if it is neither invalidated, nor expired at @@ -311,6 +329,17 @@ public final Builder withLimitedBy(@Nullable Boolean value) { return this; } + /** + * Determines whether to also retrieve the profile uid, for the API key owner + * principal, if it exists. + *

+ * API name: {@code with_profile_uid} + */ + public final Builder withProfileUid(@Nullable Boolean value) { + this.withProfileUid = value; + return this; + } + @Override protected Builder self() { return this; @@ -372,6 +401,9 @@ public GetApiKeyRequest build() { if (request.realmName != null) { params.put("realm_name", request.realmName); } + if (request.withProfileUid != null) { + params.put("with_profile_uid", String.valueOf(request.withProfileUid)); + } if (request.username != null) { params.put("username", request.username); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java index 954a534f6..48f8854ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java @@ -23,7 +23,8 @@ import co.elastic.clients.elasticsearch._types.FieldValue; import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.SortOptions; -import co.elastic.clients.elasticsearch._types.query_dsl.Query; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -37,6 +38,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.Integer; +import java.lang.String; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -72,11 +74,13 @@ */ @JsonpDeserializable public class QueryApiKeysRequest extends RequestBase implements JsonpSerializable { + private final Map aggregations; + @Nullable private final Integer from; @Nullable - private final Query query; + private final ApiKeyQuery query; private final List searchAfter; @@ -88,16 +92,21 @@ public class QueryApiKeysRequest extends RequestBase implements JsonpSerializabl @Nullable private final Boolean withLimitedBy; + @Nullable + private final Boolean withProfileUid; + // --------------------------------------------------------------------------------------------- private QueryApiKeysRequest(Builder builder) { + this.aggregations = ApiTypeHelper.unmodifiable(builder.aggregations); this.from = builder.from; this.query = builder.query; this.searchAfter = ApiTypeHelper.unmodifiable(builder.searchAfter); this.size = builder.size; this.sort = ApiTypeHelper.unmodifiable(builder.sort); this.withLimitedBy = builder.withLimitedBy; + this.withProfileUid = builder.withProfileUid; } @@ -105,6 +114,22 @@ public static QueryApiKeysRequest of(Functionterms, range, date_range, + * missing, cardinality, value_count, + * composite, filter, and filters. + * Additionally, aggregations only run over the same subset of fields that query + * works with. + *

+ * API name: {@code aggregations} + */ + public final Map aggregations() { + return this.aggregations; + } + /** * 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, @@ -118,16 +143,22 @@ public final Integer from() { } /** - * A query to filter which API keys to return. The query supports a subset of - * query types, including match_all, bool, - * term, terms, ids, prefix, - * wildcard, and range. You can query all public - * information associated with an API key. + * A query to filter which API keys to return. If the query parameter is + * missing, it is equivalent to a match_all query. The query + * supports a subset of query types, including match_all, + * bool, term, terms, match, + * ids, prefix, wildcard, + * exists, range, and + * simple_query_string. You can query the following public + * information associated with an API key: id, type, + * name, creation, expiration, + * invalidated, invalidation, username, + * realm, and metadata. *

* API name: {@code query} */ @Nullable - public final Query query() { + public final ApiKeyQuery query() { return this.query; } @@ -175,6 +206,17 @@ public final Boolean withLimitedBy() { return this.withLimitedBy; } + /** + * Determines whether to also retrieve the profile uid, for the API key owner + * principal, if it exists. + *

+ * API name: {@code with_profile_uid} + */ + @Nullable + public final Boolean withProfileUid() { + return this.withProfileUid; + } + /** * Serialize this object to JSON. */ @@ -186,6 +228,17 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (ApiTypeHelper.isDefined(this.aggregations)) { + generator.writeKey("aggregations"); + generator.writeStartObject(); + for (Map.Entry item0 : this.aggregations.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } if (this.from != null) { generator.writeKey("from"); generator.write(this.from); @@ -233,11 +286,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Map aggregations; + @Nullable private Integer from; @Nullable - private Query query; + private ApiKeyQuery query; @Nullable private List searchAfter; @@ -251,6 +307,66 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean withLimitedBy; + @Nullable + private Boolean withProfileUid; + + /** + * Any aggregations to run over the corpus of returned API keys. Aggregations + * and queries work together. Aggregations are computed only on the API keys + * that match the query. This supports only a subset of aggregation types, + * namely: terms, range, date_range, + * missing, cardinality, value_count, + * composite, filter, and filters. + * Additionally, aggregations only run over the same subset of fields that query + * works with. + *

+ * API name: {@code aggregations} + *

+ * Adds all entries of map to aggregations. + */ + public final Builder aggregations(Map map) { + this.aggregations = _mapPutAll(this.aggregations, map); + return this; + } + + /** + * Any aggregations to run over the corpus of returned API keys. Aggregations + * and queries work together. Aggregations are computed only on the API keys + * that match the query. This supports only a subset of aggregation types, + * namely: terms, range, date_range, + * missing, cardinality, value_count, + * composite, filter, and filters. + * Additionally, aggregations only run over the same subset of fields that query + * works with. + *

+ * API name: {@code aggregations} + *

+ * Adds an entry to aggregations. + */ + public final Builder aggregations(String key, ApiKeyAggregation value) { + this.aggregations = _mapPut(this.aggregations, key, value); + return this; + } + + /** + * Any aggregations to run over the corpus of returned API keys. Aggregations + * and queries work together. Aggregations are computed only on the API keys + * that match the query. This supports only a subset of aggregation types, + * namely: terms, range, date_range, + * missing, cardinality, value_count, + * composite, filter, and filters. + * Additionally, aggregations only run over the same subset of fields that query + * works with. + *

+ * API name: {@code aggregations} + *

+ * Adds an entry to aggregations using a builder lambda. + */ + public final Builder aggregations(String key, + Function> fn) { + return aggregations(key, fn.apply(new ApiKeyAggregation.Builder()).build()); + } + /** * 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, @@ -264,30 +380,42 @@ public final Builder from(@Nullable Integer value) { } /** - * A query to filter which API keys to return. The query supports a subset of - * query types, including match_all, bool, - * term, terms, ids, prefix, - * wildcard, and range. You can query all public - * information associated with an API key. + * A query to filter which API keys to return. If the query parameter is + * missing, it is equivalent to a match_all query. The query + * supports a subset of query types, including match_all, + * bool, term, terms, match, + * ids, prefix, wildcard, + * exists, range, and + * simple_query_string. You can query the following public + * information associated with an API key: id, type, + * name, creation, expiration, + * invalidated, invalidation, username, + * realm, and metadata. *

* API name: {@code query} */ - public final Builder query(@Nullable Query value) { + public final Builder query(@Nullable ApiKeyQuery value) { this.query = value; return this; } /** - * A query to filter which API keys to return. The query supports a subset of - * query types, including match_all, bool, - * term, terms, ids, prefix, - * wildcard, and range. You can query all public - * information associated with an API key. + * A query to filter which API keys to return. If the query parameter is + * missing, it is equivalent to a match_all query. The query + * supports a subset of query types, including match_all, + * bool, term, terms, match, + * ids, prefix, wildcard, + * exists, range, and + * simple_query_string. You can query the following public + * information associated with an API key: id, type, + * name, creation, expiration, + * invalidated, invalidation, username, + * realm, and metadata. *

* API name: {@code query} */ - public final Builder query(Function> fn) { - return this.query(fn.apply(new Query.Builder()).build()); + public final Builder query(Function> fn) { + return this.query(fn.apply(new ApiKeyQuery.Builder()).build()); } /** @@ -458,6 +586,17 @@ public final Builder withLimitedBy(@Nullable Boolean value) { return this; } + /** + * Determines whether to also retrieve the profile uid, for the API key owner + * principal, if it exists. + *

+ * API name: {@code with_profile_uid} + */ + public final Builder withProfileUid(@Nullable Boolean value) { + this.withProfileUid = value; + return this; + } + @Override protected Builder self() { return this; @@ -486,8 +625,10 @@ public QueryApiKeysRequest build() { protected static void setupQueryApiKeysRequestDeserializer(ObjectDeserializer op) { + op.add(Builder::aggregations, JsonpDeserializer.stringMapDeserializer(ApiKeyAggregation._DESERIALIZER), + "aggregations", "aggs"); op.add(Builder::from, JsonpDeserializer.integerDeserializer(), "from"); - op.add(Builder::query, Query._DESERIALIZER, "query"); + op.add(Builder::query, ApiKeyQuery._DESERIALIZER, "query"); op.add(Builder::searchAfter, JsonpDeserializer.arrayDeserializer(FieldValue._DESERIALIZER), "search_after"); op.add(Builder::size, JsonpDeserializer.integerDeserializer(), "size"); op.add(Builder::sort, JsonpDeserializer.arrayDeserializer(SortOptions._DESERIALIZER), "sort"); @@ -522,6 +663,10 @@ protected static void setupQueryApiKeysRequestDeserializer(ObjectDeserializer { Map params = new HashMap<>(); + params.put("typed_keys", "true"); + if (request.withProfileUid != null) { + params.put("with_profile_uid", String.valueOf(request.withProfileUid)); + } if (request.withLimitedBy != null) { params.put("with_limited_by", String.valueOf(request.withLimitedBy)); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java index 264a0df97..28e720cb3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysResponse.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch.security; +import co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate; +import co.elastic.clients.json.ExternallyTaggedUnion; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -31,7 +33,9 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.lang.String; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -67,6 +71,8 @@ public class QueryApiKeysResponse implements JsonpSerializable { private final List apiKeys; + private final Map aggregations; + // --------------------------------------------------------------------------------------------- private QueryApiKeysResponse(Builder builder) { @@ -74,6 +80,7 @@ private QueryApiKeysResponse(Builder builder) { this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); this.apiKeys = ApiTypeHelper.unmodifiableRequired(builder.apiKeys, this, "apiKeys"); + this.aggregations = ApiTypeHelper.unmodifiable(builder.aggregations); } @@ -108,6 +115,15 @@ public final List apiKeys() { return this.apiKeys; } + /** + * The aggregations result, if requested. + *

+ * API name: {@code aggregations} + */ + public final Map aggregations() { + return this.aggregations; + } + /** * Serialize this object to JSON. */ @@ -135,6 +151,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } + if (ApiTypeHelper.isDefined(this.aggregations)) { + generator.writeKey("aggregations"); + ExternallyTaggedUnion.serializeTypedKeys(this.aggregations, generator, mapper); + + } } @@ -158,6 +179,9 @@ public static class Builder extends WithJsonObjectBuilderBase private List apiKeys; + @Nullable + private Map aggregations; + /** * Required - The total number of API keys found. *

@@ -213,6 +237,42 @@ public final Builder apiKeys(Function> fn) return apiKeys(fn.apply(new ApiKey.Builder()).build()); } + /** + * The aggregations result, if requested. + *

+ * API name: {@code aggregations} + *

+ * Adds all entries of map to aggregations. + */ + public final Builder aggregations(Map map) { + this.aggregations = _mapPutAll(this.aggregations, map); + return this; + } + + /** + * The aggregations result, if requested. + *

+ * API name: {@code aggregations} + *

+ * Adds an entry to aggregations. + */ + public final Builder aggregations(String key, ApiKeyAggregate value) { + this.aggregations = _mapPut(this.aggregations, key, value); + return this; + } + + /** + * The aggregations result, if requested. + *

+ * API name: {@code aggregations} + *

+ * Adds an entry to aggregations using a builder lambda. + */ + public final Builder aggregations(String key, + Function> fn) { + return aggregations(key, fn.apply(new ApiKeyAggregate.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -244,6 +304,7 @@ protected static void setupQueryApiKeysResponseDeserializer(ObjectDeserializer roles; - private final RoleMappingRule rules; - private final List roleTemplates; + private final RoleMappingRule rules; + // --------------------------------------------------------------------------------------------- private RoleMapping(Builder builder) { this.enabled = ApiTypeHelper.requireNonNull(builder.enabled, this, "enabled"); this.metadata = ApiTypeHelper.unmodifiableRequired(builder.metadata, this, "metadata"); - this.roles = ApiTypeHelper.unmodifiableRequired(builder.roles, this, "roles"); - this.rules = ApiTypeHelper.requireNonNull(builder.rules, this, "rules"); + this.roles = ApiTypeHelper.unmodifiable(builder.roles); this.roleTemplates = ApiTypeHelper.unmodifiable(builder.roleTemplates); + this.rules = ApiTypeHelper.requireNonNull(builder.rules, this, "rules"); } @@ -104,24 +104,24 @@ public final Map metadata() { } /** - * Required - API name: {@code roles} + * API name: {@code roles} */ public final List roles() { return this.roles; } /** - * Required - API name: {@code rules} + * API name: {@code role_templates} */ - public final RoleMappingRule rules() { - return this.rules; + public final List roleTemplates() { + return this.roleTemplates; } /** - * API name: {@code role_templates} + * Required - API name: {@code rules} */ - public final List roleTemplates() { - return this.roleTemplates; + public final RoleMappingRule rules() { + return this.rules; } /** @@ -159,9 +159,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - generator.writeKey("rules"); - this.rules.serialize(generator, mapper); - if (ApiTypeHelper.isDefined(this.roleTemplates)) { generator.writeKey("role_templates"); generator.writeStartArray(); @@ -172,6 +169,8 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } + generator.writeKey("rules"); + this.rules.serialize(generator, mapper); } @@ -191,13 +190,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map metadata; + @Nullable private List roles; - private RoleMappingRule rules; - @Nullable private List roleTemplates; + private RoleMappingRule rules; + /** * Required - API name: {@code enabled} */ @@ -227,7 +227,7 @@ public final Builder metadata(String key, JsonData value) { } /** - * Required - API name: {@code roles} + * API name: {@code roles} *

* Adds all elements of list to roles. */ @@ -237,7 +237,7 @@ public final Builder roles(List list) { } /** - * Required - API name: {@code roles} + * API name: {@code roles} *

* Adds one or more values to roles. */ @@ -246,21 +246,6 @@ public final Builder roles(String value, String... values) { return this; } - /** - * Required - API name: {@code rules} - */ - public final Builder rules(RoleMappingRule value) { - this.rules = value; - return this; - } - - /** - * Required - API name: {@code rules} - */ - public final Builder rules(Function> fn) { - return this.rules(fn.apply(new RoleMappingRule.Builder()).build()); - } - /** * API name: {@code role_templates} *

@@ -290,6 +275,21 @@ public final Builder roleTemplates(Function> fn) { + return this.rules(fn.apply(new RoleMappingRule.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -321,9 +321,9 @@ protected static void setupRoleMappingDeserializer(ObjectDeserializerAPI + * specification + */ + +public class ApiKeyAggregate implements OpenTaggedUnion, JsonpSerializable { + + /** + * {@link ApiKeyAggregate} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + Cardinality("cardinality"), + + Composite("composite"), + + DateRange("date_range"), + + Dterms("dterms"), + + Filter("filter"), + + Filters("filters"), + + Lterms("lterms"), + + Missing("missing"), + + MultiTerms("multi_terms"), + + Range("range"), + + Sterms("sterms"), + + Umterms("umterms"), + + ValueCount("value_count"), + + /** A custom {@code ApiKeyAggregate} defined by a plugin */ + _Custom(null) + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + public ApiKeyAggregate(ApiKeyAggregateVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._apiKeyAggregateKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; + + } + + private ApiKeyAggregate(Builder builder) { + + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + this._customKind = builder._customKind; + + } + + public static ApiKeyAggregate of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Build a custom plugin-defined {@code ApiKeyAggregate}, given its kind and + * some JSON data + */ + public ApiKeyAggregate(String kind, JsonData value) { + this._kind = Kind._Custom; + this._value = value; + this._customKind = kind; + } + + /** + * Is this variant instance of kind {@code cardinality}? + */ + public boolean isCardinality() { + return _kind == Kind.Cardinality; + } + + /** + * Get the {@code cardinality} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code cardinality} kind. + */ + public CardinalityAggregate cardinality() { + return TaggedUnionUtils.get(this, Kind.Cardinality); + } + + /** + * Is this variant instance of kind {@code composite}? + */ + public boolean isComposite() { + return _kind == Kind.Composite; + } + + /** + * Get the {@code composite} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code composite} kind. + */ + public CompositeAggregate composite() { + return TaggedUnionUtils.get(this, Kind.Composite); + } + + /** + * Is this variant instance of kind {@code date_range}? + */ + public boolean isDateRange() { + return _kind == Kind.DateRange; + } + + /** + * Get the {@code date_range} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code date_range} kind. + */ + public DateRangeAggregate dateRange() { + return TaggedUnionUtils.get(this, Kind.DateRange); + } + + /** + * Is this variant instance of kind {@code dterms}? + */ + public boolean isDterms() { + return _kind == Kind.Dterms; + } + + /** + * Get the {@code dterms} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code dterms} kind. + */ + public DoubleTermsAggregate dterms() { + return TaggedUnionUtils.get(this, Kind.Dterms); + } + + /** + * Is this variant instance of kind {@code filter}? + */ + public boolean isFilter() { + return _kind == Kind.Filter; + } + + /** + * Get the {@code filter} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code filter} kind. + */ + public FilterAggregate filter() { + return TaggedUnionUtils.get(this, Kind.Filter); + } + + /** + * Is this variant instance of kind {@code filters}? + */ + public boolean isFilters() { + return _kind == Kind.Filters; + } + + /** + * Get the {@code filters} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code filters} kind. + */ + public FiltersAggregate filters() { + return TaggedUnionUtils.get(this, Kind.Filters); + } + + /** + * Is this variant instance of kind {@code lterms}? + */ + public boolean isLterms() { + return _kind == Kind.Lterms; + } + + /** + * Get the {@code lterms} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code lterms} kind. + */ + public LongTermsAggregate lterms() { + return TaggedUnionUtils.get(this, Kind.Lterms); + } + + /** + * Is this variant instance of kind {@code missing}? + */ + public boolean isMissing() { + return _kind == Kind.Missing; + } + + /** + * Get the {@code missing} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code missing} kind. + */ + public MissingAggregate missing() { + return TaggedUnionUtils.get(this, Kind.Missing); + } + + /** + * Is this variant instance of kind {@code multi_terms}? + */ + public boolean isMultiTerms() { + return _kind == Kind.MultiTerms; + } + + /** + * Get the {@code multi_terms} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code multi_terms} kind. + */ + public MultiTermsAggregate multiTerms() { + return TaggedUnionUtils.get(this, Kind.MultiTerms); + } + + /** + * Is this variant instance of kind {@code range}? + */ + public boolean isRange() { + return _kind == Kind.Range; + } + + /** + * Get the {@code range} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code range} kind. + */ + public RangeAggregate range() { + return TaggedUnionUtils.get(this, Kind.Range); + } + + /** + * Is this variant instance of kind {@code sterms}? + */ + public boolean isSterms() { + return _kind == Kind.Sterms; + } + + /** + * Get the {@code sterms} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code sterms} kind. + */ + public StringTermsAggregate sterms() { + return TaggedUnionUtils.get(this, Kind.Sterms); + } + + /** + * Is this variant instance of kind {@code umterms}? + */ + public boolean isUmterms() { + return _kind == Kind.Umterms; + } + + /** + * Get the {@code umterms} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code umterms} kind. + */ + public UnmappedTermsAggregate umterms() { + return TaggedUnionUtils.get(this, Kind.Umterms); + } + + /** + * Is this variant instance of kind {@code value_count}? + */ + public boolean isValueCount() { + return _kind == Kind.ValueCount; + } + + /** + * Get the {@code value_count} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code value_count} kind. + */ + public ValueCountAggregate valueCount() { + return TaggedUnionUtils.get(this, Kind.ValueCount); + } + + @Nullable + private final String _customKind; + + /** + * Is this a custom {@code ApiKeyAggregate} defined by a plugin? + */ + public boolean _isCustom() { + return _kind == Kind._Custom; + } + + /** + * Get the actual kind when {@code _kind()} equals {@link Kind#_Custom} + * (plugin-defined variant). + */ + @Nullable + public final String _customKind() { + return _customKind; + } + + /** + * Get the custom plugin-defined variant value. + * + * @throws IllegalStateException + * if the current variant is not {@link Kind#_Custom}. + */ + public JsonData _custom() { + return TaggedUnionUtils.get(this, Kind._Custom); + } + + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + mapper.serialize(_value, generator); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public static class Builder extends ObjectBuilderBase implements ObjectBuilder { + private Kind _kind; + private Object _value; + private String _customKind; + + public ObjectBuilder cardinality(CardinalityAggregate v) { + this._kind = Kind.Cardinality; + this._value = v; + return this; + } + + public ObjectBuilder cardinality( + Function> fn) { + return this.cardinality(fn.apply(new CardinalityAggregate.Builder()).build()); + } + + public ObjectBuilder composite(CompositeAggregate v) { + this._kind = Kind.Composite; + this._value = v; + return this; + } + + public ObjectBuilder composite( + Function> fn) { + return this.composite(fn.apply(new CompositeAggregate.Builder()).build()); + } + + public ObjectBuilder dateRange(DateRangeAggregate v) { + this._kind = Kind.DateRange; + this._value = v; + return this; + } + + public ObjectBuilder dateRange( + Function> fn) { + return this.dateRange(fn.apply(new DateRangeAggregate.Builder()).build()); + } + + public ObjectBuilder dterms(DoubleTermsAggregate v) { + this._kind = Kind.Dterms; + this._value = v; + return this; + } + + public ObjectBuilder dterms( + Function> fn) { + return this.dterms(fn.apply(new DoubleTermsAggregate.Builder()).build()); + } + + public ObjectBuilder filter(FilterAggregate v) { + this._kind = Kind.Filter; + this._value = v; + return this; + } + + public ObjectBuilder filter( + Function> fn) { + return this.filter(fn.apply(new FilterAggregate.Builder()).build()); + } + + public ObjectBuilder filters(FiltersAggregate v) { + this._kind = Kind.Filters; + this._value = v; + return this; + } + + public ObjectBuilder filters( + Function> fn) { + return this.filters(fn.apply(new FiltersAggregate.Builder()).build()); + } + + public ObjectBuilder lterms(LongTermsAggregate v) { + this._kind = Kind.Lterms; + this._value = v; + return this; + } + + public ObjectBuilder lterms( + Function> fn) { + return this.lterms(fn.apply(new LongTermsAggregate.Builder()).build()); + } + + public ObjectBuilder missing(MissingAggregate v) { + this._kind = Kind.Missing; + this._value = v; + return this; + } + + public ObjectBuilder missing( + Function> fn) { + return this.missing(fn.apply(new MissingAggregate.Builder()).build()); + } + + public ObjectBuilder multiTerms(MultiTermsAggregate v) { + this._kind = Kind.MultiTerms; + this._value = v; + return this; + } + + public ObjectBuilder multiTerms( + Function> fn) { + return this.multiTerms(fn.apply(new MultiTermsAggregate.Builder()).build()); + } + + public ObjectBuilder range(RangeAggregate v) { + this._kind = Kind.Range; + this._value = v; + return this; + } + + public ObjectBuilder range( + Function> fn) { + return this.range(fn.apply(new RangeAggregate.Builder()).build()); + } + + public ObjectBuilder sterms(StringTermsAggregate v) { + this._kind = Kind.Sterms; + this._value = v; + return this; + } + + public ObjectBuilder sterms( + Function> fn) { + return this.sterms(fn.apply(new StringTermsAggregate.Builder()).build()); + } + + public ObjectBuilder umterms(UnmappedTermsAggregate v) { + this._kind = Kind.Umterms; + this._value = v; + return this; + } + + public ObjectBuilder umterms( + Function> fn) { + return this.umterms(fn.apply(new UnmappedTermsAggregate.Builder()).build()); + } + + public ObjectBuilder valueCount(ValueCountAggregate v) { + this._kind = Kind.ValueCount; + this._value = v; + return this; + } + + public ObjectBuilder valueCount( + Function> fn) { + return this.valueCount(fn.apply(new ValueCountAggregate.Builder()).build()); + } + + /** + * Define this {@code ApiKeyAggregate} as a plugin-defined variant. + * + * @param name + * the plugin-defined identifier + * @param data + * the data for this custom {@code ApiKeyAggregate}. It is converted + * internally to {@link JsonData}. + */ + public ObjectBuilder _custom(String name, Object data) { + this._kind = Kind._Custom; + this._customKind = name; + this._value = JsonData.of(data); + return this; + } + + public ApiKeyAggregate build() { + _checkSingleUse(); + return new ApiKeyAggregate(this); + } + + } + + public static final ExternallyTaggedUnion.TypedKeysDeserializer _TYPED_KEYS_DESERIALIZER; + + static { + Map> deserializers = new HashMap<>(); + deserializers.put("cardinality", CardinalityAggregate._DESERIALIZER); + deserializers.put("composite", CompositeAggregate._DESERIALIZER); + deserializers.put("date_range", DateRangeAggregate._DESERIALIZER); + deserializers.put("dterms", DoubleTermsAggregate._DESERIALIZER); + deserializers.put("filter", FilterAggregate._DESERIALIZER); + deserializers.put("filters", FiltersAggregate._DESERIALIZER); + deserializers.put("lterms", LongTermsAggregate._DESERIALIZER); + deserializers.put("missing", MissingAggregate._DESERIALIZER); + deserializers.put("multi_terms", MultiTermsAggregate._DESERIALIZER); + deserializers.put("range", RangeAggregate._DESERIALIZER); + deserializers.put("sterms", StringTermsAggregate._DESERIALIZER); + deserializers.put("umterms", UnmappedTermsAggregate._DESERIALIZER); + deserializers.put("value_count", ValueCountAggregate._DESERIALIZER); + + _TYPED_KEYS_DESERIALIZER = new ExternallyTaggedUnion.Deserializer<>(deserializers, ApiKeyAggregate::new, + ApiKeyAggregate::new).typedKeys(); + } +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregateBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregateBuilders.java new file mode 100644 index 000000000..eb27cb7a3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregateBuilders.java @@ -0,0 +1,302 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +import co.elastic.clients.elasticsearch._types.aggregations.CardinalityAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.CompositeAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.DateRangeAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.DoubleTermsAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.FilterAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.FiltersAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.LongTermsAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.MissingAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.MultiTermsAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.RangeAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.StringTermsAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.UnmappedTermsAggregate; +import co.elastic.clients.elasticsearch._types.aggregations.ValueCountAggregate; +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Builders for {@link ApiKeyAggregate} variants. + */ +public class ApiKeyAggregateBuilders { + private ApiKeyAggregateBuilders() { + } + + /** + * Creates a builder for the {@link CardinalityAggregate cardinality} + * {@code ApiKeyAggregate} variant. + */ + public static CardinalityAggregate.Builder cardinality() { + return new CardinalityAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link CardinalityAggregate cardinality} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate cardinality( + Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.cardinality(fn.apply(new CardinalityAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link CompositeAggregate composite} + * {@code ApiKeyAggregate} variant. + */ + public static CompositeAggregate.Builder composite() { + return new CompositeAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link CompositeAggregate composite} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate composite( + Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.composite(fn.apply(new CompositeAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link DateRangeAggregate date_range} + * {@code ApiKeyAggregate} variant. + */ + public static DateRangeAggregate.Builder dateRange() { + return new DateRangeAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link DateRangeAggregate date_range} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate dateRange( + Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.dateRange(fn.apply(new DateRangeAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link DoubleTermsAggregate dterms} + * {@code ApiKeyAggregate} variant. + */ + public static DoubleTermsAggregate.Builder dterms() { + return new DoubleTermsAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link DoubleTermsAggregate dterms} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate dterms( + Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.dterms(fn.apply(new DoubleTermsAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link FilterAggregate filter} + * {@code ApiKeyAggregate} variant. + */ + public static FilterAggregate.Builder filter() { + return new FilterAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link FilterAggregate filter} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate filter(Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.filter(fn.apply(new FilterAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link FiltersAggregate filters} + * {@code ApiKeyAggregate} variant. + */ + public static FiltersAggregate.Builder filters() { + return new FiltersAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link FiltersAggregate filters} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate filters(Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.filters(fn.apply(new FiltersAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link LongTermsAggregate lterms} + * {@code ApiKeyAggregate} variant. + */ + public static LongTermsAggregate.Builder lterms() { + return new LongTermsAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link LongTermsAggregate lterms} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate lterms(Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.lterms(fn.apply(new LongTermsAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link MissingAggregate missing} + * {@code ApiKeyAggregate} variant. + */ + public static MissingAggregate.Builder missing() { + return new MissingAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link MissingAggregate missing} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate missing(Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.missing(fn.apply(new MissingAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link MultiTermsAggregate multi_terms} + * {@code ApiKeyAggregate} variant. + */ + public static MultiTermsAggregate.Builder multiTerms() { + return new MultiTermsAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link MultiTermsAggregate multi_terms} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate multiTerms( + Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.multiTerms(fn.apply(new MultiTermsAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link RangeAggregate range} + * {@code ApiKeyAggregate} variant. + */ + public static RangeAggregate.Builder range() { + return new RangeAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link RangeAggregate range} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate range(Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.range(fn.apply(new RangeAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link StringTermsAggregate sterms} + * {@code ApiKeyAggregate} variant. + */ + public static StringTermsAggregate.Builder sterms() { + return new StringTermsAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link StringTermsAggregate sterms} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate sterms( + Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.sterms(fn.apply(new StringTermsAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link UnmappedTermsAggregate umterms} + * {@code ApiKeyAggregate} variant. + */ + public static UnmappedTermsAggregate.Builder umterms() { + return new UnmappedTermsAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link UnmappedTermsAggregate umterms} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate umterms( + Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.umterms(fn.apply(new UnmappedTermsAggregate.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link ValueCountAggregate value_count} + * {@code ApiKeyAggregate} variant. + */ + public static ValueCountAggregate.Builder valueCount() { + return new ValueCountAggregate.Builder(); + } + + /** + * Creates a ApiKeyAggregate of the {@link ValueCountAggregate value_count} + * {@code ApiKeyAggregate} variant. + */ + public static ApiKeyAggregate valueCount( + Function> fn) { + ApiKeyAggregate.Builder builder = new ApiKeyAggregate.Builder(); + builder.valueCount(fn.apply(new ValueCountAggregate.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregateVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregateVariant.java new file mode 100644 index 000000000..c49a46bdf --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregateVariant.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link ApiKeyAggregate} variants. + */ +public interface ApiKeyAggregateVariant { + + ApiKeyAggregate.Kind _apiKeyAggregateKind(); + + default ApiKeyAggregate _toApiKeyAggregate() { + return new ApiKeyAggregate(this); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregation.java new file mode 100644 index 000000000..3489c2771 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregation.java @@ -0,0 +1,680 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +import co.elastic.clients.elasticsearch._types.aggregations.CardinalityAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.CompositeAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.DateRangeAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.MissingAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.RangeAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.TermsAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.ValueCountAggregation; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.OpenTaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: security.query_api_keys.ApiKeyAggregationContainer + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ApiKeyAggregation implements OpenTaggedUnion, JsonpSerializable { + + /** + * {@link ApiKeyAggregation} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + Cardinality("cardinality"), + + Composite("composite"), + + DateRange("date_range"), + + Filter("filter"), + + Filters("filters"), + + Missing("missing"), + + Range("range"), + + Terms("terms"), + + ValueCount("value_count"), + + /** A custom {@code ApiKeyAggregation} defined by a plugin */ + _Custom(null) + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + private final Map aggregations; + + private final Map meta; + + public ApiKeyAggregation(ApiKeyAggregationVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._apiKeyAggregationKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; + + this.aggregations = null; + this.meta = null; + + } + + private ApiKeyAggregation(Builder builder) { + + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + this._customKind = builder._customKind; + + this.aggregations = ApiTypeHelper.unmodifiable(builder.aggregations); + this.meta = ApiTypeHelper.unmodifiable(builder.meta); + + } + + public static ApiKeyAggregation of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Sub-aggregations for this aggregation. Only applies to bucket aggregations. + *

+ * API name: {@code aggregations} + */ + public final Map aggregations() { + return this.aggregations; + } + + /** + * API name: {@code meta} + */ + public final Map meta() { + return this.meta; + } + + /** + * Is this variant instance of kind {@code cardinality}? + */ + public boolean isCardinality() { + return _kind == Kind.Cardinality; + } + + /** + * Get the {@code cardinality} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code cardinality} kind. + */ + public CardinalityAggregation cardinality() { + return TaggedUnionUtils.get(this, Kind.Cardinality); + } + + /** + * Is this variant instance of kind {@code composite}? + */ + public boolean isComposite() { + return _kind == Kind.Composite; + } + + /** + * Get the {@code composite} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code composite} kind. + */ + public CompositeAggregation composite() { + return TaggedUnionUtils.get(this, Kind.Composite); + } + + /** + * Is this variant instance of kind {@code date_range}? + */ + public boolean isDateRange() { + return _kind == Kind.DateRange; + } + + /** + * Get the {@code date_range} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code date_range} kind. + */ + public DateRangeAggregation dateRange() { + return TaggedUnionUtils.get(this, Kind.DateRange); + } + + /** + * Is this variant instance of kind {@code filter}? + */ + public boolean isFilter() { + return _kind == Kind.Filter; + } + + /** + * Get the {@code filter} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code filter} kind. + */ + public ApiKeyQuery filter() { + return TaggedUnionUtils.get(this, Kind.Filter); + } + + /** + * Is this variant instance of kind {@code filters}? + */ + public boolean isFilters() { + return _kind == Kind.Filters; + } + + /** + * Get the {@code filters} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code filters} kind. + */ + public ApiKeyFiltersAggregation filters() { + return TaggedUnionUtils.get(this, Kind.Filters); + } + + /** + * Is this variant instance of kind {@code missing}? + */ + public boolean isMissing() { + return _kind == Kind.Missing; + } + + /** + * Get the {@code missing} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code missing} kind. + */ + public MissingAggregation missing() { + return TaggedUnionUtils.get(this, Kind.Missing); + } + + /** + * Is this variant instance of kind {@code range}? + */ + public boolean isRange() { + return _kind == Kind.Range; + } + + /** + * Get the {@code range} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code range} kind. + */ + public RangeAggregation range() { + return TaggedUnionUtils.get(this, Kind.Range); + } + + /** + * Is this variant instance of kind {@code terms}? + */ + public boolean isTerms() { + return _kind == Kind.Terms; + } + + /** + * Get the {@code terms} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code terms} kind. + */ + public TermsAggregation terms() { + return TaggedUnionUtils.get(this, Kind.Terms); + } + + /** + * Is this variant instance of kind {@code value_count}? + */ + public boolean isValueCount() { + return _kind == Kind.ValueCount; + } + + /** + * Get the {@code value_count} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code value_count} kind. + */ + public ValueCountAggregation valueCount() { + return TaggedUnionUtils.get(this, Kind.ValueCount); + } + + @Nullable + private final String _customKind; + + /** + * Is this a custom {@code ApiKeyAggregation} defined by a plugin? + */ + public boolean _isCustom() { + return _kind == Kind._Custom; + } + + /** + * Get the actual kind when {@code _kind()} equals {@link Kind#_Custom} + * (plugin-defined variant). + */ + @Nullable + public final String _customKind() { + return _customKind; + } + + /** + * Get the custom plugin-defined variant value. + * + * @throws IllegalStateException + * if the current variant is not {@link Kind#_Custom}. + */ + public JsonData _custom() { + return TaggedUnionUtils.get(this, Kind._Custom); + } + + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeStartObject(); + + if (ApiTypeHelper.isDefined(this.aggregations)) { + generator.writeKey("aggregations"); + generator.writeStartObject(); + for (Map.Entry item0 : this.aggregations.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.meta)) { + generator.writeKey("meta"); + generator.writeStartObject(); + for (Map.Entry item0 : this.meta.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + generator.writeKey(_kind == Kind._Custom ? _customKind : _kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } + + generator.writeEnd(); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public static class Builder extends WithJsonObjectBuilderBase { + private Kind _kind; + private Object _value; + private String _customKind; + + @Nullable + private Map aggregations; + + @Nullable + private Map meta; + + /** + * Sub-aggregations for this aggregation. Only applies to bucket aggregations. + *

+ * API name: {@code aggregations} + *

+ * Adds all entries of map to aggregations. + */ + public final Builder aggregations(Map map) { + this.aggregations = _mapPutAll(this.aggregations, map); + return this; + } + + /** + * Sub-aggregations for this aggregation. Only applies to bucket aggregations. + *

+ * API name: {@code aggregations} + *

+ * Adds an entry to aggregations. + */ + public final Builder aggregations(String key, ApiKeyAggregation value) { + this.aggregations = _mapPut(this.aggregations, key, value); + return this; + } + + /** + * Sub-aggregations for this aggregation. Only applies to bucket aggregations. + *

+ * API name: {@code aggregations} + *

+ * Adds an entry to aggregations using a builder lambda. + */ + public final Builder aggregations(String key, + Function> fn) { + return aggregations(key, fn.apply(new ApiKeyAggregation.Builder()).build()); + } + + /** + * API name: {@code meta} + *

+ * Adds all entries of map to meta. + */ + public final Builder meta(Map map) { + this.meta = _mapPutAll(this.meta, map); + return this; + } + + /** + * API name: {@code meta} + *

+ * Adds an entry to meta. + */ + public final Builder meta(String key, JsonData value) { + this.meta = _mapPut(this.meta, key, value); + return this; + } + + @Override + protected Builder self() { + return this; + } + public ContainerBuilder cardinality(CardinalityAggregation v) { + this._kind = Kind.Cardinality; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder cardinality( + Function> fn) { + return this.cardinality(fn.apply(new CardinalityAggregation.Builder()).build()); + } + + public ContainerBuilder composite(CompositeAggregation v) { + this._kind = Kind.Composite; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder composite( + Function> fn) { + return this.composite(fn.apply(new CompositeAggregation.Builder()).build()); + } + + public ContainerBuilder dateRange(DateRangeAggregation v) { + this._kind = Kind.DateRange; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder dateRange( + Function> fn) { + return this.dateRange(fn.apply(new DateRangeAggregation.Builder()).build()); + } + + public ContainerBuilder filter(ApiKeyQuery v) { + this._kind = Kind.Filter; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder filter(Function> fn) { + return this.filter(fn.apply(new ApiKeyQuery.Builder()).build()); + } + + public ContainerBuilder filters(ApiKeyFiltersAggregation v) { + this._kind = Kind.Filters; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder filters( + Function> fn) { + return this.filters(fn.apply(new ApiKeyFiltersAggregation.Builder()).build()); + } + + public ContainerBuilder missing(MissingAggregation v) { + this._kind = Kind.Missing; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder missing(Function> fn) { + return this.missing(fn.apply(new MissingAggregation.Builder()).build()); + } + + public ContainerBuilder range(RangeAggregation v) { + this._kind = Kind.Range; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder range(Function> fn) { + return this.range(fn.apply(new RangeAggregation.Builder()).build()); + } + + public ContainerBuilder terms(TermsAggregation v) { + this._kind = Kind.Terms; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder terms(Function> fn) { + return this.terms(fn.apply(new TermsAggregation.Builder()).build()); + } + + public ContainerBuilder valueCount(ValueCountAggregation v) { + this._kind = Kind.ValueCount; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder valueCount( + Function> fn) { + return this.valueCount(fn.apply(new ValueCountAggregation.Builder()).build()); + } + + /** + * Define this {@code ApiKeyAggregation} as a plugin-defined variant. + * + * @param name + * the plugin-defined identifier + * @param data + * the data for this custom {@code ApiKeyAggregation}. It is + * converted internally to {@link JsonData}. + */ + public ContainerBuilder _custom(String name, Object data) { + this._kind = Kind._Custom; + this._customKind = name; + this._value = JsonData.of(data); + return new ContainerBuilder(); + } + + protected ApiKeyAggregation build() { + _checkSingleUse(); + return new ApiKeyAggregation(this); + } + + public class ContainerBuilder implements ObjectBuilder { + + /** + * Sub-aggregations for this aggregation. Only applies to bucket aggregations. + *

+ * API name: {@code aggregations} + *

+ * Adds all entries of map to aggregations. + */ + public final ContainerBuilder aggregations(Map map) { + Builder.this.aggregations = _mapPutAll(Builder.this.aggregations, map); + return this; + } + + /** + * Sub-aggregations for this aggregation. Only applies to bucket aggregations. + *

+ * API name: {@code aggregations} + *

+ * Adds an entry to aggregations. + */ + public final ContainerBuilder aggregations(String key, ApiKeyAggregation value) { + Builder.this.aggregations = _mapPut(Builder.this.aggregations, key, value); + return this; + } + + /** + * Sub-aggregations for this aggregation. Only applies to bucket aggregations. + *

+ * API name: {@code aggregations} + *

+ * Adds an entry to aggregations using a builder lambda. + */ + public final ContainerBuilder aggregations(String key, + Function> fn) { + return aggregations(key, fn.apply(new ApiKeyAggregation.Builder()).build()); + } + + /** + * API name: {@code meta} + *

+ * Adds all entries of map to meta. + */ + public final ContainerBuilder meta(Map map) { + Builder.this.meta = _mapPutAll(Builder.this.meta, map); + return this; + } + + /** + * API name: {@code meta} + *

+ * Adds an entry to meta. + */ + public final ContainerBuilder meta(String key, JsonData value) { + Builder.this.meta = _mapPut(Builder.this.meta, key, value); + return this; + } + + public ApiKeyAggregation build() { + return Builder.this.build(); + } + } + } + + protected static void setupApiKeyAggregationDeserializer(ObjectDeserializer op) { + + op.add(Builder::aggregations, JsonpDeserializer.stringMapDeserializer(ApiKeyAggregation._DESERIALIZER), + "aggregations", "aggs"); + op.add(Builder::meta, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "meta"); + op.add(Builder::cardinality, CardinalityAggregation._DESERIALIZER, "cardinality"); + op.add(Builder::composite, CompositeAggregation._DESERIALIZER, "composite"); + op.add(Builder::dateRange, DateRangeAggregation._DESERIALIZER, "date_range"); + op.add(Builder::filter, ApiKeyQuery._DESERIALIZER, "filter"); + op.add(Builder::filters, ApiKeyFiltersAggregation._DESERIALIZER, "filters"); + op.add(Builder::missing, MissingAggregation._DESERIALIZER, "missing"); + op.add(Builder::range, RangeAggregation._DESERIALIZER, "range"); + op.add(Builder::terms, TermsAggregation._DESERIALIZER, "terms"); + op.add(Builder::valueCount, ValueCountAggregation._DESERIALIZER, "value_count"); + + op.setUnknownFieldHandler((builder, name, parser, mapper) -> { + JsonpUtils.ensureCustomVariantsAllowed(parser, mapper); + builder._custom(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); + }); + + } + + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ApiKeyAggregation::setupApiKeyAggregationDeserializer, Builder::build); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregationBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregationBuilders.java new file mode 100644 index 000000000..10f0029dd --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregationBuilders.java @@ -0,0 +1,222 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +import co.elastic.clients.elasticsearch._types.aggregations.CardinalityAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.CompositeAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.DateRangeAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.MissingAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.RangeAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.TermsAggregation; +import co.elastic.clients.elasticsearch._types.aggregations.ValueCountAggregation; +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Builders for {@link ApiKeyAggregation} variants. + */ +public class ApiKeyAggregationBuilders { + private ApiKeyAggregationBuilders() { + } + + /** + * Creates a builder for the {@link CardinalityAggregation cardinality} + * {@code ApiKeyAggregation} variant. + */ + public static CardinalityAggregation.Builder cardinality() { + return new CardinalityAggregation.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link CardinalityAggregation cardinality} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation cardinality( + Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.cardinality(fn.apply(new CardinalityAggregation.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link CompositeAggregation composite} + * {@code ApiKeyAggregation} variant. + */ + public static CompositeAggregation.Builder composite() { + return new CompositeAggregation.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link CompositeAggregation composite} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation composite( + Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.composite(fn.apply(new CompositeAggregation.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link DateRangeAggregation date_range} + * {@code ApiKeyAggregation} variant. + */ + public static DateRangeAggregation.Builder dateRange() { + return new DateRangeAggregation.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link DateRangeAggregation date_range} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation dateRange( + Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.dateRange(fn.apply(new DateRangeAggregation.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link ApiKeyQuery filter} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyQuery.Builder filter() { + return new ApiKeyQuery.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link ApiKeyQuery filter} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation filter(Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.filter(fn.apply(new ApiKeyQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link ApiKeyFiltersAggregation filters} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyFiltersAggregation.Builder filters() { + return new ApiKeyFiltersAggregation.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link ApiKeyFiltersAggregation filters} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation filters( + Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.filters(fn.apply(new ApiKeyFiltersAggregation.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link MissingAggregation missing} + * {@code ApiKeyAggregation} variant. + */ + public static MissingAggregation.Builder missing() { + return new MissingAggregation.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link MissingAggregation missing} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation missing( + Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.missing(fn.apply(new MissingAggregation.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link RangeAggregation range} + * {@code ApiKeyAggregation} variant. + */ + public static RangeAggregation.Builder range() { + return new RangeAggregation.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link RangeAggregation range} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation range(Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.range(fn.apply(new RangeAggregation.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link TermsAggregation terms} + * {@code ApiKeyAggregation} variant. + */ + public static TermsAggregation.Builder terms() { + return new TermsAggregation.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link TermsAggregation terms} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation terms(Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.terms(fn.apply(new TermsAggregation.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link ValueCountAggregation value_count} + * {@code ApiKeyAggregation} variant. + */ + public static ValueCountAggregation.Builder valueCount() { + return new ValueCountAggregation.Builder(); + } + + /** + * Creates a ApiKeyAggregation of the {@link ValueCountAggregation value_count} + * {@code ApiKeyAggregation} variant. + */ + public static ApiKeyAggregation valueCount( + Function> fn) { + ApiKeyAggregation.Builder builder = new ApiKeyAggregation.Builder(); + builder.valueCount(fn.apply(new ValueCountAggregation.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregationVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregationVariant.java new file mode 100644 index 000000000..8c71c48da --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyAggregationVariant.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link ApiKeyAggregation} variants. + */ +public interface ApiKeyAggregationVariant { + + ApiKeyAggregation.Kind _apiKeyAggregationKind(); + + default ApiKeyAggregation _toApiKeyAggregation() { + return new ApiKeyAggregation(this); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java new file mode 100644 index 000000000..82d7eab14 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java @@ -0,0 +1,274 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +import co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase; +import co.elastic.clients.elasticsearch._types.aggregations.Buckets; +import co.elastic.clients.json.JsonpDeserializable; +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 java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: security.query_api_keys.ApiKeyFiltersAggregation + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ApiKeyFiltersAggregation extends BucketAggregationBase implements ApiKeyAggregationVariant { + @Nullable + private final Buckets filters; + + @Nullable + private final Boolean otherBucket; + + @Nullable + private final String otherBucketKey; + + @Nullable + private final Boolean keyed; + + // --------------------------------------------------------------------------------------------- + + private ApiKeyFiltersAggregation(Builder builder) { + super(builder); + + this.filters = builder.filters; + this.otherBucket = builder.otherBucket; + this.otherBucketKey = builder.otherBucketKey; + this.keyed = builder.keyed; + + } + + public static ApiKeyFiltersAggregation of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.Filters; + } + + /** + * Collection of queries from which to build buckets. + *

+ * API name: {@code filters} + */ + @Nullable + public final Buckets filters() { + return this.filters; + } + + /** + * Set to true to add a bucket to the response which will contain + * all documents that do not match any of the given filters. + *

+ * API name: {@code other_bucket} + */ + @Nullable + public final Boolean otherBucket() { + return this.otherBucket; + } + + /** + * The key with which the other bucket is returned. + *

+ * API name: {@code other_bucket_key} + */ + @Nullable + public final String otherBucketKey() { + return this.otherBucketKey; + } + + /** + * By default, the named filters aggregation returns the buckets as an object. + * Set to false to return the buckets as an array of objects. + *

+ * API name: {@code keyed} + */ + @Nullable + public final Boolean keyed() { + return this.keyed; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.filters != null) { + generator.writeKey("filters"); + this.filters.serialize(generator, mapper); + + } + if (this.otherBucket != null) { + generator.writeKey("other_bucket"); + generator.write(this.otherBucket); + + } + if (this.otherBucketKey != null) { + generator.writeKey("other_bucket_key"); + generator.write(this.otherBucketKey); + + } + if (this.keyed != null) { + generator.writeKey("keyed"); + generator.write(this.keyed); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ApiKeyFiltersAggregation}. + */ + + public static class Builder extends BucketAggregationBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Buckets filters; + + @Nullable + private Boolean otherBucket; + + @Nullable + private String otherBucketKey; + + @Nullable + private Boolean keyed; + + /** + * Collection of queries from which to build buckets. + *

+ * API name: {@code filters} + */ + public final Builder filters(@Nullable Buckets value) { + this.filters = value; + return this; + } + + /** + * Collection of queries from which to build buckets. + *

+ * API name: {@code filters} + */ + public final Builder filters(Function, ObjectBuilder>> fn) { + return this.filters(fn.apply(new Buckets.Builder()).build()); + } + + /** + * Set to true to add a bucket to the response which will contain + * all documents that do not match any of the given filters. + *

+ * API name: {@code other_bucket} + */ + public final Builder otherBucket(@Nullable Boolean value) { + this.otherBucket = value; + return this; + } + + /** + * The key with which the other bucket is returned. + *

+ * API name: {@code other_bucket_key} + */ + public final Builder otherBucketKey(@Nullable String value) { + this.otherBucketKey = value; + return this; + } + + /** + * By default, the named filters aggregation returns the buckets as an object. + * Set to false to return the buckets as an array of objects. + *

+ * API name: {@code keyed} + */ + public final Builder keyed(@Nullable Boolean value) { + this.keyed = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ApiKeyFiltersAggregation}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ApiKeyFiltersAggregation build() { + _checkSingleUse(); + + return new ApiKeyFiltersAggregation(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ApiKeyFiltersAggregation} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ApiKeyFiltersAggregation::setupApiKeyFiltersAggregationDeserializer); + + protected static void setupApiKeyFiltersAggregationDeserializer( + ObjectDeserializer op) { + BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::filters, Buckets.createBucketsDeserializer(ApiKeyQuery._DESERIALIZER), "filters"); + op.add(Builder::otherBucket, JsonpDeserializer.booleanDeserializer(), "other_bucket"); + op.add(Builder::otherBucketKey, JsonpDeserializer.stringDeserializer(), "other_bucket_key"); + op.add(Builder::keyed, JsonpDeserializer.booleanDeserializer(), "keyed"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQuery.java new file mode 100644 index 000000000..94b68f054 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQuery.java @@ -0,0 +1,575 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +import co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.ExistsQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.IdsQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.MatchAllQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.MatchQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.PrefixQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.RangeQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.SimpleQueryStringQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.TermQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.TermsQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.WildcardQuery; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.OpenTaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: security.query_api_keys.ApiKeyQueryContainer + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ApiKeyQuery + implements + OpenTaggedUnion, + ApiKeyAggregationVariant, + JsonpSerializable { + + /** + * {@link ApiKeyQuery} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + Bool("bool"), + + Exists("exists"), + + Ids("ids"), + + Match("match"), + + MatchAll("match_all"), + + Prefix("prefix"), + + Range("range"), + + SimpleQueryString("simple_query_string"), + + Term("term"), + + Terms("terms"), + + Wildcard("wildcard"), + + /** A custom {@code ApiKeyQuery} defined by a plugin */ + _Custom(null) + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + /** + * ApiKeyAggregation variant kind. + */ + @Override + public ApiKeyAggregation.Kind _apiKeyAggregationKind() { + return ApiKeyAggregation.Kind.Filter; + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + public ApiKeyQuery(ApiKeyQueryVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._apiKeyQueryKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; + + } + + private ApiKeyQuery(Builder builder) { + + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + this._customKind = builder._customKind; + + } + + public static ApiKeyQuery of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Is this variant instance of kind {@code bool}? + */ + public boolean isBool() { + return _kind == Kind.Bool; + } + + /** + * Get the {@code bool} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code bool} kind. + */ + public BoolQuery bool() { + return TaggedUnionUtils.get(this, Kind.Bool); + } + + /** + * Is this variant instance of kind {@code exists}? + */ + public boolean isExists() { + return _kind == Kind.Exists; + } + + /** + * Get the {@code exists} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code exists} kind. + */ + public ExistsQuery exists() { + return TaggedUnionUtils.get(this, Kind.Exists); + } + + /** + * Is this variant instance of kind {@code ids}? + */ + public boolean isIds() { + return _kind == Kind.Ids; + } + + /** + * Get the {@code ids} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code ids} kind. + */ + public IdsQuery ids() { + return TaggedUnionUtils.get(this, Kind.Ids); + } + + /** + * Is this variant instance of kind {@code match}? + */ + public boolean isMatch() { + return _kind == Kind.Match; + } + + /** + * Get the {@code match} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code match} kind. + */ + public MatchQuery match() { + return TaggedUnionUtils.get(this, Kind.Match); + } + + /** + * Is this variant instance of kind {@code match_all}? + */ + public boolean isMatchAll() { + return _kind == Kind.MatchAll; + } + + /** + * Get the {@code match_all} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code match_all} kind. + */ + public MatchAllQuery matchAll() { + return TaggedUnionUtils.get(this, Kind.MatchAll); + } + + /** + * Is this variant instance of kind {@code prefix}? + */ + public boolean isPrefix() { + return _kind == Kind.Prefix; + } + + /** + * Get the {@code prefix} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code prefix} kind. + */ + public PrefixQuery prefix() { + return TaggedUnionUtils.get(this, Kind.Prefix); + } + + /** + * Is this variant instance of kind {@code range}? + */ + public boolean isRange() { + return _kind == Kind.Range; + } + + /** + * Get the {@code range} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code range} kind. + */ + public RangeQuery range() { + return TaggedUnionUtils.get(this, Kind.Range); + } + + /** + * Is this variant instance of kind {@code simple_query_string}? + */ + public boolean isSimpleQueryString() { + return _kind == Kind.SimpleQueryString; + } + + /** + * Get the {@code simple_query_string} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code simple_query_string} + * kind. + */ + public SimpleQueryStringQuery simpleQueryString() { + return TaggedUnionUtils.get(this, Kind.SimpleQueryString); + } + + /** + * Is this variant instance of kind {@code term}? + */ + public boolean isTerm() { + return _kind == Kind.Term; + } + + /** + * Get the {@code term} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code term} kind. + */ + public TermQuery term() { + return TaggedUnionUtils.get(this, Kind.Term); + } + + /** + * Is this variant instance of kind {@code terms}? + */ + public boolean isTerms() { + return _kind == Kind.Terms; + } + + /** + * Get the {@code terms} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code terms} kind. + */ + public TermsQuery terms() { + return TaggedUnionUtils.get(this, Kind.Terms); + } + + /** + * Is this variant instance of kind {@code wildcard}? + */ + public boolean isWildcard() { + return _kind == Kind.Wildcard; + } + + /** + * Get the {@code wildcard} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code wildcard} kind. + */ + public WildcardQuery wildcard() { + return TaggedUnionUtils.get(this, Kind.Wildcard); + } + + @Nullable + private final String _customKind; + + /** + * Is this a custom {@code ApiKeyQuery} defined by a plugin? + */ + public boolean _isCustom() { + return _kind == Kind._Custom; + } + + /** + * Get the actual kind when {@code _kind()} equals {@link Kind#_Custom} + * (plugin-defined variant). + */ + @Nullable + public final String _customKind() { + return _customKind; + } + + /** + * Get the custom plugin-defined variant value. + * + * @throws IllegalStateException + * if the current variant is not {@link Kind#_Custom}. + */ + public JsonData _custom() { + return TaggedUnionUtils.get(this, Kind._Custom); + } + + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeStartObject(); + + generator.writeKey(_kind == Kind._Custom ? _customKind : _kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } + + generator.writeEnd(); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Kind _kind; + private Object _value; + private String _customKind; + + @Override + protected Builder self() { + return this; + } + public ObjectBuilder bool(BoolQuery v) { + this._kind = Kind.Bool; + this._value = v; + return this; + } + + public ObjectBuilder bool(Function> fn) { + return this.bool(fn.apply(new BoolQuery.Builder()).build()); + } + + public ObjectBuilder exists(ExistsQuery v) { + this._kind = Kind.Exists; + this._value = v; + return this; + } + + public ObjectBuilder exists(Function> fn) { + return this.exists(fn.apply(new ExistsQuery.Builder()).build()); + } + + public ObjectBuilder ids(IdsQuery v) { + this._kind = Kind.Ids; + this._value = v; + return this; + } + + public ObjectBuilder ids(Function> fn) { + return this.ids(fn.apply(new IdsQuery.Builder()).build()); + } + + public ObjectBuilder match(MatchQuery v) { + this._kind = Kind.Match; + this._value = v; + return this; + } + + public ObjectBuilder match(Function> fn) { + return this.match(fn.apply(new MatchQuery.Builder()).build()); + } + + public ObjectBuilder matchAll(MatchAllQuery v) { + this._kind = Kind.MatchAll; + this._value = v; + return this; + } + + public ObjectBuilder matchAll(Function> fn) { + return this.matchAll(fn.apply(new MatchAllQuery.Builder()).build()); + } + + public ObjectBuilder prefix(PrefixQuery v) { + this._kind = Kind.Prefix; + this._value = v; + return this; + } + + public ObjectBuilder prefix(Function> fn) { + return this.prefix(fn.apply(new PrefixQuery.Builder()).build()); + } + + public ObjectBuilder range(RangeQuery v) { + this._kind = Kind.Range; + this._value = v; + return this; + } + + public ObjectBuilder range(Function> fn) { + return this.range(fn.apply(new RangeQuery.Builder()).build()); + } + + public ObjectBuilder simpleQueryString(SimpleQueryStringQuery v) { + this._kind = Kind.SimpleQueryString; + this._value = v; + return this; + } + + public ObjectBuilder simpleQueryString( + Function> fn) { + return this.simpleQueryString(fn.apply(new SimpleQueryStringQuery.Builder()).build()); + } + + public ObjectBuilder term(TermQuery v) { + this._kind = Kind.Term; + this._value = v; + return this; + } + + public ObjectBuilder term(Function> fn) { + return this.term(fn.apply(new TermQuery.Builder()).build()); + } + + public ObjectBuilder terms(TermsQuery v) { + this._kind = Kind.Terms; + this._value = v; + return this; + } + + public ObjectBuilder terms(Function> fn) { + return this.terms(fn.apply(new TermsQuery.Builder()).build()); + } + + public ObjectBuilder wildcard(WildcardQuery v) { + this._kind = Kind.Wildcard; + this._value = v; + return this; + } + + public ObjectBuilder wildcard(Function> fn) { + return this.wildcard(fn.apply(new WildcardQuery.Builder()).build()); + } + + /** + * Define this {@code ApiKeyQuery} as a plugin-defined variant. + * + * @param name + * the plugin-defined identifier + * @param data + * the data for this custom {@code ApiKeyQuery}. It is converted + * internally to {@link JsonData}. + */ + public ObjectBuilder _custom(String name, Object data) { + this._kind = Kind._Custom; + this._customKind = name; + this._value = JsonData.of(data); + return this; + } + + public ApiKeyQuery build() { + _checkSingleUse(); + return new ApiKeyQuery(this); + } + + } + + protected static void setupApiKeyQueryDeserializer(ObjectDeserializer op) { + + op.add(Builder::bool, BoolQuery._DESERIALIZER, "bool"); + op.add(Builder::exists, ExistsQuery._DESERIALIZER, "exists"); + op.add(Builder::ids, IdsQuery._DESERIALIZER, "ids"); + op.add(Builder::match, MatchQuery._DESERIALIZER, "match"); + op.add(Builder::matchAll, MatchAllQuery._DESERIALIZER, "match_all"); + op.add(Builder::prefix, PrefixQuery._DESERIALIZER, "prefix"); + op.add(Builder::range, RangeQuery._DESERIALIZER, "range"); + op.add(Builder::simpleQueryString, SimpleQueryStringQuery._DESERIALIZER, "simple_query_string"); + op.add(Builder::term, TermQuery._DESERIALIZER, "term"); + op.add(Builder::terms, TermsQuery._DESERIALIZER, "terms"); + op.add(Builder::wildcard, WildcardQuery._DESERIALIZER, "wildcard"); + + op.setUnknownFieldHandler((builder, name, parser, mapper) -> { + JsonpUtils.ensureCustomVariantsAllowed(parser, mapper); + builder._custom(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); + }); + + } + + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ApiKeyQuery::setupApiKeyQueryDeserializer, Builder::build); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQueryBuilders.java new file mode 100644 index 000000000..5d47bed32 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQueryBuilders.java @@ -0,0 +1,254 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +import co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.ExistsQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.IdsQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.MatchAllQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.MatchQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.PrefixQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.RangeQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.SimpleQueryStringQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.TermQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.TermsQuery; +import co.elastic.clients.elasticsearch._types.query_dsl.WildcardQuery; +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Builders for {@link ApiKeyQuery} variants. + */ +public class ApiKeyQueryBuilders { + private ApiKeyQueryBuilders() { + } + + /** + * Creates a builder for the {@link BoolQuery bool} {@code ApiKeyQuery} variant. + */ + public static BoolQuery.Builder bool() { + return new BoolQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link BoolQuery bool} {@code ApiKeyQuery} + * variant. + */ + public static ApiKeyQuery bool(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.bool(fn.apply(new BoolQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link ExistsQuery exists} {@code ApiKeyQuery} + * variant. + */ + public static ExistsQuery.Builder exists() { + return new ExistsQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link ExistsQuery exists} {@code ApiKeyQuery} + * variant. + */ + public static ApiKeyQuery exists(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.exists(fn.apply(new ExistsQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link IdsQuery ids} {@code ApiKeyQuery} variant. + */ + public static IdsQuery.Builder ids() { + return new IdsQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link IdsQuery ids} {@code ApiKeyQuery} + * variant. + */ + public static ApiKeyQuery ids(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.ids(fn.apply(new IdsQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link MatchQuery match} {@code ApiKeyQuery} + * variant. + */ + public static MatchQuery.Builder match() { + return new MatchQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link MatchQuery match} {@code ApiKeyQuery} + * variant. + */ + public static ApiKeyQuery match(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.match(fn.apply(new MatchQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link MatchAllQuery match_all} {@code ApiKeyQuery} + * variant. + */ + public static MatchAllQuery.Builder matchAll() { + return new MatchAllQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link MatchAllQuery match_all} + * {@code ApiKeyQuery} variant. + */ + public static ApiKeyQuery matchAll(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.matchAll(fn.apply(new MatchAllQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link PrefixQuery prefix} {@code ApiKeyQuery} + * variant. + */ + public static PrefixQuery.Builder prefix() { + return new PrefixQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link PrefixQuery prefix} {@code ApiKeyQuery} + * variant. + */ + public static ApiKeyQuery prefix(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.prefix(fn.apply(new PrefixQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link RangeQuery range} {@code ApiKeyQuery} + * variant. + */ + public static RangeQuery.Builder range() { + return new RangeQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link RangeQuery range} {@code ApiKeyQuery} + * variant. + */ + public static ApiKeyQuery range(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.range(fn.apply(new RangeQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SimpleQueryStringQuery simple_query_string} + * {@code ApiKeyQuery} variant. + */ + public static SimpleQueryStringQuery.Builder simpleQueryString() { + return new SimpleQueryStringQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link SimpleQueryStringQuery + * simple_query_string} {@code ApiKeyQuery} variant. + */ + public static ApiKeyQuery simpleQueryString( + Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.simpleQueryString(fn.apply(new SimpleQueryStringQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link TermQuery term} {@code ApiKeyQuery} variant. + */ + public static TermQuery.Builder term() { + return new TermQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link TermQuery term} {@code ApiKeyQuery} + * variant. + */ + public static ApiKeyQuery term(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.term(fn.apply(new TermQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link TermsQuery terms} {@code ApiKeyQuery} + * variant. + */ + public static TermsQuery.Builder terms() { + return new TermsQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link TermsQuery terms} {@code ApiKeyQuery} + * variant. + */ + public static ApiKeyQuery terms(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.terms(fn.apply(new TermsQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link WildcardQuery wildcard} {@code ApiKeyQuery} + * variant. + */ + public static WildcardQuery.Builder wildcard() { + return new WildcardQuery.Builder(); + } + + /** + * Creates a ApiKeyQuery of the {@link WildcardQuery wildcard} + * {@code ApiKeyQuery} variant. + */ + public static ApiKeyQuery wildcard(Function> fn) { + ApiKeyQuery.Builder builder = new ApiKeyQuery.Builder(); + builder.wildcard(fn.apply(new WildcardQuery.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQueryVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQueryVariant.java new file mode 100644 index 000000000..0bf83c960 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyQueryVariant.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.security.query_api_keys; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link ApiKeyQuery} variants. + */ +public interface ApiKeyQueryVariant { + + ApiKeyQuery.Kind _apiKeyQueryKind(); + + default ApiKeyQuery _toApiKeyQuery() { + return new ApiKeyQuery(this); + } + +} From 4eb027660bac22d5d0497c1be9ebd03ee1c5e5e5 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:40:05 +0200 Subject: [PATCH 23/25] fixes from api-spec pr 2485 (#776) --- .../_types/WriteResponseBase.java | 21 +- .../AdjacencyMatrixAggregation.java | 22 +- .../_types/aggregations/AggregationBase.java | 116 +---- .../AutoDateHistogramAggregation.java | 25 +- .../aggregations/BucketAggregationBase.java | 13 +- .../aggregations/BucketPathAggregation.java | 24 +- .../aggregations/BucketSortAggregation.java | 22 +- .../CategorizeTextAggregation.java | 22 +- .../aggregations/ChildrenAggregation.java | 22 +- .../aggregations/CompositeAggregation.java | 23 +- .../DateHistogramAggregation.java | 26 +- .../aggregations/DateRangeAggregation.java | 23 +- .../DiversifiedSamplerAggregation.java | 25 +- .../_types/aggregations/ExtendedBounds.java | 36 +- .../aggregations/FiltersAggregation.java | 22 +- .../aggregations/GeoDistanceAggregation.java | 22 +- .../aggregations/GeoHashGridAggregation.java | 22 +- .../aggregations/GeoTileGridAggregation.java | 26 +- .../aggregations/GeohexGridAggregation.java | 22 +- .../aggregations/GlobalAggregation.java | 63 +-- .../aggregations/HistogramAggregation.java | 26 +- .../aggregations/IpPrefixAggregation.java | 22 +- .../aggregations/IpRangeAggregation.java | 22 +- .../aggregations/MatrixAggregation.java | 24 +- .../aggregations/MissingAggregation.java | 26 +- .../aggregations/MultiTermsAggregation.java | 22 +- .../aggregations/NestedAggregation.java | 22 +- .../aggregations/ParentAggregation.java | 22 +- .../_types/aggregations/RangeAggregation.java | 26 +- .../aggregations/RareTermsAggregation.java | 22 +- .../ReverseNestedAggregation.java | 22 +- .../aggregations/SamplerAggregation.java | 22 +- .../SignificantTermsAggregation.java | 25 +- .../SignificantTextAggregation.java | 22 +- .../_types/aggregations/TTestAggregation.java | 22 +- .../_types/aggregations/TermsAggregation.java | 23 +- .../VariableWidthHistogramAggregation.java | 37 ++ .../WeightedAverageAggregation.java | 22 +- .../_types/analysis/HtmlStripCharFilter.java | 50 ++ .../_types/mapping/DynamicProperty.java | 2 +- .../_types/mapping/Property.java | 11 +- .../_types/mapping/PropertyBuilders.java | 4 +- .../_types/mapping/RuntimeFieldType.java | 2 + .../_types/query_dsl/LikeDocument.java | 6 + .../_types/query_dsl/MoreLikeThisQuery.java | 53 -- .../core/search/LearningToRank.java | 222 +++++++++ .../elasticsearch/core/search/Rescore.java | 248 +++++++--- .../core/search/RescoreBuilders.java | 81 +++ .../core/search/RescoreQuery.java | 10 +- .../core/search/RescoreVariant.java | 48 ++ .../elasticsearch/doc-files/api-spec.html | 183 +++---- .../ilm/ElasticsearchIlmAsyncClient.java | 13 + .../ilm/ElasticsearchIlmClient.java | 13 + .../ilm/PutLifecycleRequest.java | 18 +- .../indices/SimulateIndexTemplateRequest.java | 459 +---------------- .../SimulateIndexTemplateResponse.java | 165 ++++++- .../indices/SimulateTemplateRequest.java | 462 +++++++++++++++++- .../ApiKeyFiltersAggregation.java | 25 +- .../documentation/usage/IndexingTest.java | 2 +- 59 files changed, 2076 insertions(+), 1027 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LearningToRank.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreBuilders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreVariant.java 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 c179f9dc1..428d5c38a 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 @@ -65,7 +65,8 @@ public abstract class WriteResponseBase implements JsonpSerializable { private final String index; - private final long primaryTerm; + @Nullable + private final Long primaryTerm; private final Result result; @@ -84,7 +85,7 @@ protected WriteResponseBase(AbstractBuilder builder) { this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); - this.primaryTerm = ApiTypeHelper.requireNonNull(builder.primaryTerm, this, "primaryTerm"); + this.primaryTerm = builder.primaryTerm; this.result = ApiTypeHelper.requireNonNull(builder.result, this, "result"); this.seqNo = ApiTypeHelper.requireNonNull(builder.seqNo, this, "seqNo"); this.shards = ApiTypeHelper.requireNonNull(builder.shards, this, "shards"); @@ -108,9 +109,10 @@ public final String index() { } /** - * Required - API name: {@code _primary_term} + * API name: {@code _primary_term} */ - public final long primaryTerm() { + @Nullable + public final Long primaryTerm() { return this.primaryTerm; } @@ -167,9 +169,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("_index"); generator.write(this.index); - generator.writeKey("_primary_term"); - generator.write(this.primaryTerm); + if (this.primaryTerm != null) { + generator.writeKey("_primary_term"); + generator.write(this.primaryTerm); + } generator.writeKey("result"); this.result.serialize(generator, mapper); generator.writeKey("_seq_no"); @@ -201,6 +205,7 @@ public abstract static class AbstractBuilder */ @JsonpDeserializable -public class AdjacencyMatrixAggregation extends BucketAggregationBase implements AggregationVariant { +public class AdjacencyMatrixAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { private final Map filters; // --------------------------------------------------------------------------------------------- private AdjacencyMatrixAggregation(Builder builder) { - super(builder); this.filters = ApiTypeHelper.unmodifiable(builder.filters); @@ -91,9 +92,17 @@ public final Map filters() { return this.filters; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (ApiTypeHelper.isDefined(this.filters)) { generator.writeKey("filters"); generator.writeStartObject(); @@ -108,6 +117,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -183,7 +197,7 @@ public AdjacencyMatrixAggregation build() { protected static void setupAdjacencyMatrixAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::filters, JsonpDeserializer.stringMapDeserializer(Query._DESERIALIZER), "filters"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java index 5320a33e0..ec723205c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBase.java @@ -19,22 +19,14 @@ package co.elastic.clients.elasticsearch._types.aggregations; -import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.JsonpSerializable; -import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; -import java.lang.String; -import java.util.Map; import java.util.Objects; -import javax.annotation.Nullable; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -60,119 +52,15 @@ * specification */ -public abstract class AggregationBase implements JsonpSerializable { - private final Map meta; - - @Nullable - private final String name; - - // --------------------------------------------------------------------------------------------- - - protected AggregationBase(AbstractBuilder builder) { - - this.meta = ApiTypeHelper.unmodifiable(builder.meta); - this.name = builder.name; - - } - - /** - * API name: {@code meta} - */ - public final Map meta() { - return this.meta; - } - - /** - * API name: {@code name} - */ - @Nullable - public final String name() { - return this.name; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (ApiTypeHelper.isDefined(this.meta)) { - generator.writeKey("meta"); - generator.writeStartObject(); - for (Map.Entry item0 : this.meta.entrySet()) { - generator.writeKey(item0.getKey()); - item0.getValue().serialize(generator, mapper); - - } - generator.writeEnd(); - - } - if (this.name != null) { - generator.writeKey("name"); - generator.write(this.name); - - } - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); +public abstract class AggregationBase { + public AggregationBase() { } public abstract static class AbstractBuilder> extends WithJsonObjectBuilderBase { - @Nullable - private Map meta; - - @Nullable - private String name; - - /** - * API name: {@code meta} - *

- * Adds all entries of map to meta. - */ - public final BuilderT meta(Map map) { - this.meta = _mapPutAll(this.meta, map); - return self(); - } - - /** - * API name: {@code meta} - *

- * Adds an entry to meta. - */ - public final BuilderT meta(String key, JsonData value) { - this.meta = _mapPut(this.meta, key, value); - return self(); - } - - /** - * API name: {@code name} - */ - public final BuilderT name(@Nullable String value) { - this.name = value; - return self(); - } - protected abstract BuilderT self(); } - // --------------------------------------------------------------------------------------------- - protected static > void setupAggregationBaseDeserializer( - ObjectDeserializer op) { - - op.add(AbstractBuilder::meta, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "meta"); - op.add(AbstractBuilder::name, JsonpDeserializer.stringDeserializer(), "name"); - - } - } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java index 0c35472c1..dee2d20f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java @@ -24,6 +24,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -61,7 +63,10 @@ * specification */ @JsonpDeserializable -public class AutoDateHistogramAggregation extends BucketAggregationBase implements AggregationVariant { +public class AutoDateHistogramAggregation extends BucketAggregationBase + implements + AggregationVariant, + JsonpSerializable { @Nullable private final Integer buckets; @@ -91,7 +96,6 @@ public class AutoDateHistogramAggregation extends BucketAggregationBase implemen // --------------------------------------------------------------------------------------------- private AutoDateHistogramAggregation(Builder builder) { - super(builder); this.buckets = builder.buckets; this.field = builder.field; @@ -207,9 +211,17 @@ public final String timeZone() { return this.timeZone; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.buckets != null) { generator.writeKey("buckets"); generator.write(this.buckets); @@ -262,6 +274,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -436,7 +453,7 @@ public AutoDateHistogramAggregation build() { protected static void setupAutoDateHistogramAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::buckets, JsonpDeserializer.integerDeserializer(), "buckets"); op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::format, JsonpDeserializer.stringDeserializer(), "format"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java index 46043eda6..e53d8089c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketAggregationBase.java @@ -55,22 +55,13 @@ */ public abstract class BucketAggregationBase extends AggregationBase { - // --------------------------------------------------------------------------------------------- - - protected BucketAggregationBase(AbstractBuilder builder) { - super(builder); - + public BucketAggregationBase() { } public abstract static class AbstractBuilder> extends AggregationBase.AbstractBuilder { - } - - // --------------------------------------------------------------------------------------------- - protected static > void setupBucketAggregationBaseDeserializer( - ObjectDeserializer op) { - AggregationBase.setupAggregationBaseDeserializer(op); + protected abstract BuilderT self(); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java index db624a98d..2b9ef26c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketPathAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -55,14 +57,13 @@ * specification */ -public abstract class BucketPathAggregation extends AggregationBase { +public abstract class BucketPathAggregation extends AggregationBase implements JsonpSerializable { @Nullable private final BucketsPath bucketsPath; // --------------------------------------------------------------------------------------------- protected BucketPathAggregation(AbstractBuilder builder) { - super(builder); this.bucketsPath = builder.bucketsPath; @@ -78,9 +79,17 @@ public final BucketsPath bucketsPath() { return this.bucketsPath; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.bucketsPath != null) { generator.writeKey("buckets_path"); this.bucketsPath.serialize(generator, mapper); @@ -89,6 +98,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + public abstract static class AbstractBuilder> extends AggregationBase.AbstractBuilder { @@ -114,12 +128,14 @@ public final BuilderT bucketsPath(Function> void setupBucketPathAggregationDeserializer( ObjectDeserializer op) { - AggregationBase.setupAggregationBaseDeserializer(op); + op.add(AbstractBuilder::bucketsPath, BucketsPath._DESERIALIZER, "buckets_path"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java index 7e39b692a..b8d1d7bff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java @@ -23,6 +23,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -58,7 +60,7 @@ * specification */ @JsonpDeserializable -public class BucketSortAggregation extends AggregationBase implements AggregationVariant { +public class BucketSortAggregation extends AggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final Integer from; @@ -73,7 +75,6 @@ public class BucketSortAggregation extends AggregationBase implements Aggregatio // --------------------------------------------------------------------------------------------- private BucketSortAggregation(Builder builder) { - super(builder); this.from = builder.from; this.gapPolicy = builder.gapPolicy; @@ -134,9 +135,17 @@ public final List sort() { return this.sort; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.from != null) { generator.writeKey("from"); generator.write(this.from); @@ -164,6 +173,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -278,7 +292,7 @@ public BucketSortAggregation build() { .lazy(Builder::new, BucketSortAggregation::setupBucketSortAggregationDeserializer); protected static void setupBucketSortAggregationDeserializer(ObjectDeserializer op) { - AggregationBase.setupAggregationBaseDeserializer(op); + op.add(Builder::from, JsonpDeserializer.integerDeserializer(), "from"); op.add(Builder::gapPolicy, GapPolicy._DESERIALIZER, "gap_policy"); op.add(Builder::size, JsonpDeserializer.integerDeserializer(), "size"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAggregation.java index 4ed93073b..00dc3ffb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -63,7 +65,7 @@ * specification */ @JsonpDeserializable -public class CategorizeTextAggregation extends AggregationBase implements AggregationVariant { +public class CategorizeTextAggregation extends AggregationBase implements AggregationVariant, JsonpSerializable { private final String field; @Nullable @@ -95,7 +97,6 @@ public class CategorizeTextAggregation extends AggregationBase implements Aggreg // --------------------------------------------------------------------------------------------- private CategorizeTextAggregation(Builder builder) { - super(builder); this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); this.maxUniqueTokens = builder.maxUniqueTokens; @@ -245,9 +246,17 @@ public final Integer shardMinDocCount() { return this.shardMinDocCount; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); generator.writeKey("field"); generator.write(this.field); @@ -304,6 +313,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -534,7 +548,7 @@ public CategorizeTextAggregation build() { protected static void setupCategorizeTextAggregationDeserializer( ObjectDeserializer op) { - AggregationBase.setupAggregationBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::maxUniqueTokens, JsonpDeserializer.integerDeserializer(), "max_unique_tokens"); op.add(Builder::maxMatchedTokens, JsonpDeserializer.integerDeserializer(), "max_matched_tokens"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java index 9c7fd0152..c15142d05 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -55,14 +57,13 @@ * specification */ @JsonpDeserializable -public class ChildrenAggregation extends BucketAggregationBase implements AggregationVariant { +public class ChildrenAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final String type; // --------------------------------------------------------------------------------------------- private ChildrenAggregation(Builder builder) { - super(builder); this.type = builder.type; @@ -90,9 +91,17 @@ public final String type() { return this.type; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.type != null) { generator.writeKey("type"); generator.write(this.type); @@ -101,6 +110,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -150,7 +164,7 @@ public ChildrenAggregation build() { .lazy(Builder::new, ChildrenAggregation::setupChildrenAggregationDeserializer); protected static void setupChildrenAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java index bef6c6964..e634962b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java @@ -25,6 +25,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -65,7 +67,8 @@ public class CompositeAggregation extends BucketAggregationBase implements AggregationVariant, - ApiKeyAggregationVariant { + ApiKeyAggregationVariant, + JsonpSerializable { private final Map after; @Nullable @@ -76,7 +79,6 @@ public class CompositeAggregation extends BucketAggregationBase // --------------------------------------------------------------------------------------------- private CompositeAggregation(Builder builder) { - super(builder); this.after = ApiTypeHelper.unmodifiable(builder.after); this.size = builder.size; @@ -134,9 +136,17 @@ public final List> sources() { return this.sources; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (ApiTypeHelper.isDefined(this.after)) { generator.writeKey("after"); generator.writeStartObject(); @@ -174,6 +184,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -294,7 +309,7 @@ public CompositeAggregation build() { .lazy(Builder::new, CompositeAggregation::setupCompositeAggregationDeserializer); protected static void setupCompositeAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::after, JsonpDeserializer.stringMapDeserializer(FieldValue._DESERIALIZER), "after"); op.add(Builder::size, JsonpDeserializer.integerDeserializer(), "size"); op.add(Builder::sources, JsonpDeserializer.arrayDeserializer( 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 dcc79c260..5a3ad063b 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 @@ -28,6 +28,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -68,7 +70,11 @@ * specification */ @JsonpDeserializable -public class DateHistogramAggregation extends BucketAggregationBase implements AggregationVariant, PivotGroupByVariant { +public class DateHistogramAggregation extends BucketAggregationBase + implements + AggregationVariant, + PivotGroupByVariant, + JsonpSerializable { @Nullable private final CalendarInterval calendarInterval; @@ -115,7 +121,6 @@ public class DateHistogramAggregation extends BucketAggregationBase implements A // --------------------------------------------------------------------------------------------- private DateHistogramAggregation(Builder builder) { - super(builder); this.calendarInterval = builder.calendarInterval; this.extendedBounds = builder.extendedBounds; @@ -311,9 +316,17 @@ public final Boolean keyed() { return this.keyed; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.calendarInterval != null) { generator.writeKey("calendar_interval"); this.calendarInterval.serialize(generator, mapper); @@ -404,6 +417,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -728,7 +746,7 @@ public DateHistogramAggregation build() { protected static void setupDateHistogramAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::calendarInterval, CalendarInterval._DESERIALIZER, "calendar_interval"); op.add(Builder::extendedBounds, ExtendedBounds.createExtendedBoundsDeserializer(FieldDateMath._DESERIALIZER), "extended_bounds"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java index b0373ce0f..479b649ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java @@ -25,6 +25,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -64,7 +66,8 @@ public class DateRangeAggregation extends BucketAggregationBase implements AggregationVariant, - ApiKeyAggregationVariant { + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final String field; @@ -85,7 +88,6 @@ public class DateRangeAggregation extends BucketAggregationBase // --------------------------------------------------------------------------------------------- private DateRangeAggregation(Builder builder) { - super(builder); this.field = builder.field; this.format = builder.format; @@ -178,9 +180,17 @@ public final Boolean keyed() { return this.keyed; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.field != null) { generator.writeKey("field"); generator.write(this.field); @@ -219,6 +229,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -415,7 +430,7 @@ public DateRangeAggregation build() { .lazy(Builder::new, DateRangeAggregation::setupDateRangeAggregationDeserializer); protected static void setupDateRangeAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::format, JsonpDeserializer.stringDeserializer(), "format"); op.add(Builder::missing, FieldValue._DESERIALIZER, "missing"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java index 21d3957e5..bb25276cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java @@ -23,6 +23,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -57,7 +59,10 @@ * specification */ @JsonpDeserializable -public class DiversifiedSamplerAggregation extends BucketAggregationBase implements AggregationVariant { +public class DiversifiedSamplerAggregation extends BucketAggregationBase + implements + AggregationVariant, + JsonpSerializable { @Nullable private final SamplerAggregationExecutionHint executionHint; @@ -76,7 +81,6 @@ public class DiversifiedSamplerAggregation extends BucketAggregationBase impleme // --------------------------------------------------------------------------------------------- private DiversifiedSamplerAggregation(Builder builder) { - super(builder); this.executionHint = builder.executionHint; this.maxDocsPerValue = builder.maxDocsPerValue; @@ -147,9 +151,17 @@ public final String field() { return this.field; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.executionHint != null) { generator.writeKey("execution_hint"); this.executionHint.serialize(generator, mapper); @@ -177,6 +189,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -285,7 +302,7 @@ public DiversifiedSamplerAggregation build() { protected static void setupDiversifiedSamplerAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::executionHint, SamplerAggregationExecutionHint._DESERIALIZER, "execution_hint"); op.add(Builder::maxDocsPerValue, JsonpDeserializer.integerDeserializer(), "max_docs_per_value"); op.add(Builder::script, Script._DESERIALIZER, "script"); 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 d008aacd8..8f29a64d9 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 @@ -28,7 +28,6 @@ import co.elastic.clients.json.NamedDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; @@ -62,8 +61,10 @@ */ @JsonpDeserializable public class ExtendedBounds implements JsonpSerializable { + @Nullable private final T max; + @Nullable private final T min; @Nullable @@ -73,8 +74,8 @@ public class ExtendedBounds implements JsonpSerializable { private ExtendedBounds(Builder builder) { - this.max = ApiTypeHelper.requireNonNull(builder.max, this, "max"); - this.min = ApiTypeHelper.requireNonNull(builder.min, this, "min"); + this.max = builder.max; + this.min = builder.min; this.tSerializer = builder.tSerializer; } @@ -84,19 +85,21 @@ public static ExtendedBounds of(Function, ObjectBuilder * API name: {@code max} */ + @Nullable public final T max() { return this.max; } /** - * Required - Minimum value for the bound. + * Minimum value for the bound. *

* API name: {@code min} */ + @Nullable public final T min() { return this.min; } @@ -112,11 +115,16 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("max"); - JsonpUtils.serialize(this.max, generator, tSerializer, mapper); + if (this.max != null) { + generator.writeKey("max"); + JsonpUtils.serialize(this.max, generator, tSerializer, mapper); - generator.writeKey("min"); - JsonpUtils.serialize(this.min, generator, tSerializer, mapper); + } + if (this.min != null) { + generator.writeKey("min"); + JsonpUtils.serialize(this.min, generator, tSerializer, mapper); + + } } @@ -134,29 +142,31 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase> implements ObjectBuilder> { + @Nullable private T max; + @Nullable private T min; @Nullable private JsonpSerializer tSerializer; /** - * Required - Maximum value for the bound. + * Maximum value for the bound. *

* API name: {@code max} */ - public final Builder max(T value) { + public final Builder max(@Nullable T value) { this.max = value; return this; } /** - * Required - Minimum value for the bound. + * Minimum value for the bound. *

* API name: {@code min} */ - public final Builder min(T value) { + public final Builder min(@Nullable T value) { this.min = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java index 72b0cd4a3..4dca403e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java @@ -23,6 +23,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -57,7 +59,7 @@ * specification */ @JsonpDeserializable -public class FiltersAggregation extends BucketAggregationBase implements AggregationVariant { +public class FiltersAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final Buckets filters; @@ -73,7 +75,6 @@ public class FiltersAggregation extends BucketAggregationBase implements Aggrega // --------------------------------------------------------------------------------------------- private FiltersAggregation(Builder builder) { - super(builder); this.filters = builder.filters; this.otherBucket = builder.otherBucket; @@ -136,9 +137,17 @@ public final Boolean keyed() { return this.keyed; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.filters != null) { generator.writeKey("filters"); this.filters.serialize(generator, mapper); @@ -162,6 +171,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -261,7 +275,7 @@ public FiltersAggregation build() { .lazy(Builder::new, FiltersAggregation::setupFiltersAggregationDeserializer); protected static void setupFiltersAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::filters, Buckets.createBucketsDeserializer(Query._DESERIALIZER), "filters"); op.add(Builder::otherBucket, JsonpDeserializer.booleanDeserializer(), "other_bucket"); op.add(Builder::otherBucketKey, JsonpDeserializer.stringDeserializer(), "other_bucket_key"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoDistanceAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoDistanceAggregation.java index 40c397b5d..e736db73a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoDistanceAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoDistanceAggregation.java @@ -25,6 +25,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -60,7 +62,7 @@ * specification */ @JsonpDeserializable -public class GeoDistanceAggregation extends BucketAggregationBase implements AggregationVariant { +public class GeoDistanceAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final GeoDistanceType distanceType; @@ -78,7 +80,6 @@ public class GeoDistanceAggregation extends BucketAggregationBase implements Agg // --------------------------------------------------------------------------------------------- private GeoDistanceAggregation(Builder builder) { - super(builder); this.distanceType = builder.distanceType; this.field = builder.field; @@ -149,9 +150,17 @@ public final DistanceUnit unit() { return this.unit; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.distanceType != null) { generator.writeKey("distance_type"); this.distanceType.serialize(generator, mapper); @@ -183,6 +192,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -319,7 +333,7 @@ public GeoDistanceAggregation build() { protected static void setupGeoDistanceAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::distanceType, GeoDistanceType._DESERIALIZER, "distance_type"); op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::origin, GeoLocation._DESERIALIZER, "origin"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregation.java index 6dddd8612..41a1b6d32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregation.java @@ -24,6 +24,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -58,7 +60,7 @@ * specification */ @JsonpDeserializable -public class GeoHashGridAggregation extends BucketAggregationBase implements AggregationVariant { +public class GeoHashGridAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final GeoBounds bounds; @@ -77,7 +79,6 @@ public class GeoHashGridAggregation extends BucketAggregationBase implements Agg // --------------------------------------------------------------------------------------------- private GeoHashGridAggregation(Builder builder) { - super(builder); this.bounds = builder.bounds; this.field = builder.field; @@ -154,9 +155,17 @@ public final Integer size() { return this.size; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.bounds != null) { generator.writeKey("bounds"); this.bounds.serialize(generator, mapper); @@ -185,6 +194,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -311,7 +325,7 @@ public GeoHashGridAggregation build() { protected static void setupGeoHashGridAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::bounds, GeoBounds._DESERIALIZER, "bounds"); op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::precision, GeoHashPrecision._DESERIALIZER, "precision"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java index 946e79d2c..7928c6445 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java @@ -25,6 +25,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -60,7 +62,11 @@ * specification */ @JsonpDeserializable -public class GeoTileGridAggregation extends BucketAggregationBase implements AggregationVariant, PivotGroupByVariant { +public class GeoTileGridAggregation extends BucketAggregationBase + implements + AggregationVariant, + PivotGroupByVariant, + JsonpSerializable { @Nullable private final String field; @@ -79,7 +85,6 @@ public class GeoTileGridAggregation extends BucketAggregationBase implements Agg // --------------------------------------------------------------------------------------------- private GeoTileGridAggregation(Builder builder) { - super(builder); this.field = builder.field; this.precision = builder.precision; @@ -164,9 +169,17 @@ public final GeoBounds bounds() { return this.bounds; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.field != null) { generator.writeKey("field"); generator.write(this.field); @@ -195,6 +208,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -311,7 +329,7 @@ public GeoTileGridAggregation build() { protected static void setupGeoTileGridAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::precision, JsonpDeserializer.numberDeserializer(), "precision"); op.add(Builder::shardSize, JsonpDeserializer.integerDeserializer(), "shard_size"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeohexGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeohexGridAggregation.java index d974afaee..6b03f013a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeohexGridAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeohexGridAggregation.java @@ -23,6 +23,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -58,7 +60,7 @@ * specification */ @JsonpDeserializable -public class GeohexGridAggregation extends BucketAggregationBase implements AggregationVariant { +public class GeohexGridAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { private final String field; @Nullable @@ -76,7 +78,6 @@ public class GeohexGridAggregation extends BucketAggregationBase implements Aggr // --------------------------------------------------------------------------------------------- private GeohexGridAggregation(Builder builder) { - super(builder); this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); this.precision = builder.precision; @@ -150,9 +151,17 @@ public final Integer shardSize() { return this.shardSize; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); generator.writeKey("field"); generator.write(this.field); @@ -179,6 +188,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -291,7 +305,7 @@ public GeohexGridAggregation build() { .lazy(Builder::new, GeohexGridAggregation::setupGeohexGridAggregationDeserializer); protected static void setupGeohexGridAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::precision, JsonpDeserializer.integerDeserializer(), "precision"); op.add(Builder::bounds, GeoBounds._DESERIALIZER, "bounds"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregation.java index 3a86a8879..386e392d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregation.java @@ -21,12 +21,10 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.ObjectBuilderDeserializer; -import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.util.Objects; -import java.util.function.Function; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -43,8 +41,6 @@ // //---------------------------------------------------------------- -// typedef: _types.aggregations.GlobalAggregation - /** * * @see */ @JsonpDeserializable -public class GlobalAggregation extends BucketAggregationBase implements AggregationVariant { - // --------------------------------------------------------------------------------------------- - - private GlobalAggregation(Builder builder) { - super(builder); - - } - - public static GlobalAggregation of(Function> fn) { - return fn.apply(new Builder()).build(); - } +public class GlobalAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { /** * Aggregation variant kind. @@ -72,44 +58,27 @@ public Aggregation.Kind _aggregationKind() { return Aggregation.Kind.Global; } - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link GlobalAggregation}. - */ - - public static class Builder extends BucketAggregationBase.AbstractBuilder - implements - ObjectBuilder { + public static final class Builder implements ObjectBuilder { @Override - protected Builder self() { - return this; - } - - /** - * Builds a {@link GlobalAggregation}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ public GlobalAggregation build() { - _checkSingleUse(); - - return new GlobalAggregation(this); + return GlobalAggregation._INSTANCE; } } - // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for {@link GlobalAggregation} + * Serialize this object to JSON. */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, GlobalAggregation::setupGlobalAggregationDeserializer); + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + generator.writeEnd(); + } - protected static void setupGlobalAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + /** + * Singleton instance for empty class {@link GlobalAggregation}. + */ + public static final GlobalAggregation _INSTANCE = new GlobalAggregation(); - } + public static final JsonpDeserializer _DESERIALIZER = JsonpDeserializer + .emptyObject(GlobalAggregation._INSTANCE); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregation.java index 90c8cec85..9fefe77b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregation.java @@ -26,6 +26,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -65,7 +67,11 @@ * specification */ @JsonpDeserializable -public class HistogramAggregation extends BucketAggregationBase implements AggregationVariant, PivotGroupByVariant { +public class HistogramAggregation extends BucketAggregationBase + implements + AggregationVariant, + PivotGroupByVariant, + JsonpSerializable { @Nullable private final ExtendedBounds extendedBounds; @@ -101,7 +107,6 @@ public class HistogramAggregation extends BucketAggregationBase implements Aggre // --------------------------------------------------------------------------------------------- private HistogramAggregation(Builder builder) { - super(builder); this.extendedBounds = builder.extendedBounds; this.hardBounds = builder.hardBounds; @@ -251,9 +256,17 @@ public final Boolean keyed() { return this.keyed; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.extendedBounds != null) { generator.writeKey("extended_bounds"); this.extendedBounds.serialize(generator, mapper); @@ -320,6 +333,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -548,7 +566,7 @@ public HistogramAggregation build() { .lazy(Builder::new, HistogramAggregation::setupHistogramAggregationDeserializer); protected static void setupHistogramAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::extendedBounds, ExtendedBounds.createExtendedBoundsDeserializer(JsonpDeserializer.doubleDeserializer()), "extended_bounds"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregation.java index bed745b2c..ebc5ca6e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -59,7 +61,7 @@ * specification */ @JsonpDeserializable -public class IpPrefixAggregation extends BucketAggregationBase implements AggregationVariant { +public class IpPrefixAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { private final String field; private final int prefixLength; @@ -79,7 +81,6 @@ public class IpPrefixAggregation extends BucketAggregationBase implements Aggreg // --------------------------------------------------------------------------------------------- private IpPrefixAggregation(Builder builder) { - super(builder); this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); this.prefixLength = ApiTypeHelper.requireNonNull(builder.prefixLength, this, "prefixLength"); @@ -165,9 +166,17 @@ public final Long minDocCount() { return this.minDocCount; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); generator.writeKey("field"); generator.write(this.field); @@ -197,6 +206,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -314,7 +328,7 @@ public IpPrefixAggregation build() { .lazy(Builder::new, IpPrefixAggregation::setupIpPrefixAggregationDeserializer); protected static void setupIpPrefixAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::prefixLength, JsonpDeserializer.integerDeserializer(), "prefix_length"); op.add(Builder::isIpv6, JsonpDeserializer.booleanDeserializer(), "is_ipv6"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregation.java index 20748091d..71fbcf0d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -57,7 +59,7 @@ * specification */ @JsonpDeserializable -public class IpRangeAggregation extends BucketAggregationBase implements AggregationVariant { +public class IpRangeAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final String field; @@ -66,7 +68,6 @@ public class IpRangeAggregation extends BucketAggregationBase implements Aggrega // --------------------------------------------------------------------------------------------- private IpRangeAggregation(Builder builder) { - super(builder); this.field = builder.field; this.ranges = ApiTypeHelper.unmodifiable(builder.ranges); @@ -104,9 +105,17 @@ public final List ranges() { return this.ranges; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.field != null) { generator.writeKey("field"); generator.write(this.field); @@ -125,6 +134,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -213,7 +227,7 @@ public IpRangeAggregation build() { .lazy(Builder::new, IpRangeAggregation::setupIpRangeAggregationDeserializer); protected static void setupIpRangeAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::ranges, JsonpDeserializer.arrayDeserializer(IpRangeAggregationRange._DESERIALIZER), "ranges"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixAggregation.java index 518893ed2..e04941c24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -59,7 +61,7 @@ * specification */ -public abstract class MatrixAggregation extends AggregationBase { +public abstract class MatrixAggregation extends AggregationBase implements JsonpSerializable { private final List fields; private final Map missing; @@ -67,7 +69,6 @@ public abstract class MatrixAggregation extends AggregationBase { // --------------------------------------------------------------------------------------------- protected MatrixAggregation(AbstractBuilder builder) { - super(builder); this.fields = ApiTypeHelper.unmodifiable(builder.fields); this.missing = ApiTypeHelper.unmodifiable(builder.missing); @@ -93,9 +94,17 @@ public final Map missing() { return this.missing; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (ApiTypeHelper.isDefined(this.fields)) { generator.writeKey("fields"); generator.writeStartArray(); @@ -120,6 +129,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + public abstract static class AbstractBuilder> extends AggregationBase.AbstractBuilder { @@ -179,12 +193,14 @@ public final BuilderT missing(String key, Double value) { return self(); } + protected abstract BuilderT self(); + } // --------------------------------------------------------------------------------------------- protected static > void setupMatrixAggregationDeserializer( ObjectDeserializer op) { - AggregationBase.setupAggregationBaseDeserializer(op); + op.add(AbstractBuilder::fields, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "fields"); op.add(AbstractBuilder::missing, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java index fab470c25..ded342969 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java @@ -25,6 +25,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -58,7 +60,11 @@ * specification */ @JsonpDeserializable -public class MissingAggregation extends BucketAggregationBase implements AggregationVariant, ApiKeyAggregationVariant { +public class MissingAggregation extends BucketAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final String field; @@ -68,7 +74,6 @@ public class MissingAggregation extends BucketAggregationBase implements Aggrega // --------------------------------------------------------------------------------------------- private MissingAggregation(Builder builder) { - super(builder); this.field = builder.field; this.missing = builder.missing; @@ -113,9 +118,17 @@ public final FieldValue missing() { return this.missing; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.field != null) { generator.writeKey("field"); generator.write(this.field); @@ -129,6 +142,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -228,7 +246,7 @@ public MissingAggregation build() { .lazy(Builder::new, MissingAggregation::setupMissingAggregationDeserializer); protected static void setupMissingAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::missing, FieldValue._DESERIALIZER, "missing"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java index 77651d9c6..78409eeb5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java @@ -23,6 +23,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -61,7 +63,7 @@ * specification */ @JsonpDeserializable -public class MultiTermsAggregation extends BucketAggregationBase implements AggregationVariant { +public class MultiTermsAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final TermsAggregationCollectMode collectMode; @@ -87,7 +89,6 @@ public class MultiTermsAggregation extends BucketAggregationBase implements Aggr // --------------------------------------------------------------------------------------------- private MultiTermsAggregation(Builder builder) { - super(builder); this.collectMode = builder.collectMode; this.order = ApiTypeHelper.unmodifiable(builder.order); @@ -194,9 +195,17 @@ public final List terms() { return this.terms; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.collectMode != null) { generator.writeKey("collect_mode"); this.collectMode.serialize(generator, mapper); @@ -252,6 +261,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -435,7 +449,7 @@ public MultiTermsAggregation build() { .lazy(Builder::new, MultiTermsAggregation::setupMultiTermsAggregationDeserializer); protected static void setupMultiTermsAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::collectMode, TermsAggregationCollectMode._DESERIALIZER, "collect_mode"); op.add(Builder::order, JsonpDeserializer.arrayDeserializer(NamedValue.deserializer(() -> SortOrder._DESERIALIZER)), "order"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java index a42eef7d7..1a9044d68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -55,14 +57,13 @@ * specification */ @JsonpDeserializable -public class NestedAggregation extends BucketAggregationBase implements AggregationVariant { +public class NestedAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final String path; // --------------------------------------------------------------------------------------------- private NestedAggregation(Builder builder) { - super(builder); this.path = builder.path; @@ -90,9 +91,17 @@ public final String path() { return this.path; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.path != null) { generator.writeKey("path"); generator.write(this.path); @@ -101,6 +110,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -150,7 +164,7 @@ public NestedAggregation build() { .lazy(Builder::new, NestedAggregation::setupNestedAggregationDeserializer); protected static void setupNestedAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::path, JsonpDeserializer.stringDeserializer(), "path"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregation.java index 55171ca96..7ab7d4e8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -55,14 +57,13 @@ * specification */ @JsonpDeserializable -public class ParentAggregation extends BucketAggregationBase implements AggregationVariant { +public class ParentAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final String type; // --------------------------------------------------------------------------------------------- private ParentAggregation(Builder builder) { - super(builder); this.type = builder.type; @@ -90,9 +91,17 @@ public final String type() { return this.type; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.type != null) { generator.writeKey("type"); generator.write(this.type); @@ -101,6 +110,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -150,7 +164,7 @@ public ParentAggregation build() { .lazy(Builder::new, ParentAggregation::setupParentAggregationDeserializer); protected static void setupParentAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java index 92c37eec6..1e566f409 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeAggregation.java @@ -25,6 +25,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -62,7 +64,11 @@ * specification */ @JsonpDeserializable -public class RangeAggregation extends BucketAggregationBase implements AggregationVariant, ApiKeyAggregationVariant { +public class RangeAggregation extends BucketAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final String field; @@ -83,7 +89,6 @@ public class RangeAggregation extends BucketAggregationBase implements Aggregati // --------------------------------------------------------------------------------------------- private RangeAggregation(Builder builder) { - super(builder); this.field = builder.field; this.missing = builder.missing; @@ -171,9 +176,17 @@ public final String format() { return this.format; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.field != null) { generator.writeKey("field"); generator.write(this.field); @@ -212,6 +225,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -356,7 +374,7 @@ public RangeAggregation build() { RangeAggregation::setupRangeAggregationDeserializer); protected static void setupRangeAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::missing, JsonpDeserializer.integerDeserializer(), "missing"); op.add(Builder::ranges, JsonpDeserializer.arrayDeserializer(AggregationRange._DESERIALIZER), "ranges"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java index 6aa5dea0b..02fd0d770 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java @@ -23,6 +23,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -58,7 +60,7 @@ * specification */ @JsonpDeserializable -public class RareTermsAggregation extends BucketAggregationBase implements AggregationVariant { +public class RareTermsAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final TermsExclude exclude; @@ -83,7 +85,6 @@ public class RareTermsAggregation extends BucketAggregationBase implements Aggre // --------------------------------------------------------------------------------------------- private RareTermsAggregation(Builder builder) { - super(builder); this.exclude = builder.exclude; this.field = builder.field; @@ -177,9 +178,17 @@ public final String valueType() { return this.valueType; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.exclude != null) { generator.writeKey("exclude"); this.exclude.serialize(generator, mapper); @@ -218,6 +227,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -417,7 +431,7 @@ public RareTermsAggregation build() { .lazy(Builder::new, RareTermsAggregation::setupRareTermsAggregationDeserializer); protected static void setupRareTermsAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::exclude, TermsExclude._DESERIALIZER, "exclude"); op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); op.add(Builder::include, TermsInclude._DESERIALIZER, "include"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java index 30399376d..c4de764ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -55,14 +57,13 @@ * specification */ @JsonpDeserializable -public class ReverseNestedAggregation extends BucketAggregationBase implements AggregationVariant { +public class ReverseNestedAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final String path; // --------------------------------------------------------------------------------------------- private ReverseNestedAggregation(Builder builder) { - super(builder); this.path = builder.path; @@ -91,9 +92,17 @@ public final String path() { return this.path; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.path != null) { generator.writeKey("path"); generator.write(this.path); @@ -102,6 +111,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -153,7 +167,7 @@ public ReverseNestedAggregation build() { protected static void setupReverseNestedAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::path, JsonpDeserializer.stringDeserializer(), "path"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java index f93a9b838..4c730a6c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -55,14 +57,13 @@ * specification */ @JsonpDeserializable -public class SamplerAggregation extends BucketAggregationBase implements AggregationVariant { +public class SamplerAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final Integer shardSize; // --------------------------------------------------------------------------------------------- private SamplerAggregation(Builder builder) { - super(builder); this.shardSize = builder.shardSize; @@ -91,9 +92,17 @@ public final Integer shardSize() { return this.shardSize; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.shardSize != null) { generator.writeKey("shard_size"); generator.write(this.shardSize); @@ -102,6 +111,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -152,7 +166,7 @@ public SamplerAggregation build() { .lazy(Builder::new, SamplerAggregation::setupSamplerAggregationDeserializer); protected static void setupSamplerAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::shardSize, JsonpDeserializer.integerDeserializer(), "shard_size"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsAggregation.java index e4dc96ea5..712b8f059 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsAggregation.java @@ -24,6 +24,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -59,7 +61,10 @@ * specification */ @JsonpDeserializable -public class SignificantTermsAggregation extends BucketAggregationBase implements AggregationVariant { +public class SignificantTermsAggregation extends BucketAggregationBase + implements + AggregationVariant, + JsonpSerializable { @Nullable private final Query backgroundFilter; @@ -108,7 +113,6 @@ public class SignificantTermsAggregation extends BucketAggregationBase implement // --------------------------------------------------------------------------------------------- private SignificantTermsAggregation(Builder builder) { - super(builder); this.backgroundFilter = builder.backgroundFilter; this.chiSquare = builder.chiSquare; @@ -302,9 +306,17 @@ public final Integer size() { return this.size; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.backgroundFilter != null) { generator.writeKey("background_filter"); this.backgroundFilter.serialize(generator, mapper); @@ -382,6 +394,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -715,7 +732,7 @@ public SignificantTermsAggregation build() { protected static void setupSignificantTermsAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::backgroundFilter, Query._DESERIALIZER, "background_filter"); op.add(Builder::chiSquare, ChiSquareHeuristic._DESERIALIZER, "chi_square"); op.add(Builder::exclude, TermsExclude._DESERIALIZER, "exclude"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTextAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTextAggregation.java index aee184b30..2c6cc95c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTextAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTextAggregation.java @@ -24,6 +24,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -62,7 +64,7 @@ * specification */ @JsonpDeserializable -public class SignificantTextAggregation extends BucketAggregationBase implements AggregationVariant { +public class SignificantTextAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final Query backgroundFilter; @@ -116,7 +118,6 @@ public class SignificantTextAggregation extends BucketAggregationBase implements // --------------------------------------------------------------------------------------------- private SignificantTextAggregation(Builder builder) { - super(builder); this.backgroundFilter = builder.backgroundFilter; this.chiSquare = builder.chiSquare; @@ -332,9 +333,17 @@ public final List sourceFields() { return this.sourceFields; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.backgroundFilter != null) { generator.writeKey("background_filter"); this.backgroundFilter.serialize(generator, mapper); @@ -427,6 +436,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -802,7 +816,7 @@ public SignificantTextAggregation build() { protected static void setupSignificantTextAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::backgroundFilter, Query._DESERIALIZER, "background_filter"); op.add(Builder::chiSquare, ChiSquareHeuristic._DESERIALIZER, "chi_square"); op.add(Builder::exclude, TermsExclude._DESERIALIZER, "exclude"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java index 57ffa3df2..3a2e2dbad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -54,7 +56,7 @@ * specification */ @JsonpDeserializable -public class TTestAggregation extends AggregationBase implements AggregationVariant { +public class TTestAggregation extends AggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final TestPopulation a; @@ -67,7 +69,6 @@ public class TTestAggregation extends AggregationBase implements AggregationVari // --------------------------------------------------------------------------------------------- private TTestAggregation(Builder builder) { - super(builder); this.a = builder.a; this.b = builder.b; @@ -117,9 +118,17 @@ public final TTestType type() { return this.type; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.a != null) { generator.writeKey("a"); this.a.serialize(generator, mapper); @@ -137,6 +146,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -230,7 +244,7 @@ public TTestAggregation build() { TTestAggregation::setupTTestAggregationDeserializer); protected static void setupTTestAggregationDeserializer(ObjectDeserializer op) { - AggregationBase.setupAggregationBaseDeserializer(op); + op.add(Builder::a, TestPopulation._DESERIALIZER, "a"); op.add(Builder::b, TestPopulation._DESERIALIZER, "b"); op.add(Builder::type, TTestType._DESERIALIZER, "type"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java index 97b4bc9e1..a5a5e420f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java @@ -29,6 +29,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -71,7 +73,8 @@ public class TermsAggregation extends BucketAggregationBase implements AggregationVariant, PivotGroupByVariant, - ApiKeyAggregationVariant { + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final TermsAggregationCollectMode collectMode; @@ -122,7 +125,6 @@ public class TermsAggregation extends BucketAggregationBase // --------------------------------------------------------------------------------------------- private TermsAggregation(Builder builder) { - super(builder); this.collectMode = builder.collectMode; this.exclude = builder.exclude; @@ -331,9 +333,17 @@ public final String format() { return this.format; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.collectMode != null) { generator.writeKey("collect_mode"); this.collectMode.serialize(generator, mapper); @@ -422,6 +432,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -761,7 +776,7 @@ public TermsAggregation build() { TermsAggregation::setupTermsAggregationDeserializer); protected static void setupTermsAggregationDeserializer(ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::collectMode, TermsAggregationCollectMode._DESERIALIZER, "collect_mode"); op.add(Builder::exclude, TermsExclude._DESERIALIZER, "exclude"); op.add(Builder::executionHint, TermsAggregationExecutionHint._DESERIALIZER, "execution_hint"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java index c3629ad4f..09341d539 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch._types.Script; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -72,6 +73,9 @@ public class VariableWidthHistogramAggregation implements AggregationVariant, Js @Nullable private final Integer initialBuffer; + @Nullable + private final Script script; + // --------------------------------------------------------------------------------------------- private VariableWidthHistogramAggregation(Builder builder) { @@ -80,6 +84,7 @@ private VariableWidthHistogramAggregation(Builder builder) { this.buckets = builder.buckets; this.shardSize = builder.shardSize; this.initialBuffer = builder.initialBuffer; + this.script = builder.script; } @@ -139,6 +144,14 @@ public final Integer initialBuffer() { return this.initialBuffer; } + /** + * API name: {@code script} + */ + @Nullable + public final Script script() { + return this.script; + } + /** * Serialize this object to JSON. */ @@ -170,6 +183,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.initialBuffer); } + if (this.script != null) { + generator.writeKey("script"); + this.script.serialize(generator, mapper); + + } } @@ -199,6 +217,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer initialBuffer; + @Nullable + private Script script; + /** * The name of the field. *

@@ -242,6 +263,21 @@ public final Builder initialBuffer(@Nullable Integer value) { return this; } + /** + * API name: {@code script} + */ + public final Builder script(@Nullable Script value) { + this.script = value; + return this; + } + + /** + * API name: {@code script} + */ + public final Builder script(Function> fn) { + return this.script(fn.apply(new Script.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -275,6 +311,7 @@ protected static void setupVariableWidthHistogramAggregationDeserializer( op.add(Builder::buckets, JsonpDeserializer.integerDeserializer(), "buckets"); op.add(Builder::shardSize, JsonpDeserializer.integerDeserializer(), "shard_size"); op.add(Builder::initialBuffer, JsonpDeserializer.integerDeserializer(), "initial_buffer"); + op.add(Builder::script, Script._DESERIALIZER, "script"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageAggregation.java index 5153590a5..e61ef1625 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageAggregation.java @@ -22,6 +22,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -55,7 +57,7 @@ * specification */ @JsonpDeserializable -public class WeightedAverageAggregation extends AggregationBase implements AggregationVariant { +public class WeightedAverageAggregation extends AggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final String format; @@ -71,7 +73,6 @@ public class WeightedAverageAggregation extends AggregationBase implements Aggre // --------------------------------------------------------------------------------------------- private WeightedAverageAggregation(Builder builder) { - super(builder); this.format = builder.format; this.value = builder.value; @@ -130,9 +131,17 @@ public final WeightedAverageValue weight() { return this.weight; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.format != null) { generator.writeKey("format"); generator.write(this.format); @@ -155,6 +164,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -260,7 +274,7 @@ public WeightedAverageAggregation build() { protected static void setupWeightedAverageAggregationDeserializer( ObjectDeserializer op) { - AggregationBase.setupAggregationBaseDeserializer(op); + op.add(Builder::format, JsonpDeserializer.stringDeserializer(), "format"); op.add(Builder::value, WeightedAverageValue._DESERIALIZER, "value"); op.add(Builder::valueType, ValueType._DESERIALIZER, "value_type"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java index 3f0bbbd31..d8a97a5a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java @@ -24,10 +24,14 @@ import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.function.Function; +import javax.annotation.Nullable; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -54,11 +58,15 @@ */ @JsonpDeserializable public class HtmlStripCharFilter extends CharFilterBase implements CharFilterDefinitionVariant { + private final List escapedTags; + // --------------------------------------------------------------------------------------------- private HtmlStripCharFilter(Builder builder) { super(builder); + this.escapedTags = ApiTypeHelper.unmodifiable(builder.escapedTags); + } public static HtmlStripCharFilter of(Function> fn) { @@ -73,10 +81,27 @@ public CharFilterDefinition.Kind _charFilterDefinitionKind() { return CharFilterDefinition.Kind.HtmlStrip; } + /** + * API name: {@code escaped_tags} + */ + public final List escapedTags() { + return this.escapedTags; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "html_strip"); super.serializeInternal(generator, mapper); + if (ApiTypeHelper.isDefined(this.escapedTags)) { + generator.writeKey("escaped_tags"); + generator.writeStartArray(); + for (String item0 : this.escapedTags) { + generator.write(item0); + + } + generator.writeEnd(); + + } } @@ -89,6 +114,29 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends CharFilterBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private List escapedTags; + + /** + * API name: {@code escaped_tags} + *

+ * Adds all elements of list to escapedTags. + */ + public final Builder escapedTags(List list) { + this.escapedTags = _listAddAll(this.escapedTags, list); + return this; + } + + /** + * API name: {@code escaped_tags} + *

+ * Adds one or more values to escapedTags. + */ + public final Builder escapedTags(String value, String... values) { + this.escapedTags = _listAdd(this.escapedTags, value, values); + return this; + } + @Override protected Builder self() { return this; @@ -117,6 +165,8 @@ public HtmlStripCharFilter build() { protected static void setupHtmlStripCharFilterDeserializer(ObjectDeserializer op) { CharFilterBase.setupCharFilterBaseDeserializer(op); + op.add(Builder::escapedTags, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "escaped_tags"); op.ignore("type"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java index e13a89e69..e2a0b406e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java @@ -347,7 +347,7 @@ public final String locale() { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.write("type", "{dynamic_property}"); + generator.write("type", "{dynamic_type}"); super.serializeInternal(generator, mapper); if (this.enabled != null) { generator.writeKey("enabled"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java index f0a96566f..f0f9da125 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java @@ -96,7 +96,7 @@ public enum Kind implements JsonEnum { DoubleRange("double_range"), - DynamicType("{dynamic_property}"), + DynamicType("{dynamic_type}"), Alias("alias"), @@ -433,18 +433,17 @@ public DoubleRangeProperty doubleRange() { } /** - * Is this variant instance of kind {@code {dynamic_property}}? + * Is this variant instance of kind {@code {dynamic_type}}? */ public boolean isDynamicType() { return _kind == Kind.DynamicType; } /** - * Get the {@code {dynamic_property}} variant value. + * Get the {@code {dynamic_type}} variant value. * * @throws IllegalStateException - * if the current variant is not of the {@code {dynamic_property}} - * kind. + * if the current variant is not of the {@code {dynamic_type}} kind. */ public DynamicProperty dynamicType() { return TaggedUnionUtils.get(this, Kind.DynamicType); @@ -1621,7 +1620,7 @@ protected static void setupPropertyDeserializer(ObjectDeserializer op) op.add(Builder::denseVector, DenseVectorProperty._DESERIALIZER, "dense_vector"); op.add(Builder::double_, DoubleNumberProperty._DESERIALIZER, "double"); op.add(Builder::doubleRange, DoubleRangeProperty._DESERIALIZER, "double_range"); - op.add(Builder::dynamicType, DynamicProperty._DESERIALIZER, "{dynamic_property}"); + op.add(Builder::dynamicType, DynamicProperty._DESERIALIZER, "{dynamic_type}"); op.add(Builder::alias, FieldAliasProperty._DESERIALIZER, "alias"); op.add(Builder::flattened, FlattenedProperty._DESERIALIZER, "flattened"); op.add(Builder::float_, FloatNumberProperty._DESERIALIZER, "float"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java index c4ead33dd..7b07b0d0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java @@ -261,7 +261,7 @@ public static Property doubleRange(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java index d483387ae..f845209a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java @@ -48,6 +48,8 @@ public enum RuntimeFieldType implements JsonEnum { Boolean("boolean"), + Composite("composite"), + Date("date"), Double("double"), diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java index a2869693b..1e3bc3ed5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java @@ -144,6 +144,8 @@ public final String index() { } /** + * Overrides the default analyzer. + *

* API name: {@code per_field_analyzer} */ public final Map perFieldAnalyzer() { @@ -325,6 +327,8 @@ public final Builder index(@Nullable String value) { } /** + * Overrides the default analyzer. + *

* API name: {@code per_field_analyzer} *

* Adds all entries of map to perFieldAnalyzer. @@ -335,6 +339,8 @@ public final Builder perFieldAnalyzer(Map map) { } /** + * Overrides the default analyzer. + *

* API name: {@code per_field_analyzer} *

* Adds an entry to perFieldAnalyzer. 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 d7a107e34..a8baebadc 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 @@ -34,7 +34,6 @@ import java.lang.Long; import java.lang.String; import java.util.List; -import java.util.Map; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -101,8 +100,6 @@ public class MoreLikeThisQuery extends QueryBase implements QueryVariant { @Nullable private final Integer minWordLength; - private final Map perFieldAnalyzer; - @Nullable private final String routing; @@ -134,7 +131,6 @@ private MoreLikeThisQuery(Builder builder) { this.minimumShouldMatch = builder.minimumShouldMatch; this.minTermFreq = builder.minTermFreq; this.minWordLength = builder.minWordLength; - this.perFieldAnalyzer = ApiTypeHelper.unmodifiable(builder.perFieldAnalyzer); this.routing = builder.routing; this.stopWords = ApiTypeHelper.unmodifiable(builder.stopWords); this.unlike = ApiTypeHelper.unmodifiable(builder.unlike); @@ -297,15 +293,6 @@ public final Integer minWordLength() { return this.minWordLength; } - /** - * Overrides the default analyzer. - *

- * API name: {@code per_field_analyzer} - */ - public final Map perFieldAnalyzer() { - return this.perFieldAnalyzer; - } - /** * API name: {@code routing} */ @@ -426,17 +413,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("min_word_length"); generator.write(this.minWordLength); - } - if (ApiTypeHelper.isDefined(this.perFieldAnalyzer)) { - generator.writeKey("per_field_analyzer"); - generator.writeStartObject(); - for (Map.Entry item0 : this.perFieldAnalyzer.entrySet()) { - generator.writeKey(item0.getKey()); - generator.write(item0.getValue()); - - } - generator.writeEnd(); - } if (this.routing != null) { generator.writeKey("routing"); @@ -520,9 +496,6 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Integer minWordLength; - @Nullable - private Map perFieldAnalyzer; - @Nullable private String routing; @@ -725,30 +698,6 @@ public final Builder minWordLength(@Nullable Integer value) { return this; } - /** - * Overrides the default analyzer. - *

- * API name: {@code per_field_analyzer} - *

- * Adds all entries of map to perFieldAnalyzer. - */ - public final Builder perFieldAnalyzer(Map map) { - this.perFieldAnalyzer = _mapPutAll(this.perFieldAnalyzer, map); - return this; - } - - /** - * Overrides the default analyzer. - *

- * API name: {@code per_field_analyzer} - *

- * Adds an entry to perFieldAnalyzer. - */ - public final Builder perFieldAnalyzer(String key, String value) { - this.perFieldAnalyzer = _mapPut(this.perFieldAnalyzer, key, value); - return this; - } - /** * API name: {@code routing} */ @@ -876,8 +825,6 @@ protected static void setupMoreLikeThisQueryDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class LearningToRank implements RescoreVariant, JsonpSerializable { + private final String modelId; + + private final Map params; + + // --------------------------------------------------------------------------------------------- + + private LearningToRank(Builder builder) { + + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.params = ApiTypeHelper.unmodifiable(builder.params); + + } + + public static LearningToRank of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Rescore variant kind. + */ + @Override + public Rescore.Kind _rescoreKind() { + return Rescore.Kind.LearningToRank; + } + + /** + * Required - The unique identifier of the trained model uploaded to + * Elasticsearch + *

+ * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Named parameters to be passed to the query templates used for feature + *

+ * API name: {@code params} + */ + public final Map params() { + return this.params; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("model_id"); + generator.write(this.modelId); + + if (ApiTypeHelper.isDefined(this.params)) { + generator.writeKey("params"); + generator.writeStartObject(); + for (Map.Entry item0 : this.params.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link LearningToRank}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String modelId; + + @Nullable + private Map params; + + /** + * Required - The unique identifier of the trained model uploaded to + * Elasticsearch + *

+ * API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * Named parameters to be passed to the query templates used for feature + *

+ * API name: {@code params} + *

+ * Adds all entries of map to params. + */ + public final Builder params(Map map) { + this.params = _mapPutAll(this.params, map); + return this; + } + + /** + * Named parameters to be passed to the query templates used for feature + *

+ * API name: {@code params} + *

+ * Adds an entry to params. + */ + public final Builder params(String key, JsonData value) { + this.params = _mapPut(this.params, key, value); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link LearningToRank}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public LearningToRank build() { + _checkSingleUse(); + + return new LearningToRank(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link LearningToRank} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + LearningToRank::setupLearningToRankDeserializer); + + protected static void setupLearningToRankDeserializer(ObjectDeserializer op) { + + op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(Builder::params, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "params"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Rescore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Rescore.java index d6e523391..6ebb23e05 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Rescore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Rescore.java @@ -19,6 +19,8 @@ package co.elastic.clients.elasticsearch.core.search; +import co.elastic.clients.json.JsonData; +import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -28,9 +30,12 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.OpenTaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.lang.Object; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -59,17 +64,70 @@ * specification */ @JsonpDeserializable -public class Rescore implements JsonpSerializable { - private final RescoreQuery query; +public class Rescore implements OpenTaggedUnion, JsonpSerializable { + + /** + * {@link Rescore} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + Query("query"), + + LearningToRank("learning_to_rank"), + + /** A custom {@code Rescore} defined by a plugin */ + _Custom(null) + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } @Nullable private final Integer windowSize; - // --------------------------------------------------------------------------------------------- + public Rescore(RescoreVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._rescoreKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; + + this.windowSize = null; + + } private Rescore(Builder builder) { - this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query"); + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + this._customKind = builder._customKind; + this.windowSize = builder.windowSize; } @@ -79,33 +137,82 @@ public static Rescore of(Function> fn) { } /** - * Required - API name: {@code query} + * API name: {@code window_size} */ - public final RescoreQuery query() { - return this.query; + @Nullable + public final Integer windowSize() { + return this.windowSize; } /** - * API name: {@code window_size} + * Is this variant instance of kind {@code query}? + */ + public boolean isQuery() { + return _kind == Kind.Query; + } + + /** + * Get the {@code query} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code query} kind. + */ + public RescoreQuery query() { + return TaggedUnionUtils.get(this, Kind.Query); + } + + /** + * Is this variant instance of kind {@code learning_to_rank}? */ + public boolean isLearningToRank() { + return _kind == Kind.LearningToRank; + } + + /** + * Get the {@code learning_to_rank} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code learning_to_rank} + * kind. + */ + public LearningToRank learningToRank() { + return TaggedUnionUtils.get(this, Kind.LearningToRank); + } + @Nullable - public final Integer windowSize() { - return this.windowSize; + private final String _customKind; + + /** + * Is this a custom {@code Rescore} defined by a plugin? + */ + public boolean _isCustom() { + return _kind == Kind._Custom; } /** - * Serialize this object to JSON. + * Get the actual kind when {@code _kind()} equals {@link Kind#_Custom} + * (plugin-defined variant). */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); + @Nullable + public final String _customKind() { + return _customKind; } - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + /** + * Get the custom plugin-defined variant value. + * + * @throws IllegalStateException + * if the current variant is not {@link Kind#_Custom}. + */ + public JsonData _custom() { + return TaggedUnionUtils.get(this, Kind._Custom); + } - generator.writeKey("query"); - this.query.serialize(generator, mapper); + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeStartObject(); if (this.windowSize != null) { generator.writeKey("window_size"); @@ -113,6 +220,13 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + generator.writeKey(_kind == Kind._Custom ? _customKind : _kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } + + generator.writeEnd(); + } @Override @@ -120,33 +234,14 @@ public String toString() { return JsonpUtils.toString(this); } - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link Rescore}. - */ - - public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private RescoreQuery query; + public static class Builder extends WithJsonObjectBuilderBase { + private Kind _kind; + private Object _value; + private String _customKind; @Nullable private Integer windowSize; - /** - * Required - API name: {@code query} - */ - public final Builder query(RescoreQuery value) { - this.query = value; - return this; - } - - /** - * Required - API name: {@code query} - */ - public final Builder query(Function> fn) { - return this.query(fn.apply(new RescoreQuery.Builder()).build()); - } - /** * API name: {@code window_size} */ @@ -159,33 +254,76 @@ public final Builder windowSize(@Nullable Integer value) { protected Builder self() { return this; } + public ContainerBuilder query(RescoreQuery v) { + this._kind = Kind.Query; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder query(Function> fn) { + return this.query(fn.apply(new RescoreQuery.Builder()).build()); + } + + public ContainerBuilder learningToRank(LearningToRank v) { + this._kind = Kind.LearningToRank; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder learningToRank(Function> fn) { + return this.learningToRank(fn.apply(new LearningToRank.Builder()).build()); + } /** - * Builds a {@link Rescore}. + * Define this {@code Rescore} as a plugin-defined variant. * - * @throws NullPointerException - * if some of the required fields are null. + * @param name + * the plugin-defined identifier + * @param data + * the data for this custom {@code Rescore}. It is converted + * internally to {@link JsonData}. */ - public Rescore build() { - _checkSingleUse(); + public ContainerBuilder _custom(String name, Object data) { + this._kind = Kind._Custom; + this._customKind = name; + this._value = JsonData.of(data); + return new ContainerBuilder(); + } + protected Rescore build() { + _checkSingleUse(); return new Rescore(this); } - } - // --------------------------------------------------------------------------------------------- + public class ContainerBuilder implements ObjectBuilder { - /** - * Json deserializer for {@link Rescore} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - Rescore::setupRescoreDeserializer); + /** + * API name: {@code window_size} + */ + public final ContainerBuilder windowSize(@Nullable Integer value) { + Builder.this.windowSize = value; + return this; + } + + public Rescore build() { + return Builder.this.build(); + } + } + } - protected static void setupRescoreDeserializer(ObjectDeserializer op) { + protected static void setupRescoreDeserializer(ObjectDeserializer op) { - op.add(Builder::query, RescoreQuery._DESERIALIZER, "query"); op.add(Builder::windowSize, JsonpDeserializer.integerDeserializer(), "window_size"); + op.add(Builder::query, RescoreQuery._DESERIALIZER, "query"); + op.add(Builder::learningToRank, LearningToRank._DESERIALIZER, "learning_to_rank"); + + op.setUnknownFieldHandler((builder, name, parser, mapper) -> { + JsonpUtils.ensureCustomVariantsAllowed(parser, mapper); + builder._custom(name, JsonData._DESERIALIZER.deserialize(parser, mapper)); + }); } + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Rescore::setupRescoreDeserializer, Builder::build); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreBuilders.java new file mode 100644 index 000000000..12408742f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreBuilders.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. + */ + +package co.elastic.clients.elasticsearch.core.search; + +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Builders for {@link Rescore} variants. + */ +public class RescoreBuilders { + private RescoreBuilders() { + } + + /** + * Creates a builder for the {@link RescoreQuery query} {@code Rescore} variant. + */ + public static RescoreQuery.Builder query() { + return new RescoreQuery.Builder(); + } + + /** + * Creates a Rescore of the {@link RescoreQuery query} {@code Rescore} variant. + */ + public static Rescore query(Function> fn) { + Rescore.Builder builder = new Rescore.Builder(); + builder.query(fn.apply(new RescoreQuery.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link LearningToRank learning_to_rank} + * {@code Rescore} variant. + */ + public static LearningToRank.Builder learningToRank() { + return new LearningToRank.Builder(); + } + + /** + * Creates a Rescore of the {@link LearningToRank learning_to_rank} + * {@code Rescore} variant. + */ + public static Rescore learningToRank(Function> fn) { + Rescore.Builder builder = new Rescore.Builder(); + builder.learningToRank(fn.apply(new LearningToRank.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java index fd29b30ee..0aa3cb24d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java @@ -60,7 +60,7 @@ * specification */ @JsonpDeserializable -public class RescoreQuery implements JsonpSerializable { +public class RescoreQuery implements RescoreVariant, JsonpSerializable { private final Query query; @Nullable @@ -87,6 +87,14 @@ public static RescoreQuery of(Function> fn) return fn.apply(new Builder()).build(); } + /** + * Rescore variant kind. + */ + @Override + public Rescore.Kind _rescoreKind() { + return Rescore.Kind.Query; + } + /** * Required - The query to use for rescoring. This query is only run on the * Top-K results returned by the query and post_filter diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreVariant.java new file mode 100644 index 000000000..6492d3a01 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreVariant.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package co.elastic.clients.elasticsearch.core.search; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Base interface for {@link Rescore} variants. + */ +public interface RescoreVariant { + + Rescore.Kind _rescoreKind(); + + default Rescore _toRescore() { + return new Rescore(this); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index 9cc254029..285a3fcc9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -96,13 +96,13 @@ '_global.mget.Request': '_global/mget/MultiGetRequest.ts#L25-L98', '_global.mget.Response': '_global/mget/MultiGetResponse.ts#L22-L26', '_global.mget.ResponseItem': '_global/mget/types.ts#L57-L60', -'_global.msearch.MultiSearchItem': '_global/msearch/types.ts#L214-L217', -'_global.msearch.MultiSearchResult': '_global/msearch/types.ts#L204-L207', -'_global.msearch.MultisearchBody': '_global/msearch/types.ts#L71-L202', -'_global.msearch.MultisearchHeader': '_global/msearch/types.ts#L53-L68', +'_global.msearch.MultiSearchItem': '_global/msearch/types.ts#L213-L216', +'_global.msearch.MultiSearchResult': '_global/msearch/types.ts#L203-L206', +'_global.msearch.MultisearchBody': '_global/msearch/types.ts#L70-L201', +'_global.msearch.MultisearchHeader': '_global/msearch/types.ts#L52-L67', '_global.msearch.Request': '_global/msearch/MultiSearchRequest.ts#L25-L96', '_global.msearch.Response': '_global/msearch/MultiSearchResponse.ts#L25-L27', -'_global.msearch.ResponseItem': '_global/msearch/types.ts#L209-L212', +'_global.msearch.ResponseItem': '_global/msearch/types.ts#L208-L211', '_global.msearch_template.Request': '_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L70', '_global.msearch_template.Response': '_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24', '_global.msearch_template.TemplateConfig': '_global/msearch_template/types.ts#L28-L54', @@ -182,6 +182,7 @@ '_global.search._types.InnerHits': '_global/search/_types/hits.ts#L106-L140', '_global.search._types.InnerHitsResult': '_global/search/_types/hits.ts#L84-L86', '_global.search._types.LaplaceSmoothingModel': '_global/search/_types/suggester.ts#L427-L432', +'_global.search._types.LearningToRank': '_global/search/_types/rescoring.ts#L88-L97', '_global.search._types.LinearInterpolationSmoothingModel': '_global/search/_types/suggester.ts#L434-L438', '_global.search._types.NestedIdentity': '_global/search/_types/hits.ts#L88-L92', '_global.search._types.PhraseSuggest': '_global/search/_types/suggester.ts#L57-L62', @@ -195,9 +196,9 @@ '_global.search._types.QueryBreakdown': '_global/search/_types/profile.ts#L97-L116', '_global.search._types.QueryProfile': '_global/search/_types/profile.ts#L118-L124', '_global.search._types.RegexOptions': '_global/search/_types/suggester.ts#L180-L191', -'_global.search._types.Rescore': '_global/search/_types/rescoring.ts#L23-L26', -'_global.search._types.RescoreQuery': '_global/search/_types/rescoring.ts#L28-L50', -'_global.search._types.ScoreMode': '_global/search/_types/rescoring.ts#L52-L74', +'_global.search._types.Rescore': '_global/search/_types/rescoring.ts#L25-L38', +'_global.search._types.RescoreQuery': '_global/search/_types/rescoring.ts#L40-L62', +'_global.search._types.ScoreMode': '_global/search/_types/rescoring.ts#L64-L86', '_global.search._types.SearchProfile': '_global/search/_types/profile.ts#L126-L130', '_global.search._types.ShardProfile': '_global/search/_types/profile.ts#L132-L137', '_global.search._types.SmoothingModelContainer': '_global/search/_types/suggester.ts#L442-L458', @@ -357,22 +358,22 @@ '_types.WktGeoBounds': '_types/Geo.ts#L150-L152', '_types.WriteResponseBase': '_types/Base.ts#L36-L45', '_types.aggregations.AdjacencyMatrixAggregate': '_types/aggregations/Aggregate.ts#L573-L575', -'_types.aggregations.AdjacencyMatrixAggregation': '_types/aggregations/bucket.ts#L57-L63', +'_types.aggregations.AdjacencyMatrixAggregation': '_types/aggregations/bucket.ts#L55-L61', '_types.aggregations.AdjacencyMatrixBucket': '_types/aggregations/Aggregate.ts#L577-L579', '_types.aggregations.Aggregate': '_types/aggregations/Aggregate.ts#L38-L123', '_types.aggregations.AggregateBase': '_types/aggregations/Aggregate.ts#L134-L136', -'_types.aggregations.Aggregation': '_types/aggregations/Aggregation.ts#L22-L25', -'_types.aggregations.AggregationContainer': '_types/aggregations/AggregationContainer.ts#L106-L515', -'_types.aggregations.AggregationRange': '_types/aggregations/bucket.ts#L672-L685', +'_types.aggregations.Aggregation': '_types/aggregations/Aggregation.ts#L20-L20', +'_types.aggregations.AggregationContainer': '_types/aggregations/AggregationContainer.ts#L105-L514', +'_types.aggregations.AggregationRange': '_types/aggregations/bucket.ts#L670-L683', '_types.aggregations.ArrayPercentilesItem': '_types/aggregations/Aggregate.ts#L160-L164', '_types.aggregations.AutoDateHistogramAggregate': '_types/aggregations/Aggregate.ts#L356-L360', -'_types.aggregations.AutoDateHistogramAggregation': '_types/aggregations/bucket.ts#L65-L100', +'_types.aggregations.AutoDateHistogramAggregation': '_types/aggregations/bucket.ts#L63-L98', '_types.aggregations.AverageAggregation': '_types/aggregations/metric.ts#L55-L55', '_types.aggregations.AverageBucketAggregation': '_types/aggregations/pipeline.ts#L78-L78', '_types.aggregations.AvgAggregate': '_types/aggregations/Aggregate.ts#L209-L210', '_types.aggregations.BoxPlotAggregate': '_types/aggregations/Aggregate.ts#L706-L722', '_types.aggregations.BoxplotAggregation': '_types/aggregations/metric.ts#L57-L62', -'_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L50-L55', +'_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L48-L53', '_types.aggregations.BucketCorrelationAggregation': '_types/aggregations/pipeline.ts#L129-L135', '_types.aggregations.BucketCorrelationFunction': '_types/aggregations/pipeline.ts#L137-L142', '_types.aggregations.BucketCorrelationFunctionCountCorrelation': '_types/aggregations/pipeline.ts#L144-L147', @@ -385,66 +386,66 @@ '_types.aggregations.BucketSortAggregation': '_types/aggregations/pipeline.ts#L169-L190', '_types.aggregations.Buckets': '_types/aggregations/Aggregate.ts#L316-L325', '_types.aggregations.BucketsPath': '_types/aggregations/pipeline.ts#L53-L59', -'_types.aggregations.CalendarInterval': '_types/aggregations/bucket.ts#L249-L266', +'_types.aggregations.CalendarInterval': '_types/aggregations/bucket.ts#L247-L264', '_types.aggregations.CardinalityAggregate': '_types/aggregations/Aggregate.ts#L138-L141', '_types.aggregations.CardinalityAggregation': '_types/aggregations/metric.ts#L87-L99', '_types.aggregations.CardinalityExecutionMode': '_types/aggregations/metric.ts#L64-L85', -'_types.aggregations.CategorizeTextAggregation': '_types/aggregations/bucket.ts#L1037-L1101', -'_types.aggregations.CategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1103-L1106', -'_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L735-L744', +'_types.aggregations.CategorizeTextAggregation': '_types/aggregations/bucket.ts#L1036-L1100', +'_types.aggregations.CategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1102-L1105', +'_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L733-L742', '_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L776-L777', -'_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L111-L116', +'_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L109-L114', '_types.aggregations.CompositeAggregate': '_types/aggregations/Aggregate.ts#L618-L623', -'_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L120-L136', -'_types.aggregations.CompositeAggregationBase': '_types/aggregations/bucket.ts#L157-L166', -'_types.aggregations.CompositeAggregationSource': '_types/aggregations/bucket.ts#L138-L155', +'_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L118-L134', +'_types.aggregations.CompositeAggregationBase': '_types/aggregations/bucket.ts#L155-L164', +'_types.aggregations.CompositeAggregationSource': '_types/aggregations/bucket.ts#L136-L153', '_types.aggregations.CompositeBucket': '_types/aggregations/Aggregate.ts#L625-L627', -'_types.aggregations.CompositeDateHistogramAggregation': '_types/aggregations/bucket.ts#L174-L182', -'_types.aggregations.CompositeGeoTileGridAggregation': '_types/aggregations/bucket.ts#L184-L187', -'_types.aggregations.CompositeHistogramAggregation': '_types/aggregations/bucket.ts#L170-L172', -'_types.aggregations.CompositeTermsAggregation': '_types/aggregations/bucket.ts#L168-L168', +'_types.aggregations.CompositeDateHistogramAggregation': '_types/aggregations/bucket.ts#L172-L180', +'_types.aggregations.CompositeGeoTileGridAggregation': '_types/aggregations/bucket.ts#L182-L185', +'_types.aggregations.CompositeHistogramAggregation': '_types/aggregations/bucket.ts#L168-L170', +'_types.aggregations.CompositeTermsAggregation': '_types/aggregations/bucket.ts#L166-L166', '_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L747-L755', '_types.aggregations.CumulativeCardinalityAggregation': '_types/aggregations/pipeline.ts#L192-L192', '_types.aggregations.CumulativeSumAggregation': '_types/aggregations/pipeline.ts#L194-L194', -'_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1108-L1112', +'_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1107-L1111', '_types.aggregations.DateHistogramAggregate': '_types/aggregations/Aggregate.ts#L348-L349', -'_types.aggregations.DateHistogramAggregation': '_types/aggregations/bucket.ts#L189-L247', +'_types.aggregations.DateHistogramAggregation': '_types/aggregations/bucket.ts#L187-L245', '_types.aggregations.DateHistogramBucket': '_types/aggregations/Aggregate.ts#L351-L354', '_types.aggregations.DateRangeAggregate': '_types/aggregations/Aggregate.ts#L543-L548', -'_types.aggregations.DateRangeAggregation': '_types/aggregations/bucket.ts#L268-L294', -'_types.aggregations.DateRangeExpression': '_types/aggregations/bucket.ts#L305-L318', +'_types.aggregations.DateRangeAggregation': '_types/aggregations/bucket.ts#L266-L292', +'_types.aggregations.DateRangeExpression': '_types/aggregations/bucket.ts#L303-L316', '_types.aggregations.DerivativeAggregate': '_types/aggregations/Aggregate.ts#L227-L231', '_types.aggregations.DerivativeAggregation': '_types/aggregations/pipeline.ts#L196-L196', -'_types.aggregations.DiversifiedSamplerAggregation': '_types/aggregations/bucket.ts#L320-L341', +'_types.aggregations.DiversifiedSamplerAggregation': '_types/aggregations/bucket.ts#L318-L339', '_types.aggregations.DoubleTermsAggregate': '_types/aggregations/Aggregate.ts#L411-L416', '_types.aggregations.DoubleTermsBucket': '_types/aggregations/Aggregate.ts#L418-L421', '_types.aggregations.EwmaModelSettings': '_types/aggregations/pipeline.ts#L267-L269', '_types.aggregations.EwmaMovingAverageAggregation': '_types/aggregations/pipeline.ts#L252-L255', -'_types.aggregations.ExtendedBounds': '_types/aggregations/bucket.ts#L489-L498', +'_types.aggregations.ExtendedBounds': '_types/aggregations/bucket.ts#L487-L496', '_types.aggregations.ExtendedStatsAggregate': '_types/aggregations/Aggregate.ts#L278-L296', '_types.aggregations.ExtendedStatsAggregation': '_types/aggregations/metric.ts#L101-L106', '_types.aggregations.ExtendedStatsBucketAggregate': '_types/aggregations/Aggregate.ts#L298-L299', '_types.aggregations.ExtendedStatsBucketAggregation': '_types/aggregations/pipeline.ts#L198-L203', -'_types.aggregations.FieldDateMath': '_types/aggregations/bucket.ts#L296-L303', +'_types.aggregations.FieldDateMath': '_types/aggregations/bucket.ts#L294-L301', '_types.aggregations.FilterAggregate': '_types/aggregations/Aggregate.ts#L495-L496', '_types.aggregations.FiltersAggregate': '_types/aggregations/Aggregate.ts#L568-L569', -'_types.aggregations.FiltersAggregation': '_types/aggregations/bucket.ts#L358-L378', +'_types.aggregations.FiltersAggregation': '_types/aggregations/bucket.ts#L356-L376', '_types.aggregations.FiltersBucket': '_types/aggregations/Aggregate.ts#L571-L571', '_types.aggregations.FormatMetricAggregationBase': '_types/aggregations/metric.ts#L47-L49', '_types.aggregations.FormattableMetricAggregation': '_types/aggregations/metric.ts#L51-L53', '_types.aggregations.FrequentItemSetsAggregate': '_types/aggregations/Aggregate.ts#L639-L640', -'_types.aggregations.FrequentItemSetsAggregation': '_types/aggregations/bucket.ts#L1159-L1183', +'_types.aggregations.FrequentItemSetsAggregation': '_types/aggregations/bucket.ts#L1158-L1182', '_types.aggregations.FrequentItemSetsBucket': '_types/aggregations/Aggregate.ts#L642-L645', -'_types.aggregations.FrequentItemSetsField': '_types/aggregations/bucket.ts#L1145-L1157', +'_types.aggregations.FrequentItemSetsField': '_types/aggregations/bucket.ts#L1144-L1156', '_types.aggregations.GapPolicy': '_types/aggregations/pipeline.ts#L61-L76', '_types.aggregations.GeoBoundsAggregate': '_types/aggregations/Aggregate.ts#L303-L306', '_types.aggregations.GeoBoundsAggregation': '_types/aggregations/metric.ts#L108-L114', '_types.aggregations.GeoCentroidAggregate': '_types/aggregations/Aggregate.ts#L308-L312', '_types.aggregations.GeoCentroidAggregation': '_types/aggregations/metric.ts#L116-L119', '_types.aggregations.GeoDistanceAggregate': '_types/aggregations/Aggregate.ts#L550-L554', -'_types.aggregations.GeoDistanceAggregation': '_types/aggregations/bucket.ts#L380-L403', +'_types.aggregations.GeoDistanceAggregation': '_types/aggregations/bucket.ts#L378-L401', '_types.aggregations.GeoHashGridAggregate': '_types/aggregations/Aggregate.ts#L506-L508', -'_types.aggregations.GeoHashGridAggregation': '_types/aggregations/bucket.ts#L405-L430', +'_types.aggregations.GeoHashGridAggregation': '_types/aggregations/bucket.ts#L403-L428', '_types.aggregations.GeoHashGridBucket': '_types/aggregations/Aggregate.ts#L510-L512', '_types.aggregations.GeoHexGridAggregate': '_types/aggregations/Aggregate.ts#L522-L523', '_types.aggregations.GeoHexGridBucket': '_types/aggregations/Aggregate.ts#L525-L527', @@ -453,17 +454,17 @@ '_types.aggregations.GeoLinePoint': '_types/aggregations/metric.ts#L155-L160', '_types.aggregations.GeoLineSort': '_types/aggregations/metric.ts#L148-L153', '_types.aggregations.GeoTileGridAggregate': '_types/aggregations/Aggregate.ts#L514-L516', -'_types.aggregations.GeoTileGridAggregation': '_types/aggregations/bucket.ts#L432-L458', +'_types.aggregations.GeoTileGridAggregation': '_types/aggregations/bucket.ts#L430-L456', '_types.aggregations.GeoTileGridBucket': '_types/aggregations/Aggregate.ts#L518-L520', -'_types.aggregations.GeohexGridAggregation': '_types/aggregations/bucket.ts#L460-L485', +'_types.aggregations.GeohexGridAggregation': '_types/aggregations/bucket.ts#L458-L483', '_types.aggregations.GlobalAggregate': '_types/aggregations/Aggregate.ts#L492-L493', -'_types.aggregations.GlobalAggregation': '_types/aggregations/bucket.ts#L487-L487', -'_types.aggregations.GoogleNormalizedDistanceHeuristic': '_types/aggregations/bucket.ts#L746-L751', +'_types.aggregations.GlobalAggregation': '_types/aggregations/bucket.ts#L485-L485', +'_types.aggregations.GoogleNormalizedDistanceHeuristic': '_types/aggregations/bucket.ts#L744-L749', '_types.aggregations.HdrMethod': '_types/aggregations/metric.ts#L216-L221', '_types.aggregations.HdrPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L169-L170', '_types.aggregations.HdrPercentilesAggregate': '_types/aggregations/Aggregate.ts#L166-L167', '_types.aggregations.HistogramAggregate': '_types/aggregations/Aggregate.ts#L340-L341', -'_types.aggregations.HistogramAggregation': '_types/aggregations/bucket.ts#L500-L546', +'_types.aggregations.HistogramAggregation': '_types/aggregations/bucket.ts#L498-L544', '_types.aggregations.HistogramBucket': '_types/aggregations/Aggregate.ts#L343-L346', '_types.aggregations.HoltLinearModelSettings': '_types/aggregations/pipeline.ts#L271-L274', '_types.aggregations.HoltMovingAverageAggregation': '_types/aggregations/pipeline.ts#L257-L260', @@ -477,11 +478,11 @@ '_types.aggregations.InferenceFeatureImportance': '_types/aggregations/Aggregate.ts#L678-L682', '_types.aggregations.InferenceTopClassEntry': '_types/aggregations/Aggregate.ts#L672-L676', '_types.aggregations.IpPrefixAggregate': '_types/aggregations/Aggregate.ts#L629-L630', -'_types.aggregations.IpPrefixAggregation': '_types/aggregations/bucket.ts#L1114-L1143', +'_types.aggregations.IpPrefixAggregation': '_types/aggregations/bucket.ts#L1113-L1142', '_types.aggregations.IpPrefixBucket': '_types/aggregations/Aggregate.ts#L632-L637', '_types.aggregations.IpRangeAggregate': '_types/aggregations/Aggregate.ts#L556-L558', -'_types.aggregations.IpRangeAggregation': '_types/aggregations/bucket.ts#L548-L557', -'_types.aggregations.IpRangeAggregationRange': '_types/aggregations/bucket.ts#L559-L572', +'_types.aggregations.IpRangeAggregation': '_types/aggregations/bucket.ts#L546-L555', +'_types.aggregations.IpRangeAggregationRange': '_types/aggregations/bucket.ts#L557-L570', '_types.aggregations.IpRangeBucket': '_types/aggregations/Aggregate.ts#L560-L564', '_types.aggregations.LinearMovingAverageAggregation': '_types/aggregations/pipeline.ts#L242-L245', '_types.aggregations.LongRareTermsAggregate': '_types/aggregations/Aggregate.ts#L431-L436', @@ -501,28 +502,28 @@ '_types.aggregations.MinAggregate': '_types/aggregations/Aggregate.ts#L197-L198', '_types.aggregations.MinAggregation': '_types/aggregations/metric.ts#L172-L172', '_types.aggregations.MinBucketAggregation': '_types/aggregations/pipeline.ts#L226-L226', -'_types.aggregations.MinimumInterval': '_types/aggregations/bucket.ts#L102-L109', +'_types.aggregations.MinimumInterval': '_types/aggregations/bucket.ts#L100-L107', '_types.aggregations.MissingAggregate': '_types/aggregations/Aggregate.ts#L483-L484', -'_types.aggregations.MissingAggregation': '_types/aggregations/bucket.ts#L574-L580', -'_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L518-L522', +'_types.aggregations.MissingAggregation': '_types/aggregations/bucket.ts#L572-L578', +'_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L517-L521', '_types.aggregations.MovingAverageAggregation': '_types/aggregations/pipeline.ts#L228-L234', '_types.aggregations.MovingAverageAggregationBase': '_types/aggregations/pipeline.ts#L236-L240', '_types.aggregations.MovingFunctionAggregation': '_types/aggregations/pipeline.ts#L288-L303', '_types.aggregations.MovingPercentilesAggregation': '_types/aggregations/pipeline.ts#L305-L317', '_types.aggregations.MultiBucketAggregateBase': '_types/aggregations/Aggregate.ts#L327-L329', '_types.aggregations.MultiBucketBase': '_types/aggregations/Aggregate.ts#L331-L338', -'_types.aggregations.MultiTermLookup': '_types/aggregations/bucket.ts#L624-L634', +'_types.aggregations.MultiTermLookup': '_types/aggregations/bucket.ts#L622-L632', '_types.aggregations.MultiTermsAggregate': '_types/aggregations/Aggregate.ts#L461-L463', -'_types.aggregations.MultiTermsAggregation': '_types/aggregations/bucket.ts#L582-L622', +'_types.aggregations.MultiTermsAggregation': '_types/aggregations/bucket.ts#L580-L620', '_types.aggregations.MultiTermsBucket': '_types/aggregations/Aggregate.ts#L465-L469', -'_types.aggregations.MutualInformationHeuristic': '_types/aggregations/bucket.ts#L753-L762', +'_types.aggregations.MutualInformationHeuristic': '_types/aggregations/bucket.ts#L751-L760', '_types.aggregations.NestedAggregate': '_types/aggregations/Aggregate.ts#L486-L487', -'_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L636-L641', +'_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L634-L639', '_types.aggregations.NormalizeAggregation': '_types/aggregations/pipeline.ts#L319-L324', '_types.aggregations.NormalizeMethod': '_types/aggregations/pipeline.ts#L326-L352', '_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L779-L780', -'_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L643-L648', -'_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L764-L764', +'_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L641-L646', +'_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L762-L762', '_types.aggregations.PercentileRanksAggregation': '_types/aggregations/metric.ts#L174-L193', '_types.aggregations.Percentiles': '_types/aggregations/Aggregate.ts#L150-L151', '_types.aggregations.PercentilesAggregateBase': '_types/aggregations/Aggregate.ts#L146-L148', @@ -531,18 +532,18 @@ '_types.aggregations.PercentilesBucketAggregation': '_types/aggregations/pipeline.ts#L354-L359', '_types.aggregations.PipelineAggregationBase': '_types/aggregations/pipeline.ts#L39-L51', '_types.aggregations.RangeAggregate': '_types/aggregations/Aggregate.ts#L531-L532', -'_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L650-L670', +'_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L648-L668', '_types.aggregations.RangeBucket': '_types/aggregations/Aggregate.ts#L534-L541', -'_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L687-L717', +'_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L685-L715', '_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L741-L745', '_types.aggregations.RateAggregation': '_types/aggregations/metric.ts#L230-L241', '_types.aggregations.RateMode': '_types/aggregations/metric.ts#L243-L252', '_types.aggregations.ReverseNestedAggregate': '_types/aggregations/Aggregate.ts#L489-L490', -'_types.aggregations.ReverseNestedAggregation': '_types/aggregations/bucket.ts#L719-L725', +'_types.aggregations.ReverseNestedAggregation': '_types/aggregations/bucket.ts#L717-L723', '_types.aggregations.SamplerAggregate': '_types/aggregations/Aggregate.ts#L498-L499', -'_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L727-L733', -'_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L343-L356', -'_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L766-L768', +'_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L725-L731', +'_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L341-L354', +'_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L764-L766', '_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L649-L652', '_types.aggregations.ScriptedMetricAggregation': '_types/aggregations/metric.ts#L254-L280', '_types.aggregations.SerialDifferencingAggregation': '_types/aggregations/pipeline.ts#L361-L367', @@ -551,9 +552,9 @@ '_types.aggregations.SignificantStringTermsAggregate': '_types/aggregations/Aggregate.ts#L602-L604', '_types.aggregations.SignificantStringTermsBucket': '_types/aggregations/Aggregate.ts#L606-L608', '_types.aggregations.SignificantTermsAggregateBase': '_types/aggregations/Aggregate.ts#L581-L586', -'_types.aggregations.SignificantTermsAggregation': '_types/aggregations/bucket.ts#L770-L834', +'_types.aggregations.SignificantTermsAggregation': '_types/aggregations/bucket.ts#L768-L832', '_types.aggregations.SignificantTermsBucketBase': '_types/aggregations/Aggregate.ts#L592-L595', -'_types.aggregations.SignificantTextAggregation': '_types/aggregations/bucket.ts#L836-L908', +'_types.aggregations.SignificantTextAggregation': '_types/aggregations/bucket.ts#L834-L906', '_types.aggregations.SimpleMovingAverageAggregation': '_types/aggregations/pipeline.ts#L247-L250', '_types.aggregations.SimpleValueAggregate': '_types/aggregations/Aggregate.ts#L224-L225', '_types.aggregations.SingleBucketAggregateBase': '_types/aggregations/Aggregate.ts#L473-L481', @@ -580,13 +581,13 @@ '_types.aggregations.TTestAggregation': '_types/aggregations/metric.ts#L294-L308', '_types.aggregations.TTestType': '_types/aggregations/metric.ts#L322-L335', '_types.aggregations.TermsAggregateBase': '_types/aggregations/Aggregate.ts#L377-L382', -'_types.aggregations.TermsAggregation': '_types/aggregations/bucket.ts#L910-L970', -'_types.aggregations.TermsAggregationCollectMode': '_types/aggregations/bucket.ts#L980-L989', -'_types.aggregations.TermsAggregationExecutionHint': '_types/aggregations/bucket.ts#L991-L996', +'_types.aggregations.TermsAggregation': '_types/aggregations/bucket.ts#L908-L968', +'_types.aggregations.TermsAggregationCollectMode': '_types/aggregations/bucket.ts#L978-L987', +'_types.aggregations.TermsAggregationExecutionHint': '_types/aggregations/bucket.ts#L989-L994', '_types.aggregations.TermsBucketBase': '_types/aggregations/Aggregate.ts#L391-L393', -'_types.aggregations.TermsExclude': '_types/aggregations/bucket.ts#L1001-L1002', -'_types.aggregations.TermsInclude': '_types/aggregations/bucket.ts#L998-L999', -'_types.aggregations.TermsPartition': '_types/aggregations/bucket.ts#L1004-L1013', +'_types.aggregations.TermsExclude': '_types/aggregations/bucket.ts#L999-L1000', +'_types.aggregations.TermsInclude': '_types/aggregations/bucket.ts#L996-L997', +'_types.aggregations.TermsPartition': '_types/aggregations/bucket.ts#L1002-L1011', '_types.aggregations.TestPopulation': '_types/aggregations/metric.ts#L310-L320', '_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L654-L657', '_types.aggregations.TopHitsAggregation': '_types/aggregations/metric.ts#L337-L392', @@ -602,7 +603,7 @@ '_types.aggregations.ValueCountAggregation': '_types/aggregations/metric.ts#L417-L417', '_types.aggregations.ValueType': '_types/aggregations/metric.ts#L419-L430', '_types.aggregations.VariableWidthHistogramAggregate': '_types/aggregations/Aggregate.ts#L362-L364', -'_types.aggregations.VariableWidthHistogramAggregation': '_types/aggregations/bucket.ts#L1015-L1035', +'_types.aggregations.VariableWidthHistogramAggregation': '_types/aggregations/bucket.ts#L1013-L1034', '_types.aggregations.VariableWidthHistogramBucket': '_types/aggregations/Aggregate.ts#L366-L373', '_types.aggregations.WeightedAverageAggregation': '_types/aggregations/metric.ts#L432-L446', '_types.aggregations.WeightedAverageValue': '_types/aggregations/metric.ts#L448-L458', @@ -628,7 +629,7 @@ '_types.analysis.ElisionTokenFilter': '_types/analysis/token_filters.ts#L187-L192', '_types.analysis.FingerprintAnalyzer': '_types/analysis/analyzers.ts#L37-L45', '_types.analysis.FingerprintTokenFilter': '_types/analysis/token_filters.ts#L194-L198', -'_types.analysis.HtmlStripCharFilter': '_types/analysis/char_filters.ts#L43-L45', +'_types.analysis.HtmlStripCharFilter': '_types/analysis/char_filters.ts#L43-L46', '_types.analysis.HunspellTokenFilter': '_types/analysis/token_filters.ts#L200-L206', '_types.analysis.HyphenationDecompounderTokenFilter': '_types/analysis/token_filters.ts#L58-L60', '_types.analysis.IcuAnalyzer': '_types/analysis/icu-plugin.ts#L67-L71', @@ -667,7 +668,7 @@ '_types.analysis.LowercaseNormalizer': '_types/analysis/normalizers.ts#L26-L28', '_types.analysis.LowercaseTokenFilter': '_types/analysis/token_filters.ts#L255-L258', '_types.analysis.LowercaseTokenizer': '_types/analysis/tokenizers.ts#L71-L73', -'_types.analysis.MappingCharFilter': '_types/analysis/char_filters.ts#L47-L51', +'_types.analysis.MappingCharFilter': '_types/analysis/char_filters.ts#L48-L52', '_types.analysis.MultiplexerTokenFilter': '_types/analysis/token_filters.ts#L260-L264', '_types.analysis.NGramTokenFilter': '_types/analysis/token_filters.ts#L266-L271', '_types.analysis.NGramTokenizer': '_types/analysis/tokenizers.ts#L39-L45', @@ -679,7 +680,7 @@ '_types.analysis.PathHierarchyTokenizer': '_types/analysis/tokenizers.ts#L89-L96', '_types.analysis.PatternAnalyzer': '_types/analysis/analyzers.ts#L74-L81', '_types.analysis.PatternCaptureTokenFilter': '_types/analysis/token_filters.ts#L278-L282', -'_types.analysis.PatternReplaceCharFilter': '_types/analysis/char_filters.ts#L53-L58', +'_types.analysis.PatternReplaceCharFilter': '_types/analysis/char_filters.ts#L54-L59', '_types.analysis.PatternReplaceTokenFilter': '_types/analysis/token_filters.ts#L284-L290', '_types.analysis.PatternTokenizer': '_types/analysis/tokenizers.ts#L98-L103', '_types.analysis.PhoneticEncoder': '_types/analysis/phonetic-plugin.ts#L23-L36', @@ -781,7 +782,7 @@ '_types.mapping.RoutingField': '_types/mapping/meta-fields.ts#L50-L52', '_types.mapping.RuntimeField': '_types/mapping/RuntimeFields.ts#L26-L48', '_types.mapping.RuntimeFieldFetchFields': '_types/mapping/RuntimeFields.ts#L50-L54', -'_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L56-L65', +'_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L56-L66', '_types.mapping.ScaledFloatNumberProperty': '_types/mapping/core.ts#L174-L178', '_types.mapping.SearchAsYouTypeProperty': '_types/mapping/core.ts#L198-L208', '_types.mapping.ShapeProperty': '_types/mapping/geo.ts#L73-L85', @@ -844,14 +845,14 @@ '_types.query_dsl.IntervalsQuery': '_types/query_dsl/fulltext.ts#L235-L263', '_types.query_dsl.IntervalsWildcard': '_types/query_dsl/fulltext.ts#L265-L280', '_types.query_dsl.Like': '_types/query_dsl/specialized.ts#L186-L191', -'_types.query_dsl.LikeDocument': '_types/query_dsl/specialized.ts#L165-L184', +'_types.query_dsl.LikeDocument': '_types/query_dsl/specialized.ts#L162-L184', '_types.query_dsl.MatchAllQuery': '_types/query_dsl/MatchAllQuery.ts#L22-L22', '_types.query_dsl.MatchBoolPrefixQuery': '_types/query_dsl/fulltext.ts#L349-L403', '_types.query_dsl.MatchNoneQuery': '_types/query_dsl/MatchNoneQuery.ts#L22-L22', '_types.query_dsl.MatchPhrasePrefixQuery': '_types/query_dsl/fulltext.ts#L428-L454', '_types.query_dsl.MatchPhraseQuery': '_types/query_dsl/fulltext.ts#L405-L426', '_types.query_dsl.MatchQuery': '_types/query_dsl/fulltext.ts#L282-L347', -'_types.query_dsl.MoreLikeThisQuery': '_types/query_dsl/specialized.ts#L78-L163', +'_types.query_dsl.MoreLikeThisQuery': '_types/query_dsl/specialized.ts#L78-L160', '_types.query_dsl.MultiMatchQuery': '_types/query_dsl/fulltext.ts#L456-L539', '_types.query_dsl.MultiValueMode': '_types/query_dsl/compound.ts#L343-L360', '_types.query_dsl.NestedQuery': '_types/query_dsl/joining.ts#L106-L130', @@ -1469,10 +1470,10 @@ 'indices.shard_stores.ShardStoreWrapper': 'indices/shard_stores/types.ts#L56-L58', 'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L75', 'indices.shrink.Response': 'indices/shrink/IndicesShrinkResponse.ts#L22-L28', -'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L33-L115', -'indices.simulate_index_template.Response': 'indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L20-L22', +'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L24-L49', +'indices.simulate_index_template.Response': 'indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30', 'indices.simulate_template.Overlapping': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42', -'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L25-L61', +'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L114', 'indices.simulate_template.Response': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31', 'indices.simulate_template.Template': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37', 'indices.split.Request': 'indices/split/IndicesSplitRequest.ts#L27-L74', @@ -1640,19 +1641,19 @@ 'ml._types.CategorizationAnalyzerDefinition': 'ml/_types/Analysis.ts#L184-L197', 'ml._types.CategorizationStatus': 'ml/_types/Model.ts#L83-L86', 'ml._types.Category': 'ml/_types/Category.ts#L23-L49', -'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L239-L252', -'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L233-L237', +'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L238-L251', +'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L232-L236', 'ml._types.ClassificationInferenceOptions': 'ml/_types/inference.ts#L93-L108', 'ml._types.ConditionOperator': 'ml/_types/Rule.ts#L74-L79', 'ml._types.DataCounts': 'ml/_types/Job.ts#L352-L372', 'ml._types.DataDescription': 'ml/_types/Job.ts#L374-L390', -'ml._types.Datafeed': 'ml/_types/Datafeed.ts#L37-L58', +'ml._types.Datafeed': 'ml/_types/Datafeed.ts#L36-L57', 'ml._types.DatafeedAuthorization': 'ml/_types/Authorization.ts#L31-L43', -'ml._types.DatafeedConfig': 'ml/_types/Datafeed.ts#L60-L117', -'ml._types.DatafeedRunningState': 'ml/_types/Datafeed.ts#L198-L212', -'ml._types.DatafeedState': 'ml/_types/Datafeed.ts#L133-L138', -'ml._types.DatafeedStats': 'ml/_types/Datafeed.ts#L140-L169', -'ml._types.DatafeedTimingStats': 'ml/_types/Datafeed.ts#L171-L196', +'ml._types.DatafeedConfig': 'ml/_types/Datafeed.ts#L59-L116', +'ml._types.DatafeedRunningState': 'ml/_types/Datafeed.ts#L197-L211', +'ml._types.DatafeedState': 'ml/_types/Datafeed.ts#L132-L137', +'ml._types.DatafeedStats': 'ml/_types/Datafeed.ts#L139-L168', +'ml._types.DatafeedTimingStats': 'ml/_types/Datafeed.ts#L170-L195', 'ml._types.DataframeAnalysis': 'ml/_types/DataframeAnalytics.ts#L134-L213', 'ml._types.DataframeAnalysisAnalyzedFields': 'ml/_types/DataframeAnalytics.ts#L238-L244', 'ml._types.DataframeAnalysisClassification': 'ml/_types/DataframeAnalytics.ts#L227-L236', @@ -1690,7 +1691,7 @@ 'ml._types.DataframeEvaluationRegressionMetricsHuber': 'ml/_types/DataframeEvaluation.ts#L117-L120', 'ml._types.DataframeEvaluationRegressionMetricsMsle': 'ml/_types/DataframeEvaluation.ts#L112-L115', 'ml._types.DataframeState': 'ml/_types/Dataframe.ts#L20-L26', -'ml._types.DelayedDataCheckConfig': 'ml/_types/Datafeed.ts#L119-L130', +'ml._types.DelayedDataCheckConfig': 'ml/_types/Datafeed.ts#L118-L129', 'ml._types.DeploymentAllocationState': 'ml/_types/TrainedModel.ts#L289-L302', 'ml._types.DeploymentAssignmentState': 'ml/_types/TrainedModel.ts#L304-L309', 'ml._types.DeploymentState': 'ml/_types/TrainedModel.ts#L274-L287', @@ -1745,7 +1746,7 @@ 'ml._types.RoutingState': 'ml/_types/TrainedModel.ts#L351-L372', 'ml._types.RuleAction': 'ml/_types/Rule.ts#L41-L50', 'ml._types.RuleCondition': 'ml/_types/Rule.ts#L52-L65', -'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L214-L231', +'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L213-L230', 'ml._types.SnapshotUpgradeState': 'ml/_types/Model.ts#L94-L99', 'ml._types.TextClassificationInferenceOptions': 'ml/_types/inference.ts#L189-L199', 'ml._types.TextClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L363-L372', @@ -2711,10 +2712,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/76da5bd28f23df7f75a6c16eead9e75045f6f7bb/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/21f5860b8119dcc2e1fdecb371c64c647e5bad07/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java index d574df141..97b56770b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java @@ -312,6 +312,19 @@ public final CompletableFuture putLifecycle( return putLifecycle(fn.apply(new PutLifecycleRequest.Builder()).build()); } + /** + * Creates a lifecycle policy + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putLifecycle() { + return this.transport.performRequestAsync(new PutLifecycleRequest.Builder().build(), + PutLifecycleRequest._ENDPOINT, this.transportOptions); + } + // ----- Endpoint: ilm.remove_policy /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java index b8d8d5bf7..c485b8c36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java @@ -321,6 +321,19 @@ public final PutLifecycleResponse putLifecycle( return putLifecycle(fn.apply(new PutLifecycleRequest.Builder()).build()); } + /** + * Creates a lifecycle policy + * + * @see Documentation + * on elastic.co + */ + + public PutLifecycleResponse putLifecycle() throws IOException, ElasticsearchException { + return this.transport.performRequest(new PutLifecycleRequest.Builder().build(), PutLifecycleRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: ilm.remove_policy /** 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 5766c5f74..d2e40f9ac 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 @@ -30,7 +30,6 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.endpoints.SimpleEndpoint; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; @@ -69,6 +68,7 @@ public class PutLifecycleRequest extends RequestBase implements JsonpSerializabl @Nullable private final Time masterTimeout; + @Nullable private final String name; @Nullable @@ -82,7 +82,7 @@ public class PutLifecycleRequest extends RequestBase implements JsonpSerializabl private PutLifecycleRequest(Builder builder) { this.masterTimeout = builder.masterTimeout; - this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.name = builder.name; this.policy = builder.policy; this.timeout = builder.timeout; @@ -104,10 +104,11 @@ public final Time masterTimeout() { } /** - * Required - Identifier for the policy. + * Identifier for the policy. *

* API name: {@code policy} */ + @Nullable public final String name() { return this.name; } @@ -162,6 +163,7 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + @Nullable private String name; @Nullable @@ -192,11 +194,11 @@ public final Builder masterTimeout(Function> f } /** - * Required - Identifier for the policy. + * Identifier for the policy. *

* API name: {@code policy} */ - public final Builder name(String value) { + public final Builder name(@Nullable String value) { this.name = value; return this; } @@ -289,7 +291,8 @@ protected static void setupPutLifecycleRequestDeserializer(ObjectDeserializerAPI * specification */ -@JsonpDeserializable -public class SimulateIndexTemplateRequest extends RequestBase implements JsonpSerializable { - private final Map meta; - - @Nullable - private final Boolean allowAutoCreate; - - private final List composedOf; - - @Nullable - private final Boolean create; - - @Nullable - private final DataStreamVisibility dataStream; +public class SimulateIndexTemplateRequest extends RequestBase { @Nullable private final Boolean includeDefaults; - private final List indexPatterns; - @Nullable private final Time masterTimeout; private final String name; - @Nullable - private final Integer priority; - - @Nullable - private final IndexTemplateMapping template; - - @Nullable - private final Long version; - // --------------------------------------------------------------------------------------------- private SimulateIndexTemplateRequest(Builder builder) { - this.meta = ApiTypeHelper.unmodifiable(builder.meta); - this.allowAutoCreate = builder.allowAutoCreate; - this.composedOf = ApiTypeHelper.unmodifiable(builder.composedOf); - this.create = builder.create; - this.dataStream = builder.dataStream; this.includeDefaults = builder.includeDefaults; - this.indexPatterns = ApiTypeHelper.unmodifiable(builder.indexPatterns); this.masterTimeout = builder.masterTimeout; this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); - this.priority = builder.priority; - this.template = builder.template; - this.version = builder.version; } @@ -126,68 +86,6 @@ public static SimulateIndexTemplateRequest of(Function - * API name: {@code _meta} - */ - public final Map meta() { - return this.meta; - } - - /** - * This setting overrides the value of the action.auto_create_index - * cluster setting. If set to true in a template, then indices can - * be automatically created using that template even if auto-creation of indices - * is disabled via actions.auto_create_index. If set to - * false, then indices or data streams matching the template must - * always be explicitly created, and may never be automatically created. - *

- * API name: {@code allow_auto_create} - */ - @Nullable - public final Boolean allowAutoCreate() { - return this.allowAutoCreate; - } - - /** - * An ordered list of component template names. Component templates are merged - * in the order specified, meaning that the last component template specified - * has the highest precedence. - *

- * API name: {@code composed_of} - */ - public final List composedOf() { - return this.composedOf; - } - - /** - * If true, the template passed in the body is only used if no - * existing 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 - public final Boolean create() { - return this.create; - } - - /** - * If this object is included, the template is used to create data streams and - * their backing indices. Supports an empty object. Data streams require a - * matching index template with a data_stream object. - *

- * API name: {@code data_stream} - */ - @Nullable - public final DataStreamVisibility dataStream() { - return this.dataStream; - } - /** * If true, returns all relevant default configurations for the index template. *

@@ -198,16 +96,6 @@ public final Boolean includeDefaults() { return this.includeDefaults; } - /** - * Array of wildcard (*) expressions used to match the names of - * data streams and indices during creation. - *

- * API name: {@code index_patterns} - */ - public final List indexPatterns() { - return this.indexPatterns; - } - /** * 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. @@ -220,7 +108,7 @@ public final Time masterTimeout() { } /** - * Required - Index or template name to simulate + * Required - Name of the index to simulate *

* API name: {@code name} */ @@ -228,112 +116,6 @@ public final String name() { return this.name; } - /** - * Priority to determine index template precedence when a new data stream or - * index is created. The index template with the highest priority is chosen. If - * no priority is specified the template is treated as though it is of priority - * 0 (lowest priority). This number is not automatically generated by - * Elasticsearch. - *

- * API name: {@code priority} - */ - @Nullable - public final Integer priority() { - return this.priority; - } - - /** - * Template to be applied. It may optionally include an aliases, - * mappings, or settings configuration. - *

- * API name: {@code template} - */ - @Nullable - public final IndexTemplateMapping template() { - return this.template; - } - - /** - * Version number used to manage index templates externally. This number is not - * automatically generated by Elasticsearch. - *

- * API name: {@code version} - */ - @Nullable - public final Long version() { - return this.version; - } - - /** - * Serialize this object to JSON. - */ - public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (ApiTypeHelper.isDefined(this.meta)) { - generator.writeKey("_meta"); - generator.writeStartObject(); - for (Map.Entry item0 : this.meta.entrySet()) { - generator.writeKey(item0.getKey()); - item0.getValue().serialize(generator, mapper); - - } - generator.writeEnd(); - - } - if (this.allowAutoCreate != null) { - generator.writeKey("allow_auto_create"); - generator.write(this.allowAutoCreate); - - } - if (ApiTypeHelper.isDefined(this.composedOf)) { - generator.writeKey("composed_of"); - generator.writeStartArray(); - for (String item0 : this.composedOf) { - generator.write(item0); - - } - generator.writeEnd(); - - } - if (this.dataStream != null) { - generator.writeKey("data_stream"); - this.dataStream.serialize(generator, mapper); - - } - if (ApiTypeHelper.isDefined(this.indexPatterns)) { - generator.writeKey("index_patterns"); - generator.writeStartArray(); - for (String item0 : this.indexPatterns) { - generator.write(item0); - - } - generator.writeEnd(); - - } - if (this.priority != null) { - generator.writeKey("priority"); - generator.write(this.priority); - - } - if (this.template != null) { - generator.writeKey("template"); - this.template.serialize(generator, mapper); - - } - if (this.version != null) { - generator.writeKey("version"); - generator.write(this.version); - - } - - } - // --------------------------------------------------------------------------------------------- /** @@ -343,148 +125,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - @Nullable - private Map meta; - - @Nullable - private Boolean allowAutoCreate; - - @Nullable - private List composedOf; - - @Nullable - private Boolean create; - - @Nullable - private DataStreamVisibility dataStream; - @Nullable private Boolean includeDefaults; - @Nullable - private List indexPatterns; - @Nullable private Time masterTimeout; private String name; - @Nullable - private Integer priority; - - @Nullable - private IndexTemplateMapping template; - - @Nullable - private Long version; - - /** - * Optional user metadata about the index template. May have any contents. This - * map is not automatically generated by Elasticsearch. - *

- * API name: {@code _meta} - *

- * Adds all entries of map to meta. - */ - public final Builder meta(Map map) { - this.meta = _mapPutAll(this.meta, map); - return this; - } - - /** - * Optional user metadata about the index template. May have any contents. This - * map is not automatically generated by Elasticsearch. - *

- * API name: {@code _meta} - *

- * Adds an entry to meta. - */ - public final Builder meta(String key, JsonData value) { - this.meta = _mapPut(this.meta, key, value); - return this; - } - - /** - * This setting overrides the value of the action.auto_create_index - * cluster setting. If set to true in a template, then indices can - * be automatically created using that template even if auto-creation of indices - * is disabled via actions.auto_create_index. If set to - * false, then indices or data streams matching the template must - * always be explicitly created, and may never be automatically created. - *

- * API name: {@code allow_auto_create} - */ - public final Builder allowAutoCreate(@Nullable Boolean value) { - this.allowAutoCreate = value; - return this; - } - - /** - * An ordered list of component template names. Component templates are merged - * in the order specified, meaning that the last component template specified - * has the highest precedence. - *

- * API name: {@code composed_of} - *

- * Adds all elements of list to composedOf. - */ - public final Builder composedOf(List list) { - this.composedOf = _listAddAll(this.composedOf, list); - return this; - } - - /** - * An ordered list of component template names. Component templates are merged - * in the order specified, meaning that the last component template specified - * has the highest precedence. - *

- * API name: {@code composed_of} - *

- * Adds one or more values to composedOf. - */ - public final Builder composedOf(String value, String... values) { - this.composedOf = _listAdd(this.composedOf, value, values); - return this; - } - - /** - * If true, the template passed in the body is only used if no - * existing 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 final Builder create(@Nullable Boolean value) { - this.create = value; - return this; - } - - /** - * If this object is included, the template is used to create data streams and - * their backing indices. Supports an empty object. Data streams require a - * matching index template with a data_stream object. - *

- * API name: {@code data_stream} - */ - public final Builder dataStream(@Nullable DataStreamVisibility value) { - this.dataStream = value; - return this; - } - - /** - * If this object is included, the template is used to create data streams and - * their backing indices. Supports an empty object. Data streams require a - * matching index template with a data_stream object. - *

- * API name: {@code data_stream} - */ - public final Builder dataStream( - Function> fn) { - return this.dataStream(fn.apply(new DataStreamVisibility.Builder()).build()); - } - /** * If true, returns all relevant default configurations for the index template. *

@@ -495,32 +143,6 @@ public final Builder includeDefaults(@Nullable Boolean value) { return this; } - /** - * Array of wildcard (*) expressions used to match the names of - * data streams and indices during creation. - *

- * API name: {@code index_patterns} - *

- * Adds all elements of list to indexPatterns. - */ - public final Builder indexPatterns(List list) { - this.indexPatterns = _listAddAll(this.indexPatterns, list); - return this; - } - - /** - * Array of wildcard (*) expressions used to match the names of - * data streams and indices during creation. - *

- * API name: {@code index_patterns} - *

- * Adds one or more values to indexPatterns. - */ - public final Builder indexPatterns(String value, String... values) { - this.indexPatterns = _listAdd(this.indexPatterns, value, values); - return this; - } - /** * 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. @@ -543,7 +165,7 @@ public final Builder masterTimeout(Function> f } /** - * Required - Index or template name to simulate + * Required - Name of the index to simulate *

* API name: {@code name} */ @@ -552,52 +174,6 @@ public final Builder name(String value) { return this; } - /** - * Priority to determine index template precedence when a new data stream or - * index is created. The index template with the highest priority is chosen. If - * no priority is specified the template is treated as though it is of priority - * 0 (lowest priority). This number is not automatically generated by - * Elasticsearch. - *

- * API name: {@code priority} - */ - public final Builder priority(@Nullable Integer value) { - this.priority = value; - return this; - } - - /** - * Template to be applied. It may optionally include an aliases, - * mappings, or settings configuration. - *

- * API name: {@code template} - */ - public final Builder template(@Nullable IndexTemplateMapping value) { - this.template = value; - return this; - } - - /** - * Template to be applied. It may optionally include an aliases, - * mappings, or settings configuration. - *

- * API name: {@code template} - */ - public final Builder template(Function> fn) { - return this.template(fn.apply(new IndexTemplateMapping.Builder()).build()); - } - - /** - * Version number used to manage index templates externally. This number is not - * automatically generated by Elasticsearch. - *

- * API name: {@code version} - */ - public final Builder version(@Nullable Long value) { - this.version = value; - return this; - } - @Override protected Builder self() { return this; @@ -618,30 +194,6 @@ public SimulateIndexTemplateRequest build() { // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for {@link SimulateIndexTemplateRequest} - */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, SimulateIndexTemplateRequest::setupSimulateIndexTemplateRequestDeserializer); - - protected static void setupSimulateIndexTemplateRequestDeserializer( - ObjectDeserializer op) { - - op.add(Builder::meta, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "_meta"); - op.add(Builder::allowAutoCreate, JsonpDeserializer.booleanDeserializer(), "allow_auto_create"); - op.add(Builder::composedOf, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "composed_of"); - op.add(Builder::dataStream, DataStreamVisibility._DESERIALIZER, "data_stream"); - op.add(Builder::indexPatterns, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), - "index_patterns"); - op.add(Builder::priority, JsonpDeserializer.integerDeserializer(), "priority"); - op.add(Builder::template, IndexTemplateMapping._DESERIALIZER, "template"); - op.add(Builder::version, JsonpDeserializer.longDeserializer(), "version"); - - } - - // --------------------------------------------------------------------------------------------- - /** * Endpoint "{@code indices.simulate_index_template}". */ @@ -695,13 +247,10 @@ protected static void setupSimulateIndexTemplateRequestDeserializer( if (request.masterTimeout != null) { params.put("master_timeout", request.masterTimeout._toJsonString()); } - if (request.create != null) { - params.put("create", String.valueOf(request.create)); - } if (request.includeDefaults != null) { params.put("include_defaults", String.valueOf(request.includeDefaults)); } return params; - }, SimpleEndpoint.emptyMap(), true, SimulateIndexTemplateResponse._DESERIALIZER); + }, SimpleEndpoint.emptyMap(), false, SimulateIndexTemplateResponse._DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java index ddc66e621..b53fc70d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateResponse.java @@ -19,13 +19,23 @@ package co.elastic.clients.elasticsearch.indices; +import co.elastic.clients.elasticsearch.indices.simulate_template.Overlapping; +import co.elastic.clients.elasticsearch.indices.simulate_template.Template; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; +import java.util.List; import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -50,17 +60,160 @@ * "../doc-files/api-spec.html#indices.simulate_index_template.Response">API * specification */ +@JsonpDeserializable +public class SimulateIndexTemplateResponse implements JsonpSerializable { + private final List overlapping; -public class SimulateIndexTemplateResponse { - public SimulateIndexTemplateResponse() { + private final Template template; + + // --------------------------------------------------------------------------------------------- + + private SimulateIndexTemplateResponse(Builder builder) { + + this.overlapping = ApiTypeHelper.unmodifiable(builder.overlapping); + this.template = ApiTypeHelper.requireNonNull(builder.template, this, "template"); + + } + + public static SimulateIndexTemplateResponse of(Function> fn) { + return fn.apply(new Builder()).build(); } /** - * Singleton instance for {@link SimulateIndexTemplateResponse}. + * API name: {@code overlapping} */ - public static final SimulateIndexTemplateResponse _INSTANCE = new SimulateIndexTemplateResponse(); + public final List overlapping() { + return this.overlapping; + } + + /** + * Required - API name: {@code template} + */ + public final Template template() { + return this.template; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.overlapping)) { + generator.writeKey("overlapping"); + generator.writeStartArray(); + for (Overlapping item0 : this.overlapping) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + generator.writeKey("template"); + this.template.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } - public static final JsonpDeserializer _DESERIALIZER = JsonpDeserializer - .fixedValue(SimulateIndexTemplateResponse._INSTANCE); + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SimulateIndexTemplateResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private List overlapping; + + private Template template; + + /** + * API name: {@code overlapping} + *

+ * Adds all elements of list to overlapping. + */ + public final Builder overlapping(List list) { + this.overlapping = _listAddAll(this.overlapping, list); + return this; + } + + /** + * API name: {@code overlapping} + *

+ * Adds one or more values to overlapping. + */ + public final Builder overlapping(Overlapping value, Overlapping... values) { + this.overlapping = _listAdd(this.overlapping, value, values); + return this; + } + + /** + * API name: {@code overlapping} + *

+ * Adds a value to overlapping using a builder lambda. + */ + public final Builder overlapping(Function> fn) { + return overlapping(fn.apply(new Overlapping.Builder()).build()); + } + + /** + * Required - API name: {@code template} + */ + public final Builder template(Template value) { + this.template = value; + return this; + } + + /** + * Required - API name: {@code template} + */ + public final Builder template(Function> fn) { + return this.template(fn.apply(new Template.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SimulateIndexTemplateResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SimulateIndexTemplateResponse build() { + _checkSingleUse(); + + return new SimulateIndexTemplateResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SimulateIndexTemplateResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SimulateIndexTemplateResponse::setupSimulateIndexTemplateResponseDeserializer); + + protected static void setupSimulateIndexTemplateResponseDeserializer( + ObjectDeserializer op) { + + op.add(Builder::overlapping, JsonpDeserializer.arrayDeserializer(Overlapping._DESERIALIZER), "overlapping"); + op.add(Builder::template, Template._DESERIALIZER, "template"); + + } } 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 c23ccef78..9da1d4386 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 @@ -22,6 +22,8 @@ import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch.indices.put_index_template.IndexTemplateMapping; +import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -33,10 +35,12 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import jakarta.json.stream.JsonParser; import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Long; import java.lang.String; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; @@ -69,29 +73,58 @@ */ @JsonpDeserializable public class SimulateTemplateRequest extends RequestBase implements JsonpSerializable { + private final Map meta; + + @Nullable + private final Boolean allowAutoCreate; + + private final List composedOf; + @Nullable private final Boolean create; + @Nullable + private final DataStreamVisibility dataStream; + + private final List ignoreMissingComponentTemplates; + @Nullable private final Boolean includeDefaults; + private final List indexPatterns; + @Nullable private final Time masterTimeout; @Nullable private final String name; - private final IndexTemplate template; + @Nullable + private final Integer priority; + + @Nullable + private final IndexTemplateMapping template; + + @Nullable + private final Long version; // --------------------------------------------------------------------------------------------- private SimulateTemplateRequest(Builder builder) { + this.meta = ApiTypeHelper.unmodifiable(builder.meta); + this.allowAutoCreate = builder.allowAutoCreate; + this.composedOf = ApiTypeHelper.unmodifiable(builder.composedOf); this.create = builder.create; + this.dataStream = builder.dataStream; + this.ignoreMissingComponentTemplates = ApiTypeHelper.unmodifiable(builder.ignoreMissingComponentTemplates); this.includeDefaults = builder.includeDefaults; + this.indexPatterns = ApiTypeHelper.unmodifiable(builder.indexPatterns); this.masterTimeout = builder.masterTimeout; this.name = builder.name; - this.template = ApiTypeHelper.requireNonNull(builder.template, this, "template"); + this.priority = builder.priority; + this.template = builder.template; + this.version = builder.version; } @@ -99,6 +132,42 @@ public static SimulateTemplateRequest of(Function + * API name: {@code _meta} + */ + public final Map meta() { + return this.meta; + } + + /** + * This setting overrides the value of the action.auto_create_index + * cluster setting. If set to true in a template, then indices can + * be automatically created using that template even if auto-creation of indices + * is disabled via actions.auto_create_index. If set to + * false, then indices or data streams matching the template must + * always be explicitly created, and may never be automatically created. + *

+ * API name: {@code allow_auto_create} + */ + @Nullable + public final Boolean allowAutoCreate() { + return this.allowAutoCreate; + } + + /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

+ * API name: {@code composed_of} + */ + public final List composedOf() { + return this.composedOf; + } + /** * If true, the template passed in the body is only used if no existing * templates match the same index patterns. If false, the simulation uses the @@ -112,6 +181,28 @@ public final Boolean create() { return this.create; } + /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

+ * API name: {@code data_stream} + */ + @Nullable + public final DataStreamVisibility dataStream() { + return this.dataStream; + } + + /** + * The configuration option ignore_missing_component_templates can be used when + * an index template references a component template that might not exist + *

+ * API name: {@code ignore_missing_component_templates} + */ + public final List ignoreMissingComponentTemplates() { + return this.ignoreMissingComponentTemplates; + } + /** * If true, returns all relevant default configurations for the index template. *

@@ -122,6 +213,16 @@ public final Boolean includeDefaults() { return this.includeDefaults; } + /** + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. + *

+ * API name: {@code index_patterns} + */ + public final List indexPatterns() { + return this.indexPatterns; + } + /** * 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. @@ -146,17 +247,118 @@ public final String name() { } /** - * Required - Request body. + * Priority to determine index template precedence when a new data stream or + * index is created. The index template with the highest priority is chosen. If + * no priority is specified the template is treated as though it is of priority + * 0 (lowest priority). This number is not automatically generated by + * Elasticsearch. + *

+ * API name: {@code priority} + */ + @Nullable + public final Integer priority() { + return this.priority; + } + + /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

+ * API name: {@code template} */ - public final IndexTemplate template() { + @Nullable + public final IndexTemplateMapping template() { return this.template; } /** - * Serialize this value to JSON. + * Version number used to manage index templates externally. This number is not + * automatically generated by Elasticsearch. + *

+ * API name: {@code version} + */ + @Nullable + public final Long version() { + return this.version; + } + + /** + * Serialize this object to JSON. */ public void serialize(JsonGenerator generator, JsonpMapper mapper) { - this.template.serialize(generator, mapper); + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (ApiTypeHelper.isDefined(this.meta)) { + generator.writeKey("_meta"); + generator.writeStartObject(); + for (Map.Entry item0 : this.meta.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.allowAutoCreate != null) { + generator.writeKey("allow_auto_create"); + generator.write(this.allowAutoCreate); + + } + if (ApiTypeHelper.isDefined(this.composedOf)) { + generator.writeKey("composed_of"); + generator.writeStartArray(); + for (String item0 : this.composedOf) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.dataStream != null) { + generator.writeKey("data_stream"); + this.dataStream.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.ignoreMissingComponentTemplates)) { + generator.writeKey("ignore_missing_component_templates"); + generator.writeStartArray(); + for (String item0 : this.ignoreMissingComponentTemplates) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.indexPatterns)) { + generator.writeKey("index_patterns"); + generator.writeStartArray(); + for (String item0 : this.indexPatterns) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.priority != null) { + generator.writeKey("priority"); + generator.write(this.priority); + + } + if (this.template != null) { + generator.writeKey("template"); + this.template.serialize(generator, mapper); + + } + if (this.version != null) { + generator.writeKey("version"); + generator.write(this.version); + + } } @@ -169,19 +371,113 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Map meta; + + @Nullable + private Boolean allowAutoCreate; + + @Nullable + private List composedOf; + @Nullable private Boolean create; + @Nullable + private DataStreamVisibility dataStream; + + @Nullable + private List ignoreMissingComponentTemplates; + @Nullable private Boolean includeDefaults; + @Nullable + private List indexPatterns; + @Nullable private Time masterTimeout; @Nullable private String name; - private IndexTemplate template; + @Nullable + private Integer priority; + + @Nullable + private IndexTemplateMapping template; + + @Nullable + private Long version; + + /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

+ * API name: {@code _meta} + *

+ * Adds all entries of map to meta. + */ + public final Builder meta(Map map) { + this.meta = _mapPutAll(this.meta, map); + return this; + } + + /** + * Optional user metadata about the index template. May have any contents. This + * map is not automatically generated by Elasticsearch. + *

+ * API name: {@code _meta} + *

+ * Adds an entry to meta. + */ + public final Builder meta(String key, JsonData value) { + this.meta = _mapPut(this.meta, key, value); + return this; + } + + /** + * This setting overrides the value of the action.auto_create_index + * cluster setting. If set to true in a template, then indices can + * be automatically created using that template even if auto-creation of indices + * is disabled via actions.auto_create_index. If set to + * false, then indices or data streams matching the template must + * always be explicitly created, and may never be automatically created. + *

+ * API name: {@code allow_auto_create} + */ + public final Builder allowAutoCreate(@Nullable Boolean value) { + this.allowAutoCreate = value; + return this; + } + + /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

+ * API name: {@code composed_of} + *

+ * Adds all elements of list to composedOf. + */ + public final Builder composedOf(List list) { + this.composedOf = _listAddAll(this.composedOf, list); + return this; + } + + /** + * An ordered list of component template names. Component templates are merged + * in the order specified, meaning that the last component template specified + * has the highest precedence. + *

+ * API name: {@code composed_of} + *

+ * Adds one or more values to composedOf. + */ + public final Builder composedOf(String value, String... values) { + this.composedOf = _listAdd(this.composedOf, value, values); + return this; + } /** * If true, the template passed in the body is only used if no existing @@ -196,6 +492,57 @@ public final Builder create(@Nullable Boolean value) { return this; } + /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

+ * API name: {@code data_stream} + */ + public final Builder dataStream(@Nullable DataStreamVisibility value) { + this.dataStream = value; + return this; + } + + /** + * If this object is included, the template is used to create data streams and + * their backing indices. Supports an empty object. Data streams require a + * matching index template with a data_stream object. + *

+ * API name: {@code data_stream} + */ + public final Builder dataStream( + Function> fn) { + return this.dataStream(fn.apply(new DataStreamVisibility.Builder()).build()); + } + + /** + * The configuration option ignore_missing_component_templates can be used when + * an index template references a component template that might not exist + *

+ * API name: {@code ignore_missing_component_templates} + *

+ * Adds all elements of list to + * ignoreMissingComponentTemplates. + */ + public final Builder ignoreMissingComponentTemplates(List list) { + this.ignoreMissingComponentTemplates = _listAddAll(this.ignoreMissingComponentTemplates, list); + return this; + } + + /** + * The configuration option ignore_missing_component_templates can be used when + * an index template references a component template that might not exist + *

+ * API name: {@code ignore_missing_component_templates} + *

+ * Adds one or more values to ignoreMissingComponentTemplates. + */ + public final Builder ignoreMissingComponentTemplates(String value, String... values) { + this.ignoreMissingComponentTemplates = _listAdd(this.ignoreMissingComponentTemplates, value, values); + return this; + } + /** * If true, returns all relevant default configurations for the index template. *

@@ -206,6 +553,32 @@ public final Builder includeDefaults(@Nullable Boolean value) { return this; } + /** + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. + *

+ * API name: {@code index_patterns} + *

+ * Adds all elements of list to indexPatterns. + */ + public final Builder indexPatterns(List list) { + this.indexPatterns = _listAddAll(this.indexPatterns, list); + return this; + } + + /** + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. + *

+ * API name: {@code index_patterns} + *

+ * Adds one or more values to indexPatterns. + */ + public final Builder indexPatterns(String value, String... values) { + this.indexPatterns = _listAdd(this.indexPatterns, value, values); + return this; + } + /** * 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. @@ -240,26 +613,49 @@ public final Builder name(@Nullable String value) { } /** - * Required - Request body. + * Priority to determine index template precedence when a new data stream or + * index is created. The index template with the highest priority is chosen. If + * no priority is specified the template is treated as though it is of priority + * 0 (lowest priority). This number is not automatically generated by + * Elasticsearch. + *

+ * API name: {@code priority} */ - public final Builder template(IndexTemplate value) { - this.template = value; + public final Builder priority(@Nullable Integer value) { + this.priority = value; return this; } /** - * Required - Request body. + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

+ * API name: {@code template} */ - public final Builder template(Function> fn) { - return this.template(fn.apply(new IndexTemplate.Builder()).build()); + public final Builder template(@Nullable IndexTemplateMapping value) { + this.template = value; + return this; } - @Override - public Builder withJson(JsonParser parser, JsonpMapper mapper) { + /** + * Template to be applied. It may optionally include an aliases, + * mappings, or settings configuration. + *

+ * API name: {@code template} + */ + public final Builder template(Function> fn) { + return this.template(fn.apply(new IndexTemplateMapping.Builder()).build()); + } - @SuppressWarnings("unchecked") - IndexTemplate value = (IndexTemplate) IndexTemplate._DESERIALIZER.deserialize(parser, mapper); - return this.template(value); + /** + * Version number used to manage index templates externally. This number is not + * automatically generated by Elasticsearch. + *

+ * API name: {@code version} + */ + public final Builder version(@Nullable Long value) { + this.version = value; + return this; } @Override @@ -280,13 +676,31 @@ public SimulateTemplateRequest build() { } } - public static final JsonpDeserializer _DESERIALIZER = createSimulateTemplateRequestDeserializer(); - protected static JsonpDeserializer createSimulateTemplateRequestDeserializer() { + // --------------------------------------------------------------------------------------------- - JsonpDeserializer valueDeserializer = IndexTemplate._DESERIALIZER; + /** + * Json deserializer for {@link SimulateTemplateRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SimulateTemplateRequest::setupSimulateTemplateRequestDeserializer); + + protected static void setupSimulateTemplateRequestDeserializer( + ObjectDeserializer op) { + + op.add(Builder::meta, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "_meta"); + op.add(Builder::allowAutoCreate, JsonpDeserializer.booleanDeserializer(), "allow_auto_create"); + op.add(Builder::composedOf, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "composed_of"); + op.add(Builder::dataStream, DataStreamVisibility._DESERIALIZER, "data_stream"); + op.add(Builder::ignoreMissingComponentTemplates, + JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "ignore_missing_component_templates"); + op.add(Builder::indexPatterns, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "index_patterns"); + op.add(Builder::priority, JsonpDeserializer.integerDeserializer(), "priority"); + op.add(Builder::template, IndexTemplateMapping._DESERIALIZER, "template"); + op.add(Builder::version, JsonpDeserializer.longDeserializer(), "version"); - return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() - .template(valueDeserializer.deserialize(parser, mapper, event)).build()); } // --------------------------------------------------------------------------------------------- diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java index 82d7eab14..79e912df5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java @@ -24,6 +24,8 @@ import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; @@ -58,7 +60,10 @@ * specification */ @JsonpDeserializable -public class ApiKeyFiltersAggregation extends BucketAggregationBase implements ApiKeyAggregationVariant { +public class ApiKeyFiltersAggregation extends BucketAggregationBase + implements + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final Buckets filters; @@ -74,7 +79,6 @@ public class ApiKeyFiltersAggregation extends BucketAggregationBase implements A // --------------------------------------------------------------------------------------------- private ApiKeyFiltersAggregation(Builder builder) { - super(builder); this.filters = builder.filters; this.otherBucket = builder.otherBucket; @@ -137,9 +141,17 @@ public final Boolean keyed() { return this.keyed; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - super.serializeInternal(generator, mapper); if (this.filters != null) { generator.writeKey("filters"); this.filters.serialize(generator, mapper); @@ -163,6 +175,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -263,7 +280,7 @@ public ApiKeyFiltersAggregation build() { protected static void setupApiKeyFiltersAggregationDeserializer( ObjectDeserializer op) { - BucketAggregationBase.setupBucketAggregationBaseDeserializer(op); + op.add(Builder::filters, Buckets.createBucketsDeserializer(ApiKeyQuery._DESERIALIZER), "filters"); op.add(Builder::otherBucket, JsonpDeserializer.booleanDeserializer(), "other_bucket"); op.add(Builder::otherBucketKey, JsonpDeserializer.stringDeserializer(), "other_bucket_key"); diff --git a/java-client/src/test/java/co/elastic/clients/documentation/usage/IndexingTest.java b/java-client/src/test/java/co/elastic/clients/documentation/usage/IndexingTest.java index b06b31d13..0ac9c45be 100644 --- a/java-client/src/test/java/co/elastic/clients/documentation/usage/IndexingTest.java +++ b/java-client/src/test/java/co/elastic/clients/documentation/usage/IndexingTest.java @@ -46,7 +46,7 @@ public class IndexingTest extends ModelTestCase { .index("product") .id("bk-1") .version(1) - .primaryTerm(1) + .primaryTerm(1L) .seqNo(1) .result(Result.Created) .shards(s -> s.total(1).successful(1).failed(0)) From fdd4c1635d03e2fa3a22cd9636ae2f06163d0d08 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:22:42 +0200 Subject: [PATCH 24/25] add gradlew validation workflow (#778) --- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- .github/workflows/gradle-wrapper-validation.yml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gradle-wrapper-validation.yml diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index bc7151343..71064751c 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -6,7 +6,7 @@ body: attributes: value: | Please first search existing issues for the feature you are requesting. It may already exist, even as a closed issue. - If it exists, please add a comment: along with subcribing you to the issue, this will help us prioritize features. + If it exists, please add a comment: along with subscribing you to the issue, this will help us prioritize features. - type: textarea id: description attributes: diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml new file mode 100644 index 000000000..95cce8bab --- /dev/null +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -0,0 +1,10 @@ +name: "Validate Gradle Wrapper" +on: [push, pull_request] + +jobs: + validation: + name: "Validation" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gradle/wrapper-validation-action@v2 From 7d10422c9fa215b8ab4739d0572e52406aebc6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vl=C4=8Dek?= Date: Mon, 15 Jan 2024 21:18:03 +0100 Subject: [PATCH 25/25] fix(sort): correct kind for score sort --- .../java/co/elastic/clients/elasticsearch/_types/ScoreSort.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java index d5f8567b9..a7d418cd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java @@ -77,7 +77,7 @@ public static ScoreSort of(Function> fn) { */ @Override public SortOptions.Kind _sortOptionsKind() { - return SortOptions.Kind.Doc; + return SortOptions.Kind.Score; } /**