Skip to content

Commit dfc38d1

Browse files
Regenerate client for 8.14 (#8219) (#8221)
Co-authored-by: Florian Bernd <[email protected]>
1 parent 1aeff72 commit dfc38d1

26 files changed

+2014
-130
lines changed

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static void ReadItem(ref Utf8JsonReader reader, JsonSerializerOptions opt
167167
break;
168168
}
169169

170-
case "box_plot":
170+
case "boxplot":
171171
{
172172
var item = JsonSerializer.Deserialize<Elastic.Clients.Elasticsearch.Serverless.Aggregations.BoxplotAggregate>(ref reader, options);
173173
dictionary.Add(nameParts[1], item);

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public override DoubleTermsBucket Read(ref Utf8JsonReader reader, Type typeToCon
3434
if (reader.TokenType != JsonTokenType.StartObject)
3535
throw new JsonException("Unexpected JSON detected.");
3636
long docCount = default;
37-
long? docCountError = default;
37+
long? docCountErrorUpperBound = default;
3838
double key = default;
3939
string? keyAsString = default;
4040
Dictionary<string, Elastic.Clients.Elasticsearch.Serverless.Aggregations.IAggregate> additionalProperties = null;
@@ -49,9 +49,9 @@ public override DoubleTermsBucket Read(ref Utf8JsonReader reader, Type typeToCon
4949
continue;
5050
}
5151

52-
if (property == "doc_count_error")
52+
if (property == "doc_count_error_upper_bound")
5353
{
54-
docCountError = JsonSerializer.Deserialize<long?>(ref reader, options);
54+
docCountErrorUpperBound = JsonSerializer.Deserialize<long?>(ref reader, options);
5555
continue;
5656
}
5757

@@ -78,7 +78,7 @@ public override DoubleTermsBucket Read(ref Utf8JsonReader reader, Type typeToCon
7878
}
7979
}
8080

81-
return new DoubleTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountError = docCountError, Key = key, KeyAsString = keyAsString };
81+
return new DoubleTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountErrorUpperBound = docCountErrorUpperBound, Key = key, KeyAsString = keyAsString };
8282
}
8383

8484
public override void Write(Utf8JsonWriter writer, DoubleTermsBucket value, JsonSerializerOptions options)
@@ -95,7 +95,7 @@ public sealed partial class DoubleTermsBucket
9595
/// </summary>
9696
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; }
9797
public long DocCount { get; init; }
98-
public long? DocCountError { get; init; }
98+
public long? DocCountErrorUpperBound { get; init; }
9999
public double Key { get; init; }
100100
public string? KeyAsString { get; init; }
101101
}

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsBucket.g.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public override LongTermsBucket Read(ref Utf8JsonReader reader, Type typeToConve
3434
if (reader.TokenType != JsonTokenType.StartObject)
3535
throw new JsonException("Unexpected JSON detected.");
3636
long docCount = default;
37-
long? docCountError = default;
37+
long? docCountErrorUpperBound = default;
3838
long key = default;
3939
string? keyAsString = default;
4040
Dictionary<string, Elastic.Clients.Elasticsearch.Serverless.Aggregations.IAggregate> additionalProperties = null;
@@ -49,9 +49,9 @@ public override LongTermsBucket Read(ref Utf8JsonReader reader, Type typeToConve
4949
continue;
5050
}
5151

52-
if (property == "doc_count_error")
52+
if (property == "doc_count_error_upper_bound")
5353
{
54-
docCountError = JsonSerializer.Deserialize<long?>(ref reader, options);
54+
docCountErrorUpperBound = JsonSerializer.Deserialize<long?>(ref reader, options);
5555
continue;
5656
}
5757

@@ -78,7 +78,7 @@ public override LongTermsBucket Read(ref Utf8JsonReader reader, Type typeToConve
7878
}
7979
}
8080

81-
return new LongTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountError = docCountError, Key = key, KeyAsString = keyAsString };
81+
return new LongTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountErrorUpperBound = docCountErrorUpperBound, Key = key, KeyAsString = keyAsString };
8282
}
8383

8484
public override void Write(Utf8JsonWriter writer, LongTermsBucket value, JsonSerializerOptions options)
@@ -95,7 +95,7 @@ public sealed partial class LongTermsBucket
9595
/// </summary>
9696
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; }
9797
public long DocCount { get; init; }
98-
public long? DocCountError { get; init; }
98+
public long? DocCountErrorUpperBound { get; init; }
9999
public long Key { get; init; }
100100
public string? KeyAsString { get; init; }
101101
}

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsBucket.g.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public override StringTermsBucket Read(ref Utf8JsonReader reader, Type typeToCon
3434
if (reader.TokenType != JsonTokenType.StartObject)
3535
throw new JsonException("Unexpected JSON detected.");
3636
long docCount = default;
37-
long? docCountError = default;
37+
long? docCountErrorUpperBound = default;
3838
Elastic.Clients.Elasticsearch.Serverless.FieldValue key = default;
3939
Dictionary<string, Elastic.Clients.Elasticsearch.Serverless.Aggregations.IAggregate> additionalProperties = null;
4040
while (reader.Read() && reader.TokenType != JsonTokenType.EndObject)
@@ -48,9 +48,9 @@ public override StringTermsBucket Read(ref Utf8JsonReader reader, Type typeToCon
4848
continue;
4949
}
5050

51-
if (property == "doc_count_error")
51+
if (property == "doc_count_error_upper_bound")
5252
{
53-
docCountError = JsonSerializer.Deserialize<long?>(ref reader, options);
53+
docCountErrorUpperBound = JsonSerializer.Deserialize<long?>(ref reader, options);
5454
continue;
5555
}
5656

@@ -71,7 +71,7 @@ public override StringTermsBucket Read(ref Utf8JsonReader reader, Type typeToCon
7171
}
7272
}
7373

74-
return new StringTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountError = docCountError, Key = key };
74+
return new StringTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountErrorUpperBound = docCountErrorUpperBound, Key = key };
7575
}
7676

7777
public override void Write(Utf8JsonWriter writer, StringTermsBucket value, JsonSerializerOptions options)
@@ -88,6 +88,6 @@ public sealed partial class StringTermsBucket
8888
/// </summary>
8989
public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; }
9090
public long DocCount { get; init; }
91-
public long? DocCountError { get; init; }
91+
public long? DocCountErrorUpperBound { get; init; }
9292
public Elastic.Clients.Elasticsearch.Serverless.FieldValue Key { get; init; }
9393
}

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs

+36-36
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ public sealed partial class IcuCollationTokenFilter : ITokenFilter
3131
{
3232
[JsonInclude, JsonPropertyName("alternate")]
3333
public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? Alternate { get; set; }
34-
[JsonInclude, JsonPropertyName("caseFirst")]
35-
public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? Casefirst { get; set; }
36-
[JsonInclude, JsonPropertyName("caseLevel")]
37-
public bool? Caselevel { get; set; }
34+
[JsonInclude, JsonPropertyName("case_first")]
35+
public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? CaseFirst { get; set; }
36+
[JsonInclude, JsonPropertyName("case_level")]
37+
public bool? CaseLevel { get; set; }
3838
[JsonInclude, JsonPropertyName("country")]
3939
public string? Country { get; set; }
4040
[JsonInclude, JsonPropertyName("decomposition")]
4141
public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? Decomposition { get; set; }
42-
[JsonInclude, JsonPropertyName("hiraganaQuaternaryMode")]
43-
public bool? Hiraganaquaternarymode { get; set; }
42+
[JsonInclude, JsonPropertyName("hiragana_quaternary_mode")]
43+
public bool? HiraganaQuaternaryMode { get; set; }
4444
[JsonInclude, JsonPropertyName("language")]
4545
public string? Language { get; set; }
4646
[JsonInclude, JsonPropertyName("numeric")]
@@ -53,8 +53,8 @@ public sealed partial class IcuCollationTokenFilter : ITokenFilter
5353
[JsonInclude, JsonPropertyName("type")]
5454
public string Type => "icu_collation";
5555

56-
[JsonInclude, JsonPropertyName("variableTop")]
57-
public string? Variabletop { get; set; }
56+
[JsonInclude, JsonPropertyName("variable_top")]
57+
public string? VariableTop { get; set; }
5858
[JsonInclude, JsonPropertyName("variant")]
5959
public string? Variant { get; set; }
6060
[JsonInclude, JsonPropertyName("version")]
@@ -70,16 +70,16 @@ public IcuCollationTokenFilterDescriptor() : base()
7070
}
7171

7272
private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? AlternateValue { get; set; }
73-
private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? CasefirstValue { get; set; }
74-
private bool? CaselevelValue { get; set; }
73+
private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? CaseFirstValue { get; set; }
74+
private bool? CaseLevelValue { get; set; }
7575
private string? CountryValue { get; set; }
7676
private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? DecompositionValue { get; set; }
77-
private bool? HiraganaquaternarymodeValue { get; set; }
77+
private bool? HiraganaQuaternaryModeValue { get; set; }
7878
private string? LanguageValue { get; set; }
7979
private bool? NumericValue { get; set; }
8080
private string? RulesValue { get; set; }
8181
private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? StrengthValue { get; set; }
82-
private string? VariabletopValue { get; set; }
82+
private string? VariableTopValue { get; set; }
8383
private string? VariantValue { get; set; }
8484
private string? VersionValue { get; set; }
8585

@@ -89,15 +89,15 @@ public IcuCollationTokenFilterDescriptor Alternate(Elastic.Clients.Elasticsearch
8989
return Self;
9090
}
9191

92-
public IcuCollationTokenFilterDescriptor Casefirst(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? casefirst)
92+
public IcuCollationTokenFilterDescriptor CaseFirst(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? caseFirst)
9393
{
94-
CasefirstValue = casefirst;
94+
CaseFirstValue = caseFirst;
9595
return Self;
9696
}
9797

98-
public IcuCollationTokenFilterDescriptor Caselevel(bool? caselevel = true)
98+
public IcuCollationTokenFilterDescriptor CaseLevel(bool? caseLevel = true)
9999
{
100-
CaselevelValue = caselevel;
100+
CaseLevelValue = caseLevel;
101101
return Self;
102102
}
103103

@@ -113,9 +113,9 @@ public IcuCollationTokenFilterDescriptor Decomposition(Elastic.Clients.Elasticse
113113
return Self;
114114
}
115115

116-
public IcuCollationTokenFilterDescriptor Hiraganaquaternarymode(bool? hiraganaquaternarymode = true)
116+
public IcuCollationTokenFilterDescriptor HiraganaQuaternaryMode(bool? hiraganaQuaternaryMode = true)
117117
{
118-
HiraganaquaternarymodeValue = hiraganaquaternarymode;
118+
HiraganaQuaternaryModeValue = hiraganaQuaternaryMode;
119119
return Self;
120120
}
121121

@@ -143,9 +143,9 @@ public IcuCollationTokenFilterDescriptor Strength(Elastic.Clients.Elasticsearch.
143143
return Self;
144144
}
145145

146-
public IcuCollationTokenFilterDescriptor Variabletop(string? variabletop)
146+
public IcuCollationTokenFilterDescriptor VariableTop(string? variableTop)
147147
{
148-
VariabletopValue = variabletop;
148+
VariableTopValue = variableTop;
149149
return Self;
150150
}
151151

@@ -170,16 +170,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
170170
JsonSerializer.Serialize(writer, AlternateValue, options);
171171
}
172172

173-
if (CasefirstValue is not null)
173+
if (CaseFirstValue is not null)
174174
{
175-
writer.WritePropertyName("caseFirst");
176-
JsonSerializer.Serialize(writer, CasefirstValue, options);
175+
writer.WritePropertyName("case_first");
176+
JsonSerializer.Serialize(writer, CaseFirstValue, options);
177177
}
178178

179-
if (CaselevelValue.HasValue)
179+
if (CaseLevelValue.HasValue)
180180
{
181-
writer.WritePropertyName("caseLevel");
182-
writer.WriteBooleanValue(CaselevelValue.Value);
181+
writer.WritePropertyName("case_level");
182+
writer.WriteBooleanValue(CaseLevelValue.Value);
183183
}
184184

185185
if (!string.IsNullOrEmpty(CountryValue))
@@ -194,10 +194,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
194194
JsonSerializer.Serialize(writer, DecompositionValue, options);
195195
}
196196

197-
if (HiraganaquaternarymodeValue.HasValue)
197+
if (HiraganaQuaternaryModeValue.HasValue)
198198
{
199-
writer.WritePropertyName("hiraganaQuaternaryMode");
200-
writer.WriteBooleanValue(HiraganaquaternarymodeValue.Value);
199+
writer.WritePropertyName("hiragana_quaternary_mode");
200+
writer.WriteBooleanValue(HiraganaQuaternaryModeValue.Value);
201201
}
202202

203203
if (!string.IsNullOrEmpty(LanguageValue))
@@ -226,10 +226,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
226226

227227
writer.WritePropertyName("type");
228228
writer.WriteStringValue("icu_collation");
229-
if (!string.IsNullOrEmpty(VariabletopValue))
229+
if (!string.IsNullOrEmpty(VariableTopValue))
230230
{
231-
writer.WritePropertyName("variableTop");
232-
writer.WriteStringValue(VariabletopValue);
231+
writer.WritePropertyName("variable_top");
232+
writer.WriteStringValue(VariableTopValue);
233233
}
234234

235235
if (!string.IsNullOrEmpty(VariantValue))
@@ -250,16 +250,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
250250
IcuCollationTokenFilter IBuildableDescriptor<IcuCollationTokenFilter>.Build() => new()
251251
{
252252
Alternate = AlternateValue,
253-
Casefirst = CasefirstValue,
254-
Caselevel = CaselevelValue,
253+
CaseFirst = CaseFirstValue,
254+
CaseLevel = CaseLevelValue,
255255
Country = CountryValue,
256256
Decomposition = DecompositionValue,
257-
Hiraganaquaternarymode = HiraganaquaternarymodeValue,
257+
HiraganaQuaternaryMode = HiraganaQuaternaryModeValue,
258258
Language = LanguageValue,
259259
Numeric = NumericValue,
260260
Rules = RulesValue,
261261
Strength = StrengthValue,
262-
Variabletop = VariabletopValue,
262+
VariableTop = VariableTopValue,
263263
Variant = VariantValue,
264264
Version = VersionValue
265265
};

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs

+17-9
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public sealed partial class MultiTermVectorsOperation
5858
/// <para>The ID of the document.</para>
5959
/// </summary>
6060
[JsonInclude, JsonPropertyName("_id")]
61-
public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; }
61+
public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; }
6262

6363
/// <summary>
6464
/// <para>The index of the document.</para>
@@ -123,7 +123,7 @@ public MultiTermVectorsOperationDescriptor() : base()
123123
private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? FilterValue { get; set; }
124124
private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; }
125125
private Action<Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor> FilterDescriptorAction { get; set; }
126-
private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; }
126+
private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; }
127127
private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; }
128128
private bool? OffsetsValue { get; set; }
129129
private bool? PayloadsValue { get; set; }
@@ -190,7 +190,7 @@ public MultiTermVectorsOperationDescriptor<TDocument> Filter(Action<Elastic.Clie
190190
/// <summary>
191191
/// <para>The ID of the document.</para>
192192
/// </summary>
193-
public MultiTermVectorsOperationDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
193+
public MultiTermVectorsOperationDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.Serverless.Id? id)
194194
{
195195
IdValue = id;
196196
return Self;
@@ -305,8 +305,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
305305
JsonSerializer.Serialize(writer, FilterValue, options);
306306
}
307307

308-
writer.WritePropertyName("_id");
309-
JsonSerializer.Serialize(writer, IdValue, options);
308+
if (IdValue is not null)
309+
{
310+
writer.WritePropertyName("_id");
311+
JsonSerializer.Serialize(writer, IdValue, options);
312+
}
313+
310314
if (IndexValue is not null)
311315
{
312316
writer.WritePropertyName("_index");
@@ -373,7 +377,7 @@ public MultiTermVectorsOperationDescriptor() : base()
373377
private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? FilterValue { get; set; }
374378
private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; }
375379
private Action<Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor> FilterDescriptorAction { get; set; }
376-
private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; }
380+
private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; }
377381
private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; }
378382
private bool? OffsetsValue { get; set; }
379383
private bool? PayloadsValue { get; set; }
@@ -440,7 +444,7 @@ public MultiTermVectorsOperationDescriptor Filter(Action<Elastic.Clients.Elastic
440444
/// <summary>
441445
/// <para>The ID of the document.</para>
442446
/// </summary>
443-
public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
447+
public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id)
444448
{
445449
IdValue = id;
446450
return Self;
@@ -555,8 +559,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
555559
JsonSerializer.Serialize(writer, FilterValue, options);
556560
}
557561

558-
writer.WritePropertyName("_id");
559-
JsonSerializer.Serialize(writer, IdValue, options);
562+
if (IdValue is not null)
563+
{
564+
writer.WritePropertyName("_id");
565+
JsonSerializer.Serialize(writer, IdValue, options);
566+
}
567+
560568
if (IndexValue is not null)
561569
{
562570
writer.WritePropertyName("_index");

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public sealed partial class Hit<TDocument>
3636
[JsonInclude, JsonPropertyName("highlight")]
3737
public IReadOnlyDictionary<string, IReadOnlyCollection<string>>? Highlight { get; init; }
3838
[JsonInclude, JsonPropertyName("_id")]
39-
public string Id { get; init; }
39+
public string? Id { get; init; }
4040
[JsonInclude, JsonPropertyName("_ignored")]
4141
public IReadOnlyCollection<string>? Ignored { get; init; }
4242
[JsonInclude, JsonPropertyName("ignored_field_values")]

0 commit comments

Comments
 (0)