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 Jan 9, 2025
1 parent ef157c3 commit e5cbae4
Show file tree
Hide file tree
Showing 230 changed files with 20,498 additions and 1,718 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1315,10 +1315,10 @@ public final <TDocument> CompletableFuture<IndexResponse> index(
// ----- Endpoint: info

/**
* Get cluster info. Returns basic information about the cluster.
* Get cluster info. Get basic build, version, and cluster information.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rest-api-root.html">Documentation
* on elastic.co</a>
*/
public CompletableFuture<InfoResponse> info() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1334,10 +1334,10 @@ public final <TDocument> IndexResponse index(
// ----- Endpoint: info

/**
* Get cluster info. Returns basic information about the cluster.
* Get cluster info. Get basic build, version, and cluster information.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rest-api-root.html">Documentation
* on elastic.co</a>
*/
public InfoResponse info() throws IOException, ElasticsearchException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,63 +102,86 @@ public static ElasticsearchVersionInfo of(Function<Builder, ObjectBuilder<Elasti
}

/**
* Required - API name: {@code build_date}
* Required - The Elasticsearch Git commit's date.
* <p>
* API name: {@code build_date}
*/
public final DateTime buildDate() {
return this.buildDate;
}

/**
* Required - API name: {@code build_flavor}
* Required - The build flavor. For example, <code>default</code>.
* <p>
* API name: {@code build_flavor}
*/
public final String buildFlavor() {
return this.buildFlavor;
}

/**
* Required - API name: {@code build_hash}
* Required - The Elasticsearch Git commit's SHA hash.
* <p>
* API name: {@code build_hash}
*/
public final String buildHash() {
return this.buildHash;
}

/**
* Required - API name: {@code build_snapshot}
* Required - Indicates whether the Elasticsearch build was a snapshot.
* <p>
* API name: {@code build_snapshot}
*/
public final boolean buildSnapshot() {
return this.buildSnapshot;
}

/**
* Required - API name: {@code build_type}
* Required - The build type that corresponds to how Elasticsearch was
* installed. For example, <code>docker</code>, <code>rpm</code>, or
* <code>tar</code>.
* <p>
* API name: {@code build_type}
*/
public final String buildType() {
return this.buildType;
}

/**
* Required - API name: {@code lucene_version}
* Required - The version number of Elasticsearch's underlying Lucene software.
* <p>
* API name: {@code lucene_version}
*/
public final String luceneVersion() {
return this.luceneVersion;
}

/**
* Required - API name: {@code minimum_index_compatibility_version}
* Required - The minimum index version with which the responding node can read
* from disk.
* <p>
* API name: {@code minimum_index_compatibility_version}
*/
public final String minimumIndexCompatibilityVersion() {
return this.minimumIndexCompatibilityVersion;
}

/**
* Required - API name: {@code minimum_wire_compatibility_version}
* Required - The minimum node version with which the responding node can
* communicate. Also the minimum version from which you can perform a rolling
* upgrade.
* <p>
* API name: {@code minimum_wire_compatibility_version}
*/
public final String minimumWireCompatibilityVersion() {
return this.minimumWireCompatibilityVersion;
}

/**
* Required - API name: {@code number}
* Required - The Elasticsearch version number.
* <p>
* API name: {@code number}
*/
public final String number() {
return this.number;
Expand Down Expand Up @@ -236,71 +259,94 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>
private String number;

/**
* Required - API name: {@code build_date}
* Required - The Elasticsearch Git commit's date.
* <p>
* API name: {@code build_date}
*/
public final Builder buildDate(DateTime value) {
this.buildDate = value;
return this;
}

/**
* Required - API name: {@code build_flavor}
* Required - The build flavor. For example, <code>default</code>.
* <p>
* API name: {@code build_flavor}
*/
public final Builder buildFlavor(String value) {
this.buildFlavor = value;
return this;
}

/**
* Required - API name: {@code build_hash}
* Required - The Elasticsearch Git commit's SHA hash.
* <p>
* API name: {@code build_hash}
*/
public final Builder buildHash(String value) {
this.buildHash = value;
return this;
}

/**
* Required - API name: {@code build_snapshot}
* Required - Indicates whether the Elasticsearch build was a snapshot.
* <p>
* API name: {@code build_snapshot}
*/
public final Builder buildSnapshot(boolean value) {
this.buildSnapshot = value;
return this;
}

/**
* Required - API name: {@code build_type}
* Required - The build type that corresponds to how Elasticsearch was
* installed. For example, <code>docker</code>, <code>rpm</code>, or
* <code>tar</code>.
* <p>
* API name: {@code build_type}
*/
public final Builder buildType(String value) {
this.buildType = value;
return this;
}

/**
* Required - API name: {@code lucene_version}
* Required - The version number of Elasticsearch's underlying Lucene software.
* <p>
* API name: {@code lucene_version}
*/
public final Builder luceneVersion(String value) {
this.luceneVersion = value;
return this;
}

/**
* Required - API name: {@code minimum_index_compatibility_version}
* Required - The minimum index version with which the responding node can read
* from disk.
* <p>
* 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}
* Required - The minimum node version with which the responding node can
* communicate. Also the minimum version from which you can perform a rolling
* upgrade.
* <p>
* API name: {@code minimum_wire_compatibility_version}
*/
public final Builder minimumWireCompatibilityVersion(String value) {
this.minimumWireCompatibilityVersion = value;
return this;
}

/**
* Required - API name: {@code number}
* Required - The Elasticsearch version number.
* <p>
* API name: {@code number}
*/
public final Builder number(String value) {
this.number = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
// typedef: cluster.delete_component_template.Request

/**
* Delete component templates. Deletes component templates. Component templates
* are building blocks for constructing index templates that specify index
* mappings, settings, and aliases.
* Delete component templates. Component templates are building blocks for
* constructing index templates that specify index mappings, settings, and
* aliases.
*
* @see <a href=
* "../doc-files/api-spec.html#cluster.delete_component_template.Request">API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ public CompletableFuture<AllocationExplainResponse> allocationExplain() {
// ----- Endpoint: cluster.delete_component_template

/**
* Delete component templates. Deletes component templates. Component templates
* are building blocks for constructing index templates that specify index
* mappings, settings, and aliases.
* Delete component templates. Component templates are building blocks for
* constructing index templates that specify index mappings, settings, and
* aliases.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html">Documentation
Expand All @@ -153,9 +153,9 @@ public CompletableFuture<DeleteComponentTemplateResponse> deleteComponentTemplat
}

/**
* Delete component templates. Deletes component templates. Component templates
* are building blocks for constructing index templates that specify index
* mappings, settings, and aliases.
* Delete component templates. Component templates are building blocks for
* constructing index templates that specify index mappings, settings, and
* aliases.
*
* @param fn
* a function that initializes a builder to create the
Expand Down Expand Up @@ -258,7 +258,7 @@ public final CompletableFuture<BooleanResponse> existsComponentTemplate(
// ----- Endpoint: cluster.get_component_template

/**
* Get component templates. Retrieves information about component templates.
* Get component templates. Get information about component templates.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html">Documentation
Expand All @@ -273,7 +273,7 @@ public CompletableFuture<GetComponentTemplateResponse> getComponentTemplate(GetC
}

/**
* Get component templates. Retrieves information about component templates.
* Get component templates. Get information about component templates.
*
* @param fn
* a function that initializes a builder to create the
Expand All @@ -289,7 +289,7 @@ public final CompletableFuture<GetComponentTemplateResponse> getComponentTemplat
}

/**
* Get component templates. Retrieves information about component templates.
* Get component templates. Get information about component templates.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html">Documentation
Expand Down Expand Up @@ -692,9 +692,9 @@ public CompletableFuture<BooleanResponse> postVotingConfigExclusions() {
// ----- Endpoint: cluster.put_component_template

/**
* Create or update a component template. Creates or updates a component
* template. Component templates are building blocks for constructing index
* templates that specify index mappings, settings, and aliases.
* Create or update a component template. Component templates are building
* blocks for constructing index templates that specify index mappings,
* settings, and aliases.
* <p>
* An index template can be composed of multiple component templates. To use a
* component template, specify it in an index template’s
Expand All @@ -713,6 +713,12 @@ public CompletableFuture<BooleanResponse> postVotingConfigExclusions() {
* You can use C-style <code>/* *\/</code> block comments in component
* templates. You can include comments anywhere in the request body except
* before the opening curly bracket.
* <p>
* <strong>Applying component templates</strong>
* <p>
* You cannot directly apply a component template to a data stream or index. To
* be applied, a component template must be included in an index template's
* <code>composed_of</code> list.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html">Documentation
Expand All @@ -727,9 +733,9 @@ public CompletableFuture<PutComponentTemplateResponse> putComponentTemplate(PutC
}

/**
* Create or update a component template. Creates or updates a component
* template. Component templates are building blocks for constructing index
* templates that specify index mappings, settings, and aliases.
* Create or update a component template. Component templates are building
* blocks for constructing index templates that specify index mappings,
* settings, and aliases.
* <p>
* An index template can be composed of multiple component templates. To use a
* component template, specify it in an index template’s
Expand All @@ -748,6 +754,12 @@ public CompletableFuture<PutComponentTemplateResponse> putComponentTemplate(PutC
* You can use C-style <code>/* *\/</code> block comments in component
* templates. You can include comments anywhere in the request body except
* before the opening curly bracket.
* <p>
* <strong>Applying component templates</strong>
* <p>
* You cannot directly apply a component template to a data stream or index. To
* be applied, a component template must be included in an index template's
* <code>composed_of</code> list.
*
* @param fn
* a function that initializes a builder to create the
Expand Down
Loading

0 comments on commit e5cbae4

Please sign in to comment.