From e00dbbe775f22ed7c367a2529492fdd1c9863c17 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Tue, 12 Aug 2025 07:42:52 +0000 Subject: [PATCH] Regenerate client --- .../_Generated/Api/BulkRequest.g.cs | 15 ++++++++ .../IndexManagement/PutMappingRequest.g.cs | 6 +-- .../Api/Inference/PutInferenceRequest.g.cs | 38 ++++++++++++------- .../_Generated/Api/TermVectorsRequest.g.cs | 4 +- .../Types/Aggregations/Percentiles.g.cs | 10 ++--- 5 files changed, 49 insertions(+), 24 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs index 455f6d459c2..4270b68bc63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs @@ -284,6 +284,11 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien /// PHP: Check out bulk indexing. /// /// +/// +/// +/// Ruby: Check out Elasticsearch::Helpers::BulkHelper +/// +/// /// /// /// Submitting bulk requests with cURL @@ -614,6 +619,11 @@ internal BulkRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// PHP: Check out bulk indexing. /// /// +/// +/// +/// Ruby: Check out Elasticsearch::Helpers::BulkHelper +/// +/// /// /// /// Submitting bulk requests with cURL @@ -1093,6 +1103,11 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor RequestConfiguration( /// PHP: Check out bulk indexing. /// /// +/// +/// +/// Ruby: Check out Elasticsearch::Helpers::BulkHelper +/// +/// /// /// /// Submitting bulk requests with cURL diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index d1f6b522cb8..2f60e6eaf42 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -246,7 +246,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien /// /// /// -/// Learn how to use the update mapping API with practical examples in the Update mapping API examples guide. +/// Learn how to use the update mapping API with practical examples in the Update mapping API examples guide. /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestConverter))] @@ -476,7 +476,7 @@ internal PutMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// -/// Learn how to use the update mapping API with practical examples in the Update mapping API examples guide. +/// Learn how to use the update mapping API with practical examples in the Update mapping API examples guide. /// /// public readonly partial struct PutMappingRequestDescriptor @@ -1110,7 +1110,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor /// /// /// -/// Learn how to use the update mapping API with practical examples in the Update mapping API examples guide. +/// Learn how to use the update mapping API with practical examples in the Update mapping API examples guide. /// /// public readonly partial struct PutMappingRequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs index 6c7a5c049dd..821cf6772f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs @@ -96,7 +96,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien /// /// /// -/// DeepSeek (completion, chat_completion) +/// DeepSeek (chat_completion, completion) /// /// /// @@ -116,7 +116,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien /// /// /// -/// Google Vertex AI (rerank, text_embedding) +/// Google Vertex AI (chat_completion, completion, rerank, text_embedding) /// /// /// @@ -126,27 +126,32 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien /// /// /// -/// Mistral (chat_completion, completion, text_embedding) +/// JinaAI (rerank, text_embedding) /// /// /// /// -/// OpenAI (chat_completion, completion, text_embedding) +/// Llama (chat_completion, completion, text_embedding) /// /// /// /// -/// VoyageAI (text_embedding, rerank) +/// Mistral (chat_completion, completion, text_embedding) /// /// /// /// -/// Watsonx inference integration (text_embedding) +/// OpenAI (chat_completion, completion, text_embedding) /// /// /// /// -/// JinaAI (text_embedding, rerank) +/// VoyageAI (rerank, text_embedding) +/// +/// +/// +/// +/// Watsonx inference integration (text_embedding) /// /// /// @@ -277,7 +282,7 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// -/// DeepSeek (completion, chat_completion) +/// DeepSeek (chat_completion, completion) /// /// /// @@ -297,7 +302,7 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// -/// Google Vertex AI (rerank, text_embedding) +/// Google Vertex AI (chat_completion, completion, rerank, text_embedding) /// /// /// @@ -307,27 +312,32 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// /// -/// Mistral (chat_completion, completion, text_embedding) +/// JinaAI (rerank, text_embedding) /// /// /// /// -/// OpenAI (chat_completion, completion, text_embedding) +/// Llama (chat_completion, completion, text_embedding) /// /// /// /// -/// VoyageAI (text_embedding, rerank) +/// Mistral (chat_completion, completion, text_embedding) /// /// /// /// -/// Watsonx inference integration (text_embedding) +/// OpenAI (chat_completion, completion, text_embedding) /// /// /// /// -/// JinaAI (text_embedding, rerank) +/// VoyageAI (rerank, text_embedding) +/// +/// +/// +/// +/// Watsonx inference integration (text_embedding) /// /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs index df41db89d54..1724780ff24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs @@ -78,7 +78,7 @@ public override Elastic.Clients.Elasticsearch.TermVectorsRequest Read continue; } - if (propFields.TryReadProperty(ref reader, options, PropFields, static Elastic.Clients.Elasticsearch.Fields? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SingleOrManyFieldsMarker)))) + if (propFields.TryReadProperty(ref reader, options, PropFields, null)) { continue; } @@ -164,7 +164,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien { writer.WriteStartObject(); writer.WriteProperty(options, PropDoc, value.Doc, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, TDocument? v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))); - writer.WriteProperty(options, PropFields, value.Fields, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Fields? v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SingleOrManyFieldsMarker))); + writer.WriteProperty(options, PropFields, value.Fields, null, null); writer.WriteProperty(options, PropFieldStatistics, value.FieldStatistics, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropFilter, value.Filter, null, null); writer.WriteProperty(options, PropOffsets, value.Offsets, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Percentiles.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Percentiles.g.cs index 0f531d00cba..00a65468d5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Percentiles.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Percentiles.g.cs @@ -30,7 +30,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.Percentiles Read(ref var selector = static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.ByTokenType(ref r, o, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.StartObject, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.StartArray); return selector(ref reader, options) switch { - Elastic.Clients.Elasticsearch.UnionTag.T1 => new Elastic.Clients.Elasticsearch.Aggregations.Percentiles(reader.ReadValue>>(options, static System.Collections.Generic.IReadOnlyDictionary> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue>(o, null, static Elastic.Clients.Elasticsearch.Union (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadUnionValue(o, static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.ByTokenType(ref r, o, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.String, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.Number), null, null)!)!)), + Elastic.Clients.Elasticsearch.UnionTag.T1 => new Elastic.Clients.Elasticsearch.Aggregations.Percentiles(reader.ReadValue>>(options, static System.Collections.Generic.IReadOnlyDictionary> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue>(o, null, static Elastic.Clients.Elasticsearch.Union (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadUnionValue(o, static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.ByTokenType(ref r, o, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.String, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.Number), null, null)!)!)), Elastic.Clients.Elasticsearch.UnionTag.T2 => new Elastic.Clients.Elasticsearch.Aggregations.Percentiles(reader.ReadValue>(options, static System.Collections.Generic.IReadOnlyCollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null)!)), _ => throw new System.InvalidOperationException($"Failed to select a union variant for type '{nameof(Elastic.Clients.Elasticsearch.Aggregations.Percentiles)}") }; @@ -42,7 +42,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien { case Elastic.Clients.Elasticsearch.UnionTag.T1: { - writer.WriteValue(options, value.Value1, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary> v) => w.WriteDictionaryValue>(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Union v) => w.WriteUnionValue(o, v, null, null))); + writer.WriteValue(options, value.Value1, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary> v) => w.WriteDictionaryValue>(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Union v) => w.WriteUnionValue(o, v, null, null))); break; } @@ -59,9 +59,9 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien } [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.PercentilesConverter))] -public sealed partial class Percentiles : Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.IReadOnlyCollection> +public sealed partial class Percentiles : Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.IReadOnlyCollection> { - public Percentiles(System.Collections.Generic.IReadOnlyDictionary> value) : base(value) + public Percentiles(System.Collections.Generic.IReadOnlyDictionary> value) : base(value) { } @@ -69,6 +69,6 @@ public Percentiles(System.Collections.Generic.IReadOnlyCollection> value) => new Elastic.Clients.Elasticsearch.Aggregations.Percentiles(value); + public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Percentiles(System.Collections.Generic.Dictionary> value) => new Elastic.Clients.Elasticsearch.Aggregations.Percentiles(value); public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Percentiles(Elastic.Clients.Elasticsearch.Aggregations.ArrayPercentilesItem[] value) => new Elastic.Clients.Elasticsearch.Aggregations.Percentiles(value); } \ No newline at end of file