Skip to content

Commit 9d1b93f

Browse files
authored
Regenerate client (#8600)
1 parent ac1ec13 commit 9d1b93f

File tree

15 files changed

+200
-11
lines changed

15 files changed

+200
-11
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsResponse.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRes
4040
}
4141

4242
propStats ??= new System.Collections.Generic.Dictionary<string, Elastic.Clients.Elasticsearch.IndexManagement.UsageStatsIndex>();
43-
reader.ReadProperty(options, out string key, out Elastic.Clients.Elasticsearch.IndexManagement.UsageStatsIndex value, static string (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<string>(o)!, static Elastic.Clients.Elasticsearch.IndexManagement.UsageStatsIndex (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<Elastic.Clients.Elasticsearch.IndexManagement.UsageStatsIndex>(o)!);
43+
reader.ReadProperty(options, out string key, out Elastic.Clients.Elasticsearch.IndexManagement.UsageStatsIndex value, static string (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<string>(o)!, null);
4444
propStats[key] = value;
4545
}
4646

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace Elastic.Clients.Elasticsearch.Aggregations;
2626
internal sealed partial class BoxplotAggregationConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregation>
2727
{
2828
private static readonly System.Text.Json.JsonEncodedText PropCompression = System.Text.Json.JsonEncodedText.Encode("compression");
29+
private static readonly System.Text.Json.JsonEncodedText PropExecutionHint = System.Text.Json.JsonEncodedText.Encode("execution_hint");
2930
private static readonly System.Text.Json.JsonEncodedText PropField = System.Text.Json.JsonEncodedText.Encode("field");
3031
private static readonly System.Text.Json.JsonEncodedText PropMissing = System.Text.Json.JsonEncodedText.Encode("missing");
3132
private static readonly System.Text.Json.JsonEncodedText PropScript = System.Text.Json.JsonEncodedText.Encode("script");
@@ -34,6 +35,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregation Re
3435
{
3536
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
3637
LocalJsonValue<double?> propCompression = default;
38+
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint?> propExecutionHint = default;
3739
LocalJsonValue<Elastic.Clients.Elasticsearch.Field?> propField = default;
3840
LocalJsonValue<object?> propMissing = default;
3941
LocalJsonValue<Elastic.Clients.Elasticsearch.Script?> propScript = default;
@@ -44,6 +46,11 @@ public override Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregation Re
4446
continue;
4547
}
4648

49+
if (propExecutionHint.TryReadProperty(ref reader, options, PropExecutionHint, static Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint>(o)))
50+
{
51+
continue;
52+
}
53+
4754
if (propField.TryReadProperty(ref reader, options, PropField, null))
4855
{
4956
continue;
@@ -72,6 +79,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregation Re
7279
return new Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
7380
{
7481
Compression = propCompression.Value,
82+
ExecutionHint = propExecutionHint.Value,
7583
Field = propField.Value,
7684
Missing = propMissing.Value,
7785
Script = propScript.Value
@@ -82,6 +90,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
8290
{
8391
writer.WriteStartObject();
8492
writer.WriteProperty(options, PropCompression, value.Compression, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, double? v) => w.WriteNullableValue<double>(o, v));
93+
writer.WriteProperty(options, PropExecutionHint, value.ExecutionHint, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? v) => w.WriteNullableValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint>(o, v));
8594
writer.WriteProperty(options, PropField, value.Field, null, null);
8695
writer.WriteProperty(options, PropMissing, value.Missing, null, null);
8796
writer.WriteProperty(options, PropScript, value.Script, null, null);
@@ -115,6 +124,14 @@ internal BoxplotAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCons
115124
/// </summary>
116125
public double? Compression { get; set; }
117126

127+
/// <summary>
128+
/// <para>
129+
/// The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).
130+
/// To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.
131+
/// </para>
132+
/// </summary>
133+
public Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? ExecutionHint { get; set; }
134+
118135
/// <summary>
119136
/// <para>
120137
/// The field on which to run the aggregation.
@@ -162,6 +179,18 @@ public Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregationDescriptor<T
162179
return this;
163180
}
164181

182+
/// <summary>
183+
/// <para>
184+
/// The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).
185+
/// To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.
186+
/// </para>
187+
/// </summary>
188+
public Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregationDescriptor<TDocument> ExecutionHint(Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? value)
189+
{
190+
Instance.ExecutionHint = value;
191+
return this;
192+
}
193+
165194
/// <summary>
166195
/// <para>
167196
/// The field on which to run the aggregation.
@@ -258,6 +287,18 @@ public Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregationDescriptor C
258287
return this;
259288
}
260289

290+
/// <summary>
291+
/// <para>
292+
/// The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).
293+
/// To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.
294+
/// </para>
295+
/// </summary>
296+
public Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? value)
297+
{
298+
Instance.ExecutionHint = value;
299+
return this;
300+
}
301+
261302
/// <summary>
262303
/// <para>
263304
/// The field on which to run the aggregation.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregate Re
6868
}
6969

7070
propData ??= new System.Collections.Generic.Dictionary<string, object>();
71-
reader.ReadProperty(options, out string key, out object value, static string (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<string>(o)!, static object (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<object>(o)!);
71+
reader.ReadProperty(options, out string key, out object value, static string (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<string>(o)!, null);
7272
propData[key] = value;
7373
}
7474

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace Elastic.Clients.Elasticsearch.Aggregations;
2626
internal sealed partial class MedianAbsoluteDeviationAggregationConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviationAggregation>
2727
{
2828
private static readonly System.Text.Json.JsonEncodedText PropCompression = System.Text.Json.JsonEncodedText.Encode("compression");
29+
private static readonly System.Text.Json.JsonEncodedText PropExecutionHint = System.Text.Json.JsonEncodedText.Encode("execution_hint");
2930
private static readonly System.Text.Json.JsonEncodedText PropField = System.Text.Json.JsonEncodedText.Encode("field");
3031
private static readonly System.Text.Json.JsonEncodedText PropFormat = System.Text.Json.JsonEncodedText.Encode("format");
3132
private static readonly System.Text.Json.JsonEncodedText PropMissing = System.Text.Json.JsonEncodedText.Encode("missing");
@@ -35,6 +36,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviati
3536
{
3637
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
3738
LocalJsonValue<double?> propCompression = default;
39+
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint?> propExecutionHint = default;
3840
LocalJsonValue<Elastic.Clients.Elasticsearch.Field?> propField = default;
3941
LocalJsonValue<string?> propFormat = default;
4042
LocalJsonValue<object?> propMissing = default;
@@ -46,6 +48,11 @@ public override Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviati
4648
continue;
4749
}
4850

51+
if (propExecutionHint.TryReadProperty(ref reader, options, PropExecutionHint, static Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint>(o)))
52+
{
53+
continue;
54+
}
55+
4956
if (propField.TryReadProperty(ref reader, options, PropField, null))
5057
{
5158
continue;
@@ -79,6 +86,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviati
7986
return new Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviationAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
8087
{
8188
Compression = propCompression.Value,
89+
ExecutionHint = propExecutionHint.Value,
8290
Field = propField.Value,
8391
Format = propFormat.Value,
8492
Missing = propMissing.Value,
@@ -90,6 +98,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
9098
{
9199
writer.WriteStartObject();
92100
writer.WriteProperty(options, PropCompression, value.Compression, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, double? v) => w.WriteNullableValue<double>(o, v));
101+
writer.WriteProperty(options, PropExecutionHint, value.ExecutionHint, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? v) => w.WriteNullableValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint>(o, v));
93102
writer.WriteProperty(options, PropField, value.Field, null, null);
94103
writer.WriteProperty(options, PropFormat, value.Format, null, null);
95104
writer.WriteProperty(options, PropMissing, value.Missing, null, null);
@@ -124,6 +133,14 @@ internal MedianAbsoluteDeviationAggregation(Elastic.Clients.Elasticsearch.Serial
124133
/// </summary>
125134
public double? Compression { get; set; }
126135

136+
/// <summary>
137+
/// <para>
138+
/// The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).
139+
/// To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.
140+
/// </para>
141+
/// </summary>
142+
public Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? ExecutionHint { get; set; }
143+
127144
/// <summary>
128145
/// <para>
129146
/// The field on which to run the aggregation.
@@ -172,6 +189,18 @@ public Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviationAggrega
172189
return this;
173190
}
174191

192+
/// <summary>
193+
/// <para>
194+
/// The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).
195+
/// To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.
196+
/// </para>
197+
/// </summary>
198+
public Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviationAggregationDescriptor<TDocument> ExecutionHint(Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? value)
199+
{
200+
Instance.ExecutionHint = value;
201+
return this;
202+
}
203+
175204
/// <summary>
176205
/// <para>
177206
/// The field on which to run the aggregation.
@@ -274,6 +303,18 @@ public Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviationAggrega
274303
return this;
275304
}
276305

306+
/// <summary>
307+
/// <para>
308+
/// The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).
309+
/// To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.
310+
/// </para>
311+
/// </summary>
312+
public Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviationAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? value)
313+
{
314+
Instance.ExecutionHint = value;
315+
return this;
316+
}
317+
277318
/// <summary>
278319
/// <para>
279320
/// The field on which to run the aggregation.

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

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,25 @@ namespace Elastic.Clients.Elasticsearch.Aggregations;
2626
internal sealed partial class TDigestConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Aggregations.TDigest>
2727
{
2828
private static readonly System.Text.Json.JsonEncodedText PropCompression = System.Text.Json.JsonEncodedText.Encode("compression");
29+
private static readonly System.Text.Json.JsonEncodedText PropExecutionHint = System.Text.Json.JsonEncodedText.Encode("execution_hint");
2930

3031
public override Elastic.Clients.Elasticsearch.Aggregations.TDigest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
3132
{
3233
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
3334
LocalJsonValue<int?> propCompression = default;
35+
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint?> propExecutionHint = default;
3436
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
3537
{
3638
if (propCompression.TryReadProperty(ref reader, options, PropCompression, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<int>(o)))
3739
{
3840
continue;
3941
}
4042

43+
if (propExecutionHint.TryReadProperty(ref reader, options, PropExecutionHint, static Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint>(o)))
44+
{
45+
continue;
46+
}
47+
4148
if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
4249
{
4350
reader.Skip();
@@ -50,14 +57,16 @@ public override Elastic.Clients.Elasticsearch.Aggregations.TDigest Read(ref Syst
5057
reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
5158
return new Elastic.Clients.Elasticsearch.Aggregations.TDigest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
5259
{
53-
Compression = propCompression.Value
60+
Compression = propCompression.Value,
61+
ExecutionHint = propExecutionHint.Value
5462
};
5563
}
5664

5765
public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Aggregations.TDigest value, System.Text.Json.JsonSerializerOptions options)
5866
{
5967
writer.WriteStartObject();
6068
writer.WriteProperty(options, PropCompression, value.Compression, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue<int>(o, v));
69+
writer.WriteProperty(options, PropExecutionHint, value.ExecutionHint, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? v) => w.WriteNullableValue<Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint>(o, v));
6170
writer.WriteEndObject();
6271
}
6372
}
@@ -87,6 +96,14 @@ internal TDigest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent
8796
/// </para>
8897
/// </summary>
8998
public int? Compression { get; set; }
99+
100+
/// <summary>
101+
/// <para>
102+
/// The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).
103+
/// To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.
104+
/// </para>
105+
/// </summary>
106+
public Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? ExecutionHint { get; set; }
90107
}
91108

92109
public readonly partial struct TDigestDescriptor
@@ -119,6 +136,18 @@ public Elastic.Clients.Elasticsearch.Aggregations.TDigestDescriptor Compression(
119136
return this;
120137
}
121138

139+
/// <summary>
140+
/// <para>
141+
/// The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).
142+
/// To use an implementation optimized for accuracy, set this parameter to high_accuracy instead.
143+
/// </para>
144+
/// </summary>
145+
public Elastic.Clients.Elasticsearch.Aggregations.TDigestDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Aggregations.TDigestExecutionHint? value)
146+
{
147+
Instance.ExecutionHint = value;
148+
return this;
149+
}
150+
122151
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
123152
internal static Elastic.Clients.Elasticsearch.Aggregations.TDigest Build(System.Action<Elastic.Clients.Elasticsearch.Aggregations.TDigestDescriptor>? action)
124153
{

src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Suggester.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public override Elastic.Clients.Elasticsearch.Core.Search.Suggester Read(ref Sys
4040
}
4141

4242
propSuggesters ??= new System.Collections.Generic.Dictionary<string, Elastic.Clients.Elasticsearch.Core.Search.FieldSuggester>();
43-
reader.ReadProperty(options, out string key, out Elastic.Clients.Elasticsearch.Core.Search.FieldSuggester value, static string (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<string>(o)!, static Elastic.Clients.Elasticsearch.Core.Search.FieldSuggester (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<Elastic.Clients.Elasticsearch.Core.Search.FieldSuggester>(o)!);
43+
reader.ReadProperty(options, out string key, out Elastic.Clients.Elasticsearch.Core.Search.FieldSuggester value, static string (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName<string>(o)!, null);
4444
propSuggesters[key] = value;
4545
}
4646

0 commit comments

Comments
 (0)