Skip to content

Commit 55078bc

Browse files
committed
Temp
1 parent 22a1160 commit 55078bc

13 files changed

+80
-9776
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs

Lines changed: 0 additions & 3936 deletions
Large diffs are not rendered by default.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ public Elastic.Clients.Elasticsearch.TermVectorsRequestDescriptor<TDocument> Per
734734
/// </summary>
735735
public Elastic.Clients.Elasticsearch.TermVectorsRequestDescriptor<TDocument> PerFieldAnalyzer()
736736
{
737-
Instance.PerFieldAnalyzer = Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder<TDocument>.Build(null);
737+
Instance.PerFieldAnalyzer = Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder.Build(null);
738738
return this;
739739
}
740740

@@ -745,9 +745,9 @@ public Elastic.Clients.Elasticsearch.TermVectorsRequestDescriptor<TDocument> Per
745745
/// When providing an analyzer for a field that already stores term vectors, the term vectors will be regenerated.
746746
/// </para>
747747
/// </summary>
748-
public Elastic.Clients.Elasticsearch.TermVectorsRequestDescriptor<TDocument> PerFieldAnalyzer(System.Action<Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder<TDocument>> action)
748+
public Elastic.Clients.Elasticsearch.TermVectorsRequestDescriptor<TDocument> PerFieldAnalyzer(System.Action<Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder> action)
749749
{
750-
Instance.PerFieldAnalyzer = Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder<TDocument>.Build(action);
750+
Instance.PerFieldAnalyzer = Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder.Build(action);
751751
return this;
752752
}
753753

src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs

Lines changed: 0 additions & 196 deletions
Large diffs are not rendered by default.

src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs

Lines changed: 0 additions & 604 deletions
Large diffs are not rendered by default.

src/Elastic.Clients.Elasticsearch/_Generated/Fluent/ICollectionOfKeyValuePairOfFieldSortOrderBuilder.g.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfFieldSort
5151
return this;
5252
}
5353

54+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfFieldSortOrderBuilder<TDocument> Add(Elastic.Clients.Elasticsearch.Field key, Elastic.Clients.Elasticsearch.SortOrder value)
55+
{
56+
_items.Add(new System.Collections.Generic.KeyValuePair<Elastic.Clients.Elasticsearch.Field, Elastic.Clients.Elasticsearch.SortOrder>(key, value));
57+
return this;
58+
}
59+
60+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfFieldSortOrderBuilder<TDocument> Add(System.Linq.Expressions.Expression<System.Func<TDocument, object?>> key, Elastic.Clients.Elasticsearch.SortOrder value)
61+
{
62+
_items.Add(new System.Collections.Generic.KeyValuePair<Elastic.Clients.Elasticsearch.Field, Elastic.Clients.Elasticsearch.SortOrder>(key, value));
63+
return this;
64+
}
65+
5466
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
5567
internal static System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Elastic.Clients.Elasticsearch.Field, Elastic.Clients.Elasticsearch.SortOrder>> Build(System.Action<Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfFieldSortOrderBuilder<TDocument>>? action)
5668
{
@@ -93,6 +105,18 @@ public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfFieldSort
93105
return this;
94106
}
95107

108+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfFieldSortOrderBuilder Add(Elastic.Clients.Elasticsearch.Field key, Elastic.Clients.Elasticsearch.SortOrder value)
109+
{
110+
_items.Add(new System.Collections.Generic.KeyValuePair<Elastic.Clients.Elasticsearch.Field, Elastic.Clients.Elasticsearch.SortOrder>(key, value));
111+
return this;
112+
}
113+
114+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfFieldSortOrderBuilder Add<T>(System.Linq.Expressions.Expression<System.Func<T, object?>> key, Elastic.Clients.Elasticsearch.SortOrder value)
115+
{
116+
_items.Add(new System.Collections.Generic.KeyValuePair<Elastic.Clients.Elasticsearch.Field, Elastic.Clients.Elasticsearch.SortOrder>(key, value));
117+
return this;
118+
}
119+
96120
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
97121
internal static System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Elastic.Clients.Elasticsearch.Field, Elastic.Clients.Elasticsearch.SortOrder>> Build(System.Action<Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfFieldSortOrderBuilder>? action)
98122
{

src/Elastic.Clients.Elasticsearch/_Generated/Fluent/ICollectionOfKeyValuePairOfIndexNameDoubleBuilder.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfIndexName
5151
return this;
5252
}
5353

54+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfIndexNameDoubleBuilder Add(Elastic.Clients.Elasticsearch.IndexName key, double value)
55+
{
56+
_items.Add(new System.Collections.Generic.KeyValuePair<Elastic.Clients.Elasticsearch.IndexName, double>(key, value));
57+
return this;
58+
}
59+
5460
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
5561
internal static System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Elastic.Clients.Elasticsearch.IndexName, double>> Build(System.Action<Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfIndexNameDoubleBuilder>? action)
5662
{

src/Elastic.Clients.Elasticsearch/_Generated/Fluent/ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder.g.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDyn
5151
return this;
5252
}
5353

54+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder<TDocument> Add(string key, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate value)
55+
{
56+
_items.Add(new System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>(key, value));
57+
return this;
58+
}
59+
60+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder<TDocument> Add(string key)
61+
{
62+
_items.Add(new System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>(key, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplateDescriptor<TDocument>.Build(null)));
63+
return this;
64+
}
65+
66+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder<TDocument> Add(string key, System.Action<Elastic.Clients.Elasticsearch.Mapping.DynamicTemplateDescriptor<TDocument>> action)
67+
{
68+
_items.Add(new System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>(key, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplateDescriptor<TDocument>.Build(action)));
69+
return this;
70+
}
71+
5472
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
5573
internal static System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>> Build(System.Action<Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder<TDocument>>? action)
5674
{
@@ -93,6 +111,30 @@ public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDyn
93111
return this;
94112
}
95113

114+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder Add(string key, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate value)
115+
{
116+
_items.Add(new System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>(key, value));
117+
return this;
118+
}
119+
120+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder Add(string key)
121+
{
122+
_items.Add(new System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>(key, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplateDescriptor.Build(null)));
123+
return this;
124+
}
125+
126+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder Add(string key, System.Action<Elastic.Clients.Elasticsearch.Mapping.DynamicTemplateDescriptor> action)
127+
{
128+
_items.Add(new System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>(key, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplateDescriptor.Build(action)));
129+
return this;
130+
}
131+
132+
public Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder Add<T>(string key, System.Action<Elastic.Clients.Elasticsearch.Mapping.DynamicTemplateDescriptor<T>> action)
133+
{
134+
_items.Add(new System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>(key, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplateDescriptor<T>.Build(action)));
135+
return this;
136+
}
137+
96138
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
97139
internal static System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate>> Build(System.Action<Elastic.Clients.Elasticsearch.Fluent.ICollectionOfKeyValuePairOfStringDynamicTemplateBuilder>? action)
98140
{

src/Elastic.Clients.Elasticsearch/_Generated/Fluent/IDictionaryOfFieldStringBuilder.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Elastic.Clients.Elasticsearch.Fluent;
2525

26-
public readonly partial struct IDictionaryOfFieldStringBuilder<TDocument>
26+
public readonly partial struct IDictionaryOfFieldStringBuilder
2727
{
2828
private readonly System.Collections.Generic.Dictionary<Elastic.Clients.Elasticsearch.Field, string> _items = new();
2929

@@ -33,27 +33,27 @@ public IDictionaryOfFieldStringBuilder()
3333
{
3434
}
3535

36-
public Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder<TDocument> Add(Elastic.Clients.Elasticsearch.Field key, string value)
36+
public Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder Add(Elastic.Clients.Elasticsearch.Field key, string value)
3737
{
3838
_items.Add(key, value);
3939
return this;
4040
}
4141

42-
public Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder<TDocument> Add(System.Linq.Expressions.Expression<System.Func<TDocument, object?>> key, string value)
42+
public Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder Add<T>(System.Linq.Expressions.Expression<System.Func<T, object?>> key, string value)
4343
{
4444
_items.Add(key, value);
4545
return this;
4646
}
4747

4848
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
49-
internal static System.Collections.Generic.IDictionary<Elastic.Clients.Elasticsearch.Field, string> Build(System.Action<Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder<TDocument>>? action)
49+
internal static System.Collections.Generic.IDictionary<Elastic.Clients.Elasticsearch.Field, string> Build(System.Action<Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder>? action)
5050
{
5151
if (action is null)
5252
{
5353
return new System.Collections.Generic.Dictionary<Elastic.Clients.Elasticsearch.Field, string>();
5454
}
5555

56-
var builder = new Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder<TDocument>();
56+
var builder = new Elastic.Clients.Elasticsearch.Fluent.IDictionaryOfFieldStringBuilder();
5757
action.Invoke(builder);
5858
return builder.Value;
5959
}
Lines changed: 0 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -1,170 +0,0 @@
1-
// Licensed to Elasticsearch B.V under one or more agreements.
2-
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3-
// See the LICENSE file in the project root for more information.
4-
//
5-
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
6-
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
7-
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
8-
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
9-
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
10-
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
11-
// ------------------------------------------------
12-
//
13-
// This file is automatically generated.
14-
// Please do not edit these files manually.
15-
//
16-
// ------------------------------------------------
17-
18-
#nullable restore
19-
20-
using System;
21-
using System.Linq;
22-
using Elastic.Clients.Elasticsearch.Serialization;
23-
24-
namespace Elastic.Clients.Elasticsearch.Cluster;
25-
26-
internal sealed partial class AllocationStoreConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Cluster.AllocationStore>
27-
{
28-
private static readonly System.Text.Json.JsonEncodedText PropAllocationId = System.Text.Json.JsonEncodedText.Encode("allocation_id");
29-
private static readonly System.Text.Json.JsonEncodedText PropFound = System.Text.Json.JsonEncodedText.Encode("found");
30-
private static readonly System.Text.Json.JsonEncodedText PropInSync = System.Text.Json.JsonEncodedText.Encode("in_sync");
31-
private static readonly System.Text.Json.JsonEncodedText PropMatchingSizeInBytes = System.Text.Json.JsonEncodedText.Encode("matching_size_in_bytes");
32-
private static readonly System.Text.Json.JsonEncodedText PropMatchingSyncId = System.Text.Json.JsonEncodedText.Encode("matching_sync_id");
33-
private static readonly System.Text.Json.JsonEncodedText PropStoreException = System.Text.Json.JsonEncodedText.Encode("store_exception");
34-
35-
public override Elastic.Clients.Elasticsearch.Cluster.AllocationStore Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
36-
{
37-
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
38-
LocalJsonValue<string> propAllocationId = default;
39-
LocalJsonValue<bool> propFound = default;
40-
LocalJsonValue<bool> propInSync = default;
41-
LocalJsonValue<long> propMatchingSizeInBytes = default;
42-
LocalJsonValue<bool> propMatchingSyncId = default;
43-
LocalJsonValue<string> propStoreException = default;
44-
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
45-
{
46-
if (propAllocationId.TryReadProperty(ref reader, options, PropAllocationId, null))
47-
{
48-
continue;
49-
}
50-
51-
if (propFound.TryReadProperty(ref reader, options, PropFound, null))
52-
{
53-
continue;
54-
}
55-
56-
if (propInSync.TryReadProperty(ref reader, options, PropInSync, null))
57-
{
58-
continue;
59-
}
60-
61-
if (propMatchingSizeInBytes.TryReadProperty(ref reader, options, PropMatchingSizeInBytes, null))
62-
{
63-
continue;
64-
}
65-
66-
if (propMatchingSyncId.TryReadProperty(ref reader, options, PropMatchingSyncId, null))
67-
{
68-
continue;
69-
}
70-
71-
if (propStoreException.TryReadProperty(ref reader, options, PropStoreException, null))
72-
{
73-
continue;
74-
}
75-
76-
if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
77-
{
78-
reader.Skip();
79-
continue;
80-
}
81-
82-
throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
83-
}
84-
85-
reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
86-
return new Elastic.Clients.Elasticsearch.Cluster.AllocationStore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
87-
{
88-
AllocationId = propAllocationId.Value,
89-
Found = propFound.Value,
90-
InSync = propInSync.Value,
91-
MatchingSizeInBytes = propMatchingSizeInBytes.Value,
92-
MatchingSyncId = propMatchingSyncId.Value,
93-
StoreException = propStoreException.Value
94-
};
95-
}
96-
97-
public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Cluster.AllocationStore value, System.Text.Json.JsonSerializerOptions options)
98-
{
99-
writer.WriteStartObject();
100-
writer.WriteProperty(options, PropAllocationId, value.AllocationId, null, null);
101-
writer.WriteProperty(options, PropFound, value.Found, null, null);
102-
writer.WriteProperty(options, PropInSync, value.InSync, null, null);
103-
writer.WriteProperty(options, PropMatchingSizeInBytes, value.MatchingSizeInBytes, null, null);
104-
writer.WriteProperty(options, PropMatchingSyncId, value.MatchingSyncId, null, null);
105-
writer.WriteProperty(options, PropStoreException, value.StoreException, null, null);
106-
writer.WriteEndObject();
107-
}
108-
}
109-
110-
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.AllocationStoreConverter))]
111-
public sealed partial class AllocationStore
112-
{
113-
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
114-
public AllocationStore(string allocationId, bool found, bool inSync, long matchingSizeInBytes, bool matchingSyncId, string storeException)
115-
{
116-
AllocationId = allocationId;
117-
Found = found;
118-
InSync = inSync;
119-
MatchingSizeInBytes = matchingSizeInBytes;
120-
MatchingSyncId = matchingSyncId;
121-
StoreException = storeException;
122-
}
123-
#if NET7_0_OR_GREATER
124-
public AllocationStore()
125-
{
126-
}
127-
#endif
128-
#if !NET7_0_OR_GREATER
129-
[System.Obsolete("The type contains additional required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
130-
public AllocationStore()
131-
{
132-
}
133-
#endif
134-
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
135-
internal AllocationStore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
136-
{
137-
_ = sentinel;
138-
}
139-
140-
public
141-
#if NET7_0_OR_GREATER
142-
required
143-
#endif
144-
string AllocationId { get; set; }
145-
public
146-
#if NET7_0_OR_GREATER
147-
required
148-
#endif
149-
bool Found { get; set; }
150-
public
151-
#if NET7_0_OR_GREATER
152-
required
153-
#endif
154-
bool InSync { get; set; }
155-
public
156-
#if NET7_0_OR_GREATER
157-
required
158-
#endif
159-
long MatchingSizeInBytes { get; set; }
160-
public
161-
#if NET7_0_OR_GREATER
162-
required
163-
#endif
164-
bool MatchingSyncId { get; set; }
165-
public
166-
#if NET7_0_OR_GREATER
167-
required
168-
#endif
169-
string StoreException { get; set; }
170-
}

0 commit comments

Comments
 (0)