From ffb2d63ed42ac86bc3edcf0e47fb970a9da9f4a8 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Mon, 2 Jun 2025 13:25:09 +0200 Subject: [PATCH] Preserve `BucketsPath` alias --- .../Types/Aggregations/AverageBucketAggregation.g.cs | 6 +++--- .../Types/Aggregations/BucketCorrelationAggregation.g.cs | 6 +++--- .../Types/Aggregations/BucketKsAggregation.g.cs | 6 +++--- .../Types/Aggregations/BucketScriptAggregation.g.cs | 6 +++--- .../Types/Aggregations/BucketSelectorAggregation.g.cs | 6 +++--- .../Aggregations/CumulativeCardinalityAggregation.g.cs | 6 +++--- .../Types/Aggregations/CumulativeSumAggregation.g.cs | 6 +++--- .../Types/Aggregations/DerivativeAggregation.g.cs | 6 +++--- .../Aggregations/ExtendedStatsBucketAggregation.g.cs | 6 +++--- .../Types/Aggregations/InferenceAggregation.g.cs | 8 ++++---- .../Types/Aggregations/MaxBucketAggregation.g.cs | 6 +++--- .../Types/Aggregations/MinBucketAggregation.g.cs | 6 +++--- .../Types/Aggregations/MovingFunctionAggregation.g.cs | 6 +++--- .../Types/Aggregations/MovingPercentilesAggregation.g.cs | 6 +++--- .../Types/Aggregations/NormalizeAggregation.g.cs | 6 +++--- .../Types/Aggregations/PercentilesBucketAggregation.g.cs | 6 +++--- .../Types/Aggregations/SerialDifferencingAggregation.g.cs | 6 +++--- .../Types/Aggregations/StatsBucketAggregation.g.cs | 6 +++--- .../Types/Aggregations/SumBucketAggregation.g.cs | 6 +++--- .../_Shared/Types/Aggregations/BucketsPath.cs | 2 +- 20 files changed, 59 insertions(+), 59 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs index e8b8325c25..653b81d350 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class AverageBucketAggregationConverter : System.Text.Js public override Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal AverageBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.Js /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public AverageBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs index 1d49f101c3..19f9aa6206 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs @@ -31,7 +31,7 @@ internal sealed partial class BucketCorrelationAggregationConverter : System.Tex public override Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregation 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 propBucketsPath = default; LocalJsonValue propFunction = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { @@ -106,7 +106,7 @@ internal BucketCorrelationAggregation(Elastic.Clients.Elasticsearch.Serializatio /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -149,7 +149,7 @@ public BucketCorrelationAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs index ee4fc75c00..864f6c6734 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs @@ -34,7 +34,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregation R { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue?> propAlternative = default; - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue?> propFractions = default; LocalJsonValue propSamplingMethod = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -135,7 +135,7 @@ internal BucketKsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -222,7 +222,7 @@ public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs index 1710fb3031..dc99267dd8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class BucketScriptAggregationConverter : System.Text.Jso public override Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propScript = default; @@ -113,7 +113,7 @@ internal BucketScriptAggregation(Elastic.Clients.Elasticsearch.Serialization.Jso /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public BucketScriptAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs index 3ddde26218..7edf3928ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class BucketSelectorAggregationConverter : System.Text.J public override Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propScript = default; @@ -113,7 +113,7 @@ internal BucketSelectorAggregation(Elastic.Clients.Elasticsearch.Serialization.J /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public BucketSelectorAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs index 0ab62d5019..4c5ca6686a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class CumulativeCardinalityAggregationConverter : System public override Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal CumulativeCardinalityAggregation(Elastic.Clients.Elasticsearch.Serializ /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public CumulativeCardinalityAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs index fad254c7c5..6accac4ce3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class CumulativeSumAggregationConverter : System.Text.Js public override Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal CumulativeSumAggregation(Elastic.Clients.Elasticsearch.Serialization.Js /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public CumulativeSumAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs index 4b0b1058c3..071389957a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class DerivativeAggregationConverter : System.Text.Json. public override Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal DerivativeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public DerivativeAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs index 5dfd076bdd..9ce88b542a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class ExtendedStatsBucketAggregationConverter : System.T public override Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propSigma = default; @@ -113,7 +113,7 @@ internal ExtendedStatsBucketAggregation(Elastic.Clients.Elasticsearch.Serializat /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public ExtendedStatsBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs index 0c3b9ec143..fdaa3f727b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs @@ -34,7 +34,7 @@ internal sealed partial class InferenceAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propInferenceConfig = default; @@ -128,7 +128,7 @@ internal InferenceAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -188,7 +188,7 @@ public InferenceAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; @@ -283,7 +283,7 @@ public InferenceAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs index b3c8d5d285..104fb9d0de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class MaxBucketAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal MaxBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public MaxBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs index d0f72b4a68..0fc1b85200 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class MinBucketAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal MinBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public MinBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs index 324449678c..365e54719a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs @@ -35,7 +35,7 @@ internal sealed partial class MovingFunctionAggregationConverter : System.Text.J public override Elastic.Clients.Elasticsearch.Aggregations.MovingFunctionAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propScript = default; @@ -131,7 +131,7 @@ internal MovingFunctionAggregation(Elastic.Clients.Elasticsearch.Serialization.J /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -195,7 +195,7 @@ public MovingFunctionAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.MovingFunctionAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.MovingFunctionAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs index 3772feb36d..7913a01f01 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs @@ -34,7 +34,7 @@ internal sealed partial class MovingPercentilesAggregationConverter : System.Tex public override Elastic.Clients.Elasticsearch.Aggregations.MovingPercentilesAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propShift = default; @@ -122,7 +122,7 @@ internal MovingPercentilesAggregation(Elastic.Clients.Elasticsearch.Serializatio /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -179,7 +179,7 @@ public MovingPercentilesAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.MovingPercentilesAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.MovingPercentilesAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs index c68734fa65..bf7dc2b11c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class NormalizeAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.NormalizeAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propMethod = default; @@ -113,7 +113,7 @@ internal NormalizeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public NormalizeAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.NormalizeAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.NormalizeAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs index 42531e3ec0..4c3764150c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class PercentilesBucketAggregationConverter : System.Tex public override Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue?> propPercents = default; @@ -113,7 +113,7 @@ internal PercentilesBucketAggregation(Elastic.Clients.Elasticsearch.Serializatio /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public PercentilesBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs index d1efae4908..05dde91533 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class SerialDifferencingAggregationConverter : System.Te public override Elastic.Clients.Elasticsearch.Aggregations.SerialDifferencingAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propLag = default; @@ -113,7 +113,7 @@ internal SerialDifferencingAggregation(Elastic.Clients.Elasticsearch.Serializati /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -163,7 +163,7 @@ public SerialDifferencingAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.SerialDifferencingAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.SerialDifferencingAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs index 9541dc640e..cfd5441f9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class StatsBucketAggregationConverter : System.Text.Json public override Elastic.Clients.Elasticsearch.Aggregations.StatsBucketAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal StatsBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.Json /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public StatsBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.StatsBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.StatsBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs index fc7136321e..2f4aaede5e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class SumBucketAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.SumBucketAggregation 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 propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal SumBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public SumBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.SumBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.SumBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs index 2a68eb2bf8..c44849da3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs @@ -19,7 +19,7 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; /// Buckets path can be expressed in different ways, and an aggregation may accept some or all of these
forms depending on its type. Please refer to each aggregation's documentation to know what buckets
path forms they accept.
/// [JsonConverter(typeof(BucketsPathConverter))] -public sealed partial class BucketsPath : IComplexUnion +public sealed class BucketsPath : IComplexUnion { public enum Kind {