Skip to content

Commit 7fb9f91

Browse files
committed
Update after schema changes
1 parent dbc54ac commit 7fb9f91

File tree

57 files changed

+745
-1534
lines changed

Some content is hidden

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

57 files changed

+745
-1534
lines changed

src/Elastic.Clients.Elasticsearch/FutureGenerated/FutureGenerated.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
namespace Elastic.Clients.Elasticsearch.Aggregations
2121
{
22-
public partial class TopMetricsValue
23-
{
24-
public TopMetricsValue(Field field) => Field = field;
25-
}
22+
//public partial class TopMetricsValue
23+
//{
24+
// public TopMetricsValue(Field field) => Field = field;
25+
//}
2626

2727
public partial class Buckets<TBucket>
2828
{
@@ -597,27 +597,27 @@ internal sealed class AggregateDictionaryConverter : JsonConverter<AggregateDict
597597
// break;
598598
// }
599599

600-
case "top_metrics":
600+
//case "top_metrics":
601+
// {
602+
// var agg = JsonSerializer.Deserialize<TopMetricsAggregate>(ref reader, options);
603+
// dictionary.Add(nameParts[1], agg);
604+
// break;
605+
// }
606+
607+
case "value_count":
601608
{
602-
var agg = JsonSerializer.Deserialize<TopMetricsAggregate>(ref reader, options);
609+
var agg = JsonSerializer.Deserialize<ValueCountAggregate>(ref reader, options);
603610
dictionary.Add(nameParts[1], agg);
604611
break;
605612
}
606613

607-
case "value_count":
614+
case "weighted_avg":
608615
{
609-
var agg = JsonSerializer.Deserialize<ValueCountAggregate>(ref reader, options);
616+
var agg = JsonSerializer.Deserialize<WeightedAvgAggregate>(ref reader, options);
610617
dictionary.Add(nameParts[1], agg);
611618
break;
612619
}
613620

614-
//case "weighted_avg":
615-
// {
616-
// var agg = JsonSerializer.Deserialize<WeightedAvgAggregate>(ref reader, options);
617-
// dictionary.Add(nameParts[1], agg);
618-
// break;
619-
// }
620-
621621
case "avg_bucket":
622622
break;
623623
case "bucket_script":

src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
20-
using Elastic.Transport.Products.Elasticsearch;
2121

2222
#nullable restore
2323
namespace Elastic.Clients.Elasticsearch
@@ -36,4 +36,4 @@ public partial class BulkResponse : ResponseBase
3636
[JsonPropertyName("took")]
3737
public long Took { get; init; }
3838
}
39-
}
39+
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
20-
using Elastic.Transport.Products.Elasticsearch;
2121

2222
#nullable restore
2323
namespace Elastic.Clients.Elasticsearch
@@ -32,4 +32,4 @@ public partial class ClosePointInTimeResponse : ResponseBase
3232
[JsonPropertyName("succeeded")]
3333
public bool Succeeded { get; init; }
3434
}
35-
}
35+
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainResponse.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
20-
using Elastic.Transport.Products.Elasticsearch;
2121

2222
#nullable restore
2323
namespace Elastic.Clients.Elasticsearch.Cluster
@@ -124,4 +124,4 @@ public partial class ClusterAllocationExplainResponse : ResponseBase
124124
[JsonPropertyName("unassigned_info")]
125125
public Elastic.Clients.Elasticsearch.Cluster.AllocationExplain.UnassignedInformation? UnassignedInfo { get; init; }
126126
}
127-
}
127+
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterHealthResponse.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
20-
using Elastic.Transport.Products.Elasticsearch;
2121

2222
#nullable restore
2323
namespace Elastic.Clients.Elasticsearch.Cluster
@@ -88,4 +88,4 @@ public partial class ClusterHealthResponse : ResponseBase
8888
[JsonPropertyName("unassigned_shards")]
8989
public int UnassignedShards { get; init; }
9090
}
91-
}
91+
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksResponse.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
20-
using Elastic.Transport.Products.Elasticsearch;
2121

2222
#nullable restore
2323
namespace Elastic.Clients.Elasticsearch.Cluster
@@ -28,4 +28,4 @@ public partial class ClusterPendingTasksResponse : ResponseBase
2828
[JsonPropertyName("tasks")]
2929
public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Cluster.PendingTasks.PendingTask> Tasks { get; init; }
3030
}
31-
}
31+
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateResponse.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
20-
using Elastic.Transport.Products.Elasticsearch;
2121

2222
#nullable restore
2323
namespace Elastic.Clients.Elasticsearch.Cluster
2424
{
2525
public partial class ClusterStateResponse : ResponseBase
2626
{
2727
}
28-
}
28+
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/CountResponse.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
20-
using Elastic.Transport.Products.Elasticsearch;
2121

2222
#nullable restore
2323
namespace Elastic.Clients.Elasticsearch
@@ -32,4 +32,4 @@ public partial class CountResponse : ResponseBase
3232
[JsonPropertyName("_shards")]
3333
public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; }
3434
}
35-
}
35+
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
2021

src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//
1616
// ------------------------------------------------
1717

18+
using Elastic.Transport.Products.Elasticsearch;
1819
using System.Collections.Generic;
1920
using System.Text.Json.Serialization;
2021

0 commit comments

Comments
 (0)