Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@
'esql.list_queries.Response': 'esql/list_queries/ListQueriesResponse.ts#L32-L36',
'esql.put_view.Request': 'esql/put_view/PutViewRequest.ts#L23-L49',
'esql.put_view.Response': 'esql/put_view/PutViewResponse.ts#L22-L25',
'esql.query.Request': 'esql/query/QueryRequest.ts#L28-L128',
'esql.query.Request': 'esql/query/QueryRequest.ts#L28-L140',
'esql.query.Response': 'esql/query/QueryResponse.ts#L22-L25',
'features._types.Feature': 'features/_types/Feature.ts#L20-L23',
'features.get_features.Request': 'features/get_features/GetFeaturesRequest.ts#L24-L56',
Expand Down Expand Up @@ -2074,7 +2074,7 @@
'inference.completion.Response': 'inference/completion/CompletionResponse.ts#L22-L25',
'inference.delete.Request': 'inference/delete/DeleteRequest.ts#L24-L69',
'inference.delete.Response': 'inference/delete/DeleteResponse.ts#L22-L25',
'inference.get.Request': 'inference/get/GetRequest.ts#L24-L59',
'inference.get.Request': 'inference/get/GetRequest.ts#L24-L64',
'inference.get.Response': 'inference/get/GetResponse.ts#L22-L26',
'inference.inference.Request': 'inference/inference/InferenceRequest.ts#L26-L106',
'inference.inference.Response': 'inference/inference/InferenceResponse.ts#L22-L25',
Expand Down Expand Up @@ -3423,8 +3423,8 @@
'watcher.update_settings.Request': 'watcher/update_settings/WatcherUpdateSettingsRequest.ts#L25-L66',
'watcher.update_settings.Response': 'watcher/update_settings/WatcherUpdateSettingsResponse.ts#L20-L24',
'xpack.info.BuildInformation': 'xpack/info/types.ts#L24-L27',
'xpack.info.Feature': 'xpack/info/types.ts#L84-L89',
'xpack.info.Features': 'xpack/info/types.ts#L42-L82',
'xpack.info.Feature': 'xpack/info/types.ts#L88-L93',
'xpack.info.Features': 'xpack/info/types.ts#L42-L86',
'xpack.info.MinimalLicenseInformation': 'xpack/info/types.ts#L34-L40',
'xpack.info.NativeCodeInformation': 'xpack/info/types.ts#L29-L32',
'xpack.info.Request': 'xpack/info/XPackInfoRequest.ts#L23-L63',
Expand All @@ -3449,6 +3449,8 @@
'xpack.usage.EqlFeaturesSequences': 'xpack/usage/types.ts#L127-L134',
'xpack.usage.FeatureToggle': 'xpack/usage/types.ts#L37-L39',
'xpack.usage.Flattened': 'xpack/usage/types.ts#L399-L401',
'xpack.usage.GpuNodeStats': 'xpack/usage/types.ts#L510-L522',
'xpack.usage.GpuVectorIndexing': 'xpack/usage/types.ts#L524-L534',
'xpack.usage.HealthStatistics': 'xpack/usage/types.ts#L150-L152',
'xpack.usage.Ilm': 'xpack/usage/types.ts#L172-L175',
'xpack.usage.IlmPolicyStatistics': 'xpack/usage/types.ts#L167-L170',
Expand Down Expand Up @@ -3476,7 +3478,7 @@
'xpack.usage.Realm': 'xpack/usage/types.ts#L456-L465',
'xpack.usage.RealmCache': 'xpack/usage/types.ts#L276-L278',
'xpack.usage.Request': 'xpack/usage/XPackUsageRequest.ts#L24-L52',
'xpack.usage.Response': 'xpack/usage/XPackUsageResponse.ts#L42-L77',
'xpack.usage.Response': 'xpack/usage/XPackUsageResponse.ts#L43-L82',
'xpack.usage.RoleMapping': 'xpack/usage/types.ts#L280-L283',
'xpack.usage.RuntimeFieldTypes': 'xpack/usage/types.ts#L285-L287',
'xpack.usage.RuntimeFieldsType': 'xpack/usage/types.ts#L289-L304',
Expand All @@ -3502,10 +3504,10 @@
if (hash.length > 1) {
hash = hash.substring(1);
}
window.location = "https://github.com/elastic/elasticsearch-specification/tree/0d7660dad7514c66b2d9beebacca4fb54575d857/specification/" + (paths[hash] || "");
window.location = "https://github.com/elastic/elasticsearch-specification/tree/e19c0a81f07307768d2b3db53a8d885a25479d34/specification/" + (paths[hash] || "");
</script>
</head>
<body>
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/0d7660dad7514c66b2d9beebacca4fb54575d857/specification/">Elasticsearch API specification</a>.
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/e19c0a81f07307768d2b3db53a8d885a25479d34/specification/">Elasticsearch API specification</a>.
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ public class QueryRequest extends RequestBase implements JsonpSerializable {
@Nullable
private final Boolean profile;

@Nullable
private final String projectRouting;

private final String query;

private final Map<String, Map<String, TableValues>> tables;
Expand All @@ -125,6 +128,7 @@ private QueryRequest(Builder builder) {
this.locale = builder.locale;
this.params = ApiTypeHelper.unmodifiable(builder.params);
this.profile = builder.profile;
this.projectRouting = builder.projectRouting;
this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query");
this.tables = ApiTypeHelper.unmodifiable(builder.tables);

Expand Down Expand Up @@ -272,6 +276,19 @@ public final Boolean profile() {
return this.profile;
}

/**
* Specifies a subset of projects to target using project metadata tags in a
* subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a
* single value (possibly wildcarded). Examples: _alias:my-project
* _alias:_origin _alias:<em>pr</em> Supported in serverless only.
* <p>
* API name: {@code project_routing}
*/
@Nullable
public final String projectRouting() {
return this.projectRouting;
}

/**
* Required - The ES|QL query API accepts an ES|QL query string in the query
* parameter, runs it, and returns the results.
Expand Down Expand Up @@ -342,6 +359,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
generator.writeKey("profile");
generator.write(this.profile);

}
if (this.projectRouting != null) {
generator.writeKey("project_routing");
generator.write(this.projectRouting);

}
generator.writeKey("query");
generator.write(this.query);
Expand Down Expand Up @@ -408,6 +430,9 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder> impleme
@Nullable
private Boolean profile;

@Nullable
private String projectRouting;

private String query;

@Nullable
Expand All @@ -427,6 +452,7 @@ private Builder(QueryRequest instance) {
this.locale = instance.locale;
this.params = instance.params;
this.profile = instance.profile;
this.projectRouting = instance.projectRouting;
this.query = instance.query;
this.tables = instance.tables;

Expand Down Expand Up @@ -688,6 +714,19 @@ public final Builder profile(@Nullable Boolean value) {
return this;
}

/**
* Specifies a subset of projects to target using project metadata tags in a
* subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a
* single value (possibly wildcarded). Examples: _alias:my-project
* _alias:_origin _alias:<em>pr</em> Supported in serverless only.
* <p>
* API name: {@code project_routing}
*/
public final Builder projectRouting(@Nullable String value) {
this.projectRouting = value;
return this;
}

/**
* Required - The ES|QL query API accepts an ES|QL query string in the query
* parameter, runs it, and returns the results.
Expand Down Expand Up @@ -767,6 +806,7 @@ protected static void setupQueryRequestDeserializer(ObjectDeserializer<QueryRequ
op.add(Builder::locale, JsonpDeserializer.stringDeserializer(), "locale");
op.add(Builder::params, JsonpDeserializer.arrayDeserializer(FieldValue._DESERIALIZER), "params");
op.add(Builder::profile, JsonpDeserializer.booleanDeserializer(), "profile");
op.add(Builder::projectRouting, JsonpDeserializer.stringDeserializer(), "project_routing");
op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query");
op.add(Builder::tables, JsonpDeserializer
.stringMapDeserializer(JsonpDeserializer.stringMapDeserializer(TableValues._DESERIALIZER)), "tables");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ public static GetInferenceRequest of(Function<Builder, ObjectBuilder<GetInferenc
}

/**
* The inference Id
* The inference Id of the endpoint to return. Using <code>_all</code> or
* <code>*</code> will return all endpoints with the specified
* <code>task_type</code> if one is specified, or all endpoints for all task
* types if no <code>task_type</code> is specified
* <p>
* API name: {@code inference_id}
*/
Expand All @@ -96,7 +99,7 @@ public final String inferenceId() {
}

/**
* The task type
* The task type of the endpoint to return
* <p>
* API name: {@code task_type}
*/
Expand Down Expand Up @@ -128,7 +131,10 @@ private Builder(GetInferenceRequest instance) {

}
/**
* The inference Id
* The inference Id of the endpoint to return. Using <code>_all</code> or
* <code>*</code> will return all endpoints with the specified
* <code>task_type</code> if one is specified, or all endpoints for all task
* types if no <code>task_type</code> is specified
* <p>
* API name: {@code inference_id}
*/
Expand All @@ -138,7 +144,7 @@ public final Builder inferenceId(@Nullable String value) {
}

/**
* The task type
* The task type of the endpoint to return
* <p>
* API name: {@code task_type}
*/
Expand Down Expand Up @@ -218,6 +224,14 @@ public Builder rebuild() {
SimpleEndpoint.pathEncode(request.inferenceId, buf);
return buf.toString();
}
if (propsSet == (_taskType)) {
StringBuilder buf = new StringBuilder();
buf.append("/_inference");
buf.append("/");
SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf);
buf.append("/_all");
return buf.toString();
}
throw SimpleEndpoint.noPathTemplateFound("path");

},
Expand All @@ -244,6 +258,9 @@ public Builder rebuild() {
params.put("taskType", request.taskType.jsonValue());
params.put("inferenceId", request.inferenceId);
}
if (propsSet == (_taskType)) {
params.put("taskType", request.taskType.jsonValue());
}
return params;
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import co.elastic.clients.elasticsearch.xpack.usage.DataTiers;
import co.elastic.clients.elasticsearch.xpack.usage.Eql;
import co.elastic.clients.elasticsearch.xpack.usage.Flattened;
import co.elastic.clients.elasticsearch.xpack.usage.GpuVectorIndexing;
import co.elastic.clients.elasticsearch.xpack.usage.HealthStatistics;
import co.elastic.clients.elasticsearch.xpack.usage.Ilm;
import co.elastic.clients.elasticsearch.xpack.usage.MachineLearning;
Expand Down Expand Up @@ -108,6 +109,9 @@ public class XpackUsageResponse implements JsonpSerializable {

private final Base graph;

@Nullable
private final GpuVectorIndexing gpuVectorIndexing;

@Nullable
private final HealthStatistics healthApi;

Expand Down Expand Up @@ -158,6 +162,7 @@ private XpackUsageResponse(Builder builder) {
this.eql = ApiTypeHelper.requireNonNull(builder.eql, this, "eql");
this.flattened = builder.flattened;
this.graph = ApiTypeHelper.requireNonNull(builder.graph, this, "graph");
this.gpuVectorIndexing = builder.gpuVectorIndexing;
this.healthApi = builder.healthApi;
this.ilm = ApiTypeHelper.requireNonNull(builder.ilm, this, "ilm");
this.logstash = ApiTypeHelper.requireNonNull(builder.logstash, this, "logstash");
Expand Down Expand Up @@ -277,6 +282,14 @@ public final Base graph() {
return this.graph;
}

/**
* API name: {@code gpu_vector_indexing}
*/
@Nullable
public final GpuVectorIndexing gpuVectorIndexing() {
return this.gpuVectorIndexing;
}

/**
* API name: {@code health_api}
*/
Expand Down Expand Up @@ -445,6 +458,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
generator.writeKey("graph");
this.graph.serialize(generator, mapper);

if (this.gpuVectorIndexing != null) {
generator.writeKey("gpu_vector_indexing");
this.gpuVectorIndexing.serialize(generator, mapper);

}
if (this.healthApi != null) {
generator.writeKey("health_api");
this.healthApi.serialize(generator, mapper);
Expand Down Expand Up @@ -543,6 +561,9 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>

private Base graph;

@Nullable
private GpuVectorIndexing gpuVectorIndexing;

@Nullable
private HealthStatistics healthApi;

Expand Down Expand Up @@ -771,6 +792,22 @@ public final Builder graph(Function<Base.Builder, ObjectBuilder<Base>> fn) {
return this.graph(fn.apply(new Base.Builder()).build());
}

/**
* API name: {@code gpu_vector_indexing}
*/
public final Builder gpuVectorIndexing(@Nullable GpuVectorIndexing value) {
this.gpuVectorIndexing = value;
return this;
}

/**
* API name: {@code gpu_vector_indexing}
*/
public final Builder gpuVectorIndexing(
Function<GpuVectorIndexing.Builder, ObjectBuilder<GpuVectorIndexing>> fn) {
return this.gpuVectorIndexing(fn.apply(new GpuVectorIndexing.Builder()).build());
}

/**
* API name: {@code health_api}
*/
Expand Down Expand Up @@ -1038,6 +1075,7 @@ protected static void setupXpackUsageResponseDeserializer(ObjectDeserializer<Xpa
op.add(Builder::eql, Eql._DESERIALIZER, "eql");
op.add(Builder::flattened, Flattened._DESERIALIZER, "flattened");
op.add(Builder::graph, Base._DESERIALIZER, "graph");
op.add(Builder::gpuVectorIndexing, GpuVectorIndexing._DESERIALIZER, "gpu_vector_indexing");
op.add(Builder::healthApi, HealthStatistics._DESERIALIZER, "health_api");
op.add(Builder::ilm, Ilm._DESERIALIZER, "ilm");
op.add(Builder::logstash, Base._DESERIALIZER, "logstash");
Expand Down
Loading
Loading