Skip to content

Commit 9d58555

Browse files
authored
[9.1] Regenerate client (#8754)
1 parent b39cb3f commit 9d58555

File tree

52 files changed

+3306
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3306
-49
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public sealed partial class IndicesStatsRequestParameters : Elastic.Transport.Re
8585

8686
/// <summary>
8787
/// <para>
88-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
88+
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
8989
/// </para>
9090
/// </summary>
9191
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
@@ -221,7 +221,7 @@ internal IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon
221221

222222
/// <summary>
223223
/// <para>
224-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
224+
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
225225
/// </para>
226226
/// </summary>
227227
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
@@ -449,7 +449,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript
449449

450450
/// <summary>
451451
/// <para>
452-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
452+
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
453453
/// </para>
454454
/// </summary>
455455
public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? value)
@@ -736,7 +736,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript
736736

737737
/// <summary>
738738
/// <para>
739-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
739+
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
740740
/// </para>
741741
/// </summary>
742742
public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor<TDocument> Level(Elastic.Clients.Elasticsearch.Level? value)

src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public sealed partial class NodesStatsRequestParameters : Elastic.Transport.Requ
6969

7070
/// <summary>
7171
/// <para>
72-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
72+
/// Indicates whether statistics are aggregated at the node, indices, or shards level.
7373
/// </para>
7474
/// </summary>
7575
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
@@ -207,7 +207,7 @@ internal NodesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
207207

208208
/// <summary>
209209
/// <para>
210-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
210+
/// Indicates whether statistics are aggregated at the node, indices, or shards level.
211211
/// </para>
212212
/// </summary>
213213
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
@@ -411,7 +411,7 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IncludeUn
411411

412412
/// <summary>
413413
/// <para>
414-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
414+
/// Indicates whether statistics are aggregated at the node, indices, or shards level.
415415
/// </para>
416416
/// </summary>
417417
public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? value)
@@ -693,7 +693,7 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor<TDocument
693693

694694
/// <summary>
695695
/// <para>
696-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
696+
/// Indicates whether statistics are aggregated at the node, indices, or shards level.
697697
/// </para>
698698
/// </summary>
699699
public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor<TDocument> Level(Elastic.Clients.Elasticsearch.Level? value)

src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.Converters.g.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public sealed partial class TranslateResponseConverter : System.Text.Json.Serial
3131
private static readonly System.Text.Json.JsonEncodedText PropSize = System.Text.Json.JsonEncodedText.Encode("size");
3232
private static readonly System.Text.Json.JsonEncodedText PropSort = System.Text.Json.JsonEncodedText.Encode("sort");
3333
private static readonly System.Text.Json.JsonEncodedText PropSource = System.Text.Json.JsonEncodedText.Encode("_source");
34+
private static readonly System.Text.Json.JsonEncodedText PropTrackTotalHits = System.Text.Json.JsonEncodedText.Encode("track_total_hits");
3435

3536
public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
3637
{
@@ -41,6 +42,7 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
4142
LocalJsonValue<long?> propSize = default;
4243
LocalJsonValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>?> propSort = default;
4344
LocalJsonValue<Elastic.Clients.Elasticsearch.Core.Search.SourceConfig?> propSource = default;
45+
LocalJsonValue<Elastic.Clients.Elasticsearch.Core.Search.TrackHits?> propTrackTotalHits = default;
4446
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
4547
{
4648
if (propAggregations.TryReadProperty(ref reader, options, PropAggregations, static System.Collections.Generic.IReadOnlyDictionary<string, Elastic.Clients.Elasticsearch.Aggregations.Aggregation>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue<string, Elastic.Clients.Elasticsearch.Aggregations.Aggregation>(o, null, null)))
@@ -73,6 +75,11 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
7375
continue;
7476
}
7577

78+
if (propTrackTotalHits.TryReadProperty(ref reader, options, PropTrackTotalHits, null))
79+
{
80+
continue;
81+
}
82+
7683
if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
7784
{
7885
reader.SafeSkip();
@@ -90,7 +97,8 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
9097
Query = propQuery.Value,
9198
Size = propSize.Value,
9299
Sort = propSort.Value,
93-
Source = propSource.Value
100+
Source = propSource.Value,
101+
TrackTotalHits = propTrackTotalHits.Value
94102
};
95103
}
96104

@@ -103,6 +111,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
103111
writer.WriteProperty(options, PropSize, value.Size, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue<long>(o, v));
104112
writer.WriteProperty(options, PropSort, value.Sort, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>? v) => w.WriteSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.SortOptions>(o, v, null));
105113
writer.WriteProperty(options, PropSource, value.Source, null, null);
114+
writer.WriteProperty(options, PropTrackTotalHits, value.TrackTotalHits, null, null);
106115
writer.WriteEndObject();
107116
}
108117
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateResponse.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ internal TranslateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst
4343
public long? Size { get; set; }
4444
public System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>? Sort { get; set; }
4545
public Elastic.Clients.Elasticsearch.Core.Search.SourceConfig? Source { get; set; }
46+
public Elastic.Clients.Elasticsearch.Core.Search.TrackHits? TrackTotalHits { get; set; }
4647
}

src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.Converters.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ internal static void ReadItem(ref System.Text.Json.Utf8JsonReader reader, System
7070
"boxplot" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregate>(options, null),
7171
"bucket_metric_value" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.BucketMetricValueAggregate>(options, null),
7272
"cardinality" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate>(options, null),
73+
"cartesian_bounds" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate>(options, null),
74+
"cartesian_centroid" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate>(options, null),
75+
"change_point" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate>(options, null),
7376
"children" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate>(options, null),
7477
"composite" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.CompositeAggregate>(options, null),
7578
"date_histogram" => reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.DateHistogramAggregate>(options, null),
@@ -161,6 +164,15 @@ internal static void WriteItem(System.Text.Json.Utf8JsonWriter writer, System.Te
161164
case Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate v:
162165
writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName<string>(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate v) => w.WritePropertyName<Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate>(o, v));
163166
break;
167+
case Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate v:
168+
writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName<string>(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate v) => w.WritePropertyName<Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate>(o, v));
169+
break;
170+
case Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate v:
171+
writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName<string>(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate v) => w.WritePropertyName<Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate>(o, v));
172+
break;
173+
case Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate v:
174+
writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName<string>(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate v) => w.WritePropertyName<Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate>(o, v));
175+
break;
164176
case Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate v:
165177
writer.WriteProperty(options, key, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, string v) => w.WritePropertyName<string>(o, v), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate v) => w.WritePropertyName<Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate>(o, v));
166178
break;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public bool TryGetAggregate<T>(string key, [System.Diagnostics.CodeAnalysis.NotN
5050
public Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregate? GetBoxplot(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregate>(key);
5151
public Elastic.Clients.Elasticsearch.Aggregations.BucketMetricValueAggregate? GetBucketMetricValue(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.BucketMetricValueAggregate>(key);
5252
public Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate? GetCardinality(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate>(key);
53+
public Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate? GetCartesianBounds(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregate>(key);
54+
public Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate? GetCartesianCentroid(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregate>(key);
55+
public Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate? GetChangePoint(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregate>(key);
5356
public Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate? GetChildren(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate>(key);
5457
public Elastic.Clients.Elasticsearch.Aggregations.CompositeAggregate? GetComposite(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.CompositeAggregate>(key);
5558
public Elastic.Clients.Elasticsearch.Aggregations.DateHistogramAggregate? GetDateHistogram(string key) => TryGet<Elastic.Clients.Elasticsearch.Aggregations.DateHistogramAggregate>(key);

src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.Converters.g.cs

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ public sealed partial class AggregationConverter : System.Text.Json.Serializatio
3939
private static readonly System.Text.Json.JsonEncodedText VariantBucketSelector = System.Text.Json.JsonEncodedText.Encode("bucket_selector");
4040
private static readonly System.Text.Json.JsonEncodedText VariantBucketSort = System.Text.Json.JsonEncodedText.Encode("bucket_sort");
4141
private static readonly System.Text.Json.JsonEncodedText VariantCardinality = System.Text.Json.JsonEncodedText.Encode("cardinality");
42+
private static readonly System.Text.Json.JsonEncodedText VariantCartesianBounds = System.Text.Json.JsonEncodedText.Encode("cartesian_bounds");
43+
private static readonly System.Text.Json.JsonEncodedText VariantCartesianCentroid = System.Text.Json.JsonEncodedText.Encode("cartesian_centroid");
4244
private static readonly System.Text.Json.JsonEncodedText VariantCategorizeText = System.Text.Json.JsonEncodedText.Encode("categorize_text");
45+
private static readonly System.Text.Json.JsonEncodedText VariantChangePoint = System.Text.Json.JsonEncodedText.Encode("change_point");
4346
private static readonly System.Text.Json.JsonEncodedText VariantChildren = System.Text.Json.JsonEncodedText.Encode("children");
4447
private static readonly System.Text.Json.JsonEncodedText VariantComposite = System.Text.Json.JsonEncodedText.Encode("composite");
4548
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
5356
private static readonly System.Text.Json.JsonEncodedText VariantFilter = System.Text.Json.JsonEncodedText.Encode("filter");
5457
private static readonly System.Text.Json.JsonEncodedText VariantFilters = System.Text.Json.JsonEncodedText.Encode("filters");
5558
private static readonly System.Text.Json.JsonEncodedText VariantFrequentItemSets = System.Text.Json.JsonEncodedText.Encode("frequent_item_sets");
59+
private static readonly System.Text.Json.JsonEncodedText VariantFrequentItemSets1 = System.Text.Json.JsonEncodedText.Encode("frequent_items");
5660
private static readonly System.Text.Json.JsonEncodedText VariantGeoBounds = System.Text.Json.JsonEncodedText.Encode("geo_bounds");
5761
private static readonly System.Text.Json.JsonEncodedText VariantGeoCentroid = System.Text.Json.JsonEncodedText.Encode("geo_centroid");
5862
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
213217
continue;
214218
}
215219

220+
if (reader.ValueTextEquals(VariantCartesianBounds))
221+
{
222+
variantType = VariantCartesianBounds.Value;
223+
reader.Read();
224+
variant = reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation>(options, null);
225+
continue;
226+
}
227+
228+
if (reader.ValueTextEquals(VariantCartesianCentroid))
229+
{
230+
variantType = VariantCartesianCentroid.Value;
231+
reader.Read();
232+
variant = reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation>(options, null);
233+
continue;
234+
}
235+
216236
if (reader.ValueTextEquals(VariantCategorizeText))
217237
{
218238
variantType = VariantCategorizeText.Value;
@@ -221,6 +241,14 @@ public override Elastic.Clients.Elasticsearch.Aggregations.Aggregation Read(ref
221241
continue;
222242
}
223243

244+
if (reader.ValueTextEquals(VariantChangePoint))
245+
{
246+
variantType = VariantChangePoint.Value;
247+
reader.Read();
248+
variant = reader.ReadValue<Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation>(options, null);
249+
continue;
250+
}
251+
224252
if (reader.ValueTextEquals(VariantChildren))
225253
{
226254
variantType = VariantChildren.Value;
@@ -317,7 +345,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.Aggregation Read(ref
317345
continue;
318346
}
319347

320-
if (reader.ValueTextEquals(VariantFrequentItemSets))
348+
if (reader.ValueTextEquals(VariantFrequentItemSets) || reader.ValueTextEquals(VariantFrequentItemSets1))
321349
{
322350
variantType = VariantFrequentItemSets.Value;
323351
reader.Read();
@@ -800,9 +828,18 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
800828
case "cardinality":
801829
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregation)value.Variant, null, null);
802830
break;
831+
case "cartesian_bounds":
832+
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.CartesianBoundsAggregation)value.Variant, null, null);
833+
break;
834+
case "cartesian_centroid":
835+
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.CartesianCentroidAggregation)value.Variant, null, null);
836+
break;
803837
case "categorize_text":
804838
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.CategorizeTextAggregation)value.Variant, null, null);
805839
break;
840+
case "change_point":
841+
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.ChangePointAggregation)value.Variant, null, null);
842+
break;
806843
case "children":
807844
writer.WriteProperty(options, value.VariantType, (Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregation)value.Variant, null, null);
808845
break;

0 commit comments

Comments
 (0)