diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs
index 6df833bb384..0162b83d635 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs
@@ -168,6 +168,7 @@ internal static class ApiUrlLookup
internal static ApiUrls InferencePutAzureaistudio = new ApiUrls(new[] { "_inference/{task_type}/{azureaistudio_inference_id}" });
internal static ApiUrls InferencePutAzureopenai = new ApiUrls(new[] { "_inference/{task_type}/{azureopenai_inference_id}" });
internal static ApiUrls InferencePutCohere = new ApiUrls(new[] { "_inference/{task_type}/{cohere_inference_id}" });
+ internal static ApiUrls InferencePutContextualai = new ApiUrls(new[] { "_inference/{task_type}/{contextualai_inference_id}" });
internal static ApiUrls InferencePutCustom = new ApiUrls(new[] { "_inference/{task_type}/{custom_inference_id}" });
internal static ApiUrls InferencePutDeepseek = new ApiUrls(new[] { "_inference/{task_type}/{deepseek_inference_id}" });
internal static ApiUrls InferencePutElasticsearch = new ApiUrls(new[] { "_inference/{task_type}/{elasticsearch_inference_id}" });
@@ -391,6 +392,7 @@ internal static class ApiUrlLookup
internal static ApiUrls SecurityGetServiceAccounts = new ApiUrls(new[] { "_security/service/{namespace}/{service}", "_security/service/{namespace}", "_security/service" });
internal static ApiUrls SecurityGetServiceCredentials = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential" });
internal static ApiUrls SecurityGetSettings = new ApiUrls(new[] { "_security/settings" });
+ internal static ApiUrls SecurityGetStats = new ApiUrls(new[] { "_security/stats" });
internal static ApiUrls SecurityGetToken = new ApiUrls(new[] { "_security/oauth2/token" });
internal static ApiUrls SecurityGetUser = new ApiUrls(new[] { "_security/user/{username}", "_security/user" });
internal static ApiUrls SecurityGetUserPrivileges = new ApiUrls(new[] { "_security/user/_privileges" });
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs
index 9bf9e3aef7f..99181f041b5 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs
@@ -52,7 +52,7 @@ public sealed partial class CountRequestParameters : Elastic.Transport.RequestPa
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -227,7 +227,7 @@ internal CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -419,7 +419,7 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor AnalyzeWildcard(bool
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -751,7 +751,7 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor AnalyzeWi
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs
index 5a951967d07..21f2b25432a 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs
@@ -59,7 +59,7 @@ public sealed partial class DeleteByQueryRequestParameters : Elastic.Transport.R
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -466,7 +466,7 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -915,7 +915,7 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Conflicts(El
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -1645,7 +1645,7 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor C
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs
index f57d8ed8657..811c45e11fe 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs
@@ -43,7 +43,7 @@ public sealed partial class ExplainRequestParameters : Elastic.Transport.Request
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -195,7 +195,7 @@ internal ExplainRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -360,7 +360,7 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor AnalyzeWildcard(bo
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -721,7 +721,7 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor Analyze
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs
index 49ab77f4a81..9667b47d0db 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs
@@ -85,7 +85,7 @@ public sealed partial class IndicesStatsRequestParameters : Elastic.Transport.Re
///
///
- /// Indicates whether statistics are aggregated at the cluster, index, or shard level.
+ /// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
///
///
public Elastic.Clients.Elasticsearch.Level? Level { get => Q("level"); set => Q("level", value); }
@@ -221,7 +221,7 @@ internal IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon
///
///
- /// Indicates whether statistics are aggregated at the cluster, index, or shard level.
+ /// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
///
///
public Elastic.Clients.Elasticsearch.Level? Level { get => Q("level"); set => Q("level", value); }
@@ -449,7 +449,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript
///
///
- /// Indicates whether statistics are aggregated at the cluster, index, or shard level.
+ /// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? value)
@@ -736,7 +736,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript
///
///
- /// Indicates whether statistics are aggregated at the cluster, index, or shard level.
+ /// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? value)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs
index b80d1f74e53..3a7a9af5709 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs
@@ -57,7 +57,7 @@ public sealed partial class ValidateQueryRequestParameters : Elastic.Transport.R
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
///
///
public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); }
@@ -192,7 +192,7 @@ internal ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
///
///
public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); }
@@ -347,7 +347,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? value)
@@ -628,7 +628,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? value)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.Converters.g.cs
new file mode 100644
index 00000000000..bfb420b3408
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.Converters.g.cs
@@ -0,0 +1,89 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Inference.Json;
+
+public sealed partial class PutContextualaiRequestConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings");
+ private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service");
+ private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings");
+ private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings");
+
+ public override Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue propChunkingSettings = default;
+ LocalJsonValue propServiceSettings = default;
+ LocalJsonValue propTaskSettings = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null))
+ {
+ continue;
+ }
+
+ if (reader.ValueTextEquals(PropService))
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ if (propServiceSettings.TryReadProperty(ref reader, options, PropServiceSettings, null))
+ {
+ continue;
+ }
+
+ if (propTaskSettings.TryReadProperty(ref reader, options, PropTaskSettings, null))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ ChunkingSettings = propChunkingSettings.Value,
+ ServiceSettings = propServiceSettings.Value,
+ TaskSettings = propTaskSettings.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null);
+ writer.WriteProperty(options, PropService, value.Service, null, null);
+ writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, null);
+ writer.WriteProperty(options, PropTaskSettings, value.TaskSettings, null, null);
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs
new file mode 100644
index 00000000000..052f5bd67ce
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiRequest.g.cs
@@ -0,0 +1,353 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Inference;
+
+public sealed partial class PutContextualaiRequestParameters : Elastic.Transport.RequestParameters
+{
+ ///
+ ///
+ /// Specifies the amount of time to wait for the inference endpoint to be created.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
+}
+
+///
+///
+/// Create an Contextual AI inference endpoint.
+///
+///
+/// Create an inference endpoint to perform an inference task with the contexualai service.
+///
+///
+/// To review the available rerank models, refer to https://docs.contextual.ai/api-reference/rerank/rerank#body-model .
+///
+///
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.PutContextualaiRequestConverter))]
+public sealed partial class PutContextualaiRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest
+{
+ [System.Obsolete("The request contains additional required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public PutContextualaiRequest(Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI taskType, Elastic.Clients.Elasticsearch.Id contextualaiInferenceId) : base(r => r.Required("task_type", taskType).Required("contextualai_inference_id", contextualaiInferenceId))
+ {
+ }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public PutContextualaiRequest(Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI taskType, Elastic.Clients.Elasticsearch.Id contextualaiInferenceId, Elastic.Clients.Elasticsearch.Inference.ContextualAIServiceSettings serviceSettings) : base(r => r.Required("task_type", taskType).Required("contextualai_inference_id", contextualaiInferenceId))
+ {
+ ServiceSettings = serviceSettings;
+ }
+#if NET7_0_OR_GREATER
+ public PutContextualaiRequest()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.InferencePutContextualai;
+
+ protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.PUT;
+
+ internal override bool SupportsBody => true;
+
+ internal override string OperationName => "inference.put_contextualai";
+
+ ///
+ ///
+ /// The unique identifier of the inference endpoint.
+ ///
+ ///
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ Elastic.Clients.Elasticsearch.Id ContextualaiInferenceId { get => P("contextualai_inference_id"); set => PR("contextualai_inference_id", value); }
+
+ ///
+ ///
+ /// The type of the inference task that the model will perform.
+ ///
+ ///
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI TaskType { get => P("task_type"); set => PR("task_type", value); }
+
+ ///
+ ///
+ /// Specifies the amount of time to wait for the inference endpoint to be created.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
+
+ ///
+ ///
+ /// The chunking configuration object.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }
+
+ ///
+ ///
+ /// The type of service supported for the specified task type. In this case, contextualai .
+ ///
+ ///
+ public string Service => "contextualai";
+
+ ///
+ ///
+ /// Settings used to install the inference model. These settings are specific to the contextualai service.
+ ///
+ ///
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ Elastic.Clients.Elasticsearch.Inference.ContextualAIServiceSettings ServiceSettings { get; set; }
+
+ ///
+ ///
+ /// Settings to configure the inference task.
+ /// These settings are specific to the task type you specified.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.ContextualAITaskSettings? TaskSettings { get; set; }
+}
+
+///
+///
+/// Create an Contextual AI inference endpoint.
+///
+///
+/// Create an inference endpoint to perform an inference task with the contexualai service.
+///
+///
+/// To review the available rerank models, refer to https://docs.contextual.ai/api-reference/rerank/rerank#body-model .
+///
+///
+public readonly partial struct PutContextualaiRequestDescriptor
+{
+ internal Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest Instance { get; init; }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public PutContextualaiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest instance)
+ {
+ Instance = instance;
+ }
+
+ public PutContextualaiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI taskType, Elastic.Clients.Elasticsearch.Id contextualaiInferenceId)
+ {
+#pragma warning disable CS0618
+ Instance = new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest(taskType, contextualaiInferenceId);
+#pragma warning restore CS0618
+ }
+
+ [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
+ public PutContextualaiRequestDescriptor()
+ {
+ throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type.");
+ }
+
+ public static explicit operator Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest instance) => new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor(instance);
+ public static implicit operator Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest(Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor descriptor) => descriptor.Instance;
+
+ ///
+ ///
+ /// The unique identifier of the inference endpoint.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ContextualaiInferenceId(Elastic.Clients.Elasticsearch.Id value)
+ {
+ Instance.ContextualaiInferenceId = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The type of the inference task that the model will perform.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI value)
+ {
+ Instance.TaskType = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// Specifies the amount of time to wait for the inference endpoint to be created.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value)
+ {
+ Instance.Timeout = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The chunking configuration object.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value)
+ {
+ Instance.ChunkingSettings = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The chunking configuration object.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ChunkingSettings()
+ {
+ Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null);
+ return this;
+ }
+
+ ///
+ ///
+ /// The chunking configuration object.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ChunkingSettings(System.Action? action)
+ {
+ Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action);
+ return this;
+ }
+
+ ///
+ ///
+ /// Settings used to install the inference model. These settings are specific to the contextualai service.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.ContextualAIServiceSettings value)
+ {
+ Instance.ServiceSettings = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// Settings used to install the inference model. These settings are specific to the contextualai service.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ServiceSettings(System.Action action)
+ {
+ Instance.ServiceSettings = Elastic.Clients.Elasticsearch.Inference.ContextualAiServiceSettingsDescriptor.Build(action);
+ return this;
+ }
+
+ ///
+ ///
+ /// Settings to configure the inference task.
+ /// These settings are specific to the task type you specified.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.ContextualAITaskSettings? value)
+ {
+ Instance.TaskSettings = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// Settings to configure the inference task.
+ /// These settings are specific to the task type you specified.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor TaskSettings()
+ {
+ Instance.TaskSettings = Elastic.Clients.Elasticsearch.Inference.ContextualAiTaskSettingsDescriptor.Build(null);
+ return this;
+ }
+
+ ///
+ ///
+ /// Settings to configure the inference task.
+ /// These settings are specific to the task type you specified.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor TaskSettings(System.Action? action)
+ {
+ Instance.TaskSettings = Elastic.Clients.Elasticsearch.Inference.ContextualAiTaskSettingsDescriptor.Build(action);
+ return this;
+ }
+
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ internal static Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest Build(System.Action action)
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor(new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance));
+ action.Invoke(builder);
+ return builder.Instance;
+ }
+
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor ErrorTrace(bool? value)
+ {
+ Instance.ErrorTrace = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor FilterPath(params string[]? value)
+ {
+ Instance.FilterPath = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor Human(bool? value)
+ {
+ Instance.Human = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor Pretty(bool? value)
+ {
+ Instance.Pretty = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor SourceQueryString(string? value)
+ {
+ Instance.SourceQueryString = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value)
+ {
+ Instance.RequestConfiguration = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor RequestConfiguration(System.Func? configurationSelector)
+ {
+ Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration;
+ return this;
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.Converters.g.cs
new file mode 100644
index 00000000000..b654de13264
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.Converters.g.cs
@@ -0,0 +1,108 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Inference.Json;
+
+public sealed partial class PutContextualaiResponseConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings");
+ private static readonly System.Text.Json.JsonEncodedText PropInferenceId = System.Text.Json.JsonEncodedText.Encode("inference_id");
+ private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service");
+ private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings");
+ private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings");
+ private static readonly System.Text.Json.JsonEncodedText PropTaskType = System.Text.Json.JsonEncodedText.Encode("task_type");
+
+ public override Elastic.Clients.Elasticsearch.Inference.PutContextualaiResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue propChunkingSettings = default;
+ LocalJsonValue propInferenceId = default;
+ LocalJsonValue propService = default;
+ LocalJsonValue propServiceSettings = default;
+ LocalJsonValue propTaskSettings = default;
+ LocalJsonValue propTaskType = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null))
+ {
+ continue;
+ }
+
+ if (propInferenceId.TryReadProperty(ref reader, options, PropInferenceId, null))
+ {
+ continue;
+ }
+
+ if (propService.TryReadProperty(ref reader, options, PropService, null))
+ {
+ continue;
+ }
+
+ if (propServiceSettings.TryReadProperty(ref reader, options, PropServiceSettings, static object (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))!))
+ {
+ continue;
+ }
+
+ if (propTaskSettings.TryReadProperty(ref reader, options, PropTaskSettings, static object? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))))
+ {
+ continue;
+ }
+
+ if (propTaskType.TryReadProperty(ref reader, options, PropTaskType, null))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Inference.PutContextualaiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ ChunkingSettings = propChunkingSettings.Value,
+ InferenceId = propInferenceId.Value,
+ Service = propService.Value,
+ ServiceSettings = propServiceSettings.Value,
+ TaskSettings = propTaskSettings.Value,
+ TaskType = propTaskType.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutContextualaiResponse value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null);
+ writer.WriteProperty(options, PropInferenceId, value.InferenceId, null, null);
+ writer.WriteProperty(options, PropService, value.Service, null, null);
+ writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)));
+ writer.WriteProperty(options, PropTaskSettings, value.TaskSettings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object? v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)));
+ writer.WriteProperty(options, PropTaskType, value.TaskType, null, null);
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.g.cs
new file mode 100644
index 00000000000..1a32738e990
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutContextualaiResponse.g.cs
@@ -0,0 +1,97 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Inference;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.PutContextualaiResponseConverter))]
+public sealed partial class PutContextualaiResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse
+{
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public PutContextualaiResponse()
+ {
+ }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal PutContextualaiResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ ///
+ ///
+ /// Chunking configuration object
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }
+
+ ///
+ ///
+ /// The inference Id
+ ///
+ ///
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ string InferenceId { get; set; }
+
+ ///
+ ///
+ /// The service type
+ ///
+ ///
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ string Service { get; set; }
+
+ ///
+ ///
+ /// Settings specific to the service
+ ///
+ ///
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ object ServiceSettings { get; set; }
+
+ ///
+ ///
+ /// Task settings specific to the service and task type
+ ///
+ ///
+ public object? TaskSettings { get; set; }
+
+ ///
+ ///
+ /// The task type
+ ///
+ ///
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI TaskType { get; set; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs
index 7938e5270e3..c227d18b1b4 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs
@@ -69,7 +69,7 @@ public sealed partial class NodesStatsRequestParameters : Elastic.Transport.Requ
///
///
- /// Indicates whether statistics are aggregated at the cluster, index, or shard level.
+ /// Indicates whether statistics are aggregated at the node, indices, or shards level.
///
///
public Elastic.Clients.Elasticsearch.NodeStatsLevel? Level { get => Q("level"); set => Q("level", value); }
@@ -207,7 +207,7 @@ internal NodesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
///
///
- /// Indicates whether statistics are aggregated at the cluster, index, or shard level.
+ /// Indicates whether statistics are aggregated at the node, indices, or shards level.
///
///
public Elastic.Clients.Elasticsearch.NodeStatsLevel? Level { get => Q("level"); set => Q("level", value); }
@@ -411,7 +411,7 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IncludeUn
///
///
- /// Indicates whether statistics are aggregated at the cluster, index, or shard level.
+ /// Indicates whether statistics are aggregated at the node, indices, or shards level.
///
///
public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.NodeStatsLevel? value)
@@ -693,7 +693,7 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor
///
- /// Indicates whether statistics are aggregated at the cluster, index, or shard level.
+ /// Indicates whether statistics are aggregated at the node, indices, or shards level.
///
///
public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.NodeStatsLevel? value)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.Converters.g.cs
index af8a58f4051..d51bbea7176 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.Converters.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.Converters.g.cs
@@ -29,7 +29,6 @@ public sealed partial class ReindexRequestConverter : System.Text.Json.Serializa
private static readonly System.Text.Json.JsonEncodedText PropDest = System.Text.Json.JsonEncodedText.Encode("dest");
private static readonly System.Text.Json.JsonEncodedText PropMaxDocs = System.Text.Json.JsonEncodedText.Encode("max_docs");
private static readonly System.Text.Json.JsonEncodedText PropScript = System.Text.Json.JsonEncodedText.Encode("script");
- private static readonly System.Text.Json.JsonEncodedText PropSize = System.Text.Json.JsonEncodedText.Encode("size");
private static readonly System.Text.Json.JsonEncodedText PropSource = System.Text.Json.JsonEncodedText.Encode("source");
public override Elastic.Clients.Elasticsearch.ReindexRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
@@ -39,7 +38,6 @@ public override Elastic.Clients.Elasticsearch.ReindexRequest Read(ref System.Tex
LocalJsonValue propDest = default;
LocalJsonValue propMaxDocs = default;
LocalJsonValue propScript = default;
- LocalJsonValue propSize = default;
LocalJsonValue propSource = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
{
@@ -63,11 +61,6 @@ public override Elastic.Clients.Elasticsearch.ReindexRequest Read(ref System.Tex
continue;
}
- if (propSize.TryReadProperty(ref reader, options, PropSize, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o)))
- {
- continue;
- }
-
if (propSource.TryReadProperty(ref reader, options, PropSource, null))
{
continue;
@@ -89,7 +82,6 @@ public override Elastic.Clients.Elasticsearch.ReindexRequest Read(ref System.Tex
Dest = propDest.Value,
MaxDocs = propMaxDocs.Value,
Script = propScript.Value,
- Size = propSize.Value,
Source = propSource.Value
};
}
@@ -101,7 +93,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
writer.WriteProperty(options, PropDest, value.Dest, null, null);
writer.WriteProperty(options, PropMaxDocs, value.MaxDocs, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v));
writer.WriteProperty(options, PropScript, value.Script, null, null);
- writer.WriteProperty(options, PropSize, value.Size, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v));
writer.WriteProperty(options, PropSource, value.Source, null, null);
writer.WriteEndObject();
}
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs
index b45729811e8..0128a7b5bbb 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs
@@ -334,7 +334,6 @@ internal ReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc
///
///
public Elastic.Clients.Elasticsearch.Script? Script { get; set; }
- public long? Size { get; set; }
///
///
@@ -668,12 +667,6 @@ public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor Script(System.Acti
return this;
}
- public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor Size(long? value)
- {
- Instance.Size = value;
- return this;
- }
-
///
///
/// The source you are copying from.
@@ -1078,12 +1071,6 @@ public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor Script(
return this;
}
- public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor Size(long? value)
- {
- Instance.Size = value;
- return this;
- }
-
///
///
/// The source you are copying from.
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs
index 7c221d5b0ef..b94e3ae9746 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs
@@ -78,7 +78,7 @@ public sealed partial class SearchRequestParameters : Elastic.Transport.RequestP
///
///
- /// The default operator for the query string query: AND or OR .
+ /// The default operator for the query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -457,7 +457,7 @@ internal SearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct
///
///
- /// The default operator for the query string query: AND or OR .
+ /// The default operator for the query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -1134,7 +1134,7 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor CcsMinimizeRoundtri
///
///
- /// The default operator for the query string query: AND or OR .
+ /// The default operator for the query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -2889,7 +2889,7 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor CcsMinim
///
///
- /// The default operator for the query string query: AND or OR .
+ /// The default operator for the query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.Converters.g.cs
new file mode 100644
index 00000000000..943c0850312
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.Converters.g.cs
@@ -0,0 +1,53 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Security.Json;
+
+public sealed partial class GetStatsRequestConverter : System.Text.Json.Serialization.JsonConverter
+{
+ public override Elastic.Clients.Elasticsearch.Security.GetStatsRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Security.GetStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.GetStatsRequest value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.g.cs
new file mode 100644
index 00000000000..caabbeef7ab
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsRequest.g.cs
@@ -0,0 +1,146 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Security;
+
+public sealed partial class GetStatsRequestParameters : Elastic.Transport.RequestParameters
+{
+}
+
+///
+///
+/// Get security stats.
+///
+///
+/// Gather security usage statistics from all node(s) within the cluster.
+///
+///
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.GetStatsRequestConverter))]
+public sealed partial class GetStatsRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest
+{
+#if NET7_0_OR_GREATER
+ public GetStatsRequest()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ public GetStatsRequest()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal GetStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.SecurityGetStats;
+
+ protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "security.get_stats";
+}
+
+///
+///
+/// Get security stats.
+///
+///
+/// Gather security usage statistics from all node(s) within the cluster.
+///
+///
+public readonly partial struct GetStatsRequestDescriptor
+{
+ internal Elastic.Clients.Elasticsearch.Security.GetStatsRequest Instance { get; init; }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public GetStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Security.GetStatsRequest instance)
+ {
+ Instance = instance;
+ }
+
+ public GetStatsRequestDescriptor()
+ {
+ Instance = new Elastic.Clients.Elasticsearch.Security.GetStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ public static explicit operator Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Security.GetStatsRequest instance) => new Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor(instance);
+ public static implicit operator Elastic.Clients.Elasticsearch.Security.GetStatsRequest(Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor descriptor) => descriptor.Instance;
+
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ internal static Elastic.Clients.Elasticsearch.Security.GetStatsRequest Build(System.Action? action)
+ {
+ if (action is null)
+ {
+ return new Elastic.Clients.Elasticsearch.Security.GetStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ var builder = new Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor(new Elastic.Clients.Elasticsearch.Security.GetStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance));
+ action.Invoke(builder);
+ return builder.Instance;
+ }
+
+ public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor ErrorTrace(bool? value)
+ {
+ Instance.ErrorTrace = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor FilterPath(params string[]? value)
+ {
+ Instance.FilterPath = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor Human(bool? value)
+ {
+ Instance.Human = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor Pretty(bool? value)
+ {
+ Instance.Pretty = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor SourceQueryString(string? value)
+ {
+ Instance.SourceQueryString = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value)
+ {
+ Instance.RequestConfiguration = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor RequestConfiguration(System.Func? configurationSelector)
+ {
+ Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration;
+ return this;
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.Converters.g.cs
new file mode 100644
index 00000000000..f5df85a6d8b
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.Converters.g.cs
@@ -0,0 +1,63 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Security.Json;
+
+public sealed partial class GetStatsResponseConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropNodes = System.Text.Json.JsonEncodedText.Encode("nodes");
+
+ public override Elastic.Clients.Elasticsearch.Security.GetStatsResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue> propNodes = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propNodes.TryReadProperty(ref reader, options, PropNodes, static System.Collections.Generic.IReadOnlyDictionary (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, null)!))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Security.GetStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ Nodes = propNodes.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.GetStatsResponse value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropNodes, value.Nodes, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary v) => w.WriteDictionaryValue(o, v, null, null));
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.g.cs
new file mode 100644
index 00000000000..099cfc9904c
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetStatsResponse.g.cs
@@ -0,0 +1,50 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Security;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.GetStatsResponseConverter))]
+public sealed partial class GetStatsResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse
+{
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public GetStatsResponse()
+ {
+ }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal GetStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ ///
+ ///
+ /// A map of node IDs to security statistics for that node.
+ ///
+ ///
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ System.Collections.Generic.IReadOnlyDictionary Nodes { get; set; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.Converters.g.cs
index 91f44975881..c611d813c1a 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.Converters.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.Converters.g.cs
@@ -31,6 +31,7 @@ public sealed partial class TranslateResponseConverter : System.Text.Json.Serial
private static readonly System.Text.Json.JsonEncodedText PropSize = System.Text.Json.JsonEncodedText.Encode("size");
private static readonly System.Text.Json.JsonEncodedText PropSort = System.Text.Json.JsonEncodedText.Encode("sort");
private static readonly System.Text.Json.JsonEncodedText PropSource = System.Text.Json.JsonEncodedText.Encode("_source");
+ private static readonly System.Text.Json.JsonEncodedText PropTrackTotalHits = System.Text.Json.JsonEncodedText.Encode("track_total_hits");
public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
@@ -41,6 +42,7 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
LocalJsonValue propSize = default;
LocalJsonValue?> propSort = default;
LocalJsonValue propSource = default;
+ LocalJsonValue propTrackTotalHits = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
{
if (propAggregations.TryReadProperty(ref reader, options, PropAggregations, static System.Collections.Generic.IReadOnlyDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, null)))
@@ -73,6 +75,11 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
continue;
}
+ if (propTrackTotalHits.TryReadProperty(ref reader, options, PropTrackTotalHits, null))
+ {
+ continue;
+ }
+
if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
{
reader.SafeSkip();
@@ -90,7 +97,8 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
Query = propQuery.Value,
Size = propSize.Value,
Sort = propSort.Value,
- Source = propSource.Value
+ Source = propSource.Value,
+ TrackTotalHits = propTrackTotalHits.Value
};
}
@@ -103,6 +111,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
writer.WriteProperty(options, PropSize, value.Size, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v));
writer.WriteProperty(options, PropSort, value.Sort, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteSingleOrManyCollectionValue(o, v, null));
writer.WriteProperty(options, PropSource, value.Source, null, null);
+ writer.WriteProperty(options, PropTrackTotalHits, value.TrackTotalHits, null, null);
writer.WriteEndObject();
}
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.g.cs
index 2da5d5dfafd..0e0c13697b3 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.g.cs
@@ -43,4 +43,5 @@ internal TranslateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst
public long? Size { get; set; }
public System.Collections.Generic.ICollection? Sort { get; set; }
public Elastic.Clients.Elasticsearch.Core.Search.SourceConfig? Source { get; set; }
+ public Elastic.Clients.Elasticsearch.Core.Search.TrackHits? TrackTotalHits { get; set; }
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusRequest.g.cs
index 04826b15969..b300cb146cb 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Streams/StreamsStatusRequest.g.cs
@@ -30,7 +30,7 @@ public sealed partial class StreamsStatusRequestParameters : Elastic.Transport.R
/// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
///
///
- public Elastic.Clients.Elasticsearch.TimeUnit? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
+ public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
}
///
@@ -73,7 +73,7 @@ internal StreamsStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
/// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
///
///
- public Elastic.Clients.Elasticsearch.TimeUnit? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
+ public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
}
///
@@ -107,7 +107,7 @@ public StreamsStatusRequestDescriptor()
/// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
///
///
- public Elastic.Clients.Elasticsearch.Streams.StreamsStatusRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.TimeUnit? value)
+ public Elastic.Clients.Elasticsearch.Streams.StreamsStatusRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value)
{
Instance.MasterTimeout = value;
return this;
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs
index 56223c61a21..90fe7a349de 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs
@@ -52,7 +52,7 @@ public sealed partial class UpdateByQueryRequestParameters : Elastic.Transport.R
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -494,7 +494,7 @@ internal UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -981,7 +981,7 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor AnalyzeWildc
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
@@ -1753,7 +1753,7 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor A
///
///
- /// The default operator for query string query: AND or OR .
+ /// The default operator for query string query: and or or .
/// This parameter can be used only when the q query string parameter is specified.
///
///
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs
index fb9f50d89f6..2856496bf39 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs
@@ -852,6 +852,52 @@ public virtual Elastic.Clients.Elasticsearch.Inference.PutCohereResponse PutCohe
return DoRequestAsync(request, cancellationToken);
}
+ public virtual Elastic.Clients.Elasticsearch.Inference.PutContextualaiResponse PutContextualai(Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest request)
+ {
+ request.BeforeRequest();
+ return DoRequest(request);
+ }
+
+ public virtual Elastic.Clients.Elasticsearch.Inference.PutContextualaiResponse PutContextualai(Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI taskType, Elastic.Clients.Elasticsearch.Id contextualaiInferenceId)
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor(taskType, contextualaiInferenceId);
+ var request = builder.Instance;
+ request.BeforeRequest();
+ return DoRequest(request);
+ }
+
+ public virtual Elastic.Clients.Elasticsearch.Inference.PutContextualaiResponse PutContextualai(Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI taskType, Elastic.Clients.Elasticsearch.Id contextualaiInferenceId, System.Action action)
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor(taskType, contextualaiInferenceId);
+ action.Invoke(builder);
+ var request = builder.Instance;
+ request.BeforeRequest();
+ return DoRequest(request);
+ }
+
+ public virtual System.Threading.Tasks.Task PutContextualaiAsync(Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest request, System.Threading.CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ public virtual System.Threading.Tasks.Task PutContextualaiAsync(Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI taskType, Elastic.Clients.Elasticsearch.Id contextualaiInferenceId, System.Threading.CancellationToken cancellationToken = default)
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor(taskType, contextualaiInferenceId);
+ var request = builder.Instance;
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ public virtual System.Threading.Tasks.Task PutContextualaiAsync(Elastic.Clients.Elasticsearch.Inference.TaskTypeContextualAI taskType, Elastic.Clients.Elasticsearch.Id contextualaiInferenceId, System.Action action, System.Threading.CancellationToken cancellationToken = default)
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequestDescriptor(taskType, contextualaiInferenceId);
+ action.Invoke(builder);
+ var request = builder.Instance;
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
public virtual Elastic.Clients.Elasticsearch.Inference.PutCustomResponse PutCustom(Elastic.Clients.Elasticsearch.Inference.PutCustomRequest request)
{
request.BeforeRequest();
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs
index 1b093b831a1..18b45fa2f1d 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs
@@ -1866,6 +1866,52 @@ public virtual Elastic.Clients.Elasticsearch.Security.GetSecuritySettingsRespons
return DoRequestAsync(request, cancellationToken);
}
+ public virtual Elastic.Clients.Elasticsearch.Security.GetStatsResponse GetStats(Elastic.Clients.Elasticsearch.Security.GetStatsRequest request)
+ {
+ request.BeforeRequest();
+ return DoRequest(request);
+ }
+
+ public virtual Elastic.Clients.Elasticsearch.Security.GetStatsResponse GetStats()
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor();
+ var request = builder.Instance;
+ request.BeforeRequest();
+ return DoRequest(request);
+ }
+
+ public virtual Elastic.Clients.Elasticsearch.Security.GetStatsResponse GetStats(System.Action action)
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor();
+ action.Invoke(builder);
+ var request = builder.Instance;
+ request.BeforeRequest();
+ return DoRequest(request);
+ }
+
+ public virtual System.Threading.Tasks.Task GetStatsAsync(Elastic.Clients.Elasticsearch.Security.GetStatsRequest request, System.Threading.CancellationToken cancellationToken = default)
+ {
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ public virtual System.Threading.Tasks.Task GetStatsAsync(System.Threading.CancellationToken cancellationToken = default)
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor();
+ var request = builder.Instance;
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
+ public virtual System.Threading.Tasks.Task GetStatsAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default)
+ {
+ var builder = new Elastic.Clients.Elasticsearch.Security.GetStatsRequestDescriptor();
+ action.Invoke(builder);
+ var request = builder.Instance;
+ request.BeforeRequest();
+ return DoRequestAsync(request, cancellationToken);
+ }
+
public virtual Elastic.Clients.Elasticsearch.Security.GetTokenResponse GetToken(Elastic.Clients.Elasticsearch.Security.GetTokenRequest request)
{
request.BeforeRequest();
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.Converters.g.cs
index f993d2a12c8..8b4298d3fdb 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.Converters.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.Converters.g.cs
@@ -70,6 +70,9 @@ internal static void ReadItem(ref System.Text.Json.Utf8JsonReader reader, System
"boxplot" => reader.ReadValue(options, null),
"bucket_metric_value" => reader.ReadValue(options, null),
"cardinality" => reader.ReadValue(options, null),
+ "cartesian_bounds" => reader.ReadValue(options, null),
+ "cartesian_centroid" => reader.ReadValue(options, null),
+ "change_point" => reader.ReadValue(options, null),
"children" => reader.ReadValue(options, null),
"composite" => reader.ReadValue(options, null),
"date_histogram" => reader.ReadValue(options, null),
@@ -161,6 +164,15 @@ internal static void WriteItem(System.Text.Json.Utf8JsonWriter writer, System.Te
case Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate v:
writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate v) => w.WritePropertyName(o, v));
break;
+ case Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate v:
+ writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate v) => w.WritePropertyName(o, v));
+ break;
+ case Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate v:
+ writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate v) => w.WritePropertyName(o, v));
+ break;
+ case Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate v:
+ writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate v) => w.WritePropertyName(o, v));
+ break;
case Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate v:
writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate v) => w.WritePropertyName(o, v));
break;
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs
index 2f4cb92fa5b..aad88904b48 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs
@@ -50,6 +50,9 @@ public bool TryGetAggregate(string key, [System.Diagnostics.CodeAnalysis.NotN
public Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregate? GetBoxplot(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Aggregations.BucketMetricValueAggregate? GetBucketMetricValue(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate? GetCardinality(string key) => TryGet(key);
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate? GetCartesianBounds(string key) => TryGet(key);
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate? GetCartesianCentroid(string key) => TryGet(key);
+ public Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate? GetChangePoint(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate? GetChildren(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Aggregations.CompositeAggregate? GetComposite(string key) => TryGet(key);
public Elastic.Clients.Elasticsearch.Aggregations.DateHistogramAggregate? GetDateHistogram(string key) => TryGet(key);
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.Converters.g.cs
index c93b97e433e..3c74354eb5d 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.Converters.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.Converters.g.cs
@@ -39,7 +39,10 @@ public sealed partial class AggregationConverter : System.Text.Json.Serializatio
private static readonly System.Text.Json.JsonEncodedText VariantBucketSelector = System.Text.Json.JsonEncodedText.Encode("bucket_selector");
private static readonly System.Text.Json.JsonEncodedText VariantBucketSort = System.Text.Json.JsonEncodedText.Encode("bucket_sort");
private static readonly System.Text.Json.JsonEncodedText VariantCardinality = System.Text.Json.JsonEncodedText.Encode("cardinality");
+ private static readonly System.Text.Json.JsonEncodedText VariantCartesianBounds = System.Text.Json.JsonEncodedText.Encode("cartesian_bounds");
+ private static readonly System.Text.Json.JsonEncodedText VariantCartesianCentroid = System.Text.Json.JsonEncodedText.Encode("cartesian_centroid");
private static readonly System.Text.Json.JsonEncodedText VariantCategorizeText = System.Text.Json.JsonEncodedText.Encode("categorize_text");
+ private static readonly System.Text.Json.JsonEncodedText VariantChangePoint = System.Text.Json.JsonEncodedText.Encode("change_point");
private static readonly System.Text.Json.JsonEncodedText VariantChildren = System.Text.Json.JsonEncodedText.Encode("children");
private static readonly System.Text.Json.JsonEncodedText VariantComposite = System.Text.Json.JsonEncodedText.Encode("composite");
private static readonly System.Text.Json.JsonEncodedText VariantCumulativeCardinality = System.Text.Json.JsonEncodedText.Encode("cumulative_cardinality");
@@ -53,6 +56,7 @@ public sealed partial class AggregationConverter : System.Text.Json.Serializatio
private static readonly System.Text.Json.JsonEncodedText VariantFilter = System.Text.Json.JsonEncodedText.Encode("filter");
private static readonly System.Text.Json.JsonEncodedText VariantFilters = System.Text.Json.JsonEncodedText.Encode("filters");
private static readonly System.Text.Json.JsonEncodedText VariantFrequentItemSets = System.Text.Json.JsonEncodedText.Encode("frequent_item_sets");
+ private static readonly System.Text.Json.JsonEncodedText VariantFrequentItemSets1 = System.Text.Json.JsonEncodedText.Encode("frequent_items");
private static readonly System.Text.Json.JsonEncodedText VariantGeoBounds = System.Text.Json.JsonEncodedText.Encode("geo_bounds");
private static readonly System.Text.Json.JsonEncodedText VariantGeoCentroid = System.Text.Json.JsonEncodedText.Encode("geo_centroid");
private static readonly System.Text.Json.JsonEncodedText VariantGeoDistance = System.Text.Json.JsonEncodedText.Encode("geo_distance");
@@ -213,6 +217,22 @@ public override Elastic.Clients.Elasticsearch.Aggregations.Aggregation Read(ref
continue;
}
+ if (reader.ValueTextEquals(VariantCartesianBounds))
+ {
+ variantType = VariantCartesianBounds.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (reader.ValueTextEquals(VariantCartesianCentroid))
+ {
+ variantType = VariantCartesianCentroid.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
if (reader.ValueTextEquals(VariantCategorizeText))
{
variantType = VariantCategorizeText.Value;
@@ -221,6 +241,14 @@ public override Elastic.Clients.Elasticsearch.Aggregations.Aggregation Read(ref
continue;
}
+ if (reader.ValueTextEquals(VariantChangePoint))
+ {
+ variantType = VariantChangePoint.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
if (reader.ValueTextEquals(VariantChildren))
{
variantType = VariantChildren.Value;
@@ -317,7 +345,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.Aggregation Read(ref
continue;
}
- if (reader.ValueTextEquals(VariantFrequentItemSets))
+ if (reader.ValueTextEquals(VariantFrequentItemSets) || reader.ValueTextEquals(VariantFrequentItemSets1))
{
variantType = VariantFrequentItemSets.Value;
reader.Read();
@@ -800,9 +828,18 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
case "cardinality":
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregation)value.Variant, null, null);
break;
+ case "cartesian_bounds":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation)value.Variant, null, null);
+ break;
+ case "cartesian_centroid":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation)value.Variant, null, null);
+ break;
case "categorize_text":
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.CategorizeTextAggregation)value.Variant, null, null);
break;
+ case "change_point":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation)value.Variant, null, null);
+ break;
case "children":
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregation)value.Variant, null, null);
break;
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs
index 97fc65d1d6b..c08f0024d75 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs
@@ -124,6 +124,20 @@ internal Aggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor
///
public Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregation? Cardinality { get => GetVariant("cardinality"); set => SetVariant("cardinality", value); }
+ ///
+ ///
+ /// A metric aggregation that computes the spatial bounding box containing all values for a Point or Shape field.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation? CartesianBounds { get => GetVariant("cartesian_bounds"); set => SetVariant("cartesian_bounds", value); }
+
+ ///
+ ///
+ /// A metric aggregation that computes the weighted centroid from all coordinate values for point and shape fields.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation? CartesianCentroid { get => GetVariant("cartesian_centroid"); set => SetVariant("cartesian_centroid", value); }
+
///
///
/// A multi-bucket aggregation that groups semi-structured text into buckets.
@@ -131,6 +145,17 @@ internal Aggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor
///
public Elastic.Clients.Elasticsearch.Aggregations.CategorizeTextAggregation? CategorizeText { get => GetVariant("categorize_text"); set => SetVariant("categorize_text", value); }
+ ///
+ ///
+ /// A sibling pipeline that detects, spikes, dips, and change points in a metric.
+ /// Given a distribution of values provided by the sibling multi-bucket aggregation,
+ /// this aggregation indicates the bucket of any spike or dip and/or the bucket at which
+ /// the largest change in the distribution of values, if they are statistically significant.
+ /// There must be at least 22 bucketed values. Fewer than 1,000 is preferred.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation? ChangePoint { get => GetVariant("change_point"); set => SetVariant("change_point", value); }
+
///
///
/// A single bucket aggregation that selects child documents that have the specified type, as defined in a join field.
@@ -223,7 +248,7 @@ internal Aggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor
/// A bucket aggregation which finds frequent item sets, a form of association rules mining that identifies items that often occur together.
///
///
- public Elastic.Clients.Elasticsearch.Aggregations.FrequentItemSetsAggregation? FrequentItemSets { get => GetVariant("frequent_item_sets"); set => SetVariant("frequent_item_sets", value); }
+ public Elastic.Clients.Elasticsearch.Aggregations.FrequentItemSetsAggregation? FrequentItemSets { get => GetVariant(""); set => SetVariant("", value); }
///
///
@@ -614,7 +639,10 @@ internal Aggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor
public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { BucketSelector = value };
public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.BucketSortAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { BucketSort = value };
public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { Cardinality = value };
+ public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { CartesianBounds = value };
+ public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { CartesianCentroid = value };
public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.CategorizeTextAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { CategorizeText = value };
+ public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { ChangePoint = value };
public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { Children = value };
public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.CompositeAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { Composite = value };
public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregation value) => new Elastic.Clients.Elasticsearch.Aggregations.Aggregation { CumulativeCardinality = value };
@@ -1078,6 +1106,72 @@ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor
+ ///
+ /// A metric aggregation that computes the spatial bounding box containing all values for a Point or Shape field.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianBounds(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation? value)
+ {
+ Instance.CartesianBounds = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the spatial bounding box containing all values for a Point or Shape field.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianBounds()
+ {
+ Instance.CartesianBounds = Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor.Build(null);
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the spatial bounding box containing all values for a Point or Shape field.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianBounds(System.Action>? action)
+ {
+ Instance.CartesianBounds = Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor.Build(action);
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the weighted centroid from all coordinate values for point and shape fields.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianCentroid(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation? value)
+ {
+ Instance.CartesianCentroid = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the weighted centroid from all coordinate values for point and shape fields.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianCentroid()
+ {
+ Instance.CartesianCentroid = Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor.Build(null);
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the weighted centroid from all coordinate values for point and shape fields.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianCentroid(System.Action>? action)
+ {
+ Instance.CartesianCentroid = Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor.Build(action);
+ return this;
+ }
+
///
///
/// A multi-bucket aggregation that groups semi-structured text into buckets.
@@ -1100,6 +1194,51 @@ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor
+ ///
+ /// A sibling pipeline that detects, spikes, dips, and change points in a metric.
+ /// Given a distribution of values provided by the sibling multi-bucket aggregation,
+ /// this aggregation indicates the bucket of any spike or dip and/or the bucket at which
+ /// the largest change in the distribution of values, if they are statistically significant.
+ /// There must be at least 22 bucketed values. Fewer than 1,000 is preferred.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor ChangePoint(Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation? value)
+ {
+ Instance.ChangePoint = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// A sibling pipeline that detects, spikes, dips, and change points in a metric.
+ /// Given a distribution of values provided by the sibling multi-bucket aggregation,
+ /// this aggregation indicates the bucket of any spike or dip and/or the bucket at which
+ /// the largest change in the distribution of values, if they are statistically significant.
+ /// There must be at least 22 bucketed values. Fewer than 1,000 is preferred.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor ChangePoint()
+ {
+ Instance.ChangePoint = Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor.Build(null);
+ return this;
+ }
+
+ ///
+ ///
+ /// A sibling pipeline that detects, spikes, dips, and change points in a metric.
+ /// Given a distribution of values provided by the sibling multi-bucket aggregation,
+ /// this aggregation indicates the bucket of any spike or dip and/or the bucket at which
+ /// the largest change in the distribution of values, if they are statistically significant.
+ /// There must be at least 22 bucketed values. Fewer than 1,000 is preferred.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor ChangePoint(System.Action? action)
+ {
+ Instance.ChangePoint = Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor.Build(action);
+ return this;
+ }
+
///
///
/// A single bucket aggregation that selects child documents that have the specified type, as defined in a join field.
@@ -3708,6 +3847,94 @@ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor Cardinal
return this;
}
+ ///
+ ///
+ /// A metric aggregation that computes the spatial bounding box containing all values for a Point or Shape field.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianBounds(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation? value)
+ {
+ Instance.CartesianBounds = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the spatial bounding box containing all values for a Point or Shape field.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianBounds()
+ {
+ Instance.CartesianBounds = Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor.Build(null);
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the spatial bounding box containing all values for a Point or Shape field.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianBounds(System.Action? action)
+ {
+ Instance.CartesianBounds = Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor.Build(action);
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the spatial bounding box containing all values for a Point or Shape field.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianBounds(System.Action>? action)
+ {
+ Instance.CartesianBounds = Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor.Build(action);
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the weighted centroid from all coordinate values for point and shape fields.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianCentroid(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation? value)
+ {
+ Instance.CartesianCentroid = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the weighted centroid from all coordinate values for point and shape fields.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianCentroid()
+ {
+ Instance.CartesianCentroid = Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor.Build(null);
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the weighted centroid from all coordinate values for point and shape fields.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianCentroid(System.Action? action)
+ {
+ Instance.CartesianCentroid = Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor.Build(action);
+ return this;
+ }
+
+ ///
+ ///
+ /// A metric aggregation that computes the weighted centroid from all coordinate values for point and shape fields.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor CartesianCentroid(System.Action>? action)
+ {
+ Instance.CartesianCentroid = Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor.Build(action);
+ return this;
+ }
+
///
///
/// A multi-bucket aggregation that groups semi-structured text into buckets.
@@ -3741,6 +3968,51 @@ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor Categori
return this;
}
+ ///
+ ///
+ /// A sibling pipeline that detects, spikes, dips, and change points in a metric.
+ /// Given a distribution of values provided by the sibling multi-bucket aggregation,
+ /// this aggregation indicates the bucket of any spike or dip and/or the bucket at which
+ /// the largest change in the distribution of values, if they are statistically significant.
+ /// There must be at least 22 bucketed values. Fewer than 1,000 is preferred.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor ChangePoint(Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation? value)
+ {
+ Instance.ChangePoint = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// A sibling pipeline that detects, spikes, dips, and change points in a metric.
+ /// Given a distribution of values provided by the sibling multi-bucket aggregation,
+ /// this aggregation indicates the bucket of any spike or dip and/or the bucket at which
+ /// the largest change in the distribution of values, if they are statistically significant.
+ /// There must be at least 22 bucketed values. Fewer than 1,000 is preferred.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor ChangePoint()
+ {
+ Instance.ChangePoint = Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor.Build(null);
+ return this;
+ }
+
+ ///
+ ///
+ /// A sibling pipeline that detects, spikes, dips, and change points in a metric.
+ /// Given a distribution of values provided by the sibling multi-bucket aggregation,
+ /// this aggregation indicates the bucket of any spike or dip and/or the bucket at which
+ /// the largest change in the distribution of values, if they are statistically significant.
+ /// There must be at least 22 bucketed values. Fewer than 1,000 is preferred.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregationDescriptor ChangePoint(System.Action? action)
+ {
+ Instance.ChangePoint = Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor.Build(action);
+ return this;
+ }
+
///
///
/// A single bucket aggregation that selects child documents that have the specified type, as defined in a join field.
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.Converters.g.cs
new file mode 100644
index 00000000000..fc32cbdc6a1
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.Converters.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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations.Json;
+
+public sealed partial class CartesianBoundsAggregateConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropBounds = System.Text.Json.JsonEncodedText.Encode("bounds");
+ private static readonly System.Text.Json.JsonEncodedText PropMeta = System.Text.Json.JsonEncodedText.Encode("meta");
+
+ public override Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue propBounds = default;
+ LocalJsonValue?> propMeta = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propBounds.TryReadProperty(ref reader, options, PropBounds, null))
+ {
+ continue;
+ }
+
+ if (propMeta.TryReadProperty(ref reader, options, PropMeta, static System.Collections.Generic.IReadOnlyDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, static object (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))!)))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ Bounds = propBounds.Value,
+ Meta = propMeta.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropBounds, value.Bounds, null, null);
+ writer.WriteProperty(options, PropMeta, value.Meta, null, 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, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))));
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.g.cs
new file mode 100644
index 00000000000..fe87022d404
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregate.g.cs
@@ -0,0 +1,49 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CartesianBoundsAggregateConverter))]
+public sealed partial class CartesianBoundsAggregate : Elastic.Clients.Elasticsearch.Aggregations.IAggregate
+{
+#if NET7_0_OR_GREATER
+ public CartesianBoundsAggregate()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ public CartesianBoundsAggregate()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal CartesianBoundsAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ public Elastic.Clients.Elasticsearch.TopLeftBottomRightGeoBounds? Bounds { get; set; }
+ public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; }
+
+ string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "cartesian_bounds";
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.Converters.g.cs
new file mode 100644
index 00000000000..b396ebdf21f
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.Converters.g.cs
@@ -0,0 +1,81 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations.Json;
+
+public sealed partial class CartesianBoundsAggregationConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropField = System.Text.Json.JsonEncodedText.Encode("field");
+ private static readonly System.Text.Json.JsonEncodedText PropMissing = System.Text.Json.JsonEncodedText.Encode("missing");
+ private static readonly System.Text.Json.JsonEncodedText PropScript = System.Text.Json.JsonEncodedText.Encode("script");
+
+ public override Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue propField = default;
+ LocalJsonValue propMissing = default;
+ LocalJsonValue propScript = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propField.TryReadProperty(ref reader, options, PropField, null))
+ {
+ continue;
+ }
+
+ if (propMissing.TryReadProperty(ref reader, options, PropMissing, null))
+ {
+ continue;
+ }
+
+ if (propScript.TryReadProperty(ref reader, options, PropScript, null))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ Field = propField.Value,
+ Missing = propMissing.Value,
+ Script = propScript.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropField, value.Field, null, null);
+ writer.WriteProperty(options, PropMissing, value.Missing, null, null);
+ writer.WriteProperty(options, PropScript, value.Script, null, null);
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.g.cs
new file mode 100644
index 00000000000..8f5de3facc0
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianBoundsAggregation.g.cs
@@ -0,0 +1,230 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CartesianBoundsAggregationConverter))]
+public sealed partial class CartesianBoundsAggregation
+{
+#if NET7_0_OR_GREATER
+ public CartesianBoundsAggregation()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ public CartesianBoundsAggregation()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Field? Field { get; set; }
+
+ ///
+ ///
+ /// The value to apply to documents that do not have a value.
+ /// By default, documents without a value are ignored.
+ ///
+ ///
+ public object? Missing { get; set; }
+ public Elastic.Clients.Elasticsearch.Script? Script { get; set; }
+}
+
+public readonly partial struct CartesianBoundsAggregationDescriptor
+{
+ internal Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation Instance { get; init; }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianBoundsAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation instance)
+ {
+ Instance = instance;
+ }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianBoundsAggregationDescriptor()
+ {
+ Instance = new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ public static explicit operator Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation instance) => new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor(instance);
+ public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor descriptor) => descriptor.Instance;
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Field? value)
+ {
+ Instance.Field = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Field(System.Linq.Expressions.Expression> value)
+ {
+ Instance.Field = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The value to apply to documents that do not have a value.
+ /// By default, documents without a value are ignored.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Missing(object? value)
+ {
+ Instance.Missing = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Script? value)
+ {
+ Instance.Script = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Script()
+ {
+ Instance.Script = Elastic.Clients.Elasticsearch.ScriptDescriptor.Build(null);
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Script(System.Action? action)
+ {
+ Instance.Script = Elastic.Clients.Elasticsearch.ScriptDescriptor.Build(action);
+ return this;
+ }
+
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ internal static Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation Build(System.Action>? action)
+ {
+ if (action is null)
+ {
+ return new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ var builder = new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor(new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance));
+ action.Invoke(builder);
+ return builder.Instance;
+ }
+}
+
+public readonly partial struct CartesianBoundsAggregationDescriptor
+{
+ internal Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation Instance { get; init; }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianBoundsAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation instance)
+ {
+ Instance = instance;
+ }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianBoundsAggregationDescriptor()
+ {
+ Instance = new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ public static explicit operator Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation instance) => new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor(instance);
+ public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor descriptor) => descriptor.Instance;
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Field? value)
+ {
+ Instance.Field = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Field(System.Linq.Expressions.Expression> value)
+ {
+ Instance.Field = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The value to apply to documents that do not have a value.
+ /// By default, documents without a value are ignored.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Missing(object? value)
+ {
+ Instance.Missing = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Script? value)
+ {
+ Instance.Script = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Script()
+ {
+ Instance.Script = Elastic.Clients.Elasticsearch.ScriptDescriptor.Build(null);
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor Script(System.Action? action)
+ {
+ Instance.Script = Elastic.Clients.Elasticsearch.ScriptDescriptor.Build(action);
+ return this;
+ }
+
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ internal static Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation Build(System.Action? action)
+ {
+ if (action is null)
+ {
+ return new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ var builder = new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregationDescriptor(new Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance));
+ action.Invoke(builder);
+ return builder.Instance;
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.Converters.g.cs
new file mode 100644
index 00000000000..b913241c750
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.Converters.g.cs
@@ -0,0 +1,81 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations.Json;
+
+public sealed partial class CartesianCentroidAggregateConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropCount = System.Text.Json.JsonEncodedText.Encode("count");
+ private static readonly System.Text.Json.JsonEncodedText PropLocation = System.Text.Json.JsonEncodedText.Encode("location");
+ private static readonly System.Text.Json.JsonEncodedText PropMeta = System.Text.Json.JsonEncodedText.Encode("meta");
+
+ public override Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue propCount = default;
+ LocalJsonValue propLocation = default;
+ LocalJsonValue?> propMeta = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propCount.TryReadProperty(ref reader, options, PropCount, null))
+ {
+ continue;
+ }
+
+ if (propLocation.TryReadProperty(ref reader, options, PropLocation, null))
+ {
+ continue;
+ }
+
+ if (propMeta.TryReadProperty(ref reader, options, PropMeta, static System.Collections.Generic.IReadOnlyDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, static object (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))!)))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ Count = propCount.Value,
+ Location = propLocation.Value,
+ Meta = propMeta.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropCount, value.Count, null, null);
+ writer.WriteProperty(options, PropLocation, value.Location, null, null);
+ writer.WriteProperty(options, PropMeta, value.Meta, null, 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, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))));
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.g.cs
new file mode 100644
index 00000000000..f4c45a8595b
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregate.g.cs
@@ -0,0 +1,60 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CartesianCentroidAggregateConverter))]
+public sealed partial class CartesianCentroidAggregate : Elastic.Clients.Elasticsearch.Aggregations.IAggregate
+{
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianCentroidAggregate(long count)
+ {
+ Count = count;
+ }
+#if NET7_0_OR_GREATER
+ public CartesianCentroidAggregate()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ [System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
+ public CartesianCentroidAggregate()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal CartesianCentroidAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ long Count { get; set; }
+ public Elastic.Clients.Elasticsearch.CartesianPoint? Location { get; set; }
+ public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; }
+
+ string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "cartesian_centroid";
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.Converters.g.cs
new file mode 100644
index 00000000000..d08659b58a2
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.Converters.g.cs
@@ -0,0 +1,81 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations.Json;
+
+public sealed partial class CartesianCentroidAggregationConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropField = System.Text.Json.JsonEncodedText.Encode("field");
+ private static readonly System.Text.Json.JsonEncodedText PropMissing = System.Text.Json.JsonEncodedText.Encode("missing");
+ private static readonly System.Text.Json.JsonEncodedText PropScript = System.Text.Json.JsonEncodedText.Encode("script");
+
+ public override Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue propField = default;
+ LocalJsonValue propMissing = default;
+ LocalJsonValue propScript = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propField.TryReadProperty(ref reader, options, PropField, null))
+ {
+ continue;
+ }
+
+ if (propMissing.TryReadProperty(ref reader, options, PropMissing, null))
+ {
+ continue;
+ }
+
+ if (propScript.TryReadProperty(ref reader, options, PropScript, null))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ Field = propField.Value,
+ Missing = propMissing.Value,
+ Script = propScript.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropField, value.Field, null, null);
+ writer.WriteProperty(options, PropMissing, value.Missing, null, null);
+ writer.WriteProperty(options, PropScript, value.Script, null, null);
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.g.cs
new file mode 100644
index 00000000000..85e634139b8
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CartesianCentroidAggregation.g.cs
@@ -0,0 +1,230 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.CartesianCentroidAggregationConverter))]
+public sealed partial class CartesianCentroidAggregation
+{
+#if NET7_0_OR_GREATER
+ public CartesianCentroidAggregation()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ public CartesianCentroidAggregation()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Field? Field { get; set; }
+
+ ///
+ ///
+ /// The value to apply to documents that do not have a value.
+ /// By default, documents without a value are ignored.
+ ///
+ ///
+ public object? Missing { get; set; }
+ public Elastic.Clients.Elasticsearch.Script? Script { get; set; }
+}
+
+public readonly partial struct CartesianCentroidAggregationDescriptor
+{
+ internal Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation Instance { get; init; }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianCentroidAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation instance)
+ {
+ Instance = instance;
+ }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianCentroidAggregationDescriptor()
+ {
+ Instance = new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ public static explicit operator Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation instance) => new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor(instance);
+ public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor descriptor) => descriptor.Instance;
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Field? value)
+ {
+ Instance.Field = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Field(System.Linq.Expressions.Expression> value)
+ {
+ Instance.Field = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The value to apply to documents that do not have a value.
+ /// By default, documents without a value are ignored.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Missing(object? value)
+ {
+ Instance.Missing = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Script? value)
+ {
+ Instance.Script = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Script()
+ {
+ Instance.Script = Elastic.Clients.Elasticsearch.ScriptDescriptor.Build(null);
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Script(System.Action? action)
+ {
+ Instance.Script = Elastic.Clients.Elasticsearch.ScriptDescriptor.Build(action);
+ return this;
+ }
+
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ internal static Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation Build(System.Action>? action)
+ {
+ if (action is null)
+ {
+ return new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ var builder = new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor(new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance));
+ action.Invoke(builder);
+ return builder.Instance;
+ }
+}
+
+public readonly partial struct CartesianCentroidAggregationDescriptor
+{
+ internal Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation Instance { get; init; }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianCentroidAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation instance)
+ {
+ Instance = instance;
+ }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CartesianCentroidAggregationDescriptor()
+ {
+ Instance = new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ public static explicit operator Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation instance) => new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor(instance);
+ public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor descriptor) => descriptor.Instance;
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Field? value)
+ {
+ Instance.Field = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The field on which to run the aggregation.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Field(System.Linq.Expressions.Expression> value)
+ {
+ Instance.Field = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// The value to apply to documents that do not have a value.
+ /// By default, documents without a value are ignored.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Missing(object? value)
+ {
+ Instance.Missing = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Script(Elastic.Clients.Elasticsearch.Script? value)
+ {
+ Instance.Script = value;
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Script()
+ {
+ Instance.Script = Elastic.Clients.Elasticsearch.ScriptDescriptor.Build(null);
+ return this;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor Script(System.Action? action)
+ {
+ Instance.Script = Elastic.Clients.Elasticsearch.ScriptDescriptor.Build(action);
+ return this;
+ }
+
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ internal static Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation Build(System.Action? action)
+ {
+ if (action is null)
+ {
+ return new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ var builder = new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregationDescriptor(new Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance));
+ action.Invoke(builder);
+ return builder.Instance;
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.Converters.g.cs
new file mode 100644
index 00000000000..6eef86a2e1f
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.Converters.g.cs
@@ -0,0 +1,81 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations.Json;
+
+public sealed partial class ChangePointAggregateConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropBucket = System.Text.Json.JsonEncodedText.Encode("bucket");
+ private static readonly System.Text.Json.JsonEncodedText PropMeta = System.Text.Json.JsonEncodedText.Encode("meta");
+ private static readonly System.Text.Json.JsonEncodedText PropType = System.Text.Json.JsonEncodedText.Encode("type");
+
+ public override Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue propBucket = default;
+ LocalJsonValue?> propMeta = default;
+ LocalJsonValue propType = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propBucket.TryReadProperty(ref reader, options, PropBucket, null))
+ {
+ continue;
+ }
+
+ if (propMeta.TryReadProperty(ref reader, options, PropMeta, static System.Collections.Generic.IReadOnlyDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, static object (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))!)))
+ {
+ continue;
+ }
+
+ if (propType.TryReadProperty(ref reader, options, PropType, null))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ Bucket = propBucket.Value,
+ Meta = propMeta.Value,
+ Type = propType.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropBucket, value.Bucket, null, null);
+ writer.WriteProperty(options, PropMeta, value.Meta, null, 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, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))));
+ writer.WriteProperty(options, PropType, value.Type, null, null);
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.g.cs
new file mode 100644
index 00000000000..4f657e0ac0e
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregate.g.cs
@@ -0,0 +1,60 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ChangePointAggregateConverter))]
+public sealed partial class ChangePointAggregate : Elastic.Clients.Elasticsearch.Aggregations.IAggregate
+{
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public ChangePointAggregate(Elastic.Clients.Elasticsearch.Aggregations.ChangeType type)
+ {
+ Type = type;
+ }
+#if NET7_0_OR_GREATER
+ public ChangePointAggregate()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ [System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
+ public ChangePointAggregate()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal ChangePointAggregate(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.ChangePointBucket? Bucket { get; set; }
+ public System.Collections.Generic.IReadOnlyDictionary? Meta { get; set; }
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ Elastic.Clients.Elasticsearch.Aggregations.ChangeType Type { get; set; }
+
+ string Elastic.Clients.Elasticsearch.Aggregations.IAggregate.Type => "change_point";
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.Converters.g.cs
new file mode 100644
index 00000000000..c0bd0d6a099
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.Converters.g.cs
@@ -0,0 +1,81 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations.Json;
+
+public sealed partial class ChangePointAggregationConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropBucketsPath = System.Text.Json.JsonEncodedText.Encode("buckets_path");
+ private static readonly System.Text.Json.JsonEncodedText PropFormat = System.Text.Json.JsonEncodedText.Encode("format");
+ private static readonly System.Text.Json.JsonEncodedText PropGapPolicy = System.Text.Json.JsonEncodedText.Encode("gap_policy");
+
+ public override Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ LocalJsonValue propBucketsPath = default;
+ LocalJsonValue propFormat = default;
+ LocalJsonValue propGapPolicy = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propBucketsPath.TryReadProperty(ref reader, options, PropBucketsPath, null))
+ {
+ continue;
+ }
+
+ if (propFormat.TryReadProperty(ref reader, options, PropFormat, null))
+ {
+ continue;
+ }
+
+ if (propGapPolicy.TryReadProperty(ref reader, options, PropGapPolicy, static Elastic.Clients.Elasticsearch.Aggregations.GapPolicy? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o)))
+ {
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ BucketsPath = propBucketsPath.Value,
+ Format = propFormat.Value,
+ GapPolicy = propGapPolicy.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropBucketsPath, value.BucketsPath, null, null);
+ writer.WriteProperty(options, PropFormat, value.Format, null, null);
+ writer.WriteProperty(options, PropGapPolicy, value.GapPolicy, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.GapPolicy? v) => w.WriteNullableValue(o, v));
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.g.cs
new file mode 100644
index 00000000000..85516127794
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointAggregation.g.cs
@@ -0,0 +1,133 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ChangePointAggregationConverter))]
+public sealed partial class ChangePointAggregation
+{
+#if NET7_0_OR_GREATER
+ public ChangePointAggregation()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ public ChangePointAggregation()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal ChangePointAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ ///
+ ///
+ /// Path to the buckets that contain one set of values to correlate.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }
+
+ ///
+ ///
+ /// DecimalFormat pattern for the output value.
+ /// If specified, the formatted value is returned in the aggregation’s value_as_string property.
+ ///
+ ///
+ public string? Format { get; set; }
+
+ ///
+ ///
+ /// Policy to apply when gaps are found in the data.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.GapPolicy? GapPolicy { get; set; }
+}
+
+public readonly partial struct ChangePointAggregationDescriptor
+{
+ internal Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation Instance { get; init; }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public ChangePointAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation instance)
+ {
+ Instance = instance;
+ }
+
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public ChangePointAggregationDescriptor()
+ {
+ Instance = new Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ public static explicit operator Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor(Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation instance) => new Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor(instance);
+ public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation(Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor descriptor) => descriptor.Instance;
+
+ ///
+ ///
+ /// Path to the buckets that contain one set of values to correlate.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
+ {
+ Instance.BucketsPath = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// DecimalFormat pattern for the output value.
+ /// If specified, the formatted value is returned in the aggregation’s value_as_string property.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor Format(string? value)
+ {
+ Instance.Format = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// Policy to apply when gaps are found in the data.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Aggregations.GapPolicy? value)
+ {
+ Instance.GapPolicy = value;
+ return this;
+ }
+
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ internal static Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation Build(System.Action? action)
+ {
+ if (action is null)
+ {
+ return new Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance);
+ }
+
+ var builder = new Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregationDescriptor(new Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance));
+ action.Invoke(builder);
+ return builder.Instance;
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.Converters.g.cs
new file mode 100644
index 00000000000..f0658b3d285
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.Converters.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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations.Json;
+
+public sealed partial class ChangePointBucketConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText PropDocCount = System.Text.Json.JsonEncodedText.Encode("doc_count");
+ private static readonly System.Text.Json.JsonEncodedText PropKey = System.Text.Json.JsonEncodedText.Encode("key");
+
+ public override Elastic.Clients.Elasticsearch.Aggregations.ChangePointBucket Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ System.Collections.Generic.Dictionary? propAggregations = default;
+ LocalJsonValue propDocCount = default;
+ LocalJsonValue propKey = default;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (propDocCount.TryReadProperty(ref reader, options, PropDocCount, null))
+ {
+ continue;
+ }
+
+ if (propKey.TryReadProperty(ref reader, options, PropKey, null))
+ {
+ continue;
+ }
+
+ propAggregations ??= new System.Collections.Generic.Dictionary();
+ Elastic.Clients.Elasticsearch.Aggregations.Json.AggregateDictionaryConverter.ReadItem(ref reader, options, out string key, out Elastic.Clients.Elasticsearch.Aggregations.IAggregate value);
+ propAggregations[key] = value;
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Aggregations.ChangePointBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ Aggregations = new Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary(propAggregations),
+ DocCount = propDocCount.Value,
+ Key = propKey.Value
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.ChangePointBucket value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ writer.WriteProperty(options, PropDocCount, value.DocCount, null, null);
+ writer.WriteProperty(options, PropKey, value.Key, null, null);
+ if (value.Aggregations is not null)
+ {
+ foreach (var item in value.Aggregations)
+ {
+ Elastic.Clients.Elasticsearch.Aggregations.Json.AggregateDictionaryConverter.WriteItem(writer, options, item.Key, item.Value);
+ }
+ }
+
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.g.cs
new file mode 100644
index 00000000000..a402968ceac
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangePointBucket.g.cs
@@ -0,0 +1,68 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ChangePointBucketConverter))]
+public sealed partial class ChangePointBucket
+{
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public ChangePointBucket(long docCount, Elastic.Clients.Elasticsearch.FieldValue key)
+ {
+ DocCount = docCount;
+ Key = key;
+ }
+#if NET7_0_OR_GREATER
+ public ChangePointBucket()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ [System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
+ public ChangePointBucket()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal ChangePointBucket(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ ///
+ ///
+ /// Nested aggregations
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; set; }
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ long DocCount { get; set; }
+ public
+#if NET7_0_OR_GREATER
+ required
+#endif
+ Elastic.Clients.Elasticsearch.FieldValue Key { get; set; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.Converters.g.cs
new file mode 100644
index 00000000000..d3782282a96
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.Converters.g.cs
@@ -0,0 +1,162 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations.Json;
+
+public sealed partial class ChangeTypeConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText VariantDip = System.Text.Json.JsonEncodedText.Encode("dip");
+ private static readonly System.Text.Json.JsonEncodedText VariantDistributionChange = System.Text.Json.JsonEncodedText.Encode("distribution_change");
+ private static readonly System.Text.Json.JsonEncodedText VariantIndeterminable = System.Text.Json.JsonEncodedText.Encode("indeterminable");
+ private static readonly System.Text.Json.JsonEncodedText VariantNonStationary = System.Text.Json.JsonEncodedText.Encode("non_stationary");
+ private static readonly System.Text.Json.JsonEncodedText VariantSpike = System.Text.Json.JsonEncodedText.Encode("spike");
+ private static readonly System.Text.Json.JsonEncodedText VariantStationary = System.Text.Json.JsonEncodedText.Encode("stationary");
+ private static readonly System.Text.Json.JsonEncodedText VariantStepChange = System.Text.Json.JsonEncodedText.Encode("step_change");
+ private static readonly System.Text.Json.JsonEncodedText VariantTrendChange = System.Text.Json.JsonEncodedText.Encode("trend_change");
+
+ public override Elastic.Clients.Elasticsearch.Aggregations.ChangeType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
+ string? variantType = null;
+ object? variant = null;
+ while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
+ {
+ if (reader.ValueTextEquals(VariantDip))
+ {
+ variantType = VariantDip.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (reader.ValueTextEquals(VariantDistributionChange))
+ {
+ variantType = VariantDistributionChange.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (reader.ValueTextEquals(VariantIndeterminable))
+ {
+ variantType = VariantIndeterminable.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (reader.ValueTextEquals(VariantNonStationary))
+ {
+ variantType = VariantNonStationary.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (reader.ValueTextEquals(VariantSpike))
+ {
+ variantType = VariantSpike.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (reader.ValueTextEquals(VariantStationary))
+ {
+ variantType = VariantStationary.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (reader.ValueTextEquals(VariantStepChange))
+ {
+ variantType = VariantStepChange.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (reader.ValueTextEquals(VariantTrendChange))
+ {
+ variantType = VariantTrendChange.Value;
+ reader.Read();
+ variant = reader.ReadValue(options, null);
+ continue;
+ }
+
+ if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
+ {
+ reader.SafeSkip();
+ continue;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
+ }
+
+ reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
+ return new Elastic.Clients.Elasticsearch.Aggregations.ChangeType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
+ {
+ VariantType = variantType,
+ Variant = variant
+ };
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.ChangeType value, System.Text.Json.JsonSerializerOptions options)
+ {
+ writer.WriteStartObject();
+ switch (value.VariantType)
+ {
+ case null:
+ break;
+ case "dip":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.Dip)value.Variant, null, null);
+ break;
+ case "distribution_change":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.DistributionChange)value.Variant, null, null);
+ break;
+ case "indeterminable":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.Indeterminable)value.Variant, null, null);
+ break;
+ case "non_stationary":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.NonStationary)value.Variant, null, null);
+ break;
+ case "spike":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.Spike)value.Variant, null, null);
+ break;
+ case "stationary":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.Stationary)value.Variant, null, null);
+ break;
+ case "step_change":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.StepChange)value.Variant, null, null);
+ break;
+ case "trend_change":
+ writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.TrendChange)value.Variant, null, null);
+ break;
+ default:
+ throw new System.Text.Json.JsonException($"Variant '{value.VariantType}' is not supported for type '{nameof(Elastic.Clients.Elasticsearch.Aggregations.ChangeType)}'.");
+ }
+
+ writer.WriteEndObject();
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.g.cs
new file mode 100644
index 00000000000..40e31dcefe9
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ChangeType.g.cs
@@ -0,0 +1,82 @@
+// 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 System;
+using System.Linq;
+using Elastic.Clients.Elasticsearch.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Aggregations;
+
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.ChangeTypeConverter))]
+public sealed partial class ChangeType
+{
+ internal string? VariantType { get; set; }
+ internal object? Variant { get; set; }
+#if NET7_0_OR_GREATER
+ public ChangeType()
+ {
+ }
+#endif
+#if !NET7_0_OR_GREATER
+ public ChangeType()
+ {
+ }
+#endif
+ [System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ internal ChangeType(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
+ {
+ _ = sentinel;
+ }
+
+ public Elastic.Clients.Elasticsearch.Aggregations.Dip? Dip { get => GetVariant("dip"); set => SetVariant("dip", value); }
+ public Elastic.Clients.Elasticsearch.Aggregations.DistributionChange? DistributionChange { get => GetVariant("distribution_change"); set => SetVariant("distribution_change", value); }
+ public Elastic.Clients.Elasticsearch.Aggregations.Indeterminable? Indeterminable { get => GetVariant("indeterminable"); set => SetVariant("indeterminable", value); }
+ public Elastic.Clients.Elasticsearch.Aggregations.NonStationary? NonStationary { get => GetVariant("non_stationary"); set => SetVariant("non_stationary", value); }
+ public Elastic.Clients.Elasticsearch.Aggregations.Spike? Spike { get => GetVariant("spike"); set => SetVariant("spike", value); }
+ public Elastic.Clients.Elasticsearch.Aggregations.Stationary? Stationary { get => GetVariant("stationary"); set => SetVariant("stationary", value); }
+ public Elastic.Clients.Elasticsearch.Aggregations.StepChange? StepChange { get => GetVariant