Skip to content

Commit b72d099

Browse files
authored
Reduce initial API surface (#6704)
* Reduce initial API surface * Further supported API modifications
1 parent 6e8a056 commit b72d099

File tree

918 files changed

+711
-104501
lines changed

Some content is hidden

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

918 files changed

+711
-104501
lines changed

benchmarks/Benchmarks/Program.cs

-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@
88
using BenchmarkDotNet.Reports;
99
using BenchmarkDotNet.Running;
1010
using Elastic.Clients.Elasticsearch;
11-
using Elastic.Clients.Elasticsearch.Enrich;
12-
using Elastic.Clients.Elasticsearch.QueryDsl;
1311
using Elastic.Transport;
1412
using Nest;
1513
using System.Globalization;
1614
using System.Text;
17-
using Policy = Elastic.Clients.Elasticsearch.Enrich.Policy;
1815

1916
var config = ManualConfig.Create(DefaultConfig.Instance);
2017
config.SummaryStyle = new SummaryStyle(CultureInfo.CurrentCulture, true, BenchmarkDotNet.Columns.SizeUnit.B, null);

src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs

+1-621
Large diffs are not rendered by default.

src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs

+25-27
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,32 @@
99

1010
namespace Elastic.Clients.Elasticsearch
1111
{
12-
internal sealed class PercentageConverter : JsonConverter<Percentage>
13-
{
14-
public override Percentage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
15-
{
16-
var token = reader.TokenType;
12+
//internal sealed class PercentageConverter : JsonConverter<Percentage>
13+
//{
14+
// public override Percentage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
15+
// {
16+
// var token = reader.TokenType;
1717

18-
switch (token)
19-
{
20-
case JsonTokenType.String:
21-
{
22-
var value = reader.GetString();
23-
var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value);
24-
return result;
25-
}
26-
case JsonTokenType.Number:
27-
{
28-
var value = reader.GetSingle();
29-
var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value);
30-
return result;
31-
}
32-
}
18+
// switch (token)
19+
// {
20+
// case JsonTokenType.String:
21+
// {
22+
// var value = reader.GetString();
23+
// var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value);
24+
// return result;
25+
// }
26+
// case JsonTokenType.Number:
27+
// {
28+
// var value = reader.GetSingle();
29+
// var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value);
30+
// return result;
31+
// }
32+
// }
3333

34-
throw new SerializationException();
35-
}
34+
// throw new SerializationException();
35+
// }
3636

37-
public override void Write(Utf8JsonWriter writer, Percentage value, JsonSerializerOptions options) =>
38-
throw new NotImplementedException();
39-
}
40-
41-
37+
// public override void Write(Utf8JsonWriter writer, Percentage value, JsonSerializerOptions options) =>
38+
// throw new NotImplementedException();
39+
//}
4240
}

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

+1-192
Large diffs are not rendered by default.

src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyRequest.g.cs

-67
This file was deleted.

src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyResponse.g.cs

-31
This file was deleted.

src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityRequest.g.cs

-53
This file was deleted.

src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityResponse.g.cs

-31
This file was deleted.

src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyRequest.g.cs

-67
This file was deleted.

0 commit comments

Comments
 (0)