diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs
index a3fac39235a..609d064dd95 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs
@@ -145,6 +145,14 @@ public sealed partial class HealthResponse : ElasticsearchResponse
[JsonInclude, JsonPropertyName("timed_out")]
public bool TimedOut { get; init; }
+ ///
+ ///
+ /// The number of primary shards that are not allocated.
+ ///
+ ///
+ [JsonInclude, JsonPropertyName("unassigned_primary_shards")]
+ public int UnassignedPrimaryShards { get; init; }
+
///
///
/// The number of shards that are not allocated.
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs
index 69b18ee8d0e..3a9c22fbcf8 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs
@@ -51,7 +51,7 @@ public sealed partial class EsqlQueryRequestParameters : RequestParameters
/// A short version of the Accept header, e.g. json, yaml.
///
///
- public string? Format { get => Q("format"); set => Q("format", value); }
+ public Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); }
}
///
@@ -92,7 +92,7 @@ public sealed partial class EsqlQueryRequest : PlainRequest
///
[JsonIgnore]
- public string? Format { get => Q("format"); set => Q("format", value); }
+ public Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); }
///
///
@@ -163,7 +163,7 @@ public EsqlQueryRequestDescriptor()
public EsqlQueryRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter);
public EsqlQueryRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns);
- public EsqlQueryRequestDescriptor Format(string? format) => Qs("format", format);
+ public EsqlQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? format) => Qs("format", format);
private bool? ColumnarValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; }
@@ -328,7 +328,7 @@ public EsqlQueryRequestDescriptor()
public EsqlQueryRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter);
public EsqlQueryRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns);
- public EsqlQueryRequestDescriptor Format(string? format) => Qs("format", format);
+ public EsqlQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? format) => Qs("format", format);
private bool? ColumnarValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; }
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs
index 3a26e483e8b..88efd35baf2 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs
@@ -52,6 +52,13 @@ public sealed partial class GetDataStreamRequestParameters : RequestParameters
///
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
+
+ ///
+ ///
+ /// Whether the maximum timestamp for each data stream should be calculated and returned.
+ ///
+ ///
+ public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); }
}
///
@@ -102,6 +109,14 @@ public GetDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamN
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
+
+ ///
+ ///
+ /// Whether the maximum timestamp for each data stream should be calculated and returned.
+ ///
+ ///
+ [JsonIgnore]
+ public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); }
}
///
@@ -133,6 +148,7 @@ public GetDataStreamRequestDescriptor()
public GetDataStreamRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards);
public GetDataStreamRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults);
public GetDataStreamRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout);
+ public GetDataStreamRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose);
public GetDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames? name)
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs
index c18ffe5c104..35ff26b1dce 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs
@@ -31,6 +31,15 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement;
public sealed partial class ResolveIndexRequestParameters : RequestParameters
{
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
+
///
///
/// Type of index that wildcard patterns can match.
@@ -40,6 +49,13 @@ public sealed partial class ResolveIndexRequestParameters : RequestParameters
///
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
+
+ ///
+ ///
+ /// If false, the request returns an error if it targets a missing or closed index.
+ ///
+ ///
+ public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
}
///
@@ -62,6 +78,16 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Names name)
internal override string OperationName => "indices.resolve_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.
+ /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar.
+ ///
+ ///
+ [JsonIgnore]
+ public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
+
///
///
/// Type of index that wildcard patterns can match.
@@ -72,6 +98,14 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Names name)
///
[JsonIgnore]
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
+
+ ///
+ ///
+ /// If false, the request returns an error if it targets a missing or closed index.
+ ///
+ ///
+ [JsonIgnore]
+ public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
}
///
@@ -96,7 +130,9 @@ public ResolveIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Na
internal override string OperationName => "indices.resolve_index";
+ public ResolveIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices);
public ResolveIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards);
+ public ResolveIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable);
public ResolveIndexRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name)
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs
index f4488ec31d1..f4019717ca4 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs
@@ -97,6 +97,15 @@ public PutPipelineRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
+ ///
+ ///
+ /// Marks this ingest pipeline as deprecated.
+ /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.
+ ///
+ ///
+ [JsonInclude, JsonPropertyName("deprecated")]
+ public bool? Deprecated { get; set; }
+
///
///
/// Description of the ingest pipeline.
@@ -170,6 +179,7 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.
return Self;
}
+ private bool? DeprecatedValue { get; set; }
private string? DescriptionValue { get; set; }
private IDictionary? MetaValue { get; set; }
private ICollection? OnFailureValue { get; set; }
@@ -182,6 +192,18 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.
private Action>[] ProcessorsDescriptorActions { get; set; }
private long? VersionValue { get; set; }
+ ///
+ ///
+ /// Marks this ingest pipeline as deprecated.
+ /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.
+ ///
+ ///
+ public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true)
+ {
+ DeprecatedValue = deprecated;
+ return Self;
+ }
+
///
///
/// Description of the ingest pipeline.
@@ -300,6 +322,12 @@ public PutPipelineRequestDescriptor Version(long? version)
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
writer.WriteStartObject();
+ if (DeprecatedValue.HasValue)
+ {
+ writer.WritePropertyName("deprecated");
+ writer.WriteBooleanValue(DeprecatedValue.Value);
+ }
+
if (!string.IsNullOrEmpty(DescriptionValue))
{
writer.WritePropertyName("description");
@@ -416,6 +444,7 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.
return Self;
}
+ private bool? DeprecatedValue { get; set; }
private string? DescriptionValue { get; set; }
private IDictionary? MetaValue { get; set; }
private ICollection? OnFailureValue { get; set; }
@@ -428,6 +457,18 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.
private Action[] ProcessorsDescriptorActions { get; set; }
private long? VersionValue { get; set; }
+ ///
+ ///
+ /// Marks this ingest pipeline as deprecated.
+ /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.
+ ///
+ ///
+ public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true)
+ {
+ DeprecatedValue = deprecated;
+ return Self;
+ }
+
///
///
/// Description of the ingest pipeline.
@@ -546,6 +587,12 @@ public PutPipelineRequestDescriptor Version(long? version)
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
writer.WriteStartObject();
+ if (DeprecatedValue.HasValue)
+ {
+ writer.WritePropertyName("deprecated");
+ writer.WriteBooleanValue(DeprecatedValue.Value);
+ }
+
if (!string.IsNullOrEmpty(DescriptionValue))
{
writer.WritePropertyName("description");
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs
index 856765300ec..769f6db4bcb 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs
@@ -90,7 +90,7 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices i
protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
- internal override bool SupportsBody => false;
+ internal override bool SupportsBody => true;
internal override string OperationName => "open_point_in_time";
@@ -136,6 +136,14 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices i
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
+
+ ///
+ ///
+ /// Allows to filter indices if the provided query rewrites to match_none on every shard.
+ ///
+ ///
+ [JsonInclude, JsonPropertyName("index_filter")]
+ public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilter { get; set; }
}
///
@@ -164,7 +172,7 @@ public OpenPointInTimeRequestDescriptor() : this(typeof(TDocument))
protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
- internal override bool SupportsBody => false;
+ internal override bool SupportsBody => true;
internal override string OperationName => "open_point_in_time";
@@ -180,8 +188,59 @@ public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elast
return Self;
}
+ private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; }
+ private Action> IndexFilterDescriptorAction { get; set; }
+
+ ///
+ ///
+ /// Allows to filter indices if the provided query rewrites to match_none on every shard.
+ ///
+ ///
+ public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter)
+ {
+ IndexFilterDescriptor = null;
+ IndexFilterDescriptorAction = null;
+ IndexFilterValue = indexFilter;
+ return Self;
+ }
+
+ public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor)
+ {
+ IndexFilterValue = null;
+ IndexFilterDescriptorAction = null;
+ IndexFilterDescriptor = descriptor;
+ return Self;
+ }
+
+ public OpenPointInTimeRequestDescriptor IndexFilter(Action> configure)
+ {
+ IndexFilterValue = null;
+ IndexFilterDescriptor = null;
+ IndexFilterDescriptorAction = configure;
+ return Self;
+ }
+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
+ writer.WriteStartObject();
+ if (IndexFilterDescriptor is not null)
+ {
+ writer.WritePropertyName("index_filter");
+ JsonSerializer.Serialize(writer, IndexFilterDescriptor, options);
+ }
+ else if (IndexFilterDescriptorAction is not null)
+ {
+ writer.WritePropertyName("index_filter");
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options);
+ }
+ else if (IndexFilterValue is not null)
+ {
+ writer.WritePropertyName("index_filter");
+ JsonSerializer.Serialize(writer, IndexFilterValue, options);
+ }
+
+ writer.WriteEndObject();
}
}
@@ -207,7 +266,7 @@ public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless
protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
- internal override bool SupportsBody => false;
+ internal override bool SupportsBody => true;
internal override string OperationName => "open_point_in_time";
@@ -223,7 +282,58 @@ public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Se
return Self;
}
+ private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; }
+ private Action IndexFilterDescriptorAction { get; set; }
+
+ ///
+ ///
+ /// Allows to filter indices if the provided query rewrites to match_none on every shard.
+ ///
+ ///
+ public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter)
+ {
+ IndexFilterDescriptor = null;
+ IndexFilterDescriptorAction = null;
+ IndexFilterValue = indexFilter;
+ return Self;
+ }
+
+ public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor)
+ {
+ IndexFilterValue = null;
+ IndexFilterDescriptorAction = null;
+ IndexFilterDescriptor = descriptor;
+ return Self;
+ }
+
+ public OpenPointInTimeRequestDescriptor IndexFilter(Action configure)
+ {
+ IndexFilterValue = null;
+ IndexFilterDescriptor = null;
+ IndexFilterDescriptorAction = configure;
+ return Self;
+ }
+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
+ writer.WriteStartObject();
+ if (IndexFilterDescriptor is not null)
+ {
+ writer.WritePropertyName("index_filter");
+ JsonSerializer.Serialize(writer, IndexFilterDescriptor, options);
+ }
+ else if (IndexFilterDescriptorAction is not null)
+ {
+ writer.WritePropertyName("index_filter");
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options);
+ }
+ else if (IndexFilterValue is not null)
+ {
+ writer.WritePropertyName("index_filter");
+ JsonSerializer.Serialize(writer, IndexFilterValue, options);
+ }
+
+ writer.WriteEndObject();
}
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs
index 6094b36e7d1..b31084c2922 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs
@@ -30,4 +30,12 @@ public sealed partial class OpenPointInTimeResponse : ElasticsearchResponse
{
[JsonInclude, JsonPropertyName("id")]
public string Id { get; init; }
+
+ ///
+ ///
+ /// Shards used to create the PIT
+ ///
+ ///
+ [JsonInclude, JsonPropertyName("_shards")]
+ public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; }
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs
index 43b83d2d913..35976debed0 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs
@@ -373,12 +373,6 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert
continue;
}
- if (property == "rank")
- {
- variant.Rank = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
if (property == "rescore")
{
variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options);
@@ -585,12 +579,6 @@ public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSeria
JsonSerializer.Serialize(writer, value.Query, options);
}
- if (value.Rank is not null)
- {
- writer.WritePropertyName("rank");
- JsonSerializer.Serialize(writer, value.Rank, options);
- }
-
if (value.Rescore is not null)
{
writer.WritePropertyName("rescore");
@@ -1128,14 +1116,6 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices)
[JsonInclude, JsonPropertyName("query")]
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; }
- ///
- ///
- /// Defines the Reciprocal Rank Fusion (RRF) to use.
- ///
- ///
- [JsonInclude, JsonPropertyName("rank")]
- public Elastic.Clients.Elasticsearch.Serverless.Rank? Rank { get; set; }
-
///
///
/// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases.
@@ -1401,9 +1381,6 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.
private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; }
private Action> QueryDescriptorAction { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Rank? RankValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.RankDescriptor RankDescriptor { get; set; }
- private Action RankDescriptorAction { get; set; }
private ICollection? RescoreValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; }
private Action> RescoreDescriptorAction { get; set; }
@@ -1790,35 +1767,6 @@ public SearchRequestDescriptor Query(Action
- ///
- /// Defines the Reciprocal Rank Fusion (RRF) to use.
- ///
- ///
- public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Serverless.Rank? rank)
- {
- RankDescriptor = null;
- RankDescriptorAction = null;
- RankValue = rank;
- return Self;
- }
-
- public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Serverless.RankDescriptor descriptor)
- {
- RankValue = null;
- RankDescriptorAction = null;
- RankDescriptor = descriptor;
- return Self;
- }
-
- public SearchRequestDescriptor Rank(Action configure)
- {
- RankValue = null;
- RankDescriptor = null;
- RankDescriptorAction = configure;
- return Self;
- }
-
///
///
/// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases.
@@ -2367,22 +2315,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
JsonSerializer.Serialize(writer, QueryValue, options);
}
- if (RankDescriptor is not null)
- {
- writer.WritePropertyName("rank");
- JsonSerializer.Serialize(writer, RankDescriptor, options);
- }
- else if (RankDescriptorAction is not null)
- {
- writer.WritePropertyName("rank");
- JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RankDescriptor(RankDescriptorAction), options);
- }
- else if (RankValue is not null)
- {
- writer.WritePropertyName("rank");
- JsonSerializer.Serialize(writer, RankValue, options);
- }
-
if (RescoreDescriptor is not null)
{
writer.WritePropertyName("rescore");
@@ -2668,9 +2600,6 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.
private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; }
private Action QueryDescriptorAction { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Rank? RankValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.RankDescriptor RankDescriptor { get; set; }
- private Action RankDescriptorAction { get; set; }
private ICollection? RescoreValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; }
private Action RescoreDescriptorAction { get; set; }
@@ -3057,35 +2986,6 @@ public SearchRequestDescriptor Query(Action
- ///
- /// Defines the Reciprocal Rank Fusion (RRF) to use.
- ///
- ///
- public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Serverless.Rank? rank)
- {
- RankDescriptor = null;
- RankDescriptorAction = null;
- RankValue = rank;
- return Self;
- }
-
- public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Serverless.RankDescriptor descriptor)
- {
- RankValue = null;
- RankDescriptorAction = null;
- RankDescriptor = descriptor;
- return Self;
- }
-
- public SearchRequestDescriptor Rank(Action configure)
- {
- RankValue = null;
- RankDescriptor = null;
- RankDescriptorAction = configure;
- return Self;
- }
-
///
///
/// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases.
@@ -3634,22 +3534,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
JsonSerializer.Serialize(writer, QueryValue, options);
}
- if (RankDescriptor is not null)
- {
- writer.WritePropertyName("rank");
- JsonSerializer.Serialize(writer, RankDescriptor, options);
- }
- else if (RankDescriptorAction is not null)
- {
- writer.WritePropertyName("rank");
- JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RankDescriptor(RankDescriptorAction), options);
- }
- else if (RankValue is not null)
- {
- writer.WritePropertyName("rank");
- JsonSerializer.Serialize(writer, RankValue, options);
- }
-
if (RescoreDescriptor is not null)
{
writer.WritePropertyName("rescore");
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs
index acc10e56463..c07aacaaa31 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs
@@ -36,7 +36,7 @@ public sealed partial class QueryRequestParameters : RequestParameters
/// Format for the response.
///
///
- public string? Format { get => Q("format"); set => Q("format", value); }
+ public Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); }
}
///
@@ -60,7 +60,7 @@ public sealed partial class QueryRequest : PlainRequest
///
///
[JsonIgnore]
- public string? Format { get => Q("format"); set => Q("format", value); }
+ public Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); }
///
///
@@ -215,7 +215,7 @@ public QueryRequestDescriptor()
internal override string OperationName => "sql.query";
- public QueryRequestDescriptor Format(string? format) => Qs("format", format);
+ public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? format) => Qs("format", format);
private string? CatalogValue { get; set; }
private bool? ColumnarValue { get; set; }
@@ -567,7 +567,7 @@ public QueryRequestDescriptor()
internal override string OperationName => "sql.query";
- public QueryRequestDescriptor Format(string? format) => Qs("format", format);
+ public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? format) => Qs("format", format);
private string? CatalogValue { get; set; }
private bool? ColumnarValue { get; set; }
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs
index 87f0195bc1a..36f4e1f3351 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs
@@ -43,7 +43,7 @@ public sealed partial class XpackInfoRequestParameters : RequestParameters
/// A comma-separated list of the information categories to include in the response. For example, build,license,features.
///
///
- public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); }
+ public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); }
}
///
@@ -75,7 +75,7 @@ public sealed partial class XpackInfoRequest : PlainRequest
///
[JsonIgnore]
- public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); }
+ public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); }
}
///
@@ -100,7 +100,7 @@ public XpackInfoRequestDescriptor()
internal override string OperationName => "xpack.info";
public XpackInfoRequestDescriptor AcceptEnterprise(bool? acceptEnterprise = true) => Qs("accept_enterprise", acceptEnterprise);
- public XpackInfoRequestDescriptor Categories(ICollection? categories) => Qs("categories", categories);
+ public XpackInfoRequestDescriptor Categories(ICollection? categories) => Qs("categories", categories);
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs
index 903fa74a8f7..cdd7941b0fe 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs
@@ -43,7 +43,7 @@ internal IngestNamespacedClient(ElasticsearchClient client) : base(client)
///
/// Deletes a geoip database configuration.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequest request, CancellationToken cancellationToken = default)
{
@@ -55,7 +55,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete
///
/// Deletes a geoip database configuration.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default)
{
@@ -67,7 +67,7 @@ public virtual Task DeleteGeoipDatabaseAsync
/// Deletes a geoip database configuration.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default)
{
@@ -80,7 +80,7 @@ public virtual Task DeleteGeoipDatabaseAsync
/// Deletes a geoip database configuration.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action> configureRequest, CancellationToken cancellationToken = default)
{
@@ -94,7 +94,7 @@ public virtual Task DeleteGeoipDatabaseAsync
/// Deletes a geoip database configuration.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default)
{
@@ -106,7 +106,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete
///
/// Deletes a geoip database configuration.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default)
{
@@ -119,7 +119,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti
///
/// Deletes a geoip database configuration.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action configureRequest, CancellationToken cancellationToken = default)
{
@@ -274,7 +274,7 @@ public virtual Task GeoIpStatsAsync(Action
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequest request, CancellationToken cancellationToken = default)
{
@@ -286,7 +286,7 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default)
{
@@ -298,7 +298,7 @@ public virtual Task GetGeoipDatabaseAsync(G
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default)
{
@@ -311,7 +311,7 @@ public virtual Task GetGeoipDatabaseAsync(E
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default)
{
@@ -325,7 +325,7 @@ public virtual Task GetGeoipDatabaseAsync(E
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default)
{
@@ -338,7 +338,7 @@ public virtual Task GetGeoipDatabaseAsync(C
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default)
{
@@ -352,7 +352,7 @@ public virtual Task GetGeoipDatabaseAsync(A
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default)
{
@@ -364,7 +364,7 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default)
{
@@ -377,7 +377,7 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action configureRequest, CancellationToken cancellationToken = default)
{
@@ -391,7 +391,7 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default)
{
@@ -404,7 +404,7 @@ public virtual Task GetGeoipDatabaseAsync(Cancellation
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task GetGeoipDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default)
{
@@ -632,7 +632,7 @@ public virtual Task ProcessorGrokAsync(Action
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequest request, CancellationToken cancellationToken = default)
{
@@ -644,7 +644,7 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default)
{
@@ -656,7 +656,7 @@ public virtual Task PutGeoipDatabaseAsync(P
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default)
{
@@ -669,7 +669,7 @@ public virtual Task PutGeoipDatabaseAsync(E
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default)
{
@@ -683,7 +683,7 @@ public virtual Task PutGeoipDatabaseAsync(E
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default)
{
@@ -695,7 +695,7 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default)
{
@@ -708,7 +708,7 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie
///
/// Returns information about one or more geoip database configurations.
///
- /// Learn more about this API in the Elasticsearch documentation.
+ /// Learn more about this API in the Elasticsearch documentation.
///
public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default)
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs
index 2201077a4d4..7f1f89d7900 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs
@@ -101,6 +101,7 @@ public AggregateDictionary(IReadOnlyDictionary backingDictio
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumAggregate? GetSum(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestPercentileRanksAggregate? GetTDigestPercentileRanks(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestPercentilesAggregate? GetTDigestPercentiles(string key) => TryGet(key);
+ public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TimeSeriesAggregate? GetTimeSeries(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopHitsAggregate? GetTopHits(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsAggregate? GetTopMetrics(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestAggregate? GetTTest(string key) => TryGet(key);
@@ -559,6 +560,13 @@ public static void ReadItem(ref Utf8JsonReader reader, JsonSerializerOptions opt
break;
}
+ case "time_series":
+ {
+ var item = JsonSerializer.Deserialize(ref reader, options);
+ dictionary.Add(nameParts[1], item);
+ break;
+ }
+
case "top_hits":
{
var item = JsonSerializer.Deserialize(ref reader, options);
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs
new file mode 100644
index 00000000000..8eeb3961a76
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs
@@ -0,0 +1,36 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations;
+
+public sealed partial class TimeSeriesAggregate : IAggregate
+{
+ [JsonInclude, JsonPropertyName("buckets")]
+ public IReadOnlyCollection Buckets { get; init; }
+ [JsonInclude, JsonPropertyName("meta")]
+ public IReadOnlyDictionary? Meta { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs
new file mode 100644
index 00000000000..920d0906f9c
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs
@@ -0,0 +1,87 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations;
+
+internal sealed partial class TimeSeriesBucketConverter : JsonConverter
+{
+ public override TimeSeriesBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ if (reader.TokenType != JsonTokenType.StartObject)
+ throw new JsonException("Unexpected JSON detected.");
+ long docCount = default;
+ IReadOnlyDictionary key = default;
+ Dictionary additionalProperties = null;
+ while (reader.Read() && reader.TokenType != JsonTokenType.EndObject)
+ {
+ if (reader.TokenType == JsonTokenType.PropertyName)
+ {
+ var property = reader.GetString();
+ if (property == "doc_count")
+ {
+ docCount = JsonSerializer.Deserialize(ref reader, options);
+ continue;
+ }
+
+ if (property == "key")
+ {
+ key = JsonSerializer.Deserialize>(ref reader, options);
+ continue;
+ }
+
+ if (property.Contains("#"))
+ {
+ additionalProperties ??= new Dictionary();
+ AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property);
+ continue;
+ }
+
+ throw new JsonException("Unknown property read from JSON.");
+ }
+ }
+
+ return new TimeSeriesBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key };
+ }
+
+ public override void Write(Utf8JsonWriter writer, TimeSeriesBucket value, JsonSerializerOptions options)
+ {
+ throw new NotImplementedException("'TimeSeriesBucket' is a readonly type, used only on responses and does not support being written to JSON.");
+ }
+}
+
+[JsonConverter(typeof(TimeSeriesBucketConverter))]
+public sealed partial class TimeSeriesBucket
+{
+ ///
+ ///
+ /// Nested aggregations
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; }
+ public long DocCount { get; init; }
+ public IReadOnlyDictionary Key { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs
new file mode 100644
index 00000000000..dd3cd63d201
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs
@@ -0,0 +1,90 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Analysis;
+
+public sealed partial class ClassicTokenizer : ITokenizer
+{
+ [JsonInclude, JsonPropertyName("max_token_length")]
+ public int? MaxTokenLength { get; set; }
+
+ [JsonInclude, JsonPropertyName("type")]
+ public string Type => "classic";
+
+ [JsonInclude, JsonPropertyName("version")]
+ public string? Version { get; set; }
+}
+
+public sealed partial class ClassicTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor
+{
+ internal ClassicTokenizerDescriptor(Action configure) => configure.Invoke(this);
+
+ public ClassicTokenizerDescriptor() : base()
+ {
+ }
+
+ private int? MaxTokenLengthValue { get; set; }
+ private string? VersionValue { get; set; }
+
+ public ClassicTokenizerDescriptor MaxTokenLength(int? maxTokenLength)
+ {
+ MaxTokenLengthValue = maxTokenLength;
+ return Self;
+ }
+
+ public ClassicTokenizerDescriptor Version(string? version)
+ {
+ VersionValue = version;
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ writer.WriteStartObject();
+ if (MaxTokenLengthValue.HasValue)
+ {
+ writer.WritePropertyName("max_token_length");
+ writer.WriteNumberValue(MaxTokenLengthValue.Value);
+ }
+
+ writer.WritePropertyName("type");
+ writer.WriteStringValue("classic");
+ if (!string.IsNullOrEmpty(VersionValue))
+ {
+ writer.WritePropertyName("version");
+ writer.WriteStringValue(VersionValue);
+ }
+
+ writer.WriteEndObject();
+ }
+
+ ClassicTokenizer IBuildableDescriptor.Build() => new()
+ {
+ MaxTokenLength = MaxTokenLengthValue,
+ Version = VersionValue
+ };
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs
index 6992131e171..41b05db29a7 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs
@@ -36,7 +36,7 @@ public sealed partial class EdgeNGramTokenizer : ITokenizer
[JsonInclude, JsonPropertyName("min_gram")]
public int MinGram { get; set; }
[JsonInclude, JsonPropertyName("token_chars")]
- public ICollection TokenChars { get; set; }
+ public ICollection? TokenChars { get; set; }
[JsonInclude, JsonPropertyName("type")]
public string Type => "edge_ngram";
@@ -56,7 +56,7 @@ public EdgeNGramTokenizerDescriptor() : base()
private string? CustomTokenCharsValue { get; set; }
private int MaxGramValue { get; set; }
private int MinGramValue { get; set; }
- private ICollection TokenCharsValue { get; set; }
+ private ICollection? TokenCharsValue { get; set; }
private string? VersionValue { get; set; }
public EdgeNGramTokenizerDescriptor CustomTokenChars(string? customTokenChars)
@@ -77,7 +77,7 @@ public EdgeNGramTokenizerDescriptor MinGram(int minGram)
return Self;
}
- public EdgeNGramTokenizerDescriptor TokenChars(ICollection tokenChars)
+ public EdgeNGramTokenizerDescriptor TokenChars(ICollection? tokenChars)
{
TokenCharsValue = tokenChars;
return Self;
@@ -102,8 +102,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
writer.WriteNumberValue(MaxGramValue);
writer.WritePropertyName("min_gram");
writer.WriteNumberValue(MinGramValue);
- writer.WritePropertyName("token_chars");
- JsonSerializer.Serialize(writer, TokenCharsValue, options);
+ if (TokenCharsValue is not null)
+ {
+ writer.WritePropertyName("token_chars");
+ JsonSerializer.Serialize(writer, TokenCharsValue, options);
+ }
+
writer.WritePropertyName("type");
writer.WriteStringValue("edge_ngram");
if (!string.IsNullOrEmpty(VersionValue))
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs
index 9fc8bf1b52e..63c98e51412 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs
@@ -32,6 +32,7 @@ public sealed partial class KeywordMarkerTokenFilter : ITokenFilter
[JsonInclude, JsonPropertyName("ignore_case")]
public bool? IgnoreCase { get; set; }
[JsonInclude, JsonPropertyName("keywords")]
+ [SingleOrManyCollectionConverter(typeof(string))]
public ICollection? Keywords { get; set; }
[JsonInclude, JsonPropertyName("keywords_path")]
public string? KeywordsPath { get; set; }
@@ -101,7 +102,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
if (KeywordsValue is not null)
{
writer.WritePropertyName("keywords");
- JsonSerializer.Serialize(writer, KeywordsValue, options);
+ SingleOrManySerializationHelper.Serialize(KeywordsValue, writer, options);
}
if (!string.IsNullOrEmpty(KeywordsPathValue))
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs
index 25621e123f4..379e6bdb7e9 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs
@@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Analysis;
public sealed partial class KeywordTokenizer : ITokenizer
{
[JsonInclude, JsonPropertyName("buffer_size")]
- public int BufferSize { get; set; }
+ public int? BufferSize { get; set; }
[JsonInclude, JsonPropertyName("type")]
public string Type => "keyword";
@@ -47,10 +47,10 @@ public KeywordTokenizerDescriptor() : base()
{
}
- private int BufferSizeValue { get; set; }
+ private int? BufferSizeValue { get; set; }
private string? VersionValue { get; set; }
- public KeywordTokenizerDescriptor BufferSize(int bufferSize)
+ public KeywordTokenizerDescriptor BufferSize(int? bufferSize)
{
BufferSizeValue = bufferSize;
return Self;
@@ -65,8 +65,12 @@ public KeywordTokenizerDescriptor Version(string? version)
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
writer.WriteStartObject();
- writer.WritePropertyName("buffer_size");
- writer.WriteNumberValue(BufferSizeValue);
+ if (BufferSizeValue.HasValue)
+ {
+ writer.WritePropertyName("buffer_size");
+ writer.WriteNumberValue(BufferSizeValue.Value);
+ }
+
writer.WritePropertyName("type");
writer.WriteStringValue("keyword");
if (!string.IsNullOrEmpty(VersionValue))
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs
index b56cc0414bb..1c685bd6ccf 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs
@@ -36,7 +36,7 @@ public sealed partial class NGramTokenizer : ITokenizer
[JsonInclude, JsonPropertyName("min_gram")]
public int MinGram { get; set; }
[JsonInclude, JsonPropertyName("token_chars")]
- public ICollection TokenChars { get; set; }
+ public ICollection? TokenChars { get; set; }
[JsonInclude, JsonPropertyName("type")]
public string Type => "ngram";
@@ -56,7 +56,7 @@ public NGramTokenizerDescriptor() : base()
private string? CustomTokenCharsValue { get; set; }
private int MaxGramValue { get; set; }
private int MinGramValue { get; set; }
- private ICollection TokenCharsValue { get; set; }
+ private ICollection? TokenCharsValue { get; set; }
private string? VersionValue { get; set; }
public NGramTokenizerDescriptor CustomTokenChars(string? customTokenChars)
@@ -77,7 +77,7 @@ public NGramTokenizerDescriptor MinGram(int minGram)
return Self;
}
- public NGramTokenizerDescriptor TokenChars(ICollection tokenChars)
+ public NGramTokenizerDescriptor TokenChars(ICollection? tokenChars)
{
TokenCharsValue = tokenChars;
return Self;
@@ -102,8 +102,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
writer.WriteNumberValue(MaxGramValue);
writer.WritePropertyName("min_gram");
writer.WriteNumberValue(MinGramValue);
- writer.WritePropertyName("token_chars");
- JsonSerializer.Serialize(writer, TokenCharsValue, options);
+ if (TokenCharsValue is not null)
+ {
+ writer.WritePropertyName("token_chars");
+ JsonSerializer.Serialize(writer, TokenCharsValue, options);
+ }
+
writer.WritePropertyName("type");
writer.WriteStringValue("ngram");
if (!string.IsNullOrEmpty(VersionValue))
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs
new file mode 100644
index 00000000000..7953d768925
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs
@@ -0,0 +1,90 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Analysis;
+
+public sealed partial class SimplePatternSplitTokenizer : ITokenizer
+{
+ [JsonInclude, JsonPropertyName("pattern")]
+ public string? Pattern { get; set; }
+
+ [JsonInclude, JsonPropertyName("type")]
+ public string Type => "simple_pattern_split";
+
+ [JsonInclude, JsonPropertyName("version")]
+ public string? Version { get; set; }
+}
+
+public sealed partial class SimplePatternSplitTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor
+{
+ internal SimplePatternSplitTokenizerDescriptor(Action configure) => configure.Invoke(this);
+
+ public SimplePatternSplitTokenizerDescriptor() : base()
+ {
+ }
+
+ private string? PatternValue { get; set; }
+ private string? VersionValue { get; set; }
+
+ public SimplePatternSplitTokenizerDescriptor Pattern(string? pattern)
+ {
+ PatternValue = pattern;
+ return Self;
+ }
+
+ public SimplePatternSplitTokenizerDescriptor Version(string? version)
+ {
+ VersionValue = version;
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ writer.WriteStartObject();
+ if (!string.IsNullOrEmpty(PatternValue))
+ {
+ writer.WritePropertyName("pattern");
+ writer.WriteStringValue(PatternValue);
+ }
+
+ writer.WritePropertyName("type");
+ writer.WriteStringValue("simple_pattern_split");
+ if (!string.IsNullOrEmpty(VersionValue))
+ {
+ writer.WritePropertyName("version");
+ writer.WriteStringValue(VersionValue);
+ }
+
+ writer.WriteEndObject();
+ }
+
+ SimplePatternSplitTokenizer IBuildableDescriptor.Build() => new()
+ {
+ Pattern = PatternValue,
+ Version = VersionValue
+ };
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs
new file mode 100644
index 00000000000..922ae85dd8e
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs
@@ -0,0 +1,90 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Analysis;
+
+public sealed partial class SimplePatternTokenizer : ITokenizer
+{
+ [JsonInclude, JsonPropertyName("pattern")]
+ public string? Pattern { get; set; }
+
+ [JsonInclude, JsonPropertyName("type")]
+ public string Type => "simple_pattern";
+
+ [JsonInclude, JsonPropertyName("version")]
+ public string? Version { get; set; }
+}
+
+public sealed partial class SimplePatternTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor
+{
+ internal SimplePatternTokenizerDescriptor(Action configure) => configure.Invoke(this);
+
+ public SimplePatternTokenizerDescriptor() : base()
+ {
+ }
+
+ private string? PatternValue { get; set; }
+ private string? VersionValue { get; set; }
+
+ public SimplePatternTokenizerDescriptor Pattern(string? pattern)
+ {
+ PatternValue = pattern;
+ return Self;
+ }
+
+ public SimplePatternTokenizerDescriptor Version(string? version)
+ {
+ VersionValue = version;
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ writer.WriteStartObject();
+ if (!string.IsNullOrEmpty(PatternValue))
+ {
+ writer.WritePropertyName("pattern");
+ writer.WriteStringValue(PatternValue);
+ }
+
+ writer.WritePropertyName("type");
+ writer.WriteStringValue("simple_pattern");
+ if (!string.IsNullOrEmpty(VersionValue))
+ {
+ writer.WritePropertyName("version");
+ writer.WriteStringValue(VersionValue);
+ }
+
+ writer.WriteEndObject();
+ }
+
+ SimplePatternTokenizer IBuildableDescriptor.Build() => new()
+ {
+ Pattern = PatternValue,
+ Version = VersionValue
+ };
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs
new file mode 100644
index 00000000000..3d31fe4eadc
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs
@@ -0,0 +1,73 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Analysis;
+
+public sealed partial class ThaiTokenizer : ITokenizer
+{
+ [JsonInclude, JsonPropertyName("type")]
+ public string Type => "thai";
+
+ [JsonInclude, JsonPropertyName("version")]
+ public string? Version { get; set; }
+}
+
+public sealed partial class ThaiTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor
+{
+ internal ThaiTokenizerDescriptor(Action configure) => configure.Invoke(this);
+
+ public ThaiTokenizerDescriptor() : base()
+ {
+ }
+
+ private string? VersionValue { get; set; }
+
+ public ThaiTokenizerDescriptor Version(string? version)
+ {
+ VersionValue = version;
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ writer.WriteStartObject();
+ writer.WritePropertyName("type");
+ writer.WriteStringValue("thai");
+ if (!string.IsNullOrEmpty(VersionValue))
+ {
+ writer.WritePropertyName("version");
+ writer.WriteStringValue(VersionValue);
+ }
+
+ writer.WriteEndObject();
+ }
+
+ ThaiTokenizer IBuildableDescriptor.Build() => new()
+ {
+ Version = VersionValue
+ };
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs
index e43e3e982d9..0e3c17b8211 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs
@@ -69,6 +69,9 @@ public TokenizersDescriptor() : base(new Tokenizers())
public TokenizersDescriptor CharGroup(string tokenizerName) => AssignVariant(tokenizerName, null);
public TokenizersDescriptor CharGroup(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
public TokenizersDescriptor CharGroup(string tokenizerName, CharGroupTokenizer charGroupTokenizer) => AssignVariant(tokenizerName, charGroupTokenizer);
+ public TokenizersDescriptor Classic(string tokenizerName) => AssignVariant(tokenizerName, null);
+ public TokenizersDescriptor Classic(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
+ public TokenizersDescriptor Classic(string tokenizerName, ClassicTokenizer classicTokenizer) => AssignVariant(tokenizerName, classicTokenizer);
public TokenizersDescriptor EdgeNGram(string tokenizerName) => AssignVariant(tokenizerName, null);
public TokenizersDescriptor EdgeNGram(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
public TokenizersDescriptor EdgeNGram(string tokenizerName, EdgeNGramTokenizer edgeNGramTokenizer) => AssignVariant(tokenizerName, edgeNGramTokenizer);
@@ -99,9 +102,18 @@ public TokenizersDescriptor() : base(new Tokenizers())
public TokenizersDescriptor Pattern(string tokenizerName) => AssignVariant(tokenizerName, null);
public TokenizersDescriptor Pattern(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
public TokenizersDescriptor Pattern(string tokenizerName, PatternTokenizer patternTokenizer) => AssignVariant(tokenizerName, patternTokenizer);
+ public TokenizersDescriptor SimplePatternSplit(string tokenizerName) => AssignVariant(tokenizerName, null);
+ public TokenizersDescriptor SimplePatternSplit(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
+ public TokenizersDescriptor SimplePatternSplit(string tokenizerName, SimplePatternSplitTokenizer simplePatternSplitTokenizer) => AssignVariant(tokenizerName, simplePatternSplitTokenizer);
+ public TokenizersDescriptor SimplePattern(string tokenizerName) => AssignVariant(tokenizerName, null);
+ public TokenizersDescriptor SimplePattern(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
+ public TokenizersDescriptor SimplePattern(string tokenizerName, SimplePatternTokenizer simplePatternTokenizer) => AssignVariant(tokenizerName, simplePatternTokenizer);
public TokenizersDescriptor Standard(string tokenizerName) => AssignVariant(tokenizerName, null);
public TokenizersDescriptor Standard(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
public TokenizersDescriptor Standard(string tokenizerName, StandardTokenizer standardTokenizer) => AssignVariant(tokenizerName, standardTokenizer);
+ public TokenizersDescriptor Thai(string tokenizerName) => AssignVariant(tokenizerName, null);
+ public TokenizersDescriptor Thai(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
+ public TokenizersDescriptor Thai(string tokenizerName, ThaiTokenizer thaiTokenizer) => AssignVariant(tokenizerName, thaiTokenizer);
public TokenizersDescriptor UaxEmailUrl(string tokenizerName) => AssignVariant(tokenizerName, null);
public TokenizersDescriptor UaxEmailUrl(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure);
public TokenizersDescriptor UaxEmailUrl(string tokenizerName, UaxEmailUrlTokenizer uaxEmailUrlTokenizer) => AssignVariant(tokenizerName, uaxEmailUrlTokenizer);
@@ -126,6 +138,8 @@ public override ITokenizer Read(ref Utf8JsonReader reader, Type typeToConvert, J
{
case "char_group":
return JsonSerializer.Deserialize(ref reader, options);
+ case "classic":
+ return JsonSerializer.Deserialize(ref reader, options);
case "edge_ngram":
return JsonSerializer.Deserialize(ref reader, options);
case "icu_tokenizer":
@@ -146,8 +160,14 @@ public override ITokenizer Read(ref Utf8JsonReader reader, Type typeToConvert, J
return JsonSerializer.Deserialize(ref reader, options);
case "pattern":
return JsonSerializer.Deserialize(ref reader, options);
+ case "simple_pattern_split":
+ return JsonSerializer.Deserialize(ref reader, options);
+ case "simple_pattern":
+ return JsonSerializer.Deserialize(ref reader, options);
case "standard":
return JsonSerializer.Deserialize(ref reader, options);
+ case "thai":
+ return JsonSerializer.Deserialize(ref reader, options);
case "uax_url_email":
return JsonSerializer.Deserialize(ref reader, options);
case "whitespace":
@@ -171,6 +191,9 @@ public override void Write(Utf8JsonWriter writer, ITokenizer value, JsonSerializ
case "char_group":
JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CharGroupTokenizer), options);
return;
+ case "classic":
+ JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ClassicTokenizer), options);
+ return;
case "edge_ngram":
JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.EdgeNGramTokenizer), options);
return;
@@ -201,9 +224,18 @@ public override void Write(Utf8JsonWriter writer, ITokenizer value, JsonSerializ
case "pattern":
JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PatternTokenizer), options);
return;
+ case "simple_pattern_split":
+ JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SimplePatternSplitTokenizer), options);
+ return;
+ case "simple_pattern":
+ JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SimplePatternTokenizer), options);
+ return;
case "standard":
JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StandardTokenizer), options);
return;
+ case "thai":
+ JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ThaiTokenizer), options);
+ return;
case "uax_url_email":
JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.UaxEmailUrlTokenizer), options);
return;
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs
index e96acb32e06..9ae6aadc90c 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs
@@ -35,6 +35,8 @@ public sealed partial class CurrentNode
public string Id { get; init; }
[JsonInclude, JsonPropertyName("name")]
public string Name { get; init; }
+ [JsonInclude, JsonPropertyName("roles")]
+ public IReadOnlyCollection Roles { get; init; }
[JsonInclude, JsonPropertyName("transport_address")]
public string TransportAddress { get; init; }
[JsonInclude, JsonPropertyName("weight_ranking")]
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs
index e9f1e22a8a7..8731a5b847d 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs
@@ -45,6 +45,8 @@ public sealed partial class IndexHealthStats
public IReadOnlyDictionary? Shards { get; init; }
[JsonInclude, JsonPropertyName("status")]
public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; }
+ [JsonInclude, JsonPropertyName("unassigned_primary_shards")]
+ public int UnassignedPrimaryShards { get; init; }
[JsonInclude, JsonPropertyName("unassigned_shards")]
public int UnassignedShards { get; init; }
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs
index a7d5a34d3cb..9eddb8404ad 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs
@@ -39,6 +39,8 @@ public sealed partial class NodeAllocationExplanation
public string NodeId { get; init; }
[JsonInclude, JsonPropertyName("node_name")]
public string NodeName { get; init; }
+ [JsonInclude, JsonPropertyName("roles")]
+ public IReadOnlyCollection Roles { get; init; }
[JsonInclude, JsonPropertyName("store")]
public Elastic.Clients.Elasticsearch.Serverless.Cluster.AllocationStore? Store { get; init; }
[JsonInclude, JsonPropertyName("transport_address")]
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs
index 36433d2d2fb..0c606274b01 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs
@@ -39,6 +39,8 @@ public sealed partial class ShardHealthStats
public int RelocatingShards { get; init; }
[JsonInclude, JsonPropertyName("status")]
public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; }
+ [JsonInclude, JsonPropertyName("unassigned_primary_shards")]
+ public int UnassignedPrimaryShards { get; init; }
[JsonInclude, JsonPropertyName("unassigned_shards")]
public int UnassignedShards { get; init; }
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs
index 18394575b9a..b37d0f1d624 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs
@@ -29,6 +29,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search;
public sealed partial class AggregationProfileDebug
{
+ [JsonInclude, JsonPropertyName("brute_force_used")]
+ public int? BruteForceUsed { get; init; }
[JsonInclude, JsonPropertyName("built_buckets")]
public int? BuiltBuckets { get; init; }
[JsonInclude, JsonPropertyName("chars_fetched")]
@@ -45,6 +47,10 @@ public sealed partial class AggregationProfileDebug
public string? Delegate { get; init; }
[JsonInclude, JsonPropertyName("delegate_debug")]
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.AggregationProfileDebug? DelegateDebug { get; init; }
+ [JsonInclude, JsonPropertyName("dynamic_pruning_attempted")]
+ public int? DynamicPruningAttempted { get; init; }
+ [JsonInclude, JsonPropertyName("dynamic_pruning_used")]
+ public int? DynamicPruningUsed { get; init; }
[JsonInclude, JsonPropertyName("empty_collectors_used")]
public int? EmptyCollectorsUsed { get; init; }
[JsonInclude, JsonPropertyName("extract_count")]
@@ -77,6 +83,8 @@ public sealed partial class AggregationProfileDebug
public int? SegmentsWithMultiValuedOrds { get; init; }
[JsonInclude, JsonPropertyName("segments_with_single_valued_ords")]
public int? SegmentsWithSingleValuedOrds { get; init; }
+ [JsonInclude, JsonPropertyName("skipped_due_to_no_data")]
+ public int? SkippedDueToNoData { get; init; }
[JsonInclude, JsonPropertyName("string_hashing_collectors_used")]
public int? StringHashingCollectorsUsed { get; init; }
[JsonInclude, JsonPropertyName("surviving_buckets")]
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs
new file mode 100644
index 00000000000..e530248121d
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs
@@ -0,0 +1,40 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search;
+
+public sealed partial class DfsKnnProfile
+{
+ [JsonInclude, JsonPropertyName("collector")]
+ public IReadOnlyCollection Collector { get; init; }
+ [JsonInclude, JsonPropertyName("query")]
+ public IReadOnlyCollection Query { get; init; }
+ [JsonInclude, JsonPropertyName("rewrite_time")]
+ public long RewriteTime { get; init; }
+ [JsonInclude, JsonPropertyName("vector_operations_count")]
+ public long? VectorOperationsCount { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs
new file mode 100644
index 00000000000..9382b2458b4
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs
@@ -0,0 +1,36 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search;
+
+public sealed partial class DfsProfile
+{
+ [JsonInclude, JsonPropertyName("knn")]
+ public IReadOnlyCollection? Knn { get; init; }
+ [JsonInclude, JsonPropertyName("statistics")]
+ public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsStatisticsProfile? Statistics { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs
new file mode 100644
index 00000000000..c1e450ddf09
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs
@@ -0,0 +1,48 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search;
+
+public sealed partial class DfsStatisticsBreakdown
+{
+ [JsonInclude, JsonPropertyName("collection_statistics")]
+ public long CollectionStatistics { get; init; }
+ [JsonInclude, JsonPropertyName("collection_statistics_count")]
+ public long CollectionStatisticsCount { get; init; }
+ [JsonInclude, JsonPropertyName("create_weight")]
+ public long CreateWeight { get; init; }
+ [JsonInclude, JsonPropertyName("create_weight_count")]
+ public long CreateWeightCount { get; init; }
+ [JsonInclude, JsonPropertyName("rewrite")]
+ public long Rewrite { get; init; }
+ [JsonInclude, JsonPropertyName("rewrite_count")]
+ public long RewriteCount { get; init; }
+ [JsonInclude, JsonPropertyName("term_statistics")]
+ public long TermStatistics { get; init; }
+ [JsonInclude, JsonPropertyName("term_statistics_count")]
+ public long TermStatisticsCount { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs
new file mode 100644
index 00000000000..45ca7daa2a6
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs
@@ -0,0 +1,46 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search;
+
+public sealed partial class DfsStatisticsProfile
+{
+ [JsonInclude, JsonPropertyName("breakdown")]
+ public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsStatisticsBreakdown Breakdown { get; init; }
+ [JsonInclude, JsonPropertyName("children")]
+ public IReadOnlyCollection? Children { get; init; }
+ [JsonInclude, JsonPropertyName("debug")]
+ public IReadOnlyDictionary? Debug { get; init; }
+ [JsonInclude, JsonPropertyName("description")]
+ public string Description { get; init; }
+ [JsonInclude, JsonPropertyName("time")]
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; }
+ [JsonInclude, JsonPropertyName("time_in_nanos")]
+ public long TimeInNanos { get; init; }
+ [JsonInclude, JsonPropertyName("type")]
+ public string Type { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs
index db68c554542..4950958526d 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs
@@ -40,7 +40,7 @@ public sealed partial class Hit
[JsonInclude, JsonPropertyName("_ignored")]
public IReadOnlyCollection? Ignored { get; init; }
[JsonInclude, JsonPropertyName("ignored_field_values")]
- public IReadOnlyDictionary>? IgnoredFieldValues { get; init; }
+ public IReadOnlyDictionary>? IgnoredFieldValues { get; init; }
[JsonInclude, JsonPropertyName("_index")]
public string Index { get; init; }
[JsonInclude, JsonPropertyName("inner_hits")]
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs
new file mode 100644
index 00000000000..d75e41dce07
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs
@@ -0,0 +1,42 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search;
+
+public sealed partial class KnnCollectorResult
+{
+ [JsonInclude, JsonPropertyName("children")]
+ public IReadOnlyCollection? Children { get; init; }
+ [JsonInclude, JsonPropertyName("name")]
+ public string Name { get; init; }
+ [JsonInclude, JsonPropertyName("reason")]
+ public string Reason { get; init; }
+ [JsonInclude, JsonPropertyName("time")]
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; }
+ [JsonInclude, JsonPropertyName("time_in_nanos")]
+ public long TimeInNanos { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs
new file mode 100644
index 00000000000..1cd52e5c480
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs
@@ -0,0 +1,72 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search;
+
+public sealed partial class KnnQueryProfileBreakdown
+{
+ [JsonInclude, JsonPropertyName("advance")]
+ public long Advance { get; init; }
+ [JsonInclude, JsonPropertyName("advance_count")]
+ public long AdvanceCount { get; init; }
+ [JsonInclude, JsonPropertyName("build_scorer")]
+ public long BuildScorer { get; init; }
+ [JsonInclude, JsonPropertyName("build_scorer_count")]
+ public long BuildScorerCount { get; init; }
+ [JsonInclude, JsonPropertyName("compute_max_score")]
+ public long ComputeMaxScore { get; init; }
+ [JsonInclude, JsonPropertyName("compute_max_score_count")]
+ public long ComputeMaxScoreCount { get; init; }
+ [JsonInclude, JsonPropertyName("count_weight")]
+ public long CountWeight { get; init; }
+ [JsonInclude, JsonPropertyName("count_weight_count")]
+ public long CountWeightCount { get; init; }
+ [JsonInclude, JsonPropertyName("create_weight")]
+ public long CreateWeight { get; init; }
+ [JsonInclude, JsonPropertyName("create_weight_count")]
+ public long CreateWeightCount { get; init; }
+ [JsonInclude, JsonPropertyName("match")]
+ public long Match { get; init; }
+ [JsonInclude, JsonPropertyName("match_count")]
+ public long MatchCount { get; init; }
+ [JsonInclude, JsonPropertyName("next_doc")]
+ public long NextDoc { get; init; }
+ [JsonInclude, JsonPropertyName("next_doc_count")]
+ public long NextDocCount { get; init; }
+ [JsonInclude, JsonPropertyName("score")]
+ public long Score { get; init; }
+ [JsonInclude, JsonPropertyName("score_count")]
+ public long ScoreCount { get; init; }
+ [JsonInclude, JsonPropertyName("set_min_competitive_score")]
+ public long SetMinCompetitiveScore { get; init; }
+ [JsonInclude, JsonPropertyName("set_min_competitive_score_count")]
+ public long SetMinCompetitiveScoreCount { get; init; }
+ [JsonInclude, JsonPropertyName("shallow_advance")]
+ public long ShallowAdvance { get; init; }
+ [JsonInclude, JsonPropertyName("shallow_advance_count")]
+ public long ShallowAdvanceCount { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs
new file mode 100644
index 00000000000..cc0b60423d2
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs
@@ -0,0 +1,46 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search;
+
+public sealed partial class KnnQueryProfileResult
+{
+ [JsonInclude, JsonPropertyName("breakdown")]
+ public Elastic.Clients.Elasticsearch.Serverless.Core.Search.KnnQueryProfileBreakdown Breakdown { get; init; }
+ [JsonInclude, JsonPropertyName("children")]
+ public IReadOnlyCollection? Children { get; init; }
+ [JsonInclude, JsonPropertyName("debug")]
+ public IReadOnlyDictionary? Debug { get; init; }
+ [JsonInclude, JsonPropertyName("description")]
+ public string Description { get; init; }
+ [JsonInclude, JsonPropertyName("time")]
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; }
+ [JsonInclude, JsonPropertyName("time_in_nanos")]
+ public long TimeInNanos { get; init; }
+ [JsonInclude, JsonPropertyName("type")]
+ public string Type { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs
index 68c7c76cddf..d1437731867 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs
@@ -41,6 +41,10 @@ public sealed partial class QueryBreakdown
public long ComputeMaxScore { get; init; }
[JsonInclude, JsonPropertyName("compute_max_score_count")]
public long ComputeMaxScoreCount { get; init; }
+ [JsonInclude, JsonPropertyName("count_weight")]
+ public long CountWeight { get; init; }
+ [JsonInclude, JsonPropertyName("count_weight_count")]
+ public long CountWeightCount { get; init; }
[JsonInclude, JsonPropertyName("create_weight")]
public long CreateWeight { get; init; }
[JsonInclude, JsonPropertyName("create_weight_count")]
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs
index b7f93f0ad9d..f06dd7d80c0 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs
@@ -31,10 +31,20 @@ public sealed partial class ShardProfile
{
[JsonInclude, JsonPropertyName("aggregations")]
public IReadOnlyCollection Aggregations { get; init; }
+ [JsonInclude, JsonPropertyName("cluster")]
+ public string Cluster { get; init; }
+ [JsonInclude, JsonPropertyName("dfs")]
+ public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsProfile? Dfs { get; init; }
[JsonInclude, JsonPropertyName("fetch")]
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FetchProfile? Fetch { get; init; }
[JsonInclude, JsonPropertyName("id")]
public string Id { get; init; }
+ [JsonInclude, JsonPropertyName("index")]
+ public string Index { get; init; }
+ [JsonInclude, JsonPropertyName("node_id")]
+ public string NodeId { get; init; }
[JsonInclude, JsonPropertyName("searches")]
public IReadOnlyCollection Searches { get; init; }
+ [JsonInclude, JsonPropertyName("shard_id")]
+ public long ShardId { get; init; }
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs
index bd7b388718d..333b77ee818 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs
@@ -35,8 +35,14 @@ public sealed partial class CacheStats
public int Evictions { get; init; }
[JsonInclude, JsonPropertyName("hits")]
public int Hits { get; init; }
+ [JsonInclude, JsonPropertyName("hits_time_in_millis")]
+ public long HitsTimeInMillis { get; init; }
[JsonInclude, JsonPropertyName("misses")]
public int Misses { get; init; }
+ [JsonInclude, JsonPropertyName("misses_time_in_millis")]
+ public long MissesTimeInMillis { get; init; }
[JsonInclude, JsonPropertyName("node_id")]
public string NodeId { get; init; }
+ [JsonInclude, JsonPropertyName("size_in_bytes")]
+ public long SizeInBytes { get; init; }
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs
new file mode 100644
index 00000000000..9f3b55c714b
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs
@@ -0,0 +1,113 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Core;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Esql;
+
+[JsonConverter(typeof(EsqlFormatConverter))]
+public enum EsqlFormat
+{
+ [EnumMember(Value = "yaml")]
+ Yaml,
+ [EnumMember(Value = "txt")]
+ Txt,
+ [EnumMember(Value = "tsv")]
+ Tsv,
+ [EnumMember(Value = "smile")]
+ Smile,
+ [EnumMember(Value = "json")]
+ Json,
+ [EnumMember(Value = "csv")]
+ Csv,
+ [EnumMember(Value = "cbor")]
+ Cbor,
+ [EnumMember(Value = "arrow")]
+ Arrow
+}
+
+internal sealed class EsqlFormatConverter : JsonConverter
+{
+ public override EsqlFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ var enumString = reader.GetString();
+ switch (enumString)
+ {
+ case "yaml":
+ return EsqlFormat.Yaml;
+ case "txt":
+ return EsqlFormat.Txt;
+ case "tsv":
+ return EsqlFormat.Tsv;
+ case "smile":
+ return EsqlFormat.Smile;
+ case "json":
+ return EsqlFormat.Json;
+ case "csv":
+ return EsqlFormat.Csv;
+ case "cbor":
+ return EsqlFormat.Cbor;
+ case "arrow":
+ return EsqlFormat.Arrow;
+ }
+
+ ThrowHelper.ThrowJsonException();
+ return default;
+ }
+
+ public override void Write(Utf8JsonWriter writer, EsqlFormat value, JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case EsqlFormat.Yaml:
+ writer.WriteStringValue("yaml");
+ return;
+ case EsqlFormat.Txt:
+ writer.WriteStringValue("txt");
+ return;
+ case EsqlFormat.Tsv:
+ writer.WriteStringValue("tsv");
+ return;
+ case EsqlFormat.Smile:
+ writer.WriteStringValue("smile");
+ return;
+ case EsqlFormat.Json:
+ writer.WriteStringValue("json");
+ return;
+ case EsqlFormat.Csv:
+ writer.WriteStringValue("csv");
+ return;
+ case EsqlFormat.Cbor:
+ writer.WriteStringValue("cbor");
+ return;
+ case EsqlFormat.Arrow:
+ writer.WriteStringValue("arrow");
+ return;
+ }
+
+ writer.WriteNullValue();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs
index 79956b3e4c1..6d0a3acaabb 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs
@@ -105,6 +105,97 @@ public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSeriali
}
}
+[JsonConverter(typeof(GeoGridTargetFormatConverter))]
+public enum GeoGridTargetFormat
+{
+ [EnumMember(Value = "wkt")]
+ Wkt,
+ [EnumMember(Value = "geojson")]
+ Geojson
+}
+
+internal sealed class GeoGridTargetFormatConverter : JsonConverter
+{
+ public override GeoGridTargetFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ var enumString = reader.GetString();
+ switch (enumString)
+ {
+ case "wkt":
+ return GeoGridTargetFormat.Wkt;
+ case "geojson":
+ return GeoGridTargetFormat.Geojson;
+ }
+
+ ThrowHelper.ThrowJsonException();
+ return default;
+ }
+
+ public override void Write(Utf8JsonWriter writer, GeoGridTargetFormat value, JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case GeoGridTargetFormat.Wkt:
+ writer.WriteStringValue("wkt");
+ return;
+ case GeoGridTargetFormat.Geojson:
+ writer.WriteStringValue("geojson");
+ return;
+ }
+
+ writer.WriteNullValue();
+ }
+}
+
+[JsonConverter(typeof(GeoGridTileTypeConverter))]
+public enum GeoGridTileType
+{
+ [EnumMember(Value = "geotile")]
+ Geotile,
+ [EnumMember(Value = "geohex")]
+ Geohex,
+ [EnumMember(Value = "geohash")]
+ Geohash
+}
+
+internal sealed class GeoGridTileTypeConverter : JsonConverter
+{
+ public override GeoGridTileType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ var enumString = reader.GetString();
+ switch (enumString)
+ {
+ case "geotile":
+ return GeoGridTileType.Geotile;
+ case "geohex":
+ return GeoGridTileType.Geohex;
+ case "geohash":
+ return GeoGridTileType.Geohash;
+ }
+
+ ThrowHelper.ThrowJsonException();
+ return default;
+ }
+
+ public override void Write(Utf8JsonWriter writer, GeoGridTileType value, JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case GeoGridTileType.Geotile:
+ writer.WriteStringValue("geotile");
+ return;
+ case GeoGridTileType.Geohex:
+ writer.WriteStringValue("geohex");
+ return;
+ case GeoGridTileType.Geohash:
+ writer.WriteStringValue("geohash");
+ return;
+ }
+
+ writer.WriteNullValue();
+ }
+}
+
[JsonConverter(typeof(JsonProcessorConflictStrategyConverter))]
public enum JsonProcessorConflictStrategy
{
@@ -202,26 +293,16 @@ public override void Write(Utf8JsonWriter writer, ShapeType value, JsonSerialize
[JsonConverter(typeof(UserAgentPropertyConverter))]
public enum UserAgentProperty
{
- [EnumMember(Value = "PATCH")]
- Patch,
- [EnumMember(Value = "OS_NAME")]
- OsName,
- [EnumMember(Value = "OS_MINOR")]
- OsMinor,
- [EnumMember(Value = "OS_MAJOR")]
- OsMajor,
- [EnumMember(Value = "OS")]
+ [EnumMember(Value = "version")]
+ Version,
+ [EnumMember(Value = "os")]
Os,
- [EnumMember(Value = "NAME")]
+ [EnumMember(Value = "original")]
+ Original,
+ [EnumMember(Value = "name")]
Name,
- [EnumMember(Value = "MINOR")]
- Minor,
- [EnumMember(Value = "MAJOR")]
- Major,
- [EnumMember(Value = "DEVICE")]
- Device,
- [EnumMember(Value = "BUILD")]
- Build
+ [EnumMember(Value = "device")]
+ Device
}
internal sealed class UserAgentPropertyConverter : JsonConverter
@@ -231,26 +312,16 @@ public override UserAgentProperty Read(ref Utf8JsonReader reader, Type typeToCon
var enumString = reader.GetString();
switch (enumString)
{
- case "PATCH":
- return UserAgentProperty.Patch;
- case "OS_NAME":
- return UserAgentProperty.OsName;
- case "OS_MINOR":
- return UserAgentProperty.OsMinor;
- case "OS_MAJOR":
- return UserAgentProperty.OsMajor;
- case "OS":
+ case "version":
+ return UserAgentProperty.Version;
+ case "os":
return UserAgentProperty.Os;
- case "NAME":
+ case "original":
+ return UserAgentProperty.Original;
+ case "name":
return UserAgentProperty.Name;
- case "MINOR":
- return UserAgentProperty.Minor;
- case "MAJOR":
- return UserAgentProperty.Major;
- case "DEVICE":
+ case "device":
return UserAgentProperty.Device;
- case "BUILD":
- return UserAgentProperty.Build;
}
ThrowHelper.ThrowJsonException();
@@ -261,35 +332,20 @@ public override void Write(Utf8JsonWriter writer, UserAgentProperty value, JsonS
{
switch (value)
{
- case UserAgentProperty.Patch:
- writer.WriteStringValue("PATCH");
- return;
- case UserAgentProperty.OsName:
- writer.WriteStringValue("OS_NAME");
- return;
- case UserAgentProperty.OsMinor:
- writer.WriteStringValue("OS_MINOR");
- return;
- case UserAgentProperty.OsMajor:
- writer.WriteStringValue("OS_MAJOR");
+ case UserAgentProperty.Version:
+ writer.WriteStringValue("version");
return;
case UserAgentProperty.Os:
- writer.WriteStringValue("OS");
+ writer.WriteStringValue("os");
return;
- case UserAgentProperty.Name:
- writer.WriteStringValue("NAME");
+ case UserAgentProperty.Original:
+ writer.WriteStringValue("original");
return;
- case UserAgentProperty.Minor:
- writer.WriteStringValue("MINOR");
- return;
- case UserAgentProperty.Major:
- writer.WriteStringValue("MAJOR");
+ case UserAgentProperty.Name:
+ writer.WriteStringValue("name");
return;
case UserAgentProperty.Device:
- writer.WriteStringValue("DEVICE");
- return;
- case UserAgentProperty.Build:
- writer.WriteStringValue("BUILD");
+ writer.WriteStringValue("device");
return;
}
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs
index bc9ef7c13fd..31515f05fd6 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs
@@ -417,12 +417,32 @@ public override void Write(Utf8JsonWriter writer, DeploymentAllocationState valu
[JsonConverter(typeof(DeploymentAssignmentStateConverter))]
public enum DeploymentAssignmentState
{
+ ///
+ ///
+ /// The deployment is preparing to stop and deallocate the model from the relevant nodes.
+ ///
+ ///
[EnumMember(Value = "stopping")]
Stopping,
+ ///
+ ///
+ /// The deployment has recently started but is not yet usable; the model is not allocated on any nodes.
+ ///
+ ///
[EnumMember(Value = "starting")]
Starting,
+ ///
+ ///
+ /// The deployment is usable; at least one node has the model allocated.
+ ///
+ ///
[EnumMember(Value = "started")]
Started,
+ ///
+ ///
+ /// The deployment is on a failed state and must be re-deployed.
+ ///
+ ///
[EnumMember(Value = "failed")]
Failed
}
@@ -470,70 +490,6 @@ public override void Write(Utf8JsonWriter writer, DeploymentAssignmentState valu
}
}
-[JsonConverter(typeof(DeploymentStateConverter))]
-public enum DeploymentState
-{
- ///
- ///
- /// The deployment is preparing to stop and deallocate the model from the relevant nodes.
- ///
- ///
- [EnumMember(Value = "stopping")]
- Stopping,
- ///
- ///
- /// The deployment has recently started but is not yet usable; the model is not allocated on any nodes.
- ///
- ///
- [EnumMember(Value = "starting")]
- Starting,
- ///
- ///
- /// The deployment is usable; at least one node has the model allocated.
- ///
- ///
- [EnumMember(Value = "started")]
- Started
-}
-
-internal sealed class DeploymentStateConverter : JsonConverter
-{
- public override DeploymentState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- var enumString = reader.GetString();
- switch (enumString)
- {
- case "stopping":
- return DeploymentState.Stopping;
- case "starting":
- return DeploymentState.Starting;
- case "started":
- return DeploymentState.Started;
- }
-
- ThrowHelper.ThrowJsonException();
- return default;
- }
-
- public override void Write(Utf8JsonWriter writer, DeploymentState value, JsonSerializerOptions options)
- {
- switch (value)
- {
- case DeploymentState.Stopping:
- writer.WriteStringValue("stopping");
- return;
- case DeploymentState.Starting:
- writer.WriteStringValue("starting");
- return;
- case DeploymentState.Started:
- writer.WriteStringValue("started");
- return;
- }
-
- writer.WriteNullValue();
- }
-}
-
[JsonConverter(typeof(ExcludeFrequentConverter))]
public enum ExcludeFrequent
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs
new file mode 100644
index 00000000000..4cdbebbc92a
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs
@@ -0,0 +1,106 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Core;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Sql;
+
+[JsonConverter(typeof(SqlFormatConverter))]
+public enum SqlFormat
+{
+ [EnumMember(Value = "yaml")]
+ Yaml,
+ [EnumMember(Value = "txt")]
+ Txt,
+ [EnumMember(Value = "tsv")]
+ Tsv,
+ [EnumMember(Value = "smile")]
+ Smile,
+ [EnumMember(Value = "json")]
+ Json,
+ [EnumMember(Value = "csv")]
+ Csv,
+ [EnumMember(Value = "cbor")]
+ Cbor
+}
+
+internal sealed class SqlFormatConverter : JsonConverter
+{
+ public override SqlFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ var enumString = reader.GetString();
+ switch (enumString)
+ {
+ case "yaml":
+ return SqlFormat.Yaml;
+ case "txt":
+ return SqlFormat.Txt;
+ case "tsv":
+ return SqlFormat.Tsv;
+ case "smile":
+ return SqlFormat.Smile;
+ case "json":
+ return SqlFormat.Json;
+ case "csv":
+ return SqlFormat.Csv;
+ case "cbor":
+ return SqlFormat.Cbor;
+ }
+
+ ThrowHelper.ThrowJsonException();
+ return default;
+ }
+
+ public override void Write(Utf8JsonWriter writer, SqlFormat value, JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case SqlFormat.Yaml:
+ writer.WriteStringValue("yaml");
+ return;
+ case SqlFormat.Txt:
+ writer.WriteStringValue("txt");
+ return;
+ case SqlFormat.Tsv:
+ writer.WriteStringValue("tsv");
+ return;
+ case SqlFormat.Smile:
+ writer.WriteStringValue("smile");
+ return;
+ case SqlFormat.Json:
+ writer.WriteStringValue("json");
+ return;
+ case SqlFormat.Csv:
+ writer.WriteStringValue("csv");
+ return;
+ case SqlFormat.Cbor:
+ writer.WriteStringValue("cbor");
+ return;
+ }
+
+ writer.WriteNullValue();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs
new file mode 100644
index 00000000000..e217b5508b1
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs
@@ -0,0 +1,78 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Core;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Xpack;
+
+[JsonConverter(typeof(XPackCategoryConverter))]
+public enum XPackCategory
+{
+ [EnumMember(Value = "license")]
+ License,
+ [EnumMember(Value = "features")]
+ Features,
+ [EnumMember(Value = "build")]
+ Build
+}
+
+internal sealed class XPackCategoryConverter : JsonConverter
+{
+ public override XPackCategory Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ var enumString = reader.GetString();
+ switch (enumString)
+ {
+ case "license":
+ return XPackCategory.License;
+ case "features":
+ return XPackCategory.Features;
+ case "build":
+ return XPackCategory.Build;
+ }
+
+ ThrowHelper.ThrowJsonException();
+ return default;
+ }
+
+ public override void Write(Utf8JsonWriter writer, XPackCategory value, JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case XPackCategory.License:
+ writer.WriteStringValue("license");
+ return;
+ case XPackCategory.Features:
+ writer.WriteStringValue("features");
+ return;
+ case XPackCategory.Build:
+ writer.WriteStringValue("build");
+ return;
+ }
+
+ writer.WriteNullValue();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs
index 0e2b0839e9a..d90d96e78bf 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs
@@ -94,6 +94,7 @@ public sealed partial class AppendProcessor
///
///
[JsonInclude, JsonPropertyName("value")]
+ [SingleOrManyCollectionConverter(typeof(object))]
public ICollection