Skip to content

Commit

Permalink
[codegen] update to latest spec
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta committed Dec 17, 2024
1 parent 1822bfd commit 6228acf
Show file tree
Hide file tree
Showing 302 changed files with 14,662 additions and 4,274 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public final CompletableFuture<ClosePointInTimeResponse> closePointInTime(
// ----- Endpoint: count

/**
* Returns number of documents matching a query.
* Count search results. Get the number of documents matching a query.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html">Documentation
Expand All @@ -517,7 +517,7 @@ public CompletableFuture<CountResponse> count(CountRequest request) {
}

/**
* Returns number of documents matching a query.
* Count search results. Get the number of documents matching a query.
*
* @param fn
* a function that initializes a builder to create the
Expand All @@ -533,7 +533,7 @@ public final CompletableFuture<CountResponse> count(
}

/**
* Returns number of documents matching a query.
* Count search results. Get the number of documents matching a query.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html">Documentation
Expand Down Expand Up @@ -1151,7 +1151,34 @@ public final <TDocument> CompletableFuture<GetSourceResponse<TDocument>> getSour
// ----- Endpoint: health_report

/**
* Returns the health of the cluster.
* Get the cluster health. Get a report with the health status of an
* Elasticsearch cluster. The report contains a list of indicators that compose
* Elasticsearch functionality.
* <p>
* Each indicator has a health status of: green, unknown, yellow or red. The
* indicator will provide an explanation and metadata describing the reason for
* its current health status.
* <p>
* The cluster’s status is controlled by the worst indicator status.
* <p>
* In the event that an indicator’s status is non-green, a list of impacts may
* be present in the indicator result which detail the functionalities that are
* negatively affected by the health issue. Each impact carries with it a
* severity level, an area of the system that is affected, and a simple
* description of the impact on the system.
* <p>
* Some health indicators can determine the root cause of a health problem and
* prescribe a set of steps that can be performed in order to improve the health
* of the system. The root cause and remediation steps are encapsulated in a
* diagnosis. A diagnosis contains a cause detailing a root cause analysis, an
* action containing a brief description of the steps to take to fix the
* problem, the list of affected resources (if applicable), and a detailed
* step-by-step troubleshooting guide to fix the diagnosed problem.
* <p>
* NOTE: The health indicators perform root cause analysis of non-green health
* statuses. This can be computationally expensive when called frequently. When
* setting up automated polling of the API for health status, set verbose to
* false to disable the more expensive analysis logic.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html">Documentation
Expand All @@ -1166,7 +1193,34 @@ public CompletableFuture<HealthReportResponse> healthReport(HealthReportRequest
}

/**
* Returns the health of the cluster.
* Get the cluster health. Get a report with the health status of an
* Elasticsearch cluster. The report contains a list of indicators that compose
* Elasticsearch functionality.
* <p>
* Each indicator has a health status of: green, unknown, yellow or red. The
* indicator will provide an explanation and metadata describing the reason for
* its current health status.
* <p>
* The cluster’s status is controlled by the worst indicator status.
* <p>
* In the event that an indicator’s status is non-green, a list of impacts may
* be present in the indicator result which detail the functionalities that are
* negatively affected by the health issue. Each impact carries with it a
* severity level, an area of the system that is affected, and a simple
* description of the impact on the system.
* <p>
* Some health indicators can determine the root cause of a health problem and
* prescribe a set of steps that can be performed in order to improve the health
* of the system. The root cause and remediation steps are encapsulated in a
* diagnosis. A diagnosis contains a cause detailing a root cause analysis, an
* action containing a brief description of the steps to take to fix the
* problem, the list of affected resources (if applicable), and a detailed
* step-by-step troubleshooting guide to fix the diagnosed problem.
* <p>
* NOTE: The health indicators perform root cause analysis of non-green health
* statuses. This can be computationally expensive when called frequently. When
* setting up automated polling of the API for health status, set verbose to
* false to disable the more expensive analysis logic.
*
* @param fn
* a function that initializes a builder to create the
Expand All @@ -1182,7 +1236,34 @@ public final CompletableFuture<HealthReportResponse> healthReport(
}

/**
* Returns the health of the cluster.
* Get the cluster health. Get a report with the health status of an
* Elasticsearch cluster. The report contains a list of indicators that compose
* Elasticsearch functionality.
* <p>
* Each indicator has a health status of: green, unknown, yellow or red. The
* indicator will provide an explanation and metadata describing the reason for
* its current health status.
* <p>
* The cluster’s status is controlled by the worst indicator status.
* <p>
* In the event that an indicator’s status is non-green, a list of impacts may
* be present in the indicator result which detail the functionalities that are
* negatively affected by the health issue. Each impact carries with it a
* severity level, an area of the system that is affected, and a simple
* description of the impact on the system.
* <p>
* Some health indicators can determine the root cause of a health problem and
* prescribe a set of steps that can be performed in order to improve the health
* of the system. The root cause and remediation steps are encapsulated in a
* diagnosis. A diagnosis contains a cause detailing a root cause analysis, an
* action containing a brief description of the steps to take to fix the
* problem, the list of affected resources (if applicable), and a detailed
* step-by-step troubleshooting guide to fix the diagnosed problem.
* <p>
* NOTE: The health indicators perform root cause analysis of non-green health
* statuses. This can be computationally expensive when called frequently. When
* setting up automated polling of the API for health status, set verbose to
* false to disable the more expensive analysis logic.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html">Documentation
Expand Down Expand Up @@ -1814,7 +1895,7 @@ public final CompletableFuture<OpenPointInTimeResponse> openPointInTime(
// ----- Endpoint: ping

/**
* Ping the cluster. Returns whether the cluster is running.
* Ping the cluster. Get information about whether the cluster is running.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html">Documentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public final ClosePointInTimeResponse closePointInTime(
// ----- Endpoint: count

/**
* Returns number of documents matching a query.
* Count search results. Get the number of documents matching a query.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html">Documentation
Expand All @@ -522,7 +522,7 @@ public CountResponse count(CountRequest request) throws IOException, Elasticsear
}

/**
* Returns number of documents matching a query.
* Count search results. Get the number of documents matching a query.
*
* @param fn
* a function that initializes a builder to create the
Expand All @@ -538,7 +538,7 @@ public final CountResponse count(Function<CountRequest.Builder, ObjectBuilder<Co
}

/**
* Returns number of documents matching a query.
* Count search results. Get the number of documents matching a query.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html">Documentation
Expand Down Expand Up @@ -1168,7 +1168,34 @@ public final <TDocument> GetSourceResponse<TDocument> getSource(
// ----- Endpoint: health_report

/**
* Returns the health of the cluster.
* Get the cluster health. Get a report with the health status of an
* Elasticsearch cluster. The report contains a list of indicators that compose
* Elasticsearch functionality.
* <p>
* Each indicator has a health status of: green, unknown, yellow or red. The
* indicator will provide an explanation and metadata describing the reason for
* its current health status.
* <p>
* The cluster’s status is controlled by the worst indicator status.
* <p>
* In the event that an indicator’s status is non-green, a list of impacts may
* be present in the indicator result which detail the functionalities that are
* negatively affected by the health issue. Each impact carries with it a
* severity level, an area of the system that is affected, and a simple
* description of the impact on the system.
* <p>
* Some health indicators can determine the root cause of a health problem and
* prescribe a set of steps that can be performed in order to improve the health
* of the system. The root cause and remediation steps are encapsulated in a
* diagnosis. A diagnosis contains a cause detailing a root cause analysis, an
* action containing a brief description of the steps to take to fix the
* problem, the list of affected resources (if applicable), and a detailed
* step-by-step troubleshooting guide to fix the diagnosed problem.
* <p>
* NOTE: The health indicators perform root cause analysis of non-green health
* statuses. This can be computationally expensive when called frequently. When
* setting up automated polling of the API for health status, set verbose to
* false to disable the more expensive analysis logic.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html">Documentation
Expand All @@ -1183,7 +1210,34 @@ public HealthReportResponse healthReport(HealthReportRequest request) throws IOE
}

/**
* Returns the health of the cluster.
* Get the cluster health. Get a report with the health status of an
* Elasticsearch cluster. The report contains a list of indicators that compose
* Elasticsearch functionality.
* <p>
* Each indicator has a health status of: green, unknown, yellow or red. The
* indicator will provide an explanation and metadata describing the reason for
* its current health status.
* <p>
* The cluster’s status is controlled by the worst indicator status.
* <p>
* In the event that an indicator’s status is non-green, a list of impacts may
* be present in the indicator result which detail the functionalities that are
* negatively affected by the health issue. Each impact carries with it a
* severity level, an area of the system that is affected, and a simple
* description of the impact on the system.
* <p>
* Some health indicators can determine the root cause of a health problem and
* prescribe a set of steps that can be performed in order to improve the health
* of the system. The root cause and remediation steps are encapsulated in a
* diagnosis. A diagnosis contains a cause detailing a root cause analysis, an
* action containing a brief description of the steps to take to fix the
* problem, the list of affected resources (if applicable), and a detailed
* step-by-step troubleshooting guide to fix the diagnosed problem.
* <p>
* NOTE: The health indicators perform root cause analysis of non-green health
* statuses. This can be computationally expensive when called frequently. When
* setting up automated polling of the API for health status, set verbose to
* false to disable the more expensive analysis logic.
*
* @param fn
* a function that initializes a builder to create the
Expand All @@ -1200,7 +1254,34 @@ public final HealthReportResponse healthReport(
}

/**
* Returns the health of the cluster.
* Get the cluster health. Get a report with the health status of an
* Elasticsearch cluster. The report contains a list of indicators that compose
* Elasticsearch functionality.
* <p>
* Each indicator has a health status of: green, unknown, yellow or red. The
* indicator will provide an explanation and metadata describing the reason for
* its current health status.
* <p>
* The cluster’s status is controlled by the worst indicator status.
* <p>
* In the event that an indicator’s status is non-green, a list of impacts may
* be present in the indicator result which detail the functionalities that are
* negatively affected by the health issue. Each impact carries with it a
* severity level, an area of the system that is affected, and a simple
* description of the impact on the system.
* <p>
* Some health indicators can determine the root cause of a health problem and
* prescribe a set of steps that can be performed in order to improve the health
* of the system. The root cause and remediation steps are encapsulated in a
* diagnosis. A diagnosis contains a cause detailing a root cause analysis, an
* action containing a brief description of the steps to take to fix the
* problem, the list of affected resources (if applicable), and a detailed
* step-by-step troubleshooting guide to fix the diagnosed problem.
* <p>
* NOTE: The health indicators perform root cause analysis of non-green health
* statuses. This can be computationally expensive when called frequently. When
* setting up automated polling of the API for health status, set verbose to
* false to disable the more expensive analysis logic.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html">Documentation
Expand Down Expand Up @@ -1842,7 +1923,7 @@ public final OpenPointInTimeResponse openPointInTime(
// ----- Endpoint: ping

/**
* Ping the cluster. Returns whether the cluster is running.
* Ping the cluster. Get information about whether the cluster is running.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html">Documentation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

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 <a href=
* "../../doc-files/api-spec.html#_types.mapping.DenseVectorElementType">API
* specification</a>
*/
@JsonpDeserializable
public enum DenseVectorElementType implements JsonEnum {
/**
* Indexes a single bit per dimension. Useful for very high-dimensional vectors
* or models that specifically support bit vectors.
* <p>
* NOTE: when using <code>bit</code>, the number of dimensions must be a
* multiple of <code>8</code> and must represent the number of bits.
*/
Bit("bit"),

/**
* Indexes a 1-byte integer value per dimension.
*/
Byte("byte"),

/**
* Indexes a 4-byte floating-point value per dimension.
*/
Float("float"),

;

private final String jsonValue;

DenseVectorElementType(String jsonValue) {
this.jsonValue = jsonValue;
}

public String jsonValue() {
return this.jsonValue;
}

public static final JsonEnum.Deserializer<DenseVectorElementType> _DESERIALIZER = new JsonEnum.Deserializer<>(
DenseVectorElementType.values());
}
Loading

0 comments on commit 6228acf

Please sign in to comment.