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: 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 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/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 diff --git a/docs/getting-started.asciidoc b/docs/getting-started.asciidoc index 268f8db18..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 @@ -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] -------------------------------------------------- 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 diff --git a/docs/release-notes/release-highlights.asciidoc b/docs/release-notes/release-highlights.asciidoc index bfc2f1324..655358434 100644 --- a/docs/release-notes/release-highlights.asciidoc +++ b/docs/release-notes/release-highlights.asciidoc @@ -5,6 +5,17 @@ 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 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] +==== Version 8.12 + +* No new feature. + [discrete] ==== Version 8.11 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/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 000000000..d64cd4917 Binary files /dev/null and b/examples/realworld-app/gradle/wrapper/gradle-wrapper.jar differ 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 000000000..99e5ed76a Binary files /dev/null and b/examples/realworld-app/rw-logo.png differ 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") + diff --git a/java-client-serverless/build.gradle.kts b/java-client-serverless/build.gradle.kts index fca219d44..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 @@ -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-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-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/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-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/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/IndicesBlockStatus.java similarity index 60% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java rename to java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/IndicesBlockStatus.java index 3abac00cc..cd9d033cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/IndicesBlockStatus.java @@ -17,13 +17,8 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- +package co.elastic.clients.elasticsearch.indices.add_block; -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; @@ -35,36 +30,51 @@ 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; -// typedef: indices.get_data_lifecycle.DataStreamLifecycle +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 + * "../../doc-files/api-spec.html#indices.add_block.IndicesBlockStatus">API * specification */ @JsonpDeserializable -public class DataStreamLifecycle implements JsonpSerializable { +public class IndicesBlockStatus implements JsonpSerializable { private final String name; - @Nullable - private final DataLifecycle lifecycle; + private final boolean blocked; // --------------------------------------------------------------------------------------------- - private DataStreamLifecycle(Builder builder) { + private IndicesBlockStatus(Builder builder) { this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); - this.lifecycle = builder.lifecycle; + this.blocked = ApiTypeHelper.requireNonNull(builder.blocked, this, "blocked"); } - public static DataStreamLifecycle of(Function> fn) { + public static IndicesBlockStatus of(Function> fn) { return fn.apply(new Builder()).build(); } @@ -76,11 +86,10 @@ public final String name() { } /** - * API name: {@code lifecycle} + * Required - API name: {@code blocked} */ - @Nullable - public final DataLifecycle lifecycle() { - return this.lifecycle; + public final boolean blocked() { + return this.blocked; } /** @@ -97,11 +106,8 @@ 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); - - } + generator.writeKey("blocked"); + generator.write(this.blocked); } @@ -113,16 +119,15 @@ public String toString() { // --------------------------------------------------------------------------------------------- /** - * Builder for {@link DataStreamLifecycle}. + * Builder for {@link IndicesBlockStatus}. */ public static class Builder extends WithJsonObjectBuilderBase implements - ObjectBuilder { + ObjectBuilder { private String name; - @Nullable - private DataLifecycle lifecycle; + private Boolean blocked; /** * Required - API name: {@code name} @@ -133,50 +138,43 @@ public final Builder name(String value) { } /** - * API name: {@code lifecycle} + * Required - API name: {@code blocked} */ - public final Builder lifecycle(@Nullable DataLifecycle value) { - this.lifecycle = value; + public final Builder blocked(boolean value) { + this.blocked = 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}. + * Builds a {@link IndicesBlockStatus}. * * @throws NullPointerException * if some of the required fields are null. */ - public DataStreamLifecycle build() { + public IndicesBlockStatus build() { _checkSingleUse(); - return new DataStreamLifecycle(this); + return new IndicesBlockStatus(this); } } // --------------------------------------------------------------------------------------------- /** - * Json deserializer for {@link DataStreamLifecycle} + * Json deserializer for {@link IndicesBlockStatus} */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, DataStreamLifecycle::setupDataStreamLifecycleDeserializer); + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, IndicesBlockStatus::setupIndicesBlockStatusDeserializer); - protected static void setupDataStreamLifecycleDeserializer(ObjectDeserializer op) { + protected static void setupIndicesBlockStatusDeserializer(ObjectDeserializer op) { op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); - op.add(Builder::lifecycle, DataLifecycle._DESERIALIZER, "lifecycle"); + 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/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java similarity index 62% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java rename to java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java index f92c9662d..0e295d155 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Realm.java +++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java @@ -17,11 +17,7 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - -package co.elastic.clients.elasticsearch.security; +package co.elastic.clients.elasticsearch.sql; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -39,42 +35,58 @@ import java.util.function.Function; import javax.annotation.Nullable; -// typedef: security._types.Realm +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 + * @see API specification */ @JsonpDeserializable -public class Realm implements FieldRuleVariant, JsonpSerializable { +public class Column implements JsonpSerializable { private final String name; + private final String type; + // --------------------------------------------------------------------------------------------- - private Realm(Builder builder) { + private Column(Builder builder) { this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); } - public static Realm of(Function> fn) { + public static Column of(Function> fn) { return fn.apply(new Builder()).build(); } /** - * FieldRule variant kind. + * Required - API name: {@code name} */ - @Override - public FieldRule.Kind _fieldRuleKind() { - return FieldRule.Kind.Realm; + public final String name() { + return this.name; } /** - * Required - API name: {@code name} + * Required - API name: {@code type} */ - public final String name() { - return this.name; + public final String type() { + return this.type; } /** @@ -91,6 +103,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("name"); generator.write(this.name); + generator.writeKey("type"); + generator.write(this.type); + } @Override @@ -101,12 +116,14 @@ public String toString() { // --------------------------------------------------------------------------------------------- /** - * Builder for {@link Realm}. + * Builder for {@link Column}. */ - public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String name; + private String type; + /** * Required - API name: {@code name} */ @@ -115,35 +132,44 @@ public final Builder name(String 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 Realm}. + * Builds a {@link Column}. * * @throws NullPointerException * if some of the required fields are null. */ - public Realm build() { + public Column build() { _checkSingleUse(); - return new Realm(this); + return new Column(this); } } // --------------------------------------------------------------------------------------------- /** - * Json deserializer for {@link Realm} + * Json deserializer for {@link Column} */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - Realm::setupRealmDeserializer); + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Column::setupColumnDeserializer); - protected static void setupRealmDeserializer(ObjectDeserializer op) { + 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 { + /** + * ESQL result format this deserializer accepts (text, csv, json, arrow, etc.) + */ + String format(); + + /** + * For JSON like 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/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-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/objects/ObjectsEsqlAdapter.java b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/objects/ObjectsEsqlAdapter.java new file mode 100644 index 000000000..243542ebd --- /dev/null +++ b/java-client/src/main-flavored/java/co/elastic/clients/elasticsearch/_helpers/esql/objects/ObjectsEsqlAdapter.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 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; +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 + */ +public 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; + + public 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/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index 29d19856b..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 @@ -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; @@ -117,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; @@ -141,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; @@ -158,6 +157,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-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. */ @@ -210,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); } @@ -230,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); } @@ -306,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); } @@ -325,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 */ @@ -344,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 */ @@ -357,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 */ @@ -372,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 */ @@ -390,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 */ @@ -403,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 */ @@ -418,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 */ @@ -436,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 */ @@ -1474,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 */ @@ -1492,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 */ @@ -2212,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 037e79ee3..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 @@ -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; @@ -118,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; @@ -142,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; @@ -159,6 +158,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-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. */ @@ -211,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); } @@ -231,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); } @@ -307,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); } @@ -326,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 */ @@ -345,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 */ @@ -359,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 */ @@ -374,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 */ @@ -392,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 */ @@ -406,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 */ @@ -421,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 */ @@ -440,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 */ @@ -1500,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 */ @@ -1519,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 */ @@ -2257,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 API specification 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/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/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 7c730fdfd..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 @@ -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,8 +31,26 @@ 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. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 @@ -53,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) { @@ -60,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); } @@ -88,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. */ @@ -108,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 @@ -128,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} */ @@ -152,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; @@ -183,6 +320,10 @@ protected static void setupClusterStatisticsDeserializer(ObjectDeserializerAPI 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/ElasticsearchException.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java index 5307ed515..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 @@ -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,19 @@ 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 +78,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/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/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/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/FieldValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java index e68f12532..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 @@ -69,6 +69,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/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..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 @@ -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/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..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 @@ -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 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..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 @@ -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 /** @@ -66,7 +77,7 @@ public static ScoreSort of(Function> fn) { */ @Override public SortOptions.Kind _sortOptionsKind() { - return SortOptions.Kind.Doc; + return SortOptions.Kind.Score; } /** 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..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 @@ -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,12 +39,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: _types.SortOptions /** * * @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/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..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 @@ -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 /** @@ -54,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; @@ -73,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"); @@ -97,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; } @@ -156,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"); @@ -190,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); @@ -80,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(); @@ -97,6 +117,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -172,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/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..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 @@ -17,28 +17,31 @@ * 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; 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. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 @@ -49,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/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..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 @@ -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; @@ -28,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; @@ -41,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.AutoDateHistogramAggregation /** @@ -50,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; @@ -80,7 +96,6 @@ public class AutoDateHistogramAggregation extends BucketAggregationBase implemen // --------------------------------------------------------------------------------------------- private AutoDateHistogramAggregation(Builder builder) { - super(builder); this.buckets = builder.buckets; this.field = builder.field; @@ -196,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); @@ -251,6 +274,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -425,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/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..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 @@ -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 /** @@ -44,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/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..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -35,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.BucketPathAggregation /** @@ -44,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; @@ -67,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); @@ -78,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 { @@ -103,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/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..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 @@ -17,16 +17,14 @@ * 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; 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; @@ -38,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -47,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; @@ -62,7 +75,6 @@ public class BucketSortAggregation extends AggregationBase implements Aggregatio // --------------------------------------------------------------------------------------------- private BucketSortAggregation(Builder builder) { - super(builder); this.from = builder.from; this.gapPolicy = builder.gapPolicy; @@ -123,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); @@ -153,6 +173,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -267,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/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 */ @JsonpDeserializable -public class CardinalityAggregate extends AggregateBase implements AggregateVariant { +public class CardinalityAggregate extends AggregateBase implements AggregateVariant, ApiKeyAggregateVariant { private final long value; // --------------------------------------------------------------------------------------------- @@ -68,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 f99619781..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -36,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.CardinalityAggregation /** @@ -45,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; @@ -78,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/CardinalityExecutionMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityExecutionMode.java index 5eee83d76..0de9af67d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityExecutionMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityExecutionMode.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 */ @JsonpDeserializable -public class CategorizeTextAggregation extends AggregationBase implements AggregationVariant { +public class CategorizeTextAggregation extends AggregationBase implements AggregationVariant, JsonpSerializable { private final String field; @Nullable @@ -84,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; @@ -234,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); @@ -293,6 +313,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -523,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/CategorizeTextAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAnalyzer.java index 8fe05885e..93c927d0d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAnalyzer.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; @@ -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.CategorizeTextAnalyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAnalyzerBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAnalyzerBuilders.java index 95e0146d5..21252860e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAnalyzerBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAnalyzerBuilders.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 CategorizeTextAnalyzer} variants. *

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..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -35,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.ChildrenAggregation /** @@ -44,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; @@ -79,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); @@ -90,6 +110,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -139,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/CompositeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java index a4186c33c..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 @@ -17,13 +17,11 @@ * 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; +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; @@ -38,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -47,7 +60,10 @@ * specification */ @JsonpDeserializable -public class CompositeAggregate extends MultiBucketAggregateBase implements AggregateVariant { +public class CompositeAggregate extends MultiBucketAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { private final Map afterKey; // --------------------------------------------------------------------------------------------- @@ -71,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 7643281a6..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 @@ -17,16 +17,16 @@ * 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; +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; +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; @@ -40,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.CompositeAggregation /** @@ -49,7 +64,11 @@ * specification */ @JsonpDeserializable -public class CompositeAggregation extends BucketAggregationBase implements AggregationVariant { +public class CompositeAggregation extends BucketAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant, + JsonpSerializable { private final Map after; @Nullable @@ -60,7 +79,6 @@ public class CompositeAggregation extends BucketAggregationBase implements Aggre // --------------------------------------------------------------------------------------------- private CompositeAggregation(Builder builder) { - super(builder); this.after = ApiTypeHelper.unmodifiable(builder.after); this.size = builder.size; @@ -80,6 +98,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. @@ -110,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(); @@ -150,6 +184,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -270,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/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..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 @@ -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; @@ -32,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; @@ -48,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: _types.aggregations.DateHistogramAggregation /** @@ -57,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; @@ -104,7 +121,6 @@ public class DateHistogramAggregation extends BucketAggregationBase implements A // --------------------------------------------------------------------------------------------- private DateHistogramAggregation(Builder builder) { - super(builder); this.calendarInterval = builder.calendarInterval; this.extendedBounds = builder.extendedBounds; @@ -300,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); @@ -393,6 +417,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -717,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/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..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -45,7 +58,7 @@ * specification */ @JsonpDeserializable -public class DateRangeAggregate extends RangeAggregate implements AggregateVariant { +public class DateRangeAggregate extends RangeAggregate implements AggregateVariant, ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private DateRangeAggregate(Builder builder) { @@ -65,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 e0a47460a..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 @@ -17,16 +17,16 @@ * 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; +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; +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; @@ -39,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.DateRangeAggregation /** @@ -48,7 +63,11 @@ * specification */ @JsonpDeserializable -public class DateRangeAggregation extends BucketAggregationBase implements AggregationVariant { +public class DateRangeAggregation extends BucketAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final String field; @@ -69,7 +88,6 @@ public class DateRangeAggregation extends BucketAggregationBase implements Aggre // --------------------------------------------------------------------------------------------- private DateRangeAggregation(Builder builder) { - super(builder); this.field = builder.field; this.format = builder.format; @@ -92,6 +110,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. *

@@ -154,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); @@ -195,6 +229,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -391,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/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..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 @@ -17,16 +17,14 @@ * 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; 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; @@ -37,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -46,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; @@ -65,7 +81,6 @@ public class DiversifiedSamplerAggregation extends BucketAggregationBase impleme // --------------------------------------------------------------------------------------------- private DiversifiedSamplerAggregation(Builder builder) { - super(builder); this.executionHint = builder.executionHint; this.maxDocsPerValue = builder.maxDocsPerValue; @@ -136,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); @@ -166,6 +189,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -274,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/DoubleTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java index 39d1aa757..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -43,7 +56,10 @@ * specification */ @JsonpDeserializable -public class DoubleTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class DoubleTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private DoubleTermsAggregate(Builder builder) { @@ -63,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/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..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 @@ -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,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; @@ -41,6 +36,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 /** @@ -51,8 +61,10 @@ */ @JsonpDeserializable public class ExtendedBounds implements JsonpSerializable { + @Nullable private final T max; + @Nullable private final T min; @Nullable @@ -62,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; } @@ -73,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; } @@ -101,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); + + } } @@ -123,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/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..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -41,7 +54,7 @@ * specification */ @JsonpDeserializable -public class FilterAggregate extends SingleBucketAggregateBase implements AggregateVariant { +public class FilterAggregate extends SingleBucketAggregateBase implements AggregateVariant, ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private FilterAggregate(Builder builder) { @@ -61,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 5a51c2c6c..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -41,7 +54,10 @@ * specification */ @JsonpDeserializable -public class FiltersAggregate extends MultiBucketAggregateBase implements AggregateVariant { +public class FiltersAggregate extends MultiBucketAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private FiltersAggregate(Builder builder) { @@ -61,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/FiltersAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java index cc55fda88..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 @@ -17,16 +17,14 @@ * 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.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; @@ -37,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -46,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; @@ -62,7 +75,6 @@ public class FiltersAggregation extends BucketAggregationBase implements Aggrega // --------------------------------------------------------------------------------------------- private FiltersAggregation(Builder builder) { - super(builder); this.filters = builder.filters; this.otherBucket = builder.otherBucket; @@ -125,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); @@ -151,6 +171,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -250,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/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..fd444596d 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; @@ -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/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 */ @JsonpDeserializable -public class GeoDistanceAggregation extends BucketAggregationBase implements AggregationVariant { +public class GeoDistanceAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { @Nullable private final GeoDistanceType distanceType; @@ -67,7 +80,6 @@ public class GeoDistanceAggregation extends BucketAggregationBase implements Agg // --------------------------------------------------------------------------------------------- private GeoDistanceAggregation(Builder builder) { - super(builder); this.distanceType = builder.distanceType; this.field = builder.field; @@ -138,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); @@ -172,6 +192,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -308,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/GeoHashGridAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregate.java index a30207a51..fec05a594 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregate.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.GeoHashGridAggregate /** 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 4f8b43efa..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 @@ -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; @@ -28,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; @@ -38,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.GeoHashGridAggregation /** @@ -47,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; @@ -66,7 +79,6 @@ public class GeoHashGridAggregation extends BucketAggregationBase implements Agg // --------------------------------------------------------------------------------------------- private GeoHashGridAggregation(Builder builder) { - super(builder); this.bounds = builder.bounds; this.field = builder.field; @@ -143,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); @@ -174,6 +194,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -300,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/GeoHashGridBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridBucket.java index e309da1f9..46c4dff00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridBucket.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.GeoHashGridBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridAggregate.java index 59665ef6c..a292da840 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridAggregate.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.GeoHexGridAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridBucket.java index dcdabff93..c2b71d43c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridBucket.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.GeoHexGridBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregate.java index 24da637dc..5e864022b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregate.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.GeoLine; @@ -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.GeoLineAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java index 39282bd1f..0f27b3444 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.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.SortOrder; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.GeoLineAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLinePoint.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLinePoint.java index f01c32c45..2fcbaa446 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLinePoint.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLinePoint.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.GeoLinePoint /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineSort.java index cffaa319b..d73ddae47 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineSort.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.GeoLineSort /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregate.java index a04a273ea..a266f6967 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregate.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.GeoTileGridAggregate /** 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 473d7ff4a..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 @@ -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; @@ -29,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; @@ -40,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.GeoTileGridAggregation /** @@ -49,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; @@ -68,7 +85,6 @@ public class GeoTileGridAggregation extends BucketAggregationBase implements Agg // --------------------------------------------------------------------------------------------- private GeoTileGridAggregation(Builder builder) { - super(builder); this.field = builder.field; this.precision = builder.precision; @@ -153,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); @@ -184,6 +208,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -300,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/GeoTileGridBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridBucket.java index d09317341..2711f7090 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridBucket.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.GeoTileGridBucket /** 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 ceed32415..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 @@ -17,16 +17,14 @@ * 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; 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; @@ -38,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.GeohexGridAggregation /** @@ -47,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 @@ -65,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; @@ -139,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); @@ -168,6 +188,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -280,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/GlobalAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregate.java index 505775a3f..73507e670 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregate.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.GlobalAggregate /** 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 4d447f44b..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 @@ -17,22 +17,29 @@ * 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; 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; -// typedef: _types.aggregations.GlobalAggregation +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- /** * @@ -41,17 +48,7 @@ * specification */ @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. @@ -61,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/GoogleNormalizedDistanceHeuristic.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GoogleNormalizedDistanceHeuristic.java index d97d414d5..917b6e71e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GoogleNormalizedDistanceHeuristic.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GoogleNormalizedDistanceHeuristic.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.GoogleNormalizedDistanceHeuristic /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrMethod.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrMethod.java index f13601aed..b36e969eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrMethod.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrMethod.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.HdrMethod /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentileRanksAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentileRanksAggregate.java index f2af42dc0..65c8795f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentileRanksAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentileRanksAggregate.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.HdrPercentileRanksAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentilesAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentilesAggregate.java index dfaf43d9d..04ebe47cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentilesAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentilesAggregate.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.HdrPercentilesAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregate.java index c184c6900..bfee929bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregate.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.HistogramAggregate /** 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 69253f8f4..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 @@ -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; @@ -30,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; @@ -45,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: _types.aggregations.HistogramAggregation /** @@ -54,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; @@ -90,7 +107,6 @@ public class HistogramAggregation extends BucketAggregationBase implements Aggre // --------------------------------------------------------------------------------------------- private HistogramAggregation(Builder builder) { - super(builder); this.extendedBounds = builder.extendedBounds; this.hardBounds = builder.hardBounds; @@ -240,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); @@ -309,6 +333,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -537,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/HistogramBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramBucket.java index aec9cb372..5926d114c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramBucket.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.HistogramBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltLinearModelSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltLinearModelSettings.java index f72c8064c..9acc5cb3b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltLinearModelSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltLinearModelSettings.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.HoltLinearModelSettings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltMovingAverageAggregation.java index 4d2ca1f9a..d2ab74623 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltMovingAverageAggregation.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.HoltMovingAverageAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersModelSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersModelSettings.java index 484a12ebb..1294e118e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersModelSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersModelSettings.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.HoltWintersModelSettings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersMovingAverageAggregation.java index fd5b60738..6c5566dc8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersMovingAverageAggregation.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.HoltWintersMovingAverageAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersType.java index 08f8fc41c..e1e54a9af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersType.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 */ @JsonpDeserializable -public class IpPrefixAggregation extends BucketAggregationBase implements AggregationVariant { +public class IpPrefixAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable { private final String field; private final int prefixLength; @@ -68,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"); @@ -154,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); @@ -186,6 +206,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -303,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/IpPrefixBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixBucket.java index 402121b1c..35b460222 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixBucket.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.IpPrefixBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregate.java index 2086c3340..7c7ee9c88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregate.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.IpRangeAggregate /** 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 1984f18e1..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -37,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.IpRangeAggregation /** @@ -46,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; @@ -55,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); @@ -93,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); @@ -114,6 +134,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -202,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/IpRangeAggregationRange.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregationRange.java index 58eac9c0f..38b8dfff7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregationRange.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregationRange.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.IpRangeAggregationRange /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeBucket.java index db741d49b..0e8580458 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeBucket.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.IpRangeBucket /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LinearMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LinearMovingAverageAggregation.java index 5c9871c89..3a3b3ef32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LinearMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LinearMovingAverageAggregation.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.LinearMovingAverageAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsAggregate.java index beb81e899..a217744cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsAggregate.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.LongRareTermsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsBucket.java index 787eae286..abea24451 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsBucket.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.LongRareTermsBucket /** 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 45e9df4be..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.LongTermsAggregate /** @@ -43,7 +56,10 @@ * specification */ @JsonpDeserializable -public class LongTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class LongTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private LongTermsAggregate(Builder builder) { @@ -63,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/LongTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsBucket.java index 70d55db4f..794bb8fed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsBucket.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.LongTermsBucket /** 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 8c4bd262f..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -39,6 +37,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.MatrixAggregation /** @@ -48,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; @@ -56,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); @@ -82,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(); @@ -109,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 { @@ -168,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/MatrixStatsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregate.java index dc16ef0d8..3444b6cbb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregate.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.MatrixStatsAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregation.java index 185f5ac59..19c315c4b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregation.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.SortMode; @@ -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.MatrixStatsAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsFields.java index 0da56bcc8..192674d6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsFields.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; @@ -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.MatrixStatsFields /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregate.java index 7fe88bb6e..07e40096a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregate.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.MaxAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregation.java index 161a423f9..46384b33a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregation.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.MaxAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxBucketAggregation.java index 6e4b07272..b8604b080 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxBucketAggregation.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.MaxBucketAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregate.java index 78539ac7f..fea88f298 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregate.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.MedianAbsoluteDeviationAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.java index 271f51a06..e2c674e8c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.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.MedianAbsoluteDeviationAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MetricAggregationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MetricAggregationBase.java index b6b31d78a..14741841a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MetricAggregationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MetricAggregationBase.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.MetricAggregationBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregate.java index d0893cc8d..72c388bf8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregate.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.MinAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregation.java index 6f844ca08..4de428397 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregation.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.MinAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinBucketAggregation.java index e51021c6e..1f305b279 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinBucketAggregation.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.MinBucketAggregation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinimumInterval.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinimumInterval.java index 2e04f450f..0da0d457f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinimumInterval.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinimumInterval.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 */ @JsonpDeserializable -public class MissingAggregate extends SingleBucketAggregateBase implements AggregateVariant { +public class MissingAggregate extends SingleBucketAggregateBase implements AggregateVariant, ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private MissingAggregate(Builder builder) { @@ -61,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 9488d4c67..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 @@ -17,16 +17,16 @@ * 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; +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; +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; @@ -36,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.MissingAggregation /** @@ -45,7 +60,11 @@ * specification */ @JsonpDeserializable -public class MissingAggregation extends BucketAggregationBase implements AggregationVariant { +public class MissingAggregation extends BucketAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final String field; @@ -55,7 +74,6 @@ public class MissingAggregation extends BucketAggregationBase implements Aggrega // --------------------------------------------------------------------------------------------- private MissingAggregation(Builder builder) { - super(builder); this.field = builder.field; this.missing = builder.missing; @@ -74,6 +92,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. *

@@ -92,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); @@ -108,6 +142,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -207,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/MissingOrder.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingOrder.java index 66d222900..a1678224a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingOrder.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingOrder.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 */ @JsonpDeserializable -public class MultiTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class MultiTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private MultiTermsAggregate(Builder builder) { @@ -61,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/MultiTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java index fee40e93a..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 @@ -17,16 +17,14 @@ * 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.SortOrder; 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; @@ -41,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.MultiTermsAggregation /** @@ -50,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; @@ -76,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); @@ -183,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); @@ -241,6 +261,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -424,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/MultiTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java index dcc95edd0..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 @@ -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; @@ -34,11 +30,27 @@ 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; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.MultiTermsBucket /** @@ -158,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/MutualInformationHeuristic.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java index f23d8b773..170de8c9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java index 7a713bc8c..7bdc08556 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java +++ b/java-client/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/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 f05ffea34..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -35,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.NestedAggregation /** @@ -44,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; @@ -79,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); @@ -90,6 +110,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -139,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/NormalizeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java index c0321f6e4..0bfb8a2d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeMethod.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeMethod.java index 2f666a1e8..1fefa3867 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeMethod.java +++ b/java-client/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 */ @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; @@ -79,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); @@ -90,6 +110,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -139,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/PercentageScoreHeuristic.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentageScoreHeuristic.java index 8be5e8aca..107609ada 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentageScoreHeuristic.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentageScoreHeuristic.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; @@ -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 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..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -33,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.RangeAggregate /** @@ -42,7 +55,10 @@ * specification */ @JsonpDeserializable -public class RangeAggregate extends MultiBucketAggregateBase implements AggregateVariant { +public class RangeAggregate extends MultiBucketAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- protected RangeAggregate(AbstractBuilder builder) { @@ -62,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 b1f2a8a59..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 @@ -17,16 +17,16 @@ * 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; +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; +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; @@ -40,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.RangeAggregation /** @@ -49,7 +64,11 @@ * specification */ @JsonpDeserializable -public class RangeAggregation extends BucketAggregationBase implements AggregationVariant { +public class RangeAggregation extends BucketAggregationBase + implements + AggregationVariant, + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final String field; @@ -70,7 +89,6 @@ public class RangeAggregation extends BucketAggregationBase implements Aggregati // --------------------------------------------------------------------------------------------- private RangeAggregation(Builder builder) { - super(builder); this.field = builder.field; this.missing = builder.missing; @@ -93,6 +111,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. *

@@ -150,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); @@ -191,6 +225,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -335,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/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..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 @@ -17,16 +17,14 @@ * 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; 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; @@ -38,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -47,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; @@ -72,7 +85,6 @@ public class RareTermsAggregation extends BucketAggregationBase implements Aggre // --------------------------------------------------------------------------------------------- private RareTermsAggregation(Builder builder) { - super(builder); this.exclude = builder.exclude; this.field = builder.field; @@ -166,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); @@ -207,6 +227,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -406,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/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..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -35,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.ReverseNestedAggregation /** @@ -44,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; @@ -80,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); @@ -91,6 +111,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -142,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/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..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -35,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.SamplerAggregation /** @@ -44,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; @@ -80,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); @@ -91,6 +111,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -141,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/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 */ @JsonpDeserializable -public class SignificantTermsAggregation extends BucketAggregationBase implements AggregationVariant { +public class SignificantTermsAggregation extends BucketAggregationBase + implements + AggregationVariant, + JsonpSerializable { @Nullable private final Query backgroundFilter; @@ -97,7 +113,6 @@ public class SignificantTermsAggregation extends BucketAggregationBase implement // --------------------------------------------------------------------------------------------- private SignificantTermsAggregation(Builder builder) { - super(builder); this.backgroundFilter = builder.backgroundFilter; this.chiSquare = builder.chiSquare; @@ -291,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); @@ -371,6 +394,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -704,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/SignificantTermsBucketBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsBucketBase.java index bb2251a6a..cee43ccc9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsBucketBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsBucketBase.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.lang.Long; 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.SignificantTermsBucketBase /** 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 cbc22532b..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 @@ -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; @@ -28,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; @@ -42,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.SignificantTextAggregation /** @@ -51,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; @@ -73,7 +86,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; @@ -104,7 +118,6 @@ public class SignificantTextAggregation extends BucketAggregationBase implements // --------------------------------------------------------------------------------------------- private SignificantTextAggregation(Builder builder) { - super(builder); this.backgroundFilter = builder.backgroundFilter; this.chiSquare = builder.chiSquare; @@ -113,7 +126,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 +230,8 @@ public final GoogleNormalizedDistanceHeuristic gnd() { *

* API name: {@code include} */ - public final List include() { + @Nullable + public final TermsInclude include() { return this.include; } @@ -319,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); @@ -356,14 +378,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) { @@ -419,6 +436,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -450,7 +472,7 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder include; + private TermsInclude include; @Nullable private EmptyObject jlh; @@ -597,11 +619,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 +629,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()); } /** @@ -799,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"); @@ -807,8 +824,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/SimpleMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java index 6a4f5a0ca..b870a76ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java index 2fdff42a0..ef748e947 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleBucketAggregateBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleBucketAggregateBase.java index 3a32c32c0..9664e0ec7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleBucketAggregateBase.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleMetricAggregateBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleMetricAggregateBase.java index 28da55a5a..6044cb5b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SingleMetricAggregateBase.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java index 8fea33e90..4303392ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java index 55f4711d9..b6d34c3d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregate.java index 4279e3309..e3dc4e1c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregate.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java index c38516342..5f300140e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java index dea4572d1..06f98a03d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java index 42ecab777..a1f061f07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java index 14a7ac98d..8e3c74945 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java index c4ca114bf..7dca9897c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java index 7c6f581f7..dacf4b2c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java index c7543645e..e7e296cb2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java +++ b/java-client/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/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 105482df1..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -42,7 +55,10 @@ * specification */ @JsonpDeserializable -public class StringTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class StringTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private StringTermsAggregate(Builder builder) { @@ -62,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/StringTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java index 4480ecfbe..edfe47d60 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java index 2ad859823..44df5dd0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java index 3250fb8d9..accede1ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java index f9587d22c..b49bd7776 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java index 8b3fce9b5..5a0442d3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java index cc7662d87..4711d34a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java index 4bdd7cead..e8fc25abb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java index f7ff5731c..026729fa1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java +++ b/java-client/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/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 ebab06841..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -34,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.TTestAggregation /** @@ -43,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; @@ -56,7 +69,6 @@ public class TTestAggregation extends AggregationBase implements AggregationVari // --------------------------------------------------------------------------------------------- private TTestAggregation(Builder builder) { - super(builder); this.a = builder.a; this.b = builder.b; @@ -106,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); @@ -126,6 +146,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -219,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/TTestType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestType.java index d05c41288..1e9aa752d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestType.java +++ b/java-client/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 */ @JsonpDeserializable -public class TermsAggregation extends BucketAggregationBase implements AggregationVariant, PivotGroupByVariant { +public class TermsAggregation extends BucketAggregationBase + implements + AggregationVariant, + PivotGroupByVariant, + ApiKeyAggregationVariant, + JsonpSerializable { @Nullable private final TermsAggregationCollectMode collectMode; @@ -105,7 +125,6 @@ public class TermsAggregation extends BucketAggregationBase implements Aggregati // --------------------------------------------------------------------------------------------- private TermsAggregation(Builder builder) { - super(builder); this.collectMode = builder.collectMode; this.exclude = builder.exclude; @@ -146,6 +165,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. @@ -306,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); @@ -397,6 +432,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -736,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/TermsAggregationCollectMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregationCollectMode.java index 1e21a465c..dda3903e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregationCollectMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregationCollectMode.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..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 @@ -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/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..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -33,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.UnmappedTermsAggregate /** @@ -44,7 +57,10 @@ * specification */ @JsonpDeserializable -public class UnmappedTermsAggregate extends TermsAggregateBase implements AggregateVariant { +public class UnmappedTermsAggregate extends TermsAggregateBase + implements + AggregateVariant, + ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private UnmappedTermsAggregate(Builder builder) { @@ -64,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 fe3c035fb..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -42,7 +55,7 @@ * specification */ @JsonpDeserializable -public class ValueCountAggregate extends SingleMetricAggregateBase implements AggregateVariant { +public class ValueCountAggregate extends SingleMetricAggregateBase implements AggregateVariant, ApiKeyAggregateVariant { // --------------------------------------------------------------------------------------------- private ValueCountAggregate(Builder builder) { @@ -62,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 cc2e1b79a..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -41,7 +54,10 @@ * specification */ @JsonpDeserializable -public class ValueCountAggregation extends FormattableMetricAggregation implements AggregationVariant { +public class ValueCountAggregation extends FormattableMetricAggregation + implements + AggregationVariant, + ApiKeyAggregationVariant { // --------------------------------------------------------------------------------------------- private ValueCountAggregation(Builder builder) { @@ -61,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/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 @Nullable private Integer initialBuffer; + @Nullable + private Script script; + /** * The name of the field. *

@@ -231,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; @@ -264,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/VariableWidthHistogramBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramBucket.java index e5ae980be..bb7c50768 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramBucket.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.VariableWidthHistogramBucket /** 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 a3f788b80..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -35,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.WeightedAverageAggregation /** @@ -44,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; @@ -60,7 +73,6 @@ public class WeightedAverageAggregation extends AggregationBase implements Aggre // --------------------------------------------------------------------------------------------- private WeightedAverageAggregation(Builder builder) { - super(builder); this.format = builder.format; this.value = builder.value; @@ -119,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); @@ -144,6 +164,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + // --------------------------------------------------------------------------------------------- /** @@ -249,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/aggregations/WeightedAverageValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageValue.java index 8e42d00a1..e005ad5a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageValue.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.WeightedAverageValue /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAvgAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAvgAggregate.java index 17223a5f6..7e0a8ec60 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAvgAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAvgAggregate.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.WeightedAvgAggregate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Analyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Analyzer.java index 0d8f35b47..78fbdec16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Analyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Analyzer.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.Analyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AnalyzerBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AnalyzerBuilders.java index 637cb9756..f43787382 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AnalyzerBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AnalyzerBuilders.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 Analyzer} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AnalyzerVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AnalyzerVariant.java index 9bbebb79e..de8a17f1f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AnalyzerVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AnalyzerVariant.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 Analyzer} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AsciiFoldingTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AsciiFoldingTokenFilter.java index c5ee53be2..2344d8077 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AsciiFoldingTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AsciiFoldingTokenFilter.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.AsciiFoldingTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilter.java index dde25275d..b771a9978 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilter.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.CharFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterBase.java index 56660227a..3db59a8c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterBase.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.CharFilterBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterBuilders.java index 900c5f9fc..9b13305e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharFilterBuilders.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 CharFilter} variants. *

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 escapedTags; + // --------------------------------------------------------------------------------------------- private HtmlStripCharFilter(Builder builder) { super(builder); + this.escapedTags = ApiTypeHelper.unmodifiable(builder.escapedTags); + } public static HtmlStripCharFilter of(Function> fn) { @@ -62,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(); + + } } @@ -78,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; @@ -106,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/analysis/HunspellTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HunspellTokenFilter.java index c32140f2a..5d8cea453 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HunspellTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HunspellTokenFilter.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.HunspellTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HyphenationDecompounderTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HyphenationDecompounderTokenFilter.java index cb65d8152..482b03338 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HyphenationDecompounderTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HyphenationDecompounderTokenFilter.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.HyphenationDecompounderTokenFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuAnalyzer.java index c704aa590..595d6fad6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuAnalyzer.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.IcuAnalyzer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuCollationAlternate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuCollationAlternate.java index cc1778f02..9ef247778 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuCollationAlternate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuCollationAlternate.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/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformDirection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformDirection.java index b2a7a6be9..fb10c8887 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformDirection.java +++ b/java-client/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/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 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/analysis/NormalizerBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NormalizerBuilders.java index 984c4b2b3..78091f854 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NormalizerBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NormalizerBuilders.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 Normalizer} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NormalizerVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NormalizerVariant.java index bd75c837b..1d97b6815 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NormalizerVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NormalizerVariant.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 Normalizer} variants. */ 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 df6c2034c..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 @@ -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; @@ -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.analysis.PathHierarchyTokenizer /** @@ -48,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; } @@ -84,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; } @@ -122,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); + + } + if (this.delimiter != null) { + generator.writeKey("delimiter"); + generator.write(this.delimiter); - 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); + } } @@ -148,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/analysis/PatternAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java index 3a5b42bb6..08397529e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java index 5b2d569de..f4d8c5d68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java index 6386fff7a..32af830bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java index 81778fbc4..1af9a7b8a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java index c378d434c..8199d1a5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticEncoder.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticEncoder.java index 11c709f4c..07d0f4398 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticEncoder.java +++ b/java-client/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/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..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 @@ -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/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..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 @@ -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/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..ff85c4f63 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; @@ -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/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 @@ -116,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/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 > fn) { + return this.script(fn.apply(new Script.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -204,6 +306,9 @@ protected static void setupGeoPointPropertyDeserializer(ObjectDeserializerDocumentation + * "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/GeoStrategy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoStrategy.java index 6b7cb88d8..94c3c1db0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoStrategy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoStrategy.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..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 @@ -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 /** @@ -48,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; } @@ -77,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"); @@ -86,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); + + } } @@ -101,6 +129,9 @@ public static class Builder extends CorePropertyBase.AbstractBuilder @Nullable private Boolean enabled; + @Nullable + private Boolean subobjects; + /** * API name: {@code enabled} */ @@ -109,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; @@ -138,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/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..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 @@ -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 /** @@ -85,7 +96,7 @@ public enum Kind implements JsonEnum { DoubleRange("double_range"), - DynamicProperty("{dynamic_property}"), + DynamicType("{dynamic_type}"), Alias("alias"), @@ -143,6 +154,8 @@ public enum Kind implements JsonEnum { Short("short"), + SparseVector("sparse_vector"), + Text("text"), TokenCount("token_count"), @@ -420,21 +433,20 @@ public DoubleRangeProperty doubleRange() { } /** - * Is this variant instance of kind {@code {dynamic_property}}? + * Is this variant instance of kind {@code {dynamic_type}}? */ - public boolean isDynamicProperty() { - return _kind == Kind.DynamicProperty; + 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 dynamicProperty() { - return TaggedUnionUtils.get(this, Kind.DynamicProperty); + public DynamicProperty dynamicType() { + return TaggedUnionUtils.get(this, Kind.DynamicType); } /** @@ -915,6 +927,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}? */ @@ -1179,15 +1208,15 @@ public ObjectBuilder 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) { @@ -1490,6 +1519,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; @@ -1580,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::dynamicProperty, 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"); @@ -1609,6 +1649,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/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..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 @@ -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. */ @@ -250,20 +261,20 @@ 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(); } @@ -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/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..50ed41633 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; @@ -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/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..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 @@ -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 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/mapping/ShortNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShortNumberProperty.java index 8d221f345..8ea57f02c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShortNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShortNumberProperty.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.ShortNumberProperty /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SizeField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SizeField.java index efce164b5..da1e51e62 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SizeField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SizeField.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.SizeField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceField.java index ecbf7dbe3..46fa77649 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceField.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.SourceField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceFieldMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceFieldMode.java index ef6b51a3e..0edfa6b56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceFieldMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceFieldMode.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/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java index eef094065..6abc51ba1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TermVectorOption.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TermVectorOption.java index 758cbb155..5bfafa17b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TermVectorOption.java +++ b/java-client/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 implement @Nullable private Boolean enabled; + @Nullable + private Boolean subobjects; + @Nullable private DataStreamTimestamp dataStreamTimestamp; @@ -675,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} */ @@ -736,6 +775,7 @@ protected static void setupTypeMappingDeserializer(ObjectDeserializer */ @JsonpDeserializable -public class BoolQuery extends QueryBase implements QueryVariant { +public class BoolQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { private final List filter; @Nullable @@ -74,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/BoostingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java index c7016c197..fc84a7188 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java @@ -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.BoostingQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ChildScoreMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ChildScoreMode.java index ffba69ea6..44c8bbecb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ChildScoreMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ChildScoreMode.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 */ @JsonpDeserializable -public class ExistsQuery extends QueryBase implements QueryVariant { +public class ExistsQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { private final String field; // --------------------------------------------------------------------------------------------- @@ -60,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/FieldAndFormat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldAndFormat.java index bbbb6241f..bba490ce5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldAndFormat.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldAndFormat.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.FieldAndFormat /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java index b1fb458ff..5223759e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.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.FieldLookup /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorModifier.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorModifier.java index 2591c7975..ec1e87656 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorModifier.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorModifier.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 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/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoExecution.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoExecution.java index 3b6eb28cd..f54eca26f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoExecution.java +++ b/java-client/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 */ @JsonpDeserializable -public class IdsQuery extends QueryBase implements QueryVariant { +public class IdsQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { private final List values; // --------------------------------------------------------------------------------------------- @@ -61,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/Intervals.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Intervals.java index e379a9d3c..a550021f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Intervals.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Intervals.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; @@ -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.query_dsl.IntervalsContainer /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java index c506d9fb1..64e5be025 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java @@ -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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.IntervalsAllOf /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java index 164e38aa6..eb5906894 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java @@ -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.IntervalsAnyOf /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsBuilders.java index e2cdf26b0..7904ee5e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsBuilders.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 Intervals} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilter.java index 2b82650d2..65fa3519d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilter.java @@ -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; @@ -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.IntervalsFilter /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilterBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilterBuilders.java index e79c73638..c117492c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilterBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilterBuilders.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.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 IntervalsFilter} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilterVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilterVariant.java index 6a24a3f47..89551d13d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilterVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilterVariant.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 IntervalsFilter} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java index 5a25871a8..140cbd8c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java @@ -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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.IntervalsFuzzy /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java index 74bbede8d..40825cac6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java @@ -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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.IntervalsMatch /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java index 39a1c0db0..982f9b977 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java @@ -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.IntervalsPrefix /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQuery.java index 9f446e458..837e178a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQuery.java @@ -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; @@ -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.query_dsl.IntervalsQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQueryBuilders.java index 79db990b6..dd8980571 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQueryBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQueryBuilders.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 IntervalsQuery} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQueryVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQueryVariant.java index 4fffb62af..7f0b138d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQueryVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQueryVariant.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 IntervalsQuery} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsVariant.java index 74a3b1360..d8732e09e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsVariant.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsVariant.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 Intervals} variants. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java index 64bc8aca5..1e9d22d6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java @@ -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.IntervalsWildcard /** 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 ae982210f..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 @@ -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; @@ -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.query_dsl.Like /** @@ -49,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/LikeBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeBuilders.java index aac7f69ff..93802207f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeBuilders.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 Like} variants. *

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..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 @@ -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 /** @@ -133,6 +144,8 @@ public final String index() { } /** + * Overrides the default analyzer. + *

* API name: {@code per_field_analyzer} */ public final Map perFieldAnalyzer() { @@ -314,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. @@ -324,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/MatchAllQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java index 6e71ae50d..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 @@ -17,12 +17,10 @@ * 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.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; @@ -32,6 +30,21 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -41,7 +54,7 @@ * specification */ @JsonpDeserializable -public class MatchAllQuery extends QueryBase implements QueryVariant { +public class MatchAllQuery extends QueryBase implements ApiKeyQueryVariant, QueryVariant { // --------------------------------------------------------------------------------------------- private MatchAllQuery(Builder builder) { @@ -53,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/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..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 @@ -17,13 +17,11 @@ * 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; +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; @@ -40,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.query_dsl.MatchQuery /** @@ -48,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; @@ -116,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/MoreLikeThisQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java index 812e6df80..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 @@ -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; @@ -38,11 +34,25 @@ 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: _types.query_dsl.MoreLikeThisQuery /** @@ -90,8 +100,6 @@ public class MoreLikeThisQuery extends QueryBase implements QueryVariant { @Nullable private final Integer minWordLength; - private final Map perFieldAnalyzer; - @Nullable private final String routing; @@ -123,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); @@ -286,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} */ @@ -415,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"); @@ -509,9 +496,6 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Integer minWordLength; - @Nullable - private Map perFieldAnalyzer; - @Nullable private String routing; @@ -714,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} */ @@ -865,8 +825,6 @@ protected static void setupMoreLikeThisQueryDeserializer(ObjectDeserializerAPI 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..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 @@ -17,12 +17,10 @@ * 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.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; @@ -37,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -45,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; @@ -73,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/Query.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index 8c47419fb..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 @@ -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,12 +42,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: _types.query_dsl.QueryContainer /** * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/query-dsl.html">Documentation * on elastic.co * @see API @@ -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/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..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 @@ -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/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..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 @@ -17,12 +17,10 @@ * 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.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; @@ -37,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -45,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; @@ -94,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/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 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/SimpleQueryStringQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java index be1e24cae..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 @@ -17,12 +17,10 @@ * 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.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; @@ -40,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.query_dsl.SimpleQueryStringQuery /** @@ -49,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; @@ -111,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; @@ -70,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/TermsLookup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsLookup.java index a6dd99304..26c6e55b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsLookup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsLookup.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.TermsLookup /** 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 2b533d8e0..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 @@ -17,12 +17,10 @@ * 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.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; @@ -36,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.TermsQuery /** @@ -44,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; @@ -62,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/TermsQueryField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQueryField.java index d4b81aacc..6c5b58271 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQueryField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQueryField.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; @@ -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.TermsQueryField /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQueryFieldBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQueryFieldBuilders.java index b06082d15..9af93e6ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQueryFieldBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQueryFieldBuilders.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.elasticsearch._types.FieldValue; 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 TermsQueryField} variants. *

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..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java index e3e1e3cfb..980e72f66 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java +++ b/java-client/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/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/_types/query_dsl/WildcardQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java index dacdde926..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 @@ -17,12 +17,10 @@ * 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.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; @@ -37,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -46,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; @@ -79,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/_types/query_dsl/WrapperQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java index 7c9c4bda6..1cf6bf711 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java index a31cebe61..3ab4ff7cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ZeroTermsQuery.java +++ b/java-client/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 builder) { @@ -80,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; } @@ -147,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. */ @@ -183,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 @@ -210,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(); } @@ -294,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/AsyncSearchStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java index e1bcbcf53..bb8711bc9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.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.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: async_search.status.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusResponse.java index 0ffb1f68e..dc174b25d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusResponse.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.elasticsearch.async_search.status.StatusResponseBase; @@ -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: async_search.status.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java index af4cd974f..a9f707561 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.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.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: async_search.delete.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchResponse.java index 752ce4eff..480a97f89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchResponse.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.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: async_search.delete.Response /** 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 42e50a475..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 @@ -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.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 async_search namespace. */ @@ -65,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 */ @@ -84,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 */ @@ -100,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 */ @@ -122,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 */ @@ -137,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 */ @@ -159,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 */ @@ -175,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 */ @@ -194,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 */ @@ -209,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 */ @@ -230,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 */ @@ -243,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 */ @@ -263,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 0587bc621..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 @@ -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.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 async_search namespace. */ @@ -64,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 */ @@ -84,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 */ @@ -101,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 */ @@ -123,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 */ @@ -138,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 */ @@ -160,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 */ @@ -177,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 */ @@ -197,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 */ @@ -213,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 */ @@ -234,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 */ @@ -248,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 */ @@ -269,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/async_search/GetAsyncSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java index 646a47c2a..552819ff4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.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.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: async_search.get.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchResponse.java index e5a5ef557..f6f53262d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchResponse.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.get.Response /** 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 68f544715..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 @@ -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.elasticsearch._types.ErrorResponse; @@ -62,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; @@ -70,6 +67,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: async_search.submit.Request /** @@ -2074,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/SubmitResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java index 8363e8555..4add78752 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java @@ -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/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 eed6bcf01..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 @@ -17,12 +17,9 @@ * 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; import co.elastic.clients.elasticsearch._types.ShardStatistics; import co.elastic.clients.elasticsearch.async_search.AsyncSearchResponseBase; import co.elastic.clients.json.JsonpDeserializable; @@ -39,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** @@ -51,6 +63,9 @@ public abstract class StatusResponseBase extends AsyncSearchResponseBase { private final ShardStatistics shards; + @Nullable + private final ClusterStatistics clusters; + @Nullable private final Integer completionStatus; @@ -60,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; } @@ -73,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 @@ -91,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); @@ -104,6 +136,9 @@ public abstract static class AbstractBuilder { private ShardStatistics shards; + @Nullable + private ClusterStatistics clusters; + @Nullable private Integer completionStatus; @@ -126,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 @@ -145,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/autoscaling/AutoscalingPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/AutoscalingPolicy.java index 45cef2f8b..c9666e558 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/AutoscalingPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/AutoscalingPolicy.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; 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: autoscaling._types.AutoscalingPolicy /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java index d4874e4c8..b5c9d4b58 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; 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: autoscaling.delete_autoscaling_policy.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyResponse.java index 44278cf9d..dd0fa3bb3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -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: autoscaling.delete_autoscaling_policy.Response /** 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 bf3098514..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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; 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 autoscaling namespace. */ @@ -63,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 */ @@ -83,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 */ @@ -100,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() { @@ -115,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 */ @@ -134,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 */ @@ -150,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 */ @@ -169,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 2f81e6968..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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; 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 autoscaling namespace. */ @@ -62,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 */ @@ -82,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 */ @@ -100,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 { @@ -115,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 */ @@ -135,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 */ @@ -152,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 */ @@ -172,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/autoscaling/GetAutoscalingCapacityRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java index 09825f147..b96f1c13c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; 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: autoscaling.get_autoscaling_capacity.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityResponse.java index 29bf56edb..3bf7ee2ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; import co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity.AutoscalingDeciders; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: autoscaling.get_autoscaling_capacity.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java index 0a93b6740..192c97fc6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; 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: autoscaling.get_autoscaling_policy.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyResponse.java index 11dd465ee..fabebcccf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; 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: autoscaling.get_autoscaling_policy.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java index 53297c74d..7e5ed9a77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; 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: autoscaling.put_autoscaling_policy.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyResponse.java index a2299a672..3016fcc9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -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: autoscaling.put_autoscaling_policy.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java index 9c53cd77a..3072c6f08 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; import co.elastic.clients.json.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: autoscaling.get_autoscaling_capacity.AutoscalingCapacity /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java index 7f5d17a33..cbb1b0280 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; import co.elastic.clients.json.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: autoscaling.get_autoscaling_capacity.AutoscalingDecider /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java index 76ca4ebe9..8f6b23e28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; import co.elastic.clients.json.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: autoscaling.get_autoscaling_capacity.AutoscalingDeciders /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java index aaf8fdfbf..66a9e4af5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; import co.elastic.clients.json.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: autoscaling.get_autoscaling_capacity.AutoscalingNode /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java index 69db522a1..38c418d89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; import co.elastic.clients.json.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: autoscaling.get_autoscaling_capacity.AutoscalingResources /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java index 65b2e10f8..b8c87dd37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java index 3a343e897..41ae79735 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java index 808c96d33..540b168ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java @@ -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.allocation.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationResponse.java index a9fe98523..cbdc87387 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationResponse.java @@ -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.allocation.AllocationRecord; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAnomalyDetectorColumn.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAnomalyDetectorColumn.java index 23e903487..2a33120c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CatAnomalyDetectorColumn.java +++ b/java-client/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/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..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 @@ -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. */ @@ -60,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 */ @@ -79,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 */ @@ -93,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 */ @@ -109,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 */ @@ -128,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 */ @@ -142,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 */ @@ -204,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 */ @@ -223,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 */ @@ -237,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 */ @@ -253,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 */ @@ -272,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 */ @@ -286,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 */ @@ -301,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 */ @@ -319,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 */ @@ -332,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 */ @@ -347,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() { @@ -361,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 */ @@ -380,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 */ @@ -394,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 */ @@ -409,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() { @@ -423,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 */ @@ -441,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 */ @@ -454,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 */ @@ -469,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 */ @@ -487,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 */ @@ -500,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 */ @@ -515,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 */ @@ -533,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 */ @@ -546,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 */ @@ -561,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 */ @@ -579,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 */ @@ -592,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 */ @@ -607,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() { @@ -621,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 */ @@ -639,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 */ @@ -652,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 */ @@ -667,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() { @@ -681,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() { @@ -695,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 */ @@ -713,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 */ @@ -726,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 */ @@ -741,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() { @@ -755,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 */ @@ -773,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 */ @@ -786,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 */ @@ -801,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 */ @@ -819,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 */ @@ -832,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 */ @@ -847,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 */ @@ -865,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 */ @@ -878,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 */ @@ -894,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 */ @@ -913,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 */ @@ -927,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 */ @@ -942,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 */ @@ -960,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 */ @@ -973,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 */ @@ -989,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 */ @@ -1008,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 */ @@ -1022,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 */ @@ -1037,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 */ @@ -1055,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 */ @@ -1068,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 615dcff9a..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 @@ -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. */ @@ -61,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 */ @@ -80,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 */ @@ -94,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 */ @@ -110,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 */ @@ -129,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 */ @@ -143,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 */ @@ -207,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 */ @@ -226,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 */ @@ -240,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 */ @@ -256,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 */ @@ -275,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 */ @@ -289,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 */ @@ -304,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 */ @@ -322,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 */ @@ -335,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 */ @@ -350,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 { @@ -364,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 */ @@ -383,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 */ @@ -397,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 */ @@ -412,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 { @@ -425,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 */ @@ -444,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 */ @@ -458,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 */ @@ -473,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 */ @@ -491,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 */ @@ -505,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 */ @@ -520,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 */ @@ -538,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 */ @@ -551,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 */ @@ -566,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 */ @@ -585,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 */ @@ -599,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 */ @@ -614,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 { @@ -628,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 */ @@ -646,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 */ @@ -659,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 */ @@ -674,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 { @@ -688,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 { @@ -701,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 */ @@ -719,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 */ @@ -732,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 */ @@ -747,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 { @@ -761,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 */ @@ -779,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 */ @@ -792,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 */ @@ -807,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 */ @@ -825,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 */ @@ -838,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 */ @@ -853,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 */ @@ -871,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 */ @@ -884,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 */ @@ -900,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 */ @@ -919,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 */ @@ -933,7 +944,7 @@ public final TasksResponse tasks(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -948,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 */ @@ -966,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 */ @@ -979,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 */ @@ -995,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 */ @@ -1014,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 */ @@ -1028,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 */ @@ -1043,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 */ @@ -1061,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 */ @@ -1074,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/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..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 @@ -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. */ @@ -59,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 */ @@ -78,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 */ @@ -94,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 */ @@ -113,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 */ @@ -129,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 */ @@ -148,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 */ @@ -164,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 */ @@ -183,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 */ @@ -198,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 */ @@ -216,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 */ @@ -232,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 */ @@ -251,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 */ @@ -265,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 */ @@ -280,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 */ @@ -299,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 */ @@ -315,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 */ @@ -334,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 */ @@ -351,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 */ @@ -371,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 */ @@ -386,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 */ @@ -405,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 */ @@ -420,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 */ @@ -438,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 */ @@ -453,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() { @@ -468,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 */ @@ -487,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 e33f4c553..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 @@ -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. */ @@ -60,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 */ @@ -79,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 */ @@ -96,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 */ @@ -115,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 */ @@ -131,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 */ @@ -150,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 */ @@ -166,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 */ @@ -185,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 */ @@ -201,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 */ @@ -220,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 */ @@ -237,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 */ @@ -257,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 */ @@ -272,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 */ @@ -287,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 */ @@ -306,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 */ @@ -323,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 */ @@ -342,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 */ @@ -360,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 */ @@ -381,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 */ @@ -397,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 */ @@ -416,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 */ @@ -432,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 */ @@ -450,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 */ @@ -466,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 { @@ -481,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 */ @@ -500,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/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 Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-allocation-explain.html">Documentation * on elastic.co */ @@ -81,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 */ @@ -94,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 */ @@ -109,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 */ @@ -128,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 */ @@ -143,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 */ @@ -162,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 */ @@ -175,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 */ @@ -190,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 */ @@ -208,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 */ @@ -223,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 */ @@ -241,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 */ @@ -254,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 */ @@ -269,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 */ @@ -287,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 */ @@ -300,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 */ @@ -315,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 */ @@ -333,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 */ @@ -346,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 */ @@ -361,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 */ @@ -379,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 */ @@ -395,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 */ @@ -414,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 */ @@ -428,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 */ @@ -443,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 */ @@ -461,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 */ @@ -474,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 */ @@ -489,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 */ @@ -507,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 */ @@ -522,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 */ @@ -540,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 */ @@ -553,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 */ @@ -568,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() { @@ -582,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 */ @@ -600,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 */ @@ -613,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 */ @@ -628,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 */ @@ -646,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 */ @@ -659,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 */ @@ -674,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 */ @@ -692,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 */ @@ -705,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 452a1c500..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 @@ -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. */ @@ -61,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 */ @@ -80,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 */ @@ -94,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 */ @@ -109,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 */ @@ -128,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 */ @@ -144,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 */ @@ -163,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 */ @@ -177,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 */ @@ -192,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 */ @@ -211,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 */ @@ -227,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 */ @@ -246,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 */ @@ -260,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 */ @@ -275,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 */ @@ -294,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 */ @@ -308,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 */ @@ -323,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 */ @@ -341,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 */ @@ -354,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 */ @@ -369,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 */ @@ -387,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 */ @@ -403,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 */ @@ -422,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 */ @@ -437,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 */ @@ -452,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 */ @@ -471,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 */ @@ -485,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 */ @@ -500,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 */ @@ -519,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 */ @@ -535,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 */ @@ -554,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 */ @@ -568,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 */ @@ -583,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 { @@ -597,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 */ @@ -615,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 */ @@ -628,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 */ @@ -643,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 */ @@ -661,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 */ @@ -674,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 */ @@ -689,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 */ @@ -707,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 */ @@ -721,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/ExistsComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java index a22ccf9e4..9e885e25e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java index 77f24d69e..eb5300a08 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.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_settings.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsResponse.java index 7fe288f9c..f2a895fad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsResponse.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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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_settings.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java index 7c7179e4a..a79f91f32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateResponse.java index 006122b08..6d69cfac9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java index 06c6d8d30..0c88e21d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java @@ -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; @@ -50,6 +46,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.health.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java index c7f600465..7e75590fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java @@ -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.cluster.health.HealthResponseBody; @@ -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.health.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java index 4add9d310..1d3366fbf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java @@ -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.pending_tasks.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksResponse.java index f3628885d..2e1c21246 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksResponse.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.cluster.pending_tasks.PendingTask; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.pending_tasks.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java index f72882910..e4ac6af9e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java @@ -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.post_voting_config_exclusions.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java index 6d0f7a331..c62cf1082 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.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.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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_settings.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsResponse.java index 7af607a53..c0ff70c2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsResponse.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.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: cluster.put_settings.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java index 126549052..11e89e166 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateResponse.java index 3f813926e..e4e7ad249 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java index 3e32134a1..c804fee28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java @@ -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; @@ -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: cluster.remote_info.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java index 1deb67a0a..7d79c5ec8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java @@ -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.cluster.remote_info.ClusterRemoteInfo; @@ -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: cluster.remote_info.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java index ddfe93079..c9a9570a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java @@ -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; @@ -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: cluster.reroute.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteResponse.java index 3c155176d..62ceed361 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteResponse.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.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: cluster.reroute.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java index c0b895ba7..2728396f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java @@ -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.state.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateResponse.java index 7831a1af1..2a843acca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateResponse.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; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.state.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationDecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationDecision.java index 7e1c1c66c..e1ed4010f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationDecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationDecision.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.allocation_explain; 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.allocation_explain.AllocationDecision /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationExplainDecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationExplainDecision.java index 031cd154d..e2d837185 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationExplainDecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationExplainDecision.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.allocation_explain; 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 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/cluster/reroute/CommandCancelAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandCancelAction.java index 685be9735..b16cf62d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandCancelAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandCancelAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.reroute; 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: cluster.reroute.CommandCancelAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java index 3a427da5b..913b40969 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.reroute; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.reroute.CommandMoveAction /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteDecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteDecision.java index 0815890df..ae865ece5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteDecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteDecision.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.reroute; 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.reroute.RerouteDecision /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteExplanation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteExplanation.java index b5a34c4f7..2d74012dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteExplanation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteExplanation.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.reroute; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.reroute.RerouteExplanation /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteParameters.java index 82139c392..d3cd07c53 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteParameters.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.reroute; 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: cluster.reroute.RerouteParameters /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java index 135d8389c..0a8d93a35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.CharFilterTypes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java index bcc7691a6..efac8233c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterFileSystem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java index 6aa8c598b..c9555dfcb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; import co.elastic.clients.elasticsearch._types.CompletionStats; @@ -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.stats.ClusterIndices /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java index ec55ac4ea..7f75c9bfc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterIndicesShards /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java index 954b42682..d21368b7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterIndicesShardsIndex /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIngest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIngest.java index 35f71d5df..be4c2170a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIngest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIngest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterIngest /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvm.java index 6dfb7f62c..4bcd69867 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvm.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterJvm /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java index 850f9cdb2..d3689ccfa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterJvmMemory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java index 17b945cf0..98e901949 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterJvmVersion /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java index 0fc5e3f51..856cd3fef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterNetworkTypes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java index 8b1cb111e..875e55b5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterNodeCount /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java index 17eac729e..502579ff6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; import co.elastic.clients.elasticsearch._types.PluginStats; @@ -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: cluster.stats.ClusterNodes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystem.java index 0c71cd6e5..840e37e21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystem.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterOperatingSystem /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java index e9b3da031..c468b1786 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterOperatingSystemArchitecture /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java index ecf0cec5f..610f3203c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterOperatingSystemName /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java index 2d3067fbd..8a521742b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.ClusterOperatingSystemPrettyName /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java index 0e9e69e82..1b141e263 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterProcess /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java index d75ea6972..e15216858 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterProcessCpu /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java index 44ad87ed3..83d97c71e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterProcessOpenFileDescriptors /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessor.java index 264875e18..11b1b9d68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessor.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterProcessor /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java index 7de8ebd93..fdfb949ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.ClusterShardMetrics /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java index d850d408b..613baec01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.FieldTypes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java index 11049f07b..ab0e2db71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.FieldTypesMappings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressure.java index 5a36d1405..3f46033b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressure.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; 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: cluster.stats.IndexingPressure /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemory.java index 6b711179c..476331fc5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemory.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.IndexingPressureMemory /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemorySummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemorySummary.java index 567cb3d24..957b9526f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemorySummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressureMemorySummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.IndexingPressureMemorySummary /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndicesVersions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndicesVersions.java index 570be4ccd..60a5f1d9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndicesVersions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndicesVersions.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.IndicesVersions /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java index fb3866308..41d2854ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.NodePackagingType /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java index f9d74ee68..49d54f380 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.OperatingSystemMemoryInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java index e901b0505..9455c5828 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.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: cluster.stats.RuntimeFieldTypes /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/StatsResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/StatsResponseBase.java index dee3f021c..2ec3ea8a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/StatsResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/StatsResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.cluster.stats; import co.elastic.clients.elasticsearch._types.HealthStatus; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.stats.StatsResponseBase /** 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 fe1e6a4bd..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/BulkResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkResponse.java index c953262e2..006d6e21b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java index 423d02c83..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollResponse.java index fb56d1a1f..f8f7ac60f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java index 943f8e18d..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeResponse.java index ae0eacf28..4cdc7fbfa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java index 2c6c92d9d..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/CountResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountResponse.java index b2b2c27ec..4305f961b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java index a985597e4..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/CreateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateResponse.java index d78f53263..9d86681a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java index c6b2b897a..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java index 487e391c6..b6b010584 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java index 6fce6a54f..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 @@ -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,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.delete_by_query_rethrottle.Request /** @@ -74,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} */ @@ -85,7 +95,7 @@ public final Float requestsPerSecond() { } /** - * Required - The task id to rethrottle + * Required - The ID for the task. *

* API name: {@code task_id} */ @@ -108,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} */ @@ -119,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/DeleteByQueryRethrottleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleResponse.java index bfea9e722..65a944b03 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleResponse.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.tasks.TaskListResponseBase; @@ -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_by_query_rethrottle.Response /** 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 8cd658a77..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/DeleteResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteResponse.java index 6fce7b11d..e3df61c71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java index da3d6c4f1..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptResponse.java index f84bb96d4..8ce01db52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java index b86dd3793..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java index fef36572e..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java index a4e54b0c5..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 @@ -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,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.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 @@ -126,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} */ @@ -137,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} */ @@ -146,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} */ @@ -155,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} */ @@ -166,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} */ @@ -176,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} */ @@ -186,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} */ @@ -196,7 +209,7 @@ public final String df() { } /** - * Required - The document ID + * Required - Defines the document ID. *

* API name: {@code id} */ @@ -205,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} */ @@ -214,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} */ @@ -225,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} */ @@ -236,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} */ @@ -246,6 +260,8 @@ public final String q() { } /** + * Defines the search definition using the Query DSL. + *

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

* API name: {@code routing} */ @@ -264,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} */ @@ -342,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} */ @@ -353,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} */ @@ -363,7 +379,7 @@ public final Builder source(Function * API name: {@code _source_excludes} *

@@ -375,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} *

@@ -387,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} *

@@ -399,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} *

@@ -411,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} */ @@ -422,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} */ @@ -432,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} */ @@ -442,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} */ @@ -452,7 +469,7 @@ public final Builder df(@Nullable String value) { } /** - * Required - The document ID + * Required - Defines the document ID. *

* API name: {@code id} */ @@ -462,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} */ @@ -472,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} */ @@ -483,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} */ @@ -494,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} */ @@ -504,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) { @@ -512,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) { @@ -519,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} */ @@ -529,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} *

@@ -541,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/ExplainResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainResponse.java index fbcbeb43d..65bdd1cfe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainResponse.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.InlineGet; @@ -45,6 +41,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.explain.Response /** 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 024c68591..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 @@ -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(ObjectDeserializer sourceIncludes; + @Nullable + private final Boolean forceSyntheticSource; + private final String id; private final String index; @@ -95,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; @@ -140,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. *

@@ -170,7 +198,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} */ @@ -201,7 +229,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} */ @@ -246,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; @@ -340,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. *

@@ -372,7 +418,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 +449,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 +463,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} *

@@ -548,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/GetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetResponse.java index 32facc619..7048ba143 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextRequest.java index b5042f5e3..1c6081543 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextRequest.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.get_script_context.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextResponse.java index a05009dcf..2c1c20a6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptContextResponse.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_script_context.Context; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesRequest.java index 3d4b9c43b..759ad87f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesRequest.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.get_script_languages.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesResponse.java index 222689ab7..ad94e17e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptLanguagesResponse.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_script_languages.LanguageContext; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Response /** 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 65d057ae2..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptResponse.java index e7dbf6945..f34dd19e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java index 12cfa2aef..7e3c5daca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceResponse.java index b392eb46d..309eafb19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java index bc557f369..defa784dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.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.health_report.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportResponse.java index 4c9923457..2bf9f7699 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportResponse.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.health_report.IndicatorHealthStatus; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Response /** 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 4ea3ab8f2..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/IndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexResponse.java index ec9cf6822..61c261ff3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java index 82863a2fc..2dd187328 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/InfoRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/InfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/InfoResponse.java index ce06f7cb7..f78f1304f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/InfoResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java index 7f959eca4..6b08a26eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.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.knn_search.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchResponse.java index 3db0b861f..246ea5609 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchResponse.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; @@ -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: _global.knn_search.Response /** 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 23298d8c8..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 @@ -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 /** @@ -67,6 +78,9 @@ public class MgetRequest extends RequestBase implements JsonpSerializable { private final List docs; + @Nullable + private final Boolean forceSyntheticSource; + private final List ids; @Nullable @@ -94,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; @@ -153,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. @@ -280,6 +308,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List docs; + @Nullable + private Boolean forceSyntheticSource; + @Nullable private List ids; @@ -420,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. @@ -641,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/MgetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetResponse.java index 533a4d30c..fd8915a8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java index 0102bfe59..62f51f89e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/MsearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchResponse.java index 21b4ae7d1..f099c3f95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java index 722f286c3..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateResponse.java index 04bfb5615..3b1da42e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java index 6b9a77957..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsResponse.java index 3cdf0a3a3..0b1b34b4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java index 0a60e2767..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeResponse.java index 0c80cf058..803742154 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java index 7e72b9812..89b17d098 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PingRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java index 69998a95d..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptResponse.java index 934b0c480..151c5e752 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java index 660c1a146..d1a40f192 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalResponse.java index e20b9948d..8ca2ad962 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java index 911096341..0019dcbd1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.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; @@ -53,6 +49,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java index cad9f46d4..153999c54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.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.reindex.Response /** 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 a957fe1d8..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 @@ -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.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 @@ -72,8 +83,7 @@ public static ReindexRethrottleRequest of(Function * API name: {@code requests_per_second} */ @@ -83,7 +93,7 @@ public final Float requestsPerSecond() { } /** - * Required - The task id to rethrottle + * Required - Identifier for the task. *

* API name: {@code task_id} */ @@ -106,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} */ @@ -117,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/ReindexRethrottleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleResponse.java index 9714df3b2..f9d06dfbd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleResponse.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.reindex_rethrottle.ReindexNode; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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_rethrottle.Response /** 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 b7c559c64..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateResponse.java index 7734887e4..0ef6a6f41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java index ddd8f6834..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteResponse.java index 820d105f8..8ffca225c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java index 0854bb4fc..9a1acc6b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/ScrollResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollResponse.java index 9f87bed60..cc7b53c94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java index c28b4de83..848880428 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index 2c26e6f3b..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 @@ -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 /** @@ -126,6 +138,9 @@ public class SearchRequest extends RequestBase implements JsonpSerializable { private final List fields; + @Nullable + private final Boolean forceSyntheticSource; + @Nullable private final Integer from; @@ -253,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; @@ -478,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 @@ -1245,6 +1274,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List fields; + @Nullable + private Boolean forceSyntheticSource; + @Nullable private Integer from; @@ -1679,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 @@ -2204,6 +2249,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. @@ -2602,6 +2719,9 @@ protected static void setupSearchRequestDeserializer(ObjectDeserializer_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} */ @@ -106,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} */ @@ -116,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} */ @@ -127,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} */ @@ -137,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} */ @@ -148,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} */ @@ -159,7 +177,7 @@ public final String preference() { } /** - * Specific routing value + * Custom value used to route operations to a specific shard. *

* API name: {@code routing} */ @@ -199,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} */ @@ -211,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} *

@@ -224,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} *

@@ -237,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} */ @@ -248,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} *

@@ -261,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} *

@@ -274,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} */ @@ -285,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} */ @@ -296,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/SearchShardsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsResponse.java index f5614a858..0f2d6cba5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsResponse.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.NodeAttributes; @@ -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_shards.Response /** 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 4c8f997f2..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateResponse.java index d8ec41a33..f95d8e33f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java index 665625707..19e3a9b66 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumResponse.java index 19666cd5f..894a2bed5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java index 2e9cc837e..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsResponse.java index 78f35f67c..a4b50198f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java index a9ee3638f..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java index 2a76fdbca..bdc232667 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java index dce0a8722..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 @@ -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,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.update_by_query_rethrottle.Request /** @@ -74,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} */ @@ -85,7 +95,7 @@ public final Float requestsPerSecond() { } /** - * Required - The task id to rethrottle + * Required - The ID for the task. *

* API name: {@code task_id} */ @@ -108,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} */ @@ -119,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/UpdateByQueryRethrottleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleResponse.java index f00906615..984ef259e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleResponse.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_by_query_rethrottle.UpdateByQueryRethrottleNode; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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_rethrottle.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java index a619ce5f2..e79316547 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/UpdateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateResponse.java index 62123bfea..87999969c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperation.java index d38566893..d6b3ff643 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperation.java +++ b/java-client/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/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 3fb805975..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBuilders.java index 542eac3be..7db9b7399 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBuilders.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationVariant.java index 8658ce8ab..8aef184f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationVariant.java +++ b/java-client/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/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 c1be6b1b5..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java index 3d51edc1c..abf55254c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java index 1f7c768e4..6c01e4a2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java index e26d65faa..b75f658dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/bulk/OperationType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/OperationType.java index 567120bbf..70c0fceba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/OperationType.java +++ b/java-client/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/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..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 @@ -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/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..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 @@ -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/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 + * 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/MultisearchHeader.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java index f582a312c..572ee6ad3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java index 8d008374c..b986012fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/RequestItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/RequestItem.java index cb257028f..e6969b727 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch_template/RequestItem.java +++ b/java-client/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/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 389cabb37..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 @@ -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/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 c558e85e7..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java index 8dfc8cdfc..a8e7d4365 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java index 908593880..316830d41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java index 18233a796..f6b693814 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java index 522cd1c83..c458ba7ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java index 4f410c39e..d3c38567f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricBase.java index 2701f17bd..f38c3f807 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricBase.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java index 2c669d6fc..a10d9de7e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java +++ b/java-client/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/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 8320801b7..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 @@ -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,13 +31,28 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** * 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 8db93a443..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 @@ -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,13 +31,28 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** * 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 d6f8c64db..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 @@ -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,13 +28,28 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** * 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 a757d588c..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 @@ -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,13 +31,28 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** * 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/RankEvalMetricRatingTreshold.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRatingTreshold.java index 3b619efff..aef7c93fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRatingTreshold.java +++ b/java-client/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/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 769a2d72e..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 @@ -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,13 +28,28 @@ import java.util.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** * 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/rank_eval/RankEvalQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java index c9d92c2a4..23595d28b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java index c0ba64a6b..51a876bc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java index 7d9664c4b..f61210216 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java index 31c55dc12..c3396d1b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java index 68816ad93..d58d708f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java index 6efe8c5c9..99e8c3ab4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexNode.java index 4f51c2546..b88f338ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.reindex_rethrottle; import co.elastic.clients.elasticsearch._types.BaseNode; @@ -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.reindex_rethrottle.ReindexNode /** 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 a29eece28..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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.reindex_rethrottle; import co.elastic.clients.elasticsearch._types.Retries; @@ -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.reindex_rethrottle.ReindexStatus /** @@ -106,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; @@ -156,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; @@ -171,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; @@ -295,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; @@ -303,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; @@ -311,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; @@ -319,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; @@ -327,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; @@ -335,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; @@ -343,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()); @@ -365,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; @@ -388,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; @@ -396,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; @@ -404,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; @@ -412,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/reindex_rethrottle/ReindexTask.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexTask.java index 150168eda..4926ba2ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexTask.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexTask.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.reindex_rethrottle; 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: _global.reindex_rethrottle.ReindexTask /** 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 c02e4904c..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java index f83cacc58..0b64287e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java index 3b5fb19fd..59f7d4da4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java index 24c0a0d8e..c2610126e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java index 2a030ed82..0c2be9c00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java index a1fce5a5a..0e589b4b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/BoundaryScanner.java +++ b/java-client/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 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/core/search/ContextBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ContextBuilders.java index ae245afcb..39efecf5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ContextBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ContextBuilders.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.elasticsearch._types.GeoLocation; 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 Context} variants. *

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 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/search/HitsMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java index 7de0361f6..1f00ed4d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java +++ b/java-client/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/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 e62bc153d..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 @@ -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(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/LinearInterpolationSmoothingModel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LinearInterpolationSmoothingModel.java index d3c0dbac5..3b054eefd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LinearInterpolationSmoothingModel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LinearInterpolationSmoothingModel.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.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.LinearInterpolationSmoothingModel /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/NestedIdentity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/NestedIdentity.java index 81163c3b7..369c6408e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/NestedIdentity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/NestedIdentity.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.NestedIdentity /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggest.java index ff242d49c..f04733d5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggest.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; @@ -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: _global.search._types.PhraseSuggest /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollate.java index 741e46b70..08a7d3e97 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollate.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; @@ -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.PhraseSuggestCollate /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollateQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollateQuery.java index c5271c9dd..c6f113170 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollateQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollateQuery.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.PhraseSuggestCollateQuery /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestHighlight.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestHighlight.java index b08bdbb87..779aa0e84 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestHighlight.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestHighlight.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.PhraseSuggestHighlight /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestOption.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestOption.java index c2ee8071e..abd4233d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestOption.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestOption.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.PhraseSuggestOption /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggester.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggester.java index a5af2ffc0..599e73094 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggester.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggester.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.PhraseSuggester /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PointInTimeReference.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PointInTimeReference.java index 1dcad25df..c3b48521a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PointInTimeReference.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PointInTimeReference.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.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: _global.search._types.PointInTimeReference /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Profile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Profile.java index e6500b38e..8e9b52041 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Profile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Profile.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.Profile /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryBreakdown.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryBreakdown.java index bc2aee181..f7e5fcd3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryBreakdown.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryBreakdown.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.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.QueryBreakdown /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryProfile.java index 1f24c113a..8256f941d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryProfile.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.QueryProfile /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RegexOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RegexOptions.java index beb0975a9..9cb077b80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RegexOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RegexOptions.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.RegexOptions /** 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 b1e1a8389..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 @@ -17,12 +17,10 @@ * 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; +import co.elastic.clients.json.JsonEnum; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -32,13 +30,31 @@ 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; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Rescore /** @@ -48,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; } @@ -68,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"); @@ -102,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 @@ -109,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} */ @@ -148,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 d8ed4b0ca..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 @@ -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; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.RescoreQuery /** @@ -49,7 +60,7 @@ * specification */ @JsonpDeserializable -public class RescoreQuery implements JsonpSerializable { +public class RescoreQuery implements RescoreVariant, JsonpSerializable { private final Query query; @Nullable @@ -76,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/core/search/ResponseBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ResponseBody.java index e78d7c23e..d2f9baea0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ResponseBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ResponseBody.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.ClusterStatistics; @@ -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: _global.search.ResponseBody /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScoreMode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScoreMode.java index f430af232..33c078f40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScoreMode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScoreMode.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 > 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/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java index 2741f4ed4..904b9c9cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java index b8fd0e327..1849ea553 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java index 688af29af..c716f2dcb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/update/UpdateWriteResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update/UpdateWriteResponseBase.java index a9fbb0475..b73357ad6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update/UpdateWriteResponseBase.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/core/update_by_query_rethrottle/UpdateByQueryRethrottleNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update_by_query_rethrottle/UpdateByQueryRethrottleNode.java index 8a973075e..5e61dc40e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update_by_query_rethrottle/UpdateByQueryRethrottleNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update_by_query_rethrottle/UpdateByQueryRethrottleNode.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.core.update_by_query_rethrottle; import co.elastic.clients.elasticsearch._types.BaseNode; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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_rethrottle.UpdateByQueryRethrottleNode /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java index 79878be5d..8f87222e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_indices; import co.elastic.clients.elasticsearch._types.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: dangling_indices.delete_dangling_index.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexResponse.java index b9757c440..eeeb64eaa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -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: dangling_indices.delete_dangling_index.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesAsyncClient.java index 7edef8707..5999055f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_indices; 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 dangling_indices namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesClient.java index b1f4f5f16..c6b15b641 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_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 dangling_indices namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java index d77f63268..acb5a9d15 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_indices; import co.elastic.clients.elasticsearch._types.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: dangling_indices.import_dangling_index.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexResponse.java index 788bd6c25..848c68787 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_indices; import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; @@ -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: dangling_indices.import_dangling_index.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java index c7562228f..4ac366cc2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_indices; import co.elastic.clients.elasticsearch._types.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: dangling_indices.list_dangling_indices.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesResponse.java index abb669a73..cc3f2403a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_indices; import co.elastic.clients.elasticsearch.dangling_indices.list_dangling_indices.DanglingIndex; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: dangling_indices.list_dangling_indices.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java index f2859a39a..8c15af612 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.dangling_indices.list_dangling_indices; import co.elastic.clients.json.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: dangling_indices.list_dangling_indices.DanglingIndex /** 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..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 @@ -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/DeletePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java index 4acb57e2d..c1b4e04ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyResponse.java index 22871b777..0f6dd91bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java index 44f188ed5..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 @@ -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. */ @@ -93,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 */ @@ -111,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 */ @@ -172,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 */ @@ -190,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 2c0224153..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 @@ -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. */ @@ -94,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 */ @@ -113,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 */ @@ -175,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 */ @@ -193,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/enrich/EnrichPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java index 4ba5bdaa7..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 @@ -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/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..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 @@ -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/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 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) { @@ -118,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( @@ -133,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) { @@ -155,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( @@ -172,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) { @@ -192,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 38aaa74cb..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 @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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 eql namespace. */ @@ -97,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) @@ -120,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, @@ -135,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) @@ -158,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, @@ -175,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 { @@ -195,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/eql/EqlDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java index 058eb564b..79d4e352a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql.delete.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteResponse.java index 1cc862b77..21106c574 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql.delete.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java index af43a6a43..dfb379ee1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql.get.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetResponse.java index 2d531d700..2dbca78e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql.get.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java index f8f00dfd8..d206b8365 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; import co.elastic.clients.elasticsearch.core.search.TotalHits; @@ -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: eql._types.EqlHits /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java index dd44482c5..4002a1336 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql.search.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponse.java index 5d2a6e866..48fbe74d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql.search.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java index 27ce0f744..558bd99fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql._types.EqlSearchResponseBase /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java index 52ef1acff..2d6aeec92 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql.get_status.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusResponse.java index b7a089e89..470814175 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; 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: eql.get_status.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java index 4f6ca5c05..5c35e261e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; import co.elastic.clients.json.JsonData; @@ -45,6 +41,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: eql._types.HitsEvent /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java index d76b2086a..d5b5a3a5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.eql; import co.elastic.clients.json.JsonData; @@ -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: eql._types.HitsSequence /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/search/ResultPosition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/search/ResultPosition.java index 222ec0a69..c67531c4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/search/ResultPosition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/search/ResultPosition.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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 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..5bc1b79fd --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java @@ -0,0 +1,142 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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._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; +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()); + } + + /** + * 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 new file mode 100644 index 000000000..93cbebacc --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java @@ -0,0 +1,144 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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._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; +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()); + } + + /** + * 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 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/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/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..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 @@ -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; @@ -61,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; @@ -69,6 +66,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 /** @@ -1825,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/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..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 @@ -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. */ @@ -61,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 */ @@ -80,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 e80a0ae3a..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 @@ -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. */ @@ -61,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 */ @@ -80,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/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..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 @@ -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. */ @@ -301,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 2c22b4ecd..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 @@ -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. */ @@ -310,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/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..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 @@ -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; @@ -34,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; @@ -44,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.put_lifecycle.Request /** @@ -58,6 +68,7 @@ public class PutLifecycleRequest extends RequestBase implements JsonpSerializabl @Nullable private final Time masterTimeout; + @Nullable private final String name; @Nullable @@ -71,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; @@ -93,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; } @@ -151,6 +163,7 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + @Nullable private String name; @Nullable @@ -181,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; } @@ -278,7 +291,8 @@ protected static void setupPutLifecycleRequestDeserializer(ObjectDeserializerAPI - * 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 fd84a51a7..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 @@ -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 * 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/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/DlmRolloverConditions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DlmRolloverConditions.java deleted file mode 100644 index 7b88799be..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DlmRolloverConditions.java +++ /dev/null @@ -1,420 +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.lang.Long; -import java.lang.String; -import java.util.Objects; -import java.util.function.Function; -import javax.annotation.Nullable; - -// typedef: indices._types.DlmRolloverConditions - -/** - * - * @see API - * 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/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..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 @@ -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. */ @@ -97,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 */ @@ -116,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 */ @@ -130,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 */ @@ -224,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 */ @@ -242,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 */ @@ -257,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 */ @@ -275,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 */ @@ -501,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 */ @@ -519,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 */ @@ -534,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 */ @@ -552,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 */ @@ -567,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 */ @@ -585,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 */ @@ -600,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 */ @@ -618,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 */ @@ -699,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 */ @@ -717,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 */ @@ -732,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 */ @@ -750,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 */ @@ -833,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 */ @@ -851,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 */ @@ -864,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 */ @@ -1116,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 */ @@ -1134,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 */ @@ -1147,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 */ @@ -1254,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 */ @@ -1272,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 */ @@ -1285,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 */ @@ -1499,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 */ @@ -1517,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 */ @@ -1611,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 */ @@ -1629,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 */ @@ -1764,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 /** @@ -1804,7 +1850,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 */ @@ -1823,7 +1869,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 */ @@ -1930,7 +1976,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 */ @@ -1948,7 +1994,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 */ @@ -1964,7 +2010,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 */ @@ -1984,7 +2030,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 */ @@ -1999,7 +2045,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 */ @@ -2017,7 +2063,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 */ @@ -2030,7 +2076,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 */ @@ -2046,7 +2092,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 */ @@ -2065,7 +2111,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 3ad23718c..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 @@ -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. */ @@ -95,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 */ @@ -114,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 */ @@ -128,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 */ @@ -222,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 */ @@ -240,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 */ @@ -255,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 */ @@ -273,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 */ @@ -508,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 */ @@ -527,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 */ @@ -543,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 */ @@ -562,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 */ @@ -578,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 */ @@ -596,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 */ @@ -611,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 */ @@ -629,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 */ @@ -710,7 +721,7 @@ public final BooleanResponse existsAlias(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html">Documentation * on elastic.co */ @@ -729,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 */ @@ -745,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 */ @@ -763,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 */ @@ -851,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 */ @@ -869,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 */ @@ -882,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 */ @@ -1140,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 */ @@ -1159,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 */ @@ -1173,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 */ @@ -1282,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 */ @@ -1300,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 */ @@ -1314,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 */ @@ -1537,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 */ @@ -1556,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 */ @@ -1653,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 */ @@ -1671,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 */ @@ -1808,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 /** @@ -1849,7 +1897,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 */ @@ -1868,7 +1916,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 */ @@ -1976,7 +2024,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 */ @@ -1994,7 +2042,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 */ @@ -2010,7 +2058,7 @@ public final ShrinkResponse shrink(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation * on elastic.co */ @@ -2030,7 +2078,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 */ @@ -2046,7 +2094,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 */ @@ -2065,7 +2113,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 */ @@ -2079,7 +2127,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 */ @@ -2095,7 +2143,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 */ @@ -2114,7 +2162,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/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 Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/index-modules.html#index-modules-settings">Documentation * on elastic.co * @see API * specification @@ -211,14 +222,10 @@ public class IndexSettings implements JsonpSerializable { @Nullable private final IndexSettingsTimeSeries timeSeries; - @Nullable - private final Integer shards; - @Nullable private final Queries queries; - @Nullable - private final SettingsSimilarity similarity; + private final Map similarity; @Nullable private final MappingLimitSettings mapping; @@ -288,9 +295,8 @@ 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.similarity = ApiTypeHelper.unmodifiable(builder.similarity); this.mapping = builder.mapping; this.indexingSlowlog = builder.indexingSlowlog; this.indexingPressure = builder.indexingPressure; @@ -714,14 +720,6 @@ public final IndexSettingsTimeSeries timeSeries() { return this.timeSeries; } - /** - * API name: {@code shards} - */ - @Nullable - public final Integer shards() { - return this.shards; - } - /** * API name: {@code queries} */ @@ -736,8 +734,7 @@ public final Queries queries() { *

* API name: {@code similarity} */ - @Nullable - public final SettingsSimilarity similarity() { + public final Map similarity() { return this.similarity; } @@ -1049,20 +1046,21 @@ 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"); 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) { @@ -1279,14 +1277,11 @@ public final Builder otherSettings(String key, JsonData value) { @Nullable private IndexSettingsTimeSeries timeSeries; - @Nullable - private Integer shards; - @Nullable private Queries queries; @Nullable - private SettingsSimilarity similarity; + private Map similarity; @Nullable private MappingLimitSettings mapping; @@ -1847,14 +1842,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} */ @@ -1875,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; } @@ -1886,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()); } /** @@ -2046,9 +2051,9 @@ 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/MappingLimitSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java index 1d96ce982..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 @@ -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,13 +34,28 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** * 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/indices/MappingLimitSettingsDepth.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java index ff6e3b778..0d711c469 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java index 2015ec80c..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java index 616fbbd6c..d268bd7f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java index bda69b799..707160c6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java index 8fcaf13e7..68753110a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java index 849a0c164..7c532cb2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java index 0d80cc1a7..d9e94b6c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java index 81aa3b896..caf86bbba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java index a7c7d13f1..989103136 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamResponse.java index 3aed3a38c..93aa19093 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java index f3fca2a41..211ff2c86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamResponse.java index e2b13d2d7..d3664f088 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java index 60769703c..836147ce0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddataFormat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddataFormat.java index 27f5b92df..187639a8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddataFormat.java +++ b/java-client/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 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/ResolveIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java index 02618e6b2..3ce0ffc59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexResponse.java index 6f92410af..789d67994 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java index 6a32f8a7b..0111463c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java index ea5837c32..8d0c14bdc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java @@ -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/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverResponse.java index c9926974c..1e54c4672 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java index 96a2fb150..b0d492f77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortMissing.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortMissing.java index 04f5c30ea..7cfbf1b3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentSortMissing.java +++ b/java-client/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/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..60d6d0d0f 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,12 +17,9 @@ * 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; import co.elastic.clients.json.JsonpMapper; @@ -30,13 +27,31 @@ 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.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 +61,74 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarity implements JsonpSerializable { - @Nullable - private final SettingsSimilarityBm25 bm25; +public class SettingsSimilarity + implements + TaggedUnion, + JsonpSerializable { + + /** + * {@link SettingsSimilarity} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + Bm25("BM25"), - @Nullable - private final SettingsSimilarityDfi dfi; + Boolean("boolean"), - @Nullable - private final SettingsSimilarityDfr dfr; + Dfi("DFI"), - @Nullable - private final SettingsSimilarityIb ib; + Dfr("DFR"), - @Nullable - private final SettingsSimilarityLmd lmd; + Ib("IB"), - @Nullable - private final SettingsSimilarityLmj lmj; + LMDirichlet("LMDirichlet"), + + LMJelinekMercer("LMJelinekMercer"), + + Scripted("scripted"), + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final SettingsSimilarityVariant _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final SettingsSimilarityVariant _get() { + return _value; + } - @Nullable - private final SettingsSimilarityScriptedTfidf scriptedTfidf; + public SettingsSimilarity(SettingsSimilarityVariant value) { - // --------------------------------------------------------------------------------------------- + this._kind = ApiTypeHelper.requireNonNull(value._settingsSimilarityKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + + } 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, ""); } @@ -87,107 +137,146 @@ public static SettingsSimilarity of(Function implements ObjectBuilder { - @Nullable - private SettingsSimilarityBm25 bm25; - - @Nullable - private SettingsSimilarityDfi dfi; - - @Nullable - private SettingsSimilarityDfr dfr; - - @Nullable - private SettingsSimilarityIb ib; + private Kind _kind; + private SettingsSimilarityVariant _value; - @Nullable - private SettingsSimilarityLmd lmd; - - @Nullable - private SettingsSimilarityLmj lmj; + @Override + protected Builder self() { + return this; + } + public ObjectBuilder bm25(SettingsSimilarityBm25 v) { + this._kind = Kind.Bm25; + this._value = v; + return this; + } - @Nullable - private SettingsSimilarityScriptedTfidf scriptedTfidf; + public ObjectBuilder bm25( + Function> fn) { + return this.bm25(fn.apply(new SettingsSimilarityBm25.Builder()).build()); + } - /** - * API name: {@code bm25} - */ - public final Builder bm25(@Nullable SettingsSimilarityBm25 value) { - this.bm25 = value; + public ObjectBuilder boolean_(SettingsSimilarityBoolean v) { + this._kind = Kind.Boolean; + this._value = v; return this; } - /** - * API name: {@code bm25} - */ - public final Builder bm25(Function> fn) { - return this.bm25(fn.apply(new SettingsSimilarityBm25.Builder()).build()); + public ObjectBuilder boolean_( + Function> fn) { + return this.boolean_(fn.apply(new SettingsSimilarityBoolean.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 lmdirichlet(SettingsSimilarityLmd v) { + this._kind = Kind.LMDirichlet; + this._value = v; return this; } - /** - * API name: {@code lmd} - */ - public final Builder lmd(Function> fn) { - return this.lmd(fn.apply(new SettingsSimilarityLmd.Builder()).build()); + public ObjectBuilder lmdirichlet( + Function> fn) { + return this.lmdirichlet(fn.apply(new SettingsSimilarityLmd.Builder()).build()); } - /** - * API name: {@code lmj} - */ - public final Builder lmj(@Nullable SettingsSimilarityLmj value) { - this.lmj = value; + public ObjectBuilder lmjelinekmercer(SettingsSimilarityLmj v) { + this._kind = Kind.LMJelinekMercer; + this._value = v; return this; } - /** - * API name: {@code lmj} - */ - public final Builder lmj(Function> fn) { - return this.lmj(fn.apply(new SettingsSimilarityLmj.Builder()).build()); + public ObjectBuilder lmjelinekmercer( + Function> fn) { + return this.lmjelinekmercer(fn.apply(new SettingsSimilarityLmj.Builder()).build()); } - /** - * API name: {@code scripted_tfidf} - */ - public final Builder scriptedTfidf(@Nullable SettingsSimilarityScriptedTfidf value) { - this.scriptedTfidf = value; + public ObjectBuilder scripted(SettingsSimilarityScripted v) { + this._kind = Kind.Scripted; + this._value = v; return this; } - /** - * API name: {@code scripted_tfidf} - */ - public final Builder scriptedTfidf( - Function> fn) { - return this.scriptedTfidf(fn.apply(new SettingsSimilarityScriptedTfidf.Builder()).build()); - } - - @Override - protected Builder self() { - return this; + public ObjectBuilder scripted( + Function> fn) { + return this.scripted(fn.apply(new SettingsSimilarityScripted.Builder()).build()); } - /** - * Builds a {@link SettingsSimilarity}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ 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::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.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.setTypeProperty("type", null); } + 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 b585f302a..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 @@ -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; @@ -30,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; @@ -38,6 +33,22 @@ 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. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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,20 +59,23 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarityBm25 implements JsonpSerializable { - private final double b; +public class SettingsSimilarityBm25 implements SettingsSimilarityVariant, JsonpSerializable { + @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; } @@ -70,23 +84,34 @@ public static SettingsSimilarityBm25 of(Function 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; } @@ -189,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/security/TransientMetadataConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java similarity index 56% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java rename to java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java index beb1066cf..e3016b8f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TransientMetadataConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java @@ -17,11 +17,7 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - -package co.elastic.clients.elasticsearch.security; +package co.elastic.clients.elasticsearch.indices; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -30,43 +26,53 @@ 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; -// typedef: security._types.TransientMetadataConfig +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 + * "../doc-files/api-spec.html#indices._types.SettingsSimilarityBoolean">API * specification */ @JsonpDeserializable -public class TransientMetadataConfig implements JsonpSerializable { - private final boolean enabled; - +public class SettingsSimilarityBoolean implements SettingsSimilarityVariant, JsonpSerializable { // --------------------------------------------------------------------------------------------- - private TransientMetadataConfig(Builder builder) { - - this.enabled = ApiTypeHelper.requireNonNull(builder.enabled, this, "enabled"); + private SettingsSimilarityBoolean(Builder builder) { } - public static TransientMetadataConfig of(Function> fn) { + public static SettingsSimilarityBoolean of(Function> fn) { return fn.apply(new Builder()).build(); } /** - * Required - API name: {@code enabled} + * SettingsSimilarity variant kind. */ - public final boolean enabled() { - return this.enabled; + @Override + public SettingsSimilarity.Kind _settingsSimilarityKind() { + return SettingsSimilarity.Kind.Boolean; } /** @@ -80,8 +86,7 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("enabled"); - generator.write(this.enabled); + generator.write("type", "boolean"); } @@ -93,53 +98,42 @@ public String toString() { // --------------------------------------------------------------------------------------------- /** - * Builder for {@link TransientMetadataConfig}. + * Builder for {@link SettingsSimilarityBoolean}. */ 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; - } - + ObjectBuilder { @Override protected Builder self() { return this; } /** - * Builds a {@link TransientMetadataConfig}. + * Builds a {@link SettingsSimilarityBoolean}. * * @throws NullPointerException * if some of the required fields are null. */ - public TransientMetadataConfig build() { + public SettingsSimilarityBoolean build() { _checkSingleUse(); - return new TransientMetadataConfig(this); + return new SettingsSimilarityBoolean(this); } } // --------------------------------------------------------------------------------------------- /** - * Json deserializer for {@link TransientMetadataConfig} + * Json deserializer for {@link SettingsSimilarityBoolean} */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, TransientMetadataConfig::setupTransientMetadataConfigDeserializer); - - protected static void setupTransientMetadataConfigDeserializer( - ObjectDeserializer op) { + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SettingsSimilarityBoolean::setupSettingsSimilarityBooleanDeserializer); - op.add(Builder::enabled, JsonpDeserializer.booleanDeserializer(), "enabled"); + 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 new file mode 100644 index 000000000..454f72af1 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBuilders.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.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 SettingsSimilarity} variants. + */ +public class SettingsSimilarityBuilders { + private SettingsSimilarityBuilders() { + } + + /** + * Creates a builder for the {@link SettingsSimilarityBm25 BM25} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityBm25.Builder bm25() { + return new SettingsSimilarityBm25.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityBm25 BM25} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity bm25( + 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 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() { + 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 LMDirichlet} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityLmd.Builder lmdirichlet() { + return new SettingsSimilarityLmd.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmd LMDirichlet} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity lmdirichlet( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.lmdirichlet(fn.apply(new SettingsSimilarityLmd.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityLmj LMJelinekMercer} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityLmj.Builder lmjelinekmercer() { + return new SettingsSimilarityLmj.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityLmj + * LMJelinekMercer} {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity lmjelinekmercer( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + builder.lmjelinekmercer(fn.apply(new SettingsSimilarityLmj.Builder()).build()); + return builder.build(); + } + + /** + * Creates a builder for the {@link SettingsSimilarityScripted scripted} + * {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarityScripted.Builder scripted() { + return new SettingsSimilarityScripted.Builder(); + } + + /** + * Creates a SettingsSimilarity of the {@link SettingsSimilarityScripted + * scripted} {@code SettingsSimilarity} variant. + */ + public static SettingsSimilarity scripted( + Function> fn) { + SettingsSimilarity.Builder builder = new SettingsSimilarity.Builder(); + 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 3c9367797..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 @@ -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 { - private final int mu; +public class SettingsSimilarityLmd implements SettingsSimilarityVariant, JsonpSerializable { + @Nullable + private final Double mu; // --------------------------------------------------------------------------------------------- private SettingsSimilarityLmd(Builder builder) { - this.mu = ApiTypeHelper.requireNonNull(builder.mu, this, "mu"); + this.mu = builder.mu; } @@ -63,9 +75,18 @@ public static SettingsSimilarityLmd of(Function 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; } @@ -137,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 b3890b127..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 @@ -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; @@ -30,13 +26,28 @@ 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. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 @@ -47,14 +58,15 @@ * specification */ @JsonpDeserializable -public class SettingsSimilarityLmj implements JsonpSerializable { - private final double lambda; +public class SettingsSimilarityLmj implements SettingsSimilarityVariant, JsonpSerializable { + @Nullable + private final Double lambda; // --------------------------------------------------------------------------------------------- private SettingsSimilarityLmj(Builder builder) { - this.lambda = ApiTypeHelper.requireNonNull(builder.lambda, this, "lambda"); + this.lambda = builder.lambda; } @@ -63,9 +75,18 @@ 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; } @@ -139,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 57% 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 ff59778c4..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 @@ -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,31 +35,57 @@ import java.util.function.Function; import javax.annotation.Nullable; -// typedef: indices._types.SettingsSimilarityScriptedTfidf +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.SettingsSimilarityScripted /** * * @see API + * "../doc-files/api-spec.html#indices._types.SettingsSimilarityScripted">API * specification */ @JsonpDeserializable -public class SettingsSimilarityScriptedTfidf implements 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(); } + /** + * SettingsSimilarity variant kind. + */ + @Override + public SettingsSimilarity.Kind _settingsSimilarityKind() { + return SettingsSimilarity.Kind.Scripted; + } + /** * Required - API name: {@code script} */ @@ -71,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. */ @@ -82,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 @@ -95,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} */ @@ -118,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 new file mode 100644 index 000000000..b77e52300 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityVariant.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.indices; + +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 SettingsSimilarity} variants. + */ +public interface SettingsSimilarityVariant extends JsonpSerializable { + + SettingsSimilarity.Kind _settingsSimilarityKind(); + + default SettingsSimilarity _toSettingsSimilarity() { + return new SettingsSimilarity(this); + } + +} 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..3468d41f3 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,21 +17,13 @@ * 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; 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; -import co.elastic.clients.json.JsonpSerializable; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; @@ -40,16 +32,28 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; 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; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -58,56 +62,23 @@ * "../doc-files/api-spec.html#indices.simulate_index_template.Request">API * 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; } @@ -115,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. *

@@ -187,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. @@ -209,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} */ @@ -217,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); - - } - - } - // --------------------------------------------------------------------------------------------- /** @@ -332,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. *

@@ -484,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. @@ -532,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} */ @@ -541,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; @@ -607,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}". */ @@ -684,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 9c85fdf06..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 @@ -17,19 +17,40 @@ * 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; +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. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 @@ -39,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; + + 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(); + } + + /** + * API name: {@code overlapping} + */ + public final List overlapping() { + return this.overlapping; + } -public class SimulateIndexTemplateResponse { - public SimulateIndexTemplateResponse() { + /** + * Required - API name: {@code template} + */ + public final Template template() { + return this.template; } /** - * Singleton instance for {@link SimulateIndexTemplateResponse}. + * Serialize this object to JSON. */ - public static final SimulateIndexTemplateResponse _INSTANCE = new SimulateIndexTemplateResponse(); + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - public static final JsonpDeserializer _DESERIALIZER = JsonpDeserializer - .fixedValue(SimulateIndexTemplateResponse._INSTANCE); + 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); + } + + // --------------------------------------------------------------------------------------------- + + /** + * 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 4bafcbf29..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 @@ -17,15 +17,13 @@ * 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; 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; @@ -37,15 +35,32 @@ 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; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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 /** @@ -58,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; } @@ -88,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 @@ -101,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. *

@@ -111,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. @@ -135,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} */ - public final IndexTemplate template() { + @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; } /** - * 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); + + } } @@ -158,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 @@ -185,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. *

@@ -195,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. @@ -229,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 @@ -269,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/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 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 - * 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/explain_data_lifecycle/DataStreamLifecycleExplain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataStreamLifecycleExplain.java index c4fdd1bc4..145d2197f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataStreamLifecycleExplain.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataStreamLifecycleExplain.java @@ -17,10 +17,6 @@ * 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; @@ -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.explain_data_lifecycle.DataStreamLifecycleExplain /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldSummary.java index 3b55cb249..9f651ac3c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldSummary.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.field_usage_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: indices.field_usage_stats.FieldSummary /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldsUsageBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldsUsageBody.java index 20df71a8c..933279c54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldsUsageBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldsUsageBody.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.field_usage_stats; 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.field_usage_stats.FieldsUsageBody /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/InvertedIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/InvertedIndex.java index 6b6e250aa..70580f34b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/InvertedIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/InvertedIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.field_usage_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: indices.field_usage_stats.InvertedIndex /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/ShardsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/ShardsStats.java index dc1914cea..f606238b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/ShardsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/ShardsStats.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.field_usage_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: indices.field_usage_stats.ShardsStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsIndex.java index 197d7fe19..a41471ddc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsIndex.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.field_usage_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: indices.field_usage_stats.UsageStatsIndex /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsShards.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsShards.java index 29f2d3c8f..b20fe3559 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsShards.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsShards.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.field_usage_stats; import co.elastic.clients.elasticsearch.indices.stats.ShardRouting; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If 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.UsageStatsShards /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/forcemerge/ForceMergeResponseBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/forcemerge/ForceMergeResponseBody.java index 9d45b4b3d..7e43e520e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/forcemerge/ForceMergeResponseBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/forcemerge/ForceMergeResponseBody.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.forcemerge; import co.elastic.clients.elasticsearch._types.ShardsOperationResponseBase; @@ -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: indices.forcemerge._types.ForceMergeResponseBody /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get/Feature.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get/Feature.java index 4098b38c5..e89ee66bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get/Feature.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get/Feature.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.indices.get; 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_cluster/ResolveClusterInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_cluster/ResolveClusterInfo.java new file mode 100644 index 000000000..bf926a5fa --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_cluster/ResolveClusterInfo.java @@ -0,0 +1,310 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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.resolve_cluster; + +import co.elastic.clients.elasticsearch._types.ElasticsearchVersionMinInfo; +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.resolve_cluster.ResolveClusterInfo + +/** + * Provides information about each cluster request relevant to doing a + * cross-cluster search. + * + * @see API + * 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/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 + * @see API * specification */ @JsonpDeserializable -public class DataLifecycle implements JsonpSerializable { - @Nullable - private final Time dataRetention; +public class CompletionResult implements JsonpSerializable { + private final String result; // --------------------------------------------------------------------------------------------- - private DataLifecycle(Builder builder) { + private CompletionResult(Builder builder) { - this.dataRetention = builder.dataRetention; + this.result = ApiTypeHelper.requireNonNull(builder.result, this, "result"); } - public static DataLifecycle of(Function> fn) { + public static CompletionResult of(Function> fn) { return fn.apply(new Builder()).build(); } /** - * API name: {@code data_retention} + * Required - API name: {@code result} */ - @Nullable - public final Time dataRetention() { - return this.dataRetention; + public final String result() { + return this.result; } /** @@ -83,11 +93,8 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (this.dataRetention != null) { - generator.writeKey("data_retention"); - this.dataRetention.serialize(generator, mapper); - - } + generator.writeKey("result"); + generator.write(this.result); } @@ -99,57 +106,49 @@ public String toString() { // --------------------------------------------------------------------------------------------- /** - * Builder for {@link DataLifecycle}. + * Builder for {@link CompletionResult}. */ - public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - @Nullable - private Time dataRetention; + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String result; /** - * API name: {@code data_retention} + * Required - API name: {@code result} */ - public final Builder dataRetention(@Nullable Time value) { - this.dataRetention = value; + public final Builder result(String value) { + this.result = 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}. + * Builds a {@link CompletionResult}. * * @throws NullPointerException * if some of the required fields are null. */ - public DataLifecycle build() { + public CompletionResult build() { _checkSingleUse(); - return new DataLifecycle(this); + return new CompletionResult(this); } } // --------------------------------------------------------------------------------------------- /** - * Json deserializer for {@link DataLifecycle} + * Json deserializer for {@link CompletionResult} */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, - DataLifecycle::setupDataLifecycleDeserializer); + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + CompletionResult::setupCompletionResultDeserializer); - protected static void setupDataLifecycleDeserializer(ObjectDeserializer op) { + protected static void setupCompletionResultDeserializer(ObjectDeserializer op) { - op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); + op.add(Builder::result, JsonpDeserializer.stringDeserializer(), "result"); } 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..58a8f73c6 --- /dev/null +++ b/java-client/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/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..b7ce8d929 --- /dev/null +++ b/java-client/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/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..ed280cff9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java @@ -0,0 +1,373 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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 String query; + + @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.query = builder.query; + 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; + } + + /** + * 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 + *

+ * 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.query != null) { + generator.writeKey("query"); + generator.write(this.query); + + } + 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 String query; + + @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; + } + + /** + * 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 + *

+ * 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::query, JsonpDeserializer.stringDeserializer(), "query"); + 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/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..ea2615821 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResult.java @@ -0,0 +1,348 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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"), + + Completion("completion"), + + Rerank("rerank"), + + ; + + 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); + } + + /** + * 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) { + + 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; + 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; + } + } + + 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 ObjectBuilder 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); + } + + } + + 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"); + op.add(Builder::completion, JsonpDeserializer.arrayDeserializer(CompletionResult._DESERIALIZER), "completion"); + op.add(Builder::rerank, JsonpDeserializer.arrayDeserializer(RankedDocument._DESERIALIZER), "rerank"); + + } + + 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..e8eb84a11 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceResultBuilders.java @@ -0,0 +1,53 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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, completion, rerank + * 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..30c31115d --- /dev/null +++ b/java-client/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/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/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/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..cfcc95195 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskType.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.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"), + + Rerank("rerank"), + + Completion("completion"), + + ; + + 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/inference/TextEmbeddingResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java new file mode 100644 index 000000000..a237a6945 --- /dev/null +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java index 52b275198..3f12acfec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java index 552952b9e..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 @@ -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/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..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 @@ -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. */ @@ -93,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() { @@ -153,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() { @@ -167,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 */ @@ -185,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 b039afe3f..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 @@ -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. */ @@ -95,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 { @@ -156,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 { @@ -170,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 */ @@ -188,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/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 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/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBase.java index 8b4fa3224..1a211cdcb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBase.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java index 8586b9a0e..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java index 62df97093..49a6a6246 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokResponse.java index e7ae3cdf9..4a61915af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorVariant.java index 91b46f115..e8ecb195b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorVariant.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java index b7f0d4b5c..4bace4a41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineResponse.java index a08ea6d90..bf10c8646 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java index f826b01a9..60410b521 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java index 6967424bd..60bac03cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java +++ b/java-client/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/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/ingest/SetProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java index af042a9e1..cc5c53267 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java index 4c17a574f..ace13f2af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/ingest/ShapeType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ShapeType.java index a24fb922a..9775c2674 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ShapeType.java +++ b/java-client/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/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..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 @@ -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/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..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 @@ -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/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..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 @@ -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/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..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 @@ -17,10 +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. */ @@ -97,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 */ @@ -116,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 */ @@ -131,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 */ @@ -149,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 */ @@ -164,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 */ @@ -182,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 */ @@ -197,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 */ @@ -215,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 */ @@ -230,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 */ @@ -249,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 */ @@ -264,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 */ @@ -282,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 */ @@ -1846,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 */ @@ -1865,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 760ccf95f..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 @@ -17,10 +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. */ @@ -99,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 */ @@ -118,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 */ @@ -133,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 */ @@ -152,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 */ @@ -168,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 */ @@ -187,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 */ @@ -203,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 */ @@ -222,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 */ @@ -238,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 */ @@ -257,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 */ @@ -273,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 */ @@ -292,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 */ @@ -1905,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 */ @@ -1924,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/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..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 @@ -17,10 +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,8 +100,17 @@ public class PutTrainedModelRequest extends RequestBase implements JsonpSerializ @Nullable private final TrainedModelType modelType; + @Nullable + private final String platformArchitecture; + + @Nullable + private final TrainedModelPrefixStrings prefixStrings; + private final List tags; + @Nullable + private final Boolean waitForCompletion; + // --------------------------------------------------------------------------------------------- private PutTrainedModelRequest(Builder builder) { @@ -105,7 +125,10 @@ 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.prefixStrings = builder.prefixStrings; this.tags = ApiTypeHelper.unmodifiable(builder.tags); + this.waitForCompletion = builder.waitForCompletion; } @@ -222,6 +245,34 @@ 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; + } + + /** + * 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. *

@@ -231,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. */ @@ -281,6 +342,16 @@ 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 (this.prefixStrings != null) { + generator.writeKey("prefix_strings"); + this.prefixStrings.serialize(generator, mapper); + + } if (ApiTypeHelper.isDefined(this.tags)) { generator.writeKey("tags"); generator.writeStartArray(); @@ -332,9 +403,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private TrainedModelType modelType; + @Nullable + private String platformArchitecture; + + @Nullable + private TrainedModelPrefixStrings prefixStrings; + @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 @@ -477,6 +557,44 @@ 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; + } + + /** + * 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. *

@@ -501,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; @@ -538,6 +666,8 @@ 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::prefixStrings, TrainedModelPrefixStrings._DESERIALIZER, "prefix_strings"); op.add(Builder::tags, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "tags"); } @@ -594,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/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..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 @@ -17,10 +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/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..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 @@ -17,10 +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 /** @@ -58,6 +69,9 @@ public class StartTrainedModelDeploymentRequest extends RequestBase { @Nullable private final String cacheSize; + @Nullable + private final String deploymentId; + private final String modelId; @Nullable @@ -83,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; @@ -111,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. @@ -205,6 +230,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String cacheSize; + @Nullable + private String deploymentId; + private String modelId; @Nullable @@ -238,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. @@ -408,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/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..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 @@ -17,10 +17,6 @@ * 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/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/TrainedModelPrefixStrings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java new file mode 100644 index 000000000..5bfde5862 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.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.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.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 { + @Nullable + private final String ingest; + + @Nullable + private final String search; + + // --------------------------------------------------------------------------------------------- + + private TrainedModelPrefixStrings(Builder builder) { + + this.ingest = builder.ingest; + this.search = builder.search; + + } + + public static TrainedModelPrefixStrings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * String prepended to input at ingest + *

+ * API name: {@code ingest} + */ + @Nullable + public final String ingest() { + return this.ingest; + } + + /** + * String prepended to input at search + *

+ * API name: {@code search} + */ + @Nullable + 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) { + + if (this.ingest != null) { + generator.writeKey("ingest"); + generator.write(this.ingest); + + } + if (this.search != null) { + 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 { + @Nullable + private String ingest; + + @Nullable + private String search; + + /** + * String prepended to input at ingest + *

+ * API name: {@code ingest} + */ + public final Builder ingest(@Nullable String value) { + this.ingest = value; + return this; + } + + /** + * String prepended to input at search + *

+ * API name: {@code search} + */ + public final Builder search(@Nullable 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/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..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 @@ -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. */ @@ -131,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 */ @@ -149,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 */ @@ -162,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 */ @@ -177,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 */ @@ -195,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 */ @@ -208,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 */ @@ -269,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 */ @@ -287,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 */ @@ -300,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 */ @@ -315,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 */ @@ -333,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 */ @@ -346,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 fe4e6be39..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 @@ -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. */ @@ -133,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 */ @@ -151,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 */ @@ -164,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 */ @@ -179,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 */ @@ -197,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 */ @@ -210,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 */ @@ -273,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 */ @@ -291,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 */ @@ -304,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 */ @@ -319,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 */ @@ -337,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 */ @@ -350,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/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..11e06bac8 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,12 +17,9 @@ * 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; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -35,10 +32,28 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; 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 javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** @@ -48,13 +63,24 @@ */ @JsonpDeserializable public class NodeInfoDiscover implements JsonpSerializable { - private final String seedHosts; + private final Map 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); } @@ -63,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. */ @@ -80,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(); + + } } @@ -97,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; } @@ -135,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/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..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 @@ -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 /** @@ -49,8 +60,10 @@ */ @JsonpDeserializable public class NodeInfoPath implements JsonpSerializable { + @Nullable private final String logs; + @Nullable private final String home; private final List repo; @@ -61,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); } @@ -73,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; @@ -111,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(); @@ -152,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. */ @@ -188,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/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..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 @@ -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 /** @@ -51,6 +62,7 @@ public class NodeInfoSettings implements JsonpSerializable { private final NodeInfoSettingsNode node; + @Nullable private final NodeInfoPath path; @Nullable @@ -92,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; @@ -127,8 +139,9 @@ public final NodeInfoSettingsNode node() { } /** - * Required - API name: {@code path} + * API name: {@code path} */ + @Nullable public final NodeInfoPath path() { return this.path; } @@ -243,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); @@ -319,6 +334,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private NodeInfoSettingsNode node; + @Nullable private NodeInfoPath path; @Nullable @@ -386,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 414ff1aca..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 @@ -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; @@ -36,10 +32,26 @@ 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: nodes.info.NodeInfoSettingsCluster /** @@ -57,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; @@ -70,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; } @@ -104,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; } @@ -139,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) { @@ -174,7 +189,7 @@ public static class Builder extends WithJsonObjectBuilderBase private NodeInfoSettingsClusterElection election; @Nullable - private String initialMasterNodes; + private List initialMasterNodes; @Nullable private DeprecationIndexing deprecationIndexing; @@ -220,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; } @@ -274,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"); } 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..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 @@ -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/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 * 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/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java index 7479b62ed..32cacf1e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_ruleset/list/QueryRulesetListItem.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/rollup/DateHistogramGrouping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DateHistogramGrouping.java index 335e8d913..8401bc98d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DateHistogramGrouping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DateHistogramGrouping.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.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: rollup._types.DateHistogramGrouping /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java index 0fe0dea47..8abae242c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.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.delete_job.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobResponse.java index 7a222ff68..e6e4349d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobResponse.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.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: rollup.delete_job.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupAsyncClient.java index 74e250551..3f6ac151b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupAsyncClient.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.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 rollup namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupClient.java index 1bb654a21..ff15d2a36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupClient.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.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 rollup namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/FieldMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/FieldMetric.java index 86b10e7ca..37970526f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/FieldMetric.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/FieldMetric.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.FieldMetric /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java index 5787b4a19..29f9fe583 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.get_jobs.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsResponse.java index 965f1f473..4c63ab9b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsResponse.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.rollup.get_jobs.RollupJob; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.get_jobs.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java index 6cae7d92a..7f1a32ac5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.get_rollup_caps.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsResponse.java index bf2d5d1f9..396a1a5a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsResponse.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.rollup.get_rollup_caps.RollupCapabilities; @@ -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.get_rollup_caps.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java index 72c6d2f68..d4f711672 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.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; @@ -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: rollup.get_rollup_index_caps.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsResponse.java index 2db99c5fd..72eac4bd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsResponse.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.rollup.get_rollup_index_caps.IndexCapabilities; @@ -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.get_rollup_index_caps.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Groupings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Groupings.java index 5a329f7e5..ebcb67773 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Groupings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Groupings.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; @@ -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: rollup._types.Groupings /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/HistogramGrouping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/HistogramGrouping.java index 0a7aa68fb..4536a5212 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/HistogramGrouping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/HistogramGrouping.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; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.HistogramGrouping /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Metric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Metric.java index 036ea60f1..d370331c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Metric.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Metric.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.rollup; 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 * 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/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java index f22e337b2..9edd1b6f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java index c5aab92fc..c7cb0dd00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java index b5515a8ee..f3f31dc19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java index 8f00e9277..aa4f0d40d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java +++ b/java-client/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/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 4fe85dd95..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 @@ -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/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 39f4cd916..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java index 5fdc2a430..b670688c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java index 067ca4a6a..acc8a56fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java index ec9f4de46..1ede2f122 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java index 352e4551f..77c829130 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java index b3cc032ec..64d32c036 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java +++ b/java-client/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/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 13f63afca..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java index 33b5f4656..26a914f44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java +++ b/java-client/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/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 08f2ff35b..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java index 978e53b4c..d3c747a3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java +++ b/java-client/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/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 9f89595fa..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java index d81077003..49af46ef4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java +++ b/java-client/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/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 fe8664b8f..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 @@ -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/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 17923d133..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java index ef51216f9..73b9b56cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java +++ b/java-client/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/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 42c886117..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 @@ -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/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java index 07244e875..c75be3999 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java index 6f1eb2c83..162f4d907 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java index d7e2f3a7d..c807e9642 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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: searchable_snapshots.cache_stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsResponse.java index 561fa2b05..3084c5a75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; import co.elastic.clients.elasticsearch.searchable_snapshots.cache_stats.Node; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: searchable_snapshots.cache_stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java index dfbad3898..771e420e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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: searchable_snapshots.clear_cache.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheResponse.java index dc536db00..d8f07dc90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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: searchable_snapshots.clear_cache.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsAsyncClient.java index bec379316..175f5f222 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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 searchable_snapshots namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsClient.java index b293cf959..3280a28f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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 searchable_snapshots namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java index 13eef2d84..aa2964a80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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: searchable_snapshots.mount.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountResponse.java index 7ba243d40..aedb32a0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; import co.elastic.clients.elasticsearch.searchable_snapshots.mount.MountedSnapshot; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + // typedef: searchable_snapshots.mount.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java index 01cc1e9fe..33630a60d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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: searchable_snapshots.stats.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsResponse.java index d6e7753e2..92277c424 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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: searchable_snapshots.stats.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/StatsLevel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/StatsLevel.java index 4da9dec32..36183485e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/StatsLevel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/StatsLevel.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.searchable_snapshots; 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 metadata; private final Map roleDescriptors; @@ -91,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); @@ -162,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 *

@@ -172,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 *

@@ -247,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"); @@ -334,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; @@ -410,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 *

@@ -420,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 *

@@ -536,6 +614,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} *

@@ -579,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/ApplicationGlobalUserPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java index c02ec77df..435593547 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java index 2b28799db..598029029 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java index ca9a05186..6f3f2ece0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateRequest.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateResponse.java index 4f19acbd3..fb08644ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/AuthenticateResponse.java +++ b/java-client/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/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java index a6273dd49..2d29ec47f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.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.change_password.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordResponse.java index 69eb6dd91..7f5a72262 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordResponse.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; @@ -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: security.change_password.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java index 56f69b4e8..8ebb2f665 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.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.clear_api_key_cache.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheResponse.java index 04fe93fed..d7d13cd3c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheResponse.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.NodeStatistics; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.clear_api_key_cache.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java index 8f48ce180..564f46184 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.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.clear_cached_privileges.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesResponse.java index edda4ad71..2db54413b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesResponse.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.NodeStatistics; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.clear_cached_privileges.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java index 0f36721a8..364a2e127 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.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.clear_cached_realms.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsResponse.java index 6d6a641a1..36cd9124c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsResponse.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.NodeStatistics; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.clear_cached_realms.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java index 61ccedfbd..e952d0e3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.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.clear_cached_roles.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesResponse.java index 8d5ca29a2..362acda78 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesResponse.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.NodeStatistics; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.clear_cached_roles.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java index c0b508e22..860b496f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.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.clear_cached_service_tokens.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensResponse.java index 692476d85..c1d7f14fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensResponse.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.NodeStatistics; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.clear_cached_service_tokens.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterNode.java index 77240741e..bfc92a0a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterNode.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.ClusterNode /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterPrivilege.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterPrivilege.java index 8980bd1ff..d0fff2f06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterPrivilege.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterPrivilege.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 */ @JsonpDeserializable -public class FieldRule implements TaggedUnion, RoleMappingRuleVariant, JsonpSerializable { +public class FieldRule implements OpenTaggedUnion, RoleMappingRuleVariant, JsonpSerializable { /** * {@link FieldRule} variant kinds. @@ -69,9 +80,8 @@ public enum Kind implements JsonEnum { Groups("groups"), - Metadata("metadata"), - - Realm("realm"), + /** A custom {@code FieldRule} defined by a plugin */ + _Custom(null) ; @@ -112,6 +122,7 @@ public FieldRule(FieldRuleVariant value) { this._kind = ApiTypeHelper.requireNonNull(value._fieldRuleKind(), this, ""); this._value = ApiTypeHelper.requireNonNull(value, this, ""); + this._customKind = null; } @@ -119,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; } @@ -139,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); } @@ -177,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 @@ -217,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 : @@ -243,10 +255,6 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); - break; - case Metadata : - ((JsonData) this._value).serialize(generator, mapper); - break; } } @@ -263,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; @@ -286,22 +295,22 @@ public ObjectBuilder groups(List v) { return this; } - public ObjectBuilder metadata(JsonData v) { - this._kind = Kind.Metadata; - this._value = v; - return this; - } - - public ObjectBuilder realm(Realm v) { - this._kind = Kind.Realm; - 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(Function> fn) { - return this.realm(fn.apply(new Realm.Builder()).build()); - } - public FieldRule build() { _checkSingleUse(); return new FieldRule(this); @@ -311,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 459a5d3ae..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 @@ -17,42 +17,37 @@ * 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.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 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/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..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 @@ -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; @@ -75,16 +89,21 @@ public class GetApiKeyRequest extends RequestBase { @Nullable private final Boolean withLimitedBy; + @Nullable + private final Boolean withProfileUid; + // --------------------------------------------------------------------------------------------- private GetApiKeyRequest(Builder builder) { + this.activeOnly = builder.activeOnly; this.id = builder.id; this.name = builder.name; this.owner = builder.owner; this.realmName = builder.realmName; this.username = builder.username; this.withLimitedBy = builder.withLimitedBy; + this.withProfileUid = builder.withProfileUid; } @@ -92,6 +111,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. @@ -164,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; + } + // --------------------------------------------------------------------------------------------- /** @@ -173,6 +218,9 @@ public final Boolean withLimitedBy() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean activeOnly; + @Nullable private String id; @@ -191,6 +239,24 @@ 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 + * 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. @@ -263,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; @@ -312,6 +389,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); } @@ -321,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/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..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 @@ -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 /** @@ -68,6 +79,8 @@ public class PutRoleMappingRequest extends RequestBase implements JsonpSerializa @Nullable private final Refresh refresh; + private final List roleTemplates; + private final List roles; @Nullable @@ -83,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); @@ -130,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} */ @@ -178,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"); @@ -227,6 +258,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Refresh refresh; + @Nullable + private List roleTemplates; + @Nullable private List roles; @@ -287,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} *

@@ -372,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/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..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 @@ -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 /** @@ -75,8 +86,7 @@ public class PutRoleRequest extends RequestBase implements JsonpSerializable { private final List runAs; - @Nullable - private final TransientMetadataConfig transientMetadata; + private final Map transientMetadata; // --------------------------------------------------------------------------------------------- @@ -90,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); } @@ -188,8 +198,7 @@ public final List runAs() { *

* API name: {@code transient_metadata} */ - @Nullable - public final TransientMetadataConfig transientMetadata() { + public final Map transientMetadata() { return this.transientMetadata; } @@ -266,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(); } @@ -305,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. @@ -514,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; } @@ -529,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 @@ -571,7 +590,8 @@ protected static void setupPutRoleRequestDeserializer(ObjectDeserializer aggregations; + @Nullable private final Integer from; @Nullable - private final Query query; + private final ApiKeyQuery query; private final List searchAfter; @@ -76,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; } @@ -93,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, @@ -106,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; } @@ -163,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. */ @@ -174,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); @@ -221,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; @@ -239,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, @@ -252,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()); } /** @@ -302,6 +442,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 *

@@ -378,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; @@ -406,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"); @@ -442,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 19ded4c67..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -35,11 +33,28 @@ 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; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** @@ -56,6 +71,8 @@ public class QueryApiKeysResponse implements JsonpSerializable { private final List apiKeys; + private final Map aggregations; + // --------------------------------------------------------------------------------------------- private QueryApiKeysResponse(Builder builder) { @@ -63,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); } @@ -97,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. */ @@ -124,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); + + } } @@ -147,6 +179,9 @@ public static class Builder extends WithJsonObjectBuilderBase private List apiKeys; + @Nullable + private Map aggregations; + /** * Required - The total number of API keys found. *

@@ -202,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; @@ -233,6 +304,7 @@ protected static void setupQueryApiKeysResponseDeserializer(ObjectDeserializer 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 runAs; - @Nullable - private final TransientMetadataConfig transientMetadata; + private final Map transientMetadata; // --------------------------------------------------------------------------------------------- @@ -77,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); } @@ -146,8 +156,7 @@ public final List runAs() { /** * API name: {@code transient_metadata} */ - @Nullable - public final TransientMetadataConfig transientMetadata() { + public final Map transientMetadata() { return this.transientMetadata; } @@ -223,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(); } @@ -262,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 @@ -454,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 @@ -505,7 +524,8 @@ protected static void setupRoleDescriptorReadDeserializer(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"); } @@ -94,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; } /** @@ -149,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(); @@ -162,6 +169,8 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } + generator.writeKey("rules"); + this.rules.serialize(generator, mapper); } @@ -181,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} */ @@ -217,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. */ @@ -227,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. */ @@ -236,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} *

@@ -280,6 +275,21 @@ public final Builder roleTemplates(Function> fn) { + return this.rules(fn.apply(new RoleMappingRule.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -311,9 +321,9 @@ protected static void setupRoleMappingDeserializer(ObjectDeserializer 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/get_role/RoleTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplate.java similarity index 85% 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 1e616c0c5..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,11 +17,7 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - -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; @@ -39,12 +35,26 @@ import java.util.function.Function; import javax.annotation.Nullable; -// typedef: security.get_role.RoleTemplate +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.RoleTemplate /** * - * @see API + * @see API * specification */ @JsonpDeserializable 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/get_role/TemplateFormat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/TemplateFormat.java similarity index 65% 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 21e76f879..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,20 +17,30 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - -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; 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 + * @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 c3dd49510..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 @@ -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/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..142300b37 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,15 +17,11 @@ * 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; import co.elastic.clients.elasticsearch.security.IndicesPrivileges; -import co.elastic.clients.elasticsearch.security.TransientMetadataConfig; +import co.elastic.clients.elasticsearch.security.RoleTemplate; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -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 /** @@ -62,7 +73,7 @@ public class Role implements JsonpSerializable { private final List runAs; - private final TransientMetadataConfig transientMetadata; + private final Map transientMetadata; private final List applications; @@ -78,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); @@ -118,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; } @@ -197,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(); @@ -277,7 +296,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List runAs; - private TransientMetadataConfig transientMetadata; + @Nullable + private Map transientMetadata; private List applications; @@ -377,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; } /** @@ -504,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/security/get_service_accounts/RoleDescriptorWrapper.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_accounts/RoleDescriptorWrapper.java index 93fe7880a..e659a09de 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_accounts/RoleDescriptorWrapper.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_accounts/RoleDescriptorWrapper.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.get_service_accounts; import co.elastic.clients.elasticsearch.security.RoleDescriptorRead; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.RoleDescriptorWrapper /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java index aa477d986..2a4a3f7bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.get_service_credentials; import co.elastic.clients.elasticsearch._types.NodeStatistics; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.NodesCredentials /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java index 80c8c5305..1d109dc55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.get_service_credentials; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.NodesCredentialsFileToken /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AccessTokenGrantType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AccessTokenGrantType.java index 4bab9d202..0532a544d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AccessTokenGrantType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AccessTokenGrantType.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.get_token; 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 + */ + +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..79e912df5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java @@ -0,0 +1,291 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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.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 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, + JsonpSerializable { + @Nullable + private final Buckets filters; + + @Nullable + private final Boolean otherBucket; + + @Nullable + private final String otherBucketKey; + + @Nullable + private final Boolean keyed; + + // --------------------------------------------------------------------------------------------- + + private ApiKeyFiltersAggregation(Builder 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; + } + + /** + * 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.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); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * 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) { + + 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); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/Hint.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/Hint.java index 84dfed2e9..066257f77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/Hint.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/Hint.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.suggest_user_profiles; 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.suggest_user_profiles.Hint /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/TotalUserProfiles.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/TotalUserProfiles.java index 34b06d743..1d9a5272f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/TotalUserProfiles.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/TotalUserProfiles.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.security.suggest_user_profiles; import co.elastic.clients.json.JsonpDeserializable; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.TotalUserProfiles /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java index a588ff0d6..cadea1b06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; 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: shutdown.delete_node.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeResponse.java index 725c4697c..72da19ea2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; 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: shutdown.delete_node.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownAsyncClient.java index 673888de4..e32836ca0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownAsyncClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; 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 shutdown namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownClient.java index c1f84848f..d697c22ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownClient.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; 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 shutdown namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java index 4103944f9..42ee075c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; 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: shutdown.get_node.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeResponse.java index 66216a5cb..8a676d3b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; import co.elastic.clients.elasticsearch.shutdown.get_node.NodeShutdownStatus; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java index a5fe8cf1c..0eaa0a97b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; 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: shutdown.put_node.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeResponse.java index 4e2aca385..01a422c41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeResponse.java @@ -17,10 +17,6 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; 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: shutdown.put_node.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/Type.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/Type.java index e16a6fb00..75c62c0be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/Type.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/Type.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.shutdown; 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 + * 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/CleanupRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java index 52b261425..5626be8bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.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.cleanup_repository.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryResponse.java index 72ed7c0e3..bb4136b37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryResponse.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.cleanup_repository.CleanupRepositoryResults; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java index dcde79f9f..d23514cb8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.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; @@ -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: snapshot.clone.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotResponse.java index 50cfde152..127046f49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotResponse.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.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: snapshot.clone.Response /** 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 6d3e37857..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 @@ -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; @@ -37,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; @@ -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: snapshot.create_repository.Request /** @@ -61,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"); } @@ -111,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 *

@@ -136,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 *

@@ -154,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); } @@ -191,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 *

@@ -233,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 *

@@ -282,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 *

@@ -300,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; @@ -318,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/CreateRepositoryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryResponse.java index a793dab77..63ceede75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryResponse.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.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: snapshot.create_repository.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java index 9171b89d5..5a415b198 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.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; @@ -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: snapshot.create.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotResponse.java index fa327bd0f..b3cf2a7a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotResponse.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; @@ -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: snapshot.create.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java index e35373b01..c8f2587ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.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; @@ -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: snapshot.delete_repository.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryResponse.java index 184d64cd8..4169d8876 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryResponse.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.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: snapshot.delete_repository.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java index 489db88bd..fc29ad635 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.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.delete.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotResponse.java index 4afa4443f..22e604afb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotResponse.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.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: snapshot.delete.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotAsyncClient.java index 4e618b5ea..a50e6fe67 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotAsyncClient.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.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 snapshot namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotClient.java index 329890d93..5368b7db0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotClient.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.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 snapshot namespace. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/FileCountSnapshotStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/FileCountSnapshotStats.java index 3c968fd74..4a93e7173 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/FileCountSnapshotStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/FileCountSnapshotStats.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.Objects; import java.util.function.Function; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.FileCountSnapshotStats /** 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/GetRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java index 78571d7bc..55a08eeba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.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.get_repository.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryResponse.java index d97bb5fc7..bb97af8ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryResponse.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; @@ -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_repository.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java index ae3f5ee01..90544d289 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.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; @@ -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: snapshot.get.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotResponse.java index 253453710..db1a291eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotResponse.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.get.SnapshotResponseItem; @@ -41,6 +37,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Response /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/IndexDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/IndexDetails.java index 21224d1e9..691a24590 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/IndexDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/IndexDetails.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.IndexDetails /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/InfoFeatureState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/InfoFeatureState.java index baf879df1..21e309963 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/InfoFeatureState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/InfoFeatureState.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; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.InfoFeatureState /** 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 6f21f3c14..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 @@ -17,12 +17,10 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - 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; @@ -32,13 +30,30 @@ 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; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Repository /** @@ -47,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"), - private final RepositorySettings settings; + 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; + + @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; } @@ -70,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; } - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + /** + * 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); + } - generator.writeKey("type"); - generator.write(this.type); + /** + * Is this variant instance of kind {@code url}? + */ + public boolean isUrl() { + return _kind == Kind.Url; + } - if (this.uuid != null) { - generator.writeKey("uuid"); - generator.write(this.uuid); + /** + * 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); + } - } - generator.writeKey("settings"); - this.settings.serialize(generator, mapper); + /** + * Is this variant instance of kind {@code s3}? + */ + public boolean isS3() { + return _kind == Kind.S3; + } + + /** + * 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; } - // --------------------------------------------------------------------------------------------- + /** + * Get the actual kind when {@code _kind()} equals {@link Kind#_Custom} + * (plugin-defined variant). + */ + @Nullable + public final String _customKind() { + return _customKind; + } /** - * Builder for {@link Repository}. + * 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; - @Nullable - private String uuid; + @Override + protected Builder self() { + return this; + } + public ObjectBuilder azure(AzureRepository v) { + this._kind = Kind.Azure; + this._value = v; + return this; + } - private RepositorySettings settings; + public ObjectBuilder azure(Function> fn) { + return this.azure(fn.apply(new AzureRepository.Builder()).build()); + } - /** - * Required - API name: {@code type} - */ - public final Builder type(String value) { - this.type = value; + public ObjectBuilder gcs(GcsRepository v) { + this._kind = Kind.Gcs; + this._value = v; return this; } - /** - * API name: {@code uuid} - */ - public final Builder uuid(@Nullable String value) { - this.uuid = 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; } - /** - * Required - API name: {@code settings} - */ - public final Builder settings(RepositorySettings value) { - this.settings = 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(Function> fn) { - return this.settings(fn.apply(new RepositorySettings.Builder()).build()); + public ObjectBuilder s3(Function> fn) { + return this.s3(fn.apply(new S3Repository.Builder()).build()); } - @Override - protected Builder self() { + public ObjectBuilder fs(SharedFileSystemRepository v) { + this._kind = Kind.Fs; + this._value = v; + return this; + } + + public ObjectBuilder fs( + Function> fn) { + return this.fs(fn.apply(new SharedFileSystemRepository.Builder()).build()); + } + + 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/RepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettings.java deleted file mode 100644 index 2165758db..000000000 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositorySettings.java +++ /dev/null @@ -1,263 +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.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; - -// 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"); - - } - -} 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/RestoreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java index bcc62a939..1176d6dac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.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; @@ -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: snapshot.restore.Request /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreResponse.java index b28b5aec6..7c0388ec7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreResponse.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.restore.SnapshotRestore; @@ -39,6 +35,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.Response /** 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/ShardsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStats.java index 70582200b..334416b16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStats.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; @@ -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._types.ShardsStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsStage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsStage.java index 89cf226db..fe18f0481 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsStage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsStage.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot; 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 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/SnapshotIndexStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotIndexStats.java index c11de4f33..a5a610f87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotIndexStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotIndexStats.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; @@ -40,6 +36,21 @@ import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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.SnapshotIndexStats /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotInfo.java index a52a76a74..b18478a1a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotInfo.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.ShardStatistics; @@ -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: snapshot._types.SnapshotInfo /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java index 49067b72f..6b17558f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.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._types.SnapshotShardFailure /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardsStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardsStatus.java index 528198340..72033c9c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardsStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardsStatus.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; @@ -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: snapshot._types.SnapshotShardsStatus /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotSort.java index 3798dec46..4e62847bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotSort.java @@ -17,16 +17,27 @@ * under the License. */ -//---------------------------------------------------- -// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. -//---------------------------------------------------- - package co.elastic.clients.elasticsearch.snapshot; 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/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/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..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 @@ -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 /** @@ -67,7 +78,9 @@ public static ClearCursorRequest of(Function + * API name: {@code cursor} */ public final String cursor() { return this.cursor; @@ -101,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/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..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 @@ -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 /** @@ -68,7 +79,7 @@ public static DeleteAsyncRequest of(Function * API name: {@code id} */ @@ -88,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/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..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 @@ -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 /** @@ -106,7 +117,7 @@ public final String format() { } /** - * Required - The async search ID + * Required - Identifier for the search. *

* API name: {@code id} */ @@ -180,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/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..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 @@ -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 /** @@ -68,7 +79,7 @@ public static GetAsyncStatusRequest of(Function * API name: {@code id} */ @@ -88,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/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..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 @@ -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 /** @@ -160,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 @@ -190,7 +205,7 @@ public final Boolean fieldMultiValueLeniency() { } /** - * Optional Elasticsearch query DSL for additional filtering. + * Elasticsearch query DSL for additional filtering. *

* API name: {@code filter} */ @@ -200,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} */ @@ -261,7 +276,7 @@ public final Map params() { } /** - * SQL query to execute + * SQL query to run. *

* API name: {@code query} */ @@ -291,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} */ @@ -500,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) { @@ -530,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} */ @@ -540,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} */ @@ -549,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} */ @@ -643,7 +661,7 @@ public final Builder params(String key, JsonData value) { } /** - * SQL query to execute + * SQL query to run. *

* API name: {@code query} */ @@ -711,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/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..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 @@ -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 /** @@ -81,6 +92,8 @@ public static TranslateRequest of(Function * API name: {@code fetch_size} */ @Nullable @@ -89,6 +102,8 @@ public final Integer fetchSize() { } /** + * Elasticsearch query DSL for additional filtering. + *

* API name: {@code filter} */ @Nullable @@ -97,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 @@ -164,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) { @@ -172,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) { @@ -180,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) { @@ -187,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; @@ -195,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/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..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 @@ -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/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..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 @@ -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 /** @@ -84,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} */ @@ -94,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} */ @@ -105,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} */ @@ -116,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} */ @@ -159,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} *

@@ -172,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} *

@@ -185,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} *

@@ -199,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} *

@@ -213,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} */ @@ -224,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/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..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 @@ -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. */ @@ -60,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 */ @@ -78,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 */ @@ -91,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 */ @@ -106,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 */ @@ -124,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 */ @@ -139,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 */ @@ -157,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 */ @@ -169,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 c6501da38..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 @@ -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. */ @@ -60,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 */ @@ -78,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 */ @@ -91,7 +102,7 @@ public final CancelResponse cancel(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -106,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 */ @@ -124,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 */ @@ -139,7 +150,7 @@ public final GetTasksResponse get(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/tasks.html">Documentation * on elastic.co */ @@ -157,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 */ @@ -170,7 +181,7 @@ public final ListResponse 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/GetTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java index 11c0556f0..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 @@ -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 /** @@ -76,7 +87,7 @@ public static GetTasksRequest of(Function * API name: {@code task_id} */ @@ -85,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} */ @@ -95,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} */ @@ -120,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} */ @@ -130,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} */ @@ -140,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} */ @@ -149,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/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/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..023a616f6 --- /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..6fabfaaaa --- /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 5ce014a31..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 @@ -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/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..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 @@ -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; @@ -40,12 +36,28 @@ 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; import java.util.function.Function; import javax.annotation.Nullable; +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// 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 /** @@ -259,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/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 /** 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/elasticsearch/_types/query_dsl/SimpleQueryStringFlagsBuilders.java b/java-client/src/main/java/co/elastic/clients/json/BufferingJsonpMapper.java similarity index 55% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlagsBuilders.java rename to java-client/src/main/java/co/elastic/clients/json/BufferingJsonpMapper.java index 00ae85425..628455423 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringFlagsBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/json/BufferingJsonpMapper.java @@ -17,25 +17,12 @@ * 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; +package co.elastic.clients.json; /** - * 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. - * + * A Jsonp mapper that has the additional capability of being able to buffer events. */ -public class SimpleQueryStringFlagsBuilders { - private SimpleQueryStringFlagsBuilders() { - } +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/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)) 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/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..3cfd884bf --- /dev/null +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterEndToEndTest.java @@ -0,0 +1,195 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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.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; +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..95917ca55 --- /dev/null +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/esql/EsqlAdapterTest.java @@ -0,0 +1,92 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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.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; +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/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}}"; 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; 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 { + } + } +} 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"]} +