Skip to content

Commit a63278b

Browse files
authored
[8.19] Regenerate client (#8646)
1 parent 279e024 commit a63278b

10 files changed

+77
-109
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public override Elastic.Clients.Elasticsearch.Aggregations.HdrPercentileRanksAgg
3232
{
3333
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
3434
LocalJsonValue<System.Collections.Generic.IReadOnlyDictionary<string, object>?> propMeta = default;
35-
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.Percentiles> propValues = default;
35+
LocalJsonValue<System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem>> propValues = default;
3636
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
3737
{
3838
if (propMeta.TryReadProperty(ref reader, options, PropMeta, static System.Collections.Generic.IReadOnlyDictionary<string, object>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue<string, object>(o, null, null)))
3939
{
4040
continue;
4141
}
4242

43-
if (propValues.TryReadProperty(ref reader, options, PropValues, null))
43+
if (propValues.TryReadProperty(ref reader, options, PropValues, static System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem>(o, null)!))
4444
{
4545
continue;
4646
}
@@ -66,7 +66,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
6666
{
6767
writer.WriteStartObject();
6868
writer.WriteProperty(options, PropMeta, value.Meta, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary<string, object>? v) => w.WriteDictionaryValue<string, object>(o, v, null, null));
69-
writer.WriteProperty(options, PropValues, value.Values, null, null);
69+
writer.WriteProperty(options, PropValues, value.Values, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem> v) => w.WriteCollectionValue<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem>(o, v, null));
7070
writer.WriteEndObject();
7171
}
7272
}
@@ -75,7 +75,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
7575
public sealed partial class HdrPercentileRanksAggregate : Elastic.Clients.Elasticsearch.Aggregations.IAggregate
7676
{
7777
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
78-
public HdrPercentileRanksAggregate(Elastic.Clients.Elasticsearch.Aggregations.Percentiles values)
78+
public HdrPercentileRanksAggregate(System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem> values)
7979
{
8080
Values = values;
8181
}
@@ -104,5 +104,5 @@ internal HdrPercentileRanksAggregate(Elastic.Clients.Elasticsearch.Serialization
104104
#if NET7_0_OR_GREATER
105105
required
106106
#endif
107-
Elastic.Clients.Elasticsearch.Aggregations.Percentiles Values { get; set; }
107+
System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem> Values { get; set; }
108108
}

src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public override Elastic.Clients.Elasticsearch.Aggregations.HdrPercentilesAggrega
3232
{
3333
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
3434
LocalJsonValue<System.Collections.Generic.IReadOnlyDictionary<string, object>?> propMeta = default;
35-
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.Percentiles> propValues = default;
35+
LocalJsonValue<System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem>> propValues = default;
3636
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
3737
{
3838
if (propMeta.TryReadProperty(ref reader, options, PropMeta, static System.Collections.Generic.IReadOnlyDictionary<string, object>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue<string, object>(o, null, null)))
3939
{
4040
continue;
4141
}
4242

43-
if (propValues.TryReadProperty(ref reader, options, PropValues, null))
43+
if (propValues.TryReadProperty(ref reader, options, PropValues, static System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem>(o, null)!))
4444
{
4545
continue;
4646
}
@@ -66,7 +66,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
6666
{
6767
writer.WriteStartObject();
6868
writer.WriteProperty(options, PropMeta, value.Meta, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary<string, object>? v) => w.WriteDictionaryValue<string, object>(o, v, null, null));
69-
writer.WriteProperty(options, PropValues, value.Values, null, null);
69+
writer.WriteProperty(options, PropValues, value.Values, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem> v) => w.WriteCollectionValue<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem>(o, v, null));
7070
writer.WriteEndObject();
7171
}
7272
}
@@ -75,7 +75,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
7575
public sealed partial class HdrPercentilesAggregate : Elastic.Clients.Elasticsearch.Aggregations.IAggregate
7676
{
7777
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
78-
public HdrPercentilesAggregate(Elastic.Clients.Elasticsearch.Aggregations.Percentiles values)
78+
public HdrPercentilesAggregate(System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem> values)
7979
{
8080
Values = values;
8181
}
@@ -104,5 +104,5 @@ internal HdrPercentilesAggregate(Elastic.Clients.Elasticsearch.Serialization.Jso
104104
#if NET7_0_OR_GREATER
105105
required
106106
#endif
107-
Elastic.Clients.Elasticsearch.Aggregations.Percentiles Values { get; set; }
107+
System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem> Values { get; set; }
108108
}

src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ internal sealed partial class MovingPercentilesAggregationConverter : System.Tex
2828
private static readonly System.Text.Json.JsonEncodedText PropBucketsPath = System.Text.Json.JsonEncodedText.Encode("buckets_path");
2929
private static readonly System.Text.Json.JsonEncodedText PropFormat = System.Text.Json.JsonEncodedText.Encode("format");
3030
private static readonly System.Text.Json.JsonEncodedText PropGapPolicy = System.Text.Json.JsonEncodedText.Encode("gap_policy");
31+
private static readonly System.Text.Json.JsonEncodedText PropKeyed = System.Text.Json.JsonEncodedText.Encode("keyed");
3132
private static readonly System.Text.Json.JsonEncodedText PropShift = System.Text.Json.JsonEncodedText.Encode("shift");
3233
private static readonly System.Text.Json.JsonEncodedText PropWindow = System.Text.Json.JsonEncodedText.Encode("window");
3334

@@ -56,6 +57,12 @@ public override Elastic.Clients.Elasticsearch.Aggregations.MovingPercentilesAggr
5657
continue;
5758
}
5859

60+
if (reader.ValueTextEquals(PropKeyed))
61+
{
62+
reader.Skip();
63+
continue;
64+
}
65+
5966
if (propShift.TryReadProperty(ref reader, options, PropShift, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<int>(o)))
6067
{
6168
continue;
@@ -92,6 +99,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
9299
writer.WriteProperty(options, PropBucketsPath, value.BucketsPath, null, null);
93100
writer.WriteProperty(options, PropFormat, value.Format, null, null);
94101
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<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy>(o, v));
102+
writer.WriteProperty(options, PropKeyed, value.Keyed, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue<bool>(o, v));
95103
writer.WriteProperty(options, PropShift, value.Shift, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue<int>(o, v));
96104
writer.WriteProperty(options, PropWindow, value.Window, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue<int>(o, v));
97105
writer.WriteEndObject();
@@ -139,6 +147,8 @@ internal MovingPercentilesAggregation(Elastic.Clients.Elasticsearch.Serializatio
139147
/// </summary>
140148
public Elastic.Clients.Elasticsearch.Aggregations.GapPolicy? GapPolicy { get; set; }
141149

150+
public bool? Keyed => false;
151+
142152
/// <summary>
143153
/// <para>
144154
/// By default, the window consists of the last n values excluding the current bucket.

src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ internal sealed partial class PercentileRanksAggregationConverter : System.Text.
2828
private static readonly System.Text.Json.JsonEncodedText PropField = System.Text.Json.JsonEncodedText.Encode("field");
2929
private static readonly System.Text.Json.JsonEncodedText PropFormat = System.Text.Json.JsonEncodedText.Encode("format");
3030
private static readonly System.Text.Json.JsonEncodedText PropHdr = System.Text.Json.JsonEncodedText.Encode("hdr");
31+
private static readonly System.Text.Json.JsonEncodedText PropKeyed = System.Text.Json.JsonEncodedText.Encode("keyed");
3132
private static readonly System.Text.Json.JsonEncodedText PropMissing = System.Text.Json.JsonEncodedText.Encode("missing");
3233
private static readonly System.Text.Json.JsonEncodedText PropScript = System.Text.Json.JsonEncodedText.Encode("script");
3334
private static readonly System.Text.Json.JsonEncodedText PropTDigest = System.Text.Json.JsonEncodedText.Encode("tdigest");
@@ -60,6 +61,12 @@ public override Elastic.Clients.Elasticsearch.Aggregations.PercentileRanksAggreg
6061
continue;
6162
}
6263

64+
if (reader.ValueTextEquals(PropKeyed))
65+
{
66+
reader.Skip();
67+
continue;
68+
}
69+
6370
if (propMissing.TryReadProperty(ref reader, options, PropMissing, null))
6471
{
6572
continue;
@@ -108,6 +115,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
108115
writer.WriteProperty(options, PropField, value.Field, null, null);
109116
writer.WriteProperty(options, PropFormat, value.Format, null, null);
110117
writer.WriteProperty(options, PropHdr, value.Hdr, null, null);
118+
writer.WriteProperty(options, PropKeyed, value.Keyed, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue<bool>(o, v));
111119
writer.WriteProperty(options, PropMissing, value.Missing, null, null);
112120
writer.WriteProperty(options, PropScript, value.Script, null, null);
113121
writer.WriteProperty(options, PropTDigest, value.TDigest, null, null);
@@ -150,6 +158,14 @@ internal PercentileRanksAggregation(Elastic.Clients.Elasticsearch.Serialization.
150158
/// </summary>
151159
public Elastic.Clients.Elasticsearch.Aggregations.HdrMethod? Hdr { get; set; }
152160

161+
/// <summary>
162+
/// <para>
163+
/// By default, the aggregation associates a unique string key with each bucket and returns the ranges as a hash rather than an array.
164+
/// Set to <c>false</c> to disable this behavior.
165+
/// </para>
166+
/// </summary>
167+
public bool? Keyed => false;
168+
153169
/// <summary>
154170
/// <para>
155171
/// The value to apply to documents that do not have a value.

src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Percentiles.g.cs

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)