Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4ccf191

Browse files
[8.19] Regenerate client (#8692)
1 parent 3cca372 commit 4ccf191

File tree

48 files changed

+3268
-266
lines changed

Some content is hidden

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

48 files changed

+3268
-266
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
@@ -457,6 +457,7 @@ internal static class ApiUrlLookup
457457
internal static ApiUrls TransformManagementPutTransform = new ApiUrls(new[] { "_transform/{transform_id}" });
458458
internal static ApiUrls TransformManagementResetTransform = new ApiUrls(new[] { "_transform/{transform_id}/_reset" });
459459
internal static ApiUrls TransformManagementScheduleNowTransform = new ApiUrls(new[] { "_transform/{transform_id}/_schedule_now" });
460+
internal static ApiUrls TransformManagementSetUpgradeMode = new ApiUrls(new[] { "_transform/set_upgrade_mode" });
460461
internal static ApiUrls TransformManagementStartTransform = new ApiUrls(new[] { "_transform/{transform_id}/_start" });
461462
internal static ApiUrls TransformManagementStopTransform = new ApiUrls(new[] { "_transform/{transform_id}/_stop" });
462463
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/IndexManagement/RolloverRequest.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public sealed partial class RolloverRequestParameters : Elastic.Transport.Reques
6868
/// <summary>
6969
/// <para>
7070
/// Roll over to a new index.
71-
/// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers.
71+
/// TIP: We recommend using the index lifecycle rollover action to automate rollovers. However, Serverless does not support Index Lifecycle Management (ILM), so don't use this approach in the Serverless context.
7272
/// </para>
7373
/// <para>
7474
/// The rollover API creates a new index for a data stream or index alias.
@@ -248,7 +248,7 @@ internal RolloverRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru
248248
/// <summary>
249249
/// <para>
250250
/// Roll over to a new index.
251-
/// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers.
251+
/// TIP: We recommend using the index lifecycle rollover action to automate rollovers. However, Serverless does not support Index Lifecycle Management (ILM), so don't use this approach in the Serverless context.
252252
/// </para>
253253
/// <para>
254254
/// The rollover API creates a new index for a data stream or index alias.
@@ -707,7 +707,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RolloverRequestDescriptor R
707707
/// <summary>
708708
/// <para>
709709
/// Roll over to a new index.
710-
/// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers.
710+
/// TIP: We recommend using the index lifecycle rollover action to automate rollovers. However, Serverless does not support Index Lifecycle Management (ILM), so don't use this approach in the Serverless context.
711711
/// </para>
712712
/// <para>
713713
/// The rollover API creates a new index for a data stream or index alias.

‎src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ public sealed partial class CleanupRepositoryRequestParameters : Elastic.Transpo
2727
{
2828
/// <summary>
2929
/// <para>
30-
/// Period to wait for a connection to the master node.
30+
/// The period to wait for a connection to the master node.
31+
/// If the master node is not available before the timeout expires, the request fails and returns an error.
32+
/// To indicate that the request should never timeout, set it to <c>-1</c>
3133
/// </para>
3234
/// </summary>
3335
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Duration?>("master_timeout"); set => Q("master_timeout", value); }
3436

3537
/// <summary>
3638
/// <para>
37-
/// Period to wait for a response.
39+
/// The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
40+
/// If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.
41+
/// To indicate that the request should never timeout, set it to <c>-1</c>.
3842
/// </para>
3943
/// </summary>
4044
public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Duration?>("timeout"); set => Q("timeout", value); }
@@ -74,7 +78,7 @@ internal CleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Js
7478

7579
/// <summary>
7680
/// <para>
77-
/// Snapshot repository to clean up.
81+
/// The name of the snapshot repository to clean up.
7882
/// </para>
7983
/// </summary>
8084
public
@@ -85,14 +89,18 @@ internal CleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Serialization.Js
8589

8690
/// <summary>
8791
/// <para>
88-
/// Period to wait for a connection to the master node.
92+
/// The period to wait for a connection to the master node.
93+
/// If the master node is not available before the timeout expires, the request fails and returns an error.
94+
/// To indicate that the request should never timeout, set it to <c>-1</c>
8995
/// </para>
9096
/// </summary>
9197
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Duration?>("master_timeout"); set => Q("master_timeout", value); }
9298

9399
/// <summary>
94100
/// <para>
95-
/// Period to wait for a response.
101+
/// The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
102+
/// If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.
103+
/// To indicate that the request should never timeout, set it to <c>-1</c>.
96104
/// </para>
97105
/// </summary>
98106
public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Duration?>("timeout"); set => Q("timeout", value); }
@@ -130,7 +138,7 @@ public CleanupRepositoryRequestDescriptor()
130138

131139
/// <summary>
132140
/// <para>
133-
/// Snapshot repository to clean up.
141+
/// The name of the snapshot repository to clean up.
134142
/// </para>
135143
/// </summary>
136144
public Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name value)
@@ -141,7 +149,9 @@ public Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryRequestDescriptor
141149

142150
/// <summary>
143151
/// <para>
144-
/// Period to wait for a connection to the master node.
152+
/// The period to wait for a connection to the master node.
153+
/// If the master node is not available before the timeout expires, the request fails and returns an error.
154+
/// To indicate that the request should never timeout, set it to <c>-1</c>
145155
/// </para>
146156
/// </summary>
147157
public Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value)
@@ -152,7 +162,9 @@ public Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryRequestDescriptor
152162

153163
/// <summary>
154164
/// <para>
155-
/// Period to wait for a response.
165+
/// The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
166+
/// If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.
167+
/// To indicate that the request should never timeout, set it to <c>-1</c>.
156168
/// </para>
157169
/// </summary>
158170
public Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /