Skip to content

Commit b8f981a

Browse files
authored
[9.1] Regenerate client (#8693)
1 parent 5197a92 commit b8f981a

34 files changed

+846
-146
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ internal static class ApiUrlLookup
465465
internal static ApiUrls TransformManagementPutTransform = new ApiUrls(new[] { "_transform/{transform_id}" });
466466
internal static ApiUrls TransformManagementResetTransform = new ApiUrls(new[] { "_transform/{transform_id}/_reset" });
467467
internal static ApiUrls TransformManagementScheduleNowTransform = new ApiUrls(new[] { "_transform/{transform_id}/_schedule_now" });
468+
internal static ApiUrls TransformManagementSetUpgradeMode = new ApiUrls(new[] { "_transform/set_upgrade_mode" });
468469
internal static ApiUrls TransformManagementStartTransform = new ApiUrls(new[] { "_transform/{transform_id}/_start" });
469470
internal static ApiUrls TransformManagementStopTransform = new ApiUrls(new[] { "_transform/{transform_id}/_stop" });
470471
internal static ApiUrls TransformManagementUpdateTransform = new ApiUrls(new[] { "_transform/{transform_id}/_update" });

src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.Converters.g.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ public sealed partial class DeleteByQueryRequestConverter : System.Text.Json.Ser
2828
private static readonly System.Text.Json.JsonEncodedText PropMaxDocs = System.Text.Json.JsonEncodedText.Encode("max_docs");
2929
private static readonly System.Text.Json.JsonEncodedText PropQuery = System.Text.Json.JsonEncodedText.Encode("query");
3030
private static readonly System.Text.Json.JsonEncodedText PropSlice = System.Text.Json.JsonEncodedText.Encode("slice");
31+
private static readonly System.Text.Json.JsonEncodedText PropSort = System.Text.Json.JsonEncodedText.Encode("sort");
3132

3233
public override Elastic.Clients.Elasticsearch.DeleteByQueryRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
3334
{
3435
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
3536
LocalJsonValue<long?> propMaxDocs = default;
3637
LocalJsonValue<Elastic.Clients.Elasticsearch.QueryDsl.Query?> propQuery = default;
3738
LocalJsonValue<Elastic.Clients.Elasticsearch.SlicedScroll?> propSlice = default;
39+
LocalJsonValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>?> propSort = default;
3840
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
3941
{
4042
if (propMaxDocs.TryReadProperty(ref reader, options, PropMaxDocs, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<long>(o)))
@@ -52,6 +54,11 @@ public override Elastic.Clients.Elasticsearch.DeleteByQueryRequest Read(ref Syst
5254
continue;
5355
}
5456

57+
if (propSort.TryReadProperty(ref reader, options, PropSort, static System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.SortOptions>(o, null)))
58+
{
59+
continue;
60+
}
61+
5562
if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
5663
{
5764
reader.Skip();
@@ -66,7 +73,8 @@ public override Elastic.Clients.Elasticsearch.DeleteByQueryRequest Read(ref Syst
6673
{
6774
MaxDocs = propMaxDocs.Value,
6875
Query = propQuery.Value,
69-
Slice = propSlice.Value
76+
Slice = propSlice.Value,
77+
Sort = propSort.Value
7078
};
7179
}
7280

@@ -76,6 +84,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
7684
writer.WriteProperty(options, PropMaxDocs, value.MaxDocs, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue<long>(o, v));
7785
writer.WriteProperty(options, PropQuery, value.Query, null, null);
7886
writer.WriteProperty(options, PropSlice, value.Slice, null, null);
87+
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));
7988
writer.WriteEndObject();
8089
}
8190
}

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

Lines changed: 102 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,6 @@ public sealed partial class DeleteByQueryRequestParameters : Elastic.Transport.R
187187
/// </summary>
188188
public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q<Elastic.Clients.Elasticsearch.Slices?>("slices"); set => Q("slices", value); }
189189

190-
/// <summary>
191-
/// <para>
192-
/// A comma-separated list of <c>&lt;field>:&lt;direction></c> pairs.
193-
/// </para>
194-
/// </summary>
195-
public System.Collections.Generic.ICollection<string>? Sort { get => Q<System.Collections.Generic.ICollection<string>?>("sort"); set => Q("sort", value); }
196-
197190
/// <summary>
198191
/// <para>
199192
/// The specific <c>tag</c> of the request for logging and statistical purposes.
@@ -601,13 +594,6 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
601594
/// </summary>
602595
public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q<Elastic.Clients.Elasticsearch.Slices?>("slices"); set => Q("slices", value); }
603596

604-
/// <summary>
605-
/// <para>
606-
/// A comma-separated list of <c>&lt;field>:&lt;direction></c> pairs.
607-
/// </para>
608-
/// </summary>
609-
public System.Collections.Generic.ICollection<string>? Sort { get => Q<System.Collections.Generic.ICollection<string>?>("sort"); set => Q("sort", value); }
610-
611597
/// <summary>
612598
/// <para>
613599
/// The specific <c>tag</c> of the request for logging and statistical purposes.
@@ -681,6 +667,13 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
681667
/// </para>
682668
/// </summary>
683669
public Elastic.Clients.Elasticsearch.SlicedScroll? Slice { get; set; }
670+
671+
/// <summary>
672+
/// <para>
673+
/// A sort object that specifies the order of deleted documents.
674+
/// </para>
675+
/// </summary>
676+
public System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>? Sort { get; set; }
684677
}
685678

686679
/// <summary>
@@ -1142,28 +1135,6 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Slices(Syste
11421135
return this;
11431136
}
11441137

1145-
/// <summary>
1146-
/// <para>
1147-
/// A comma-separated list of <c>&lt;field>:&lt;direction></c> pairs.
1148-
/// </para>
1149-
/// </summary>
1150-
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Sort(System.Collections.Generic.ICollection<string>? value)
1151-
{
1152-
Instance.Sort = value;
1153-
return this;
1154-
}
1155-
1156-
/// <summary>
1157-
/// <para>
1158-
/// A comma-separated list of <c>&lt;field>:&lt;direction></c> pairs.
1159-
/// </para>
1160-
/// </summary>
1161-
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Sort(params string[] values)
1162-
{
1163-
Instance.Sort = [.. values];
1164-
return this;
1165-
}
1166-
11671138
/// <summary>
11681139
/// <para>
11691140
/// The specific <c>tag</c> of the request for logging and statistical purposes.
@@ -1329,6 +1300,62 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Slice<T>(Sys
13291300
return this;
13301301
}
13311302

1303+
/// <summary>
1304+
/// <para>
1305+
/// A sort object that specifies the order of deleted documents.
1306+
/// </para>
1307+
/// </summary>
1308+
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Sort(System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>? value)
1309+
{
1310+
Instance.Sort = value;
1311+
return this;
1312+
}
1313+
1314+
/// <summary>
1315+
/// <para>
1316+
/// A sort object that specifies the order of deleted documents.
1317+
/// </para>
1318+
/// </summary>
1319+
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Sort(params Elastic.Clients.Elasticsearch.SortOptions[] values)
1320+
{
1321+
Instance.Sort = [.. values];
1322+
return this;
1323+
}
1324+
1325+
/// <summary>
1326+
/// <para>
1327+
/// A sort object that specifies the order of deleted documents.
1328+
/// </para>
1329+
/// </summary>
1330+
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Sort(params System.Action<Elastic.Clients.Elasticsearch.SortOptionsDescriptor>[] actions)
1331+
{
1332+
var items = new System.Collections.Generic.List<Elastic.Clients.Elasticsearch.SortOptions>();
1333+
foreach (var action in actions)
1334+
{
1335+
items.Add(Elastic.Clients.Elasticsearch.SortOptionsDescriptor.Build(action));
1336+
}
1337+
1338+
Instance.Sort = items;
1339+
return this;
1340+
}
1341+
1342+
/// <summary>
1343+
/// <para>
1344+
/// A sort object that specifies the order of deleted documents.
1345+
/// </para>
1346+
/// </summary>
1347+
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Sort<T>(params System.Action<Elastic.Clients.Elasticsearch.SortOptionsDescriptor<T>>[] actions)
1348+
{
1349+
var items = new System.Collections.Generic.List<Elastic.Clients.Elasticsearch.SortOptions>();
1350+
foreach (var action in actions)
1351+
{
1352+
items.Add(Elastic.Clients.Elasticsearch.SortOptionsDescriptor<T>.Build(action));
1353+
}
1354+
1355+
Instance.Sort = items;
1356+
return this;
1357+
}
1358+
13321359
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
13331360
internal static Elastic.Clients.Elasticsearch.DeleteByQueryRequest Build(System.Action<Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor> action)
13341361
{
@@ -1838,28 +1865,6 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> S
18381865
return this;
18391866
}
18401867

1841-
/// <summary>
1842-
/// <para>
1843-
/// A comma-separated list of <c>&lt;field>:&lt;direction></c> pairs.
1844-
/// </para>
1845-
/// </summary>
1846-
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> Sort(System.Collections.Generic.ICollection<string>? value)
1847-
{
1848-
Instance.Sort = value;
1849-
return this;
1850-
}
1851-
1852-
/// <summary>
1853-
/// <para>
1854-
/// A comma-separated list of <c>&lt;field>:&lt;direction></c> pairs.
1855-
/// </para>
1856-
/// </summary>
1857-
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> Sort(params string[] values)
1858-
{
1859-
Instance.Sort = [.. values];
1860-
return this;
1861-
}
1862-
18631868
/// <summary>
18641869
/// <para>
18651870
/// The specific <c>tag</c> of the request for logging and statistical purposes.
@@ -2003,6 +2008,45 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> S
20032008
return this;
20042009
}
20052010

2011+
/// <summary>
2012+
/// <para>
2013+
/// A sort object that specifies the order of deleted documents.
2014+
/// </para>
2015+
/// </summary>
2016+
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> Sort(System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>? value)
2017+
{
2018+
Instance.Sort = value;
2019+
return this;
2020+
}
2021+
2022+
/// <summary>
2023+
/// <para>
2024+
/// A sort object that specifies the order of deleted documents.
2025+
/// </para>
2026+
/// </summary>
2027+
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> Sort(params Elastic.Clients.Elasticsearch.SortOptions[] values)
2028+
{
2029+
Instance.Sort = [.. values];
2030+
return this;
2031+
}
2032+
2033+
/// <summary>
2034+
/// <para>
2035+
/// A sort object that specifies the order of deleted documents.
2036+
/// </para>
2037+
/// </summary>
2038+
public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> Sort(params System.Action<Elastic.Clients.Elasticsearch.SortOptionsDescriptor<TDocument>>[] actions)
2039+
{
2040+
var items = new System.Collections.Generic.List<Elastic.Clients.Elasticsearch.SortOptions>();
2041+
foreach (var action in actions)
2042+
{
2043+
items.Add(Elastic.Clients.Elasticsearch.SortOptionsDescriptor<TDocument>.Build(action));
2044+
}
2045+
2046+
Instance.Sort = items;
2047+
return this;
2048+
}
2049+
20062050
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
20072051
internal static Elastic.Clients.Elasticsearch.DeleteByQueryRequest Build(System.Action<Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument>> action)
20082052
{

src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,18 @@ public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor
220220
/// The chunking configuration object.
221221
/// </para>
222222
/// </summary>
223-
public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor> action)
223+
public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor ChunkingSettings()
224+
{
225+
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null);
226+
return this;
227+
}
228+
229+
/// <summary>
230+
/// <para>
231+
/// The chunking configuration object.
232+
/// </para>
233+
/// </summary>
234+
public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor>? action)
224235
{
225236
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action);
226237
return this;

src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,18 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor
228228
/// The chunking configuration object.
229229
/// </para>
230230
/// </summary>
231-
public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor> action)
231+
public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor ChunkingSettings()
232+
{
233+
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null);
234+
return this;
235+
}
236+
237+
/// <summary>
238+
/// <para>
239+
/// The chunking configuration object.
240+
/// </para>
241+
/// </summary>
242+
public Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor>? action)
232243
{
233244
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action);
234245
return this;

src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonsagemakerRequest.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,18 @@ public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescript
221221
/// The chunking configuration object.
222222
/// </para>
223223
/// </summary>
224-
public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor> action)
224+
public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescriptor ChunkingSettings()
225+
{
226+
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null);
227+
return this;
228+
}
229+
230+
/// <summary>
231+
/// <para>
232+
/// The chunking configuration object.
233+
/// </para>
234+
/// </summary>
235+
public Elastic.Clients.Elasticsearch.Inference.PutAmazonsagemakerRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor>? action)
225236
{
226237
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action);
227238
return this;

src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,18 @@ public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor Chu
222222
/// The chunking configuration object.
223223
/// </para>
224224
/// </summary>
225-
public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor> action)
225+
public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor ChunkingSettings()
226+
{
227+
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null);
228+
return this;
229+
}
230+
231+
/// <summary>
232+
/// <para>
233+
/// The chunking configuration object.
234+
/// </para>
235+
/// </summary>
236+
public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor>? action)
226237
{
227238
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action);
228239
return this;

src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,18 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor
220220
/// The chunking configuration object.
221221
/// </para>
222222
/// </summary>
223-
public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor> action)
223+
public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor ChunkingSettings()
224+
{
225+
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null);
226+
return this;
227+
}
228+
229+
/// <summary>
230+
/// <para>
231+
/// The chunking configuration object.
232+
/// </para>
233+
/// </summary>
234+
public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor>? action)
224235
{
225236
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action);
226237
return this;

src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,18 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor C
258258
/// The chunking configuration object.
259259
/// </para>
260260
/// </summary>
261-
public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor> action)
261+
public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings()
262+
{
263+
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(null);
264+
return this;
265+
}
266+
267+
/// <summary>
268+
/// <para>
269+
/// The chunking configuration object.
270+
/// </para>
271+
/// </summary>
272+
public Elastic.Clients.Elasticsearch.Inference.PutAzureopenaiRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor>? action)
262273
{
263274
Instance.ChunkingSettings = Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor.Build(action);
264275
return this;

0 commit comments

Comments
 (0)