Skip to content

Commit 475bdbf

Browse files
authored
[9.2] Regenerate client (#8771)
1 parent 1abce28 commit 475bdbf

Some content is hidden

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

43 files changed

+392
-68
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.Converters.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRe
3333
{
3434
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
3535
LocalJsonValue<Elastic.Clients.Elasticsearch.Duration?> propDataRetention = default;
36-
LocalJsonValue<Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling?> propDownsampling = default;
36+
LocalJsonValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound>?> propDownsampling = default;
3737
LocalJsonValue<bool?> propEnabled = default;
3838
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
3939
{
@@ -42,7 +42,7 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRe
4242
continue;
4343
}
4444

45-
if (propDownsampling.TryReadProperty(ref reader, options, PropDownsampling, null))
45+
if (propDownsampling.TryReadProperty(ref reader, options, PropDownsampling, static System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound>(o, null)))
4646
{
4747
continue;
4848
}
@@ -74,7 +74,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
7474
{
7575
writer.WriteStartObject();
7676
writer.WriteProperty(options, PropDataRetention, value.DataRetention, null, null);
77-
writer.WriteProperty(options, PropDownsampling, value.Downsampling, null, null);
77+
writer.WriteProperty(options, PropDownsampling, value.Downsampling, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound>? v) => w.WriteCollectionValue<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound>(o, v, null));
7878
writer.WriteProperty(options, PropEnabled, value.Enabled, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue<bool>(o, v));
7979
writer.WriteEndObject();
8080
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ internal PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serialization.Jso
135135
/// The downsampling configuration to execute for the managed backing index after rollover.
136136
/// </para>
137137
/// </summary>
138-
public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; }
138+
public System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound>? Downsampling { get; set; }
139139

140140
/// <summary>
141141
/// <para>
@@ -256,7 +256,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDesc
256256
/// The downsampling configuration to execute for the managed backing index after rollover.
257257
/// </para>
258258
/// </summary>
259-
public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? value)
259+
public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDescriptor Downsampling(System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound>? value)
260260
{
261261
Instance.Downsampling = value;
262262
return this;
@@ -267,9 +267,26 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDesc
267267
/// The downsampling configuration to execute for the managed backing index after rollover.
268268
/// </para>
269269
/// </summary>
270-
public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDescriptor Downsampling(System.Action<Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor> action)
270+
public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDescriptor Downsampling(params Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound[] values)
271271
{
272-
Instance.Downsampling = Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor.Build(action);
272+
Instance.Downsampling = [.. values];
273+
return this;
274+
}
275+
276+
/// <summary>
277+
/// <para>
278+
/// The downsampling configuration to execute for the managed backing index after rollover.
279+
/// </para>
280+
/// </summary>
281+
public Elastic.Clients.Elasticsearch.IndexManagement.PutDataLifecycleRequestDescriptor Downsampling(params System.Action<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRoundDescriptor>[] actions)
282+
{
283+
var items = new System.Collections.Generic.List<Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRound>();
284+
foreach (var action in actions)
285+
{
286+
items.Add(Elastic.Clients.Elasticsearch.IndexManagement.DownsamplingRoundDescriptor.Build(action));
287+
}
288+
289+
Instance.Downsampling = items;
273290
return this;
274291
}
275292

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal PutAi21Response(Elastic.Clients.Elasticsearch.Serialization.JsonConstru
3939

4040
/// <summary>
4141
/// <para>
42-
/// Chunking configuration object
42+
/// The chunking configuration object.
43+
/// Applies only to the <c>sparse_embedding</c> and <c>text_embedding</c> task types.
44+
/// Not applicable to the <c>rerank</c>, <c>completion</c>, or <c>chat_completion</c> task types.
4345
/// </para>
4446
/// </summary>
4547
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal PutAlibabacloudResponse(Elastic.Clients.Elasticsearch.Serialization.Jso
3939

4040
/// <summary>
4141
/// <para>
42-
/// Chunking configuration object
42+
/// The chunking configuration object.
43+
/// Applies only to the <c>sparse_embedding</c> and <c>text_embedding</c> task types.
44+
/// Not applicable to the <c>rerank</c>, <c>completion</c>, or <c>chat_completion</c> task types.
4345
/// </para>
4446
/// </summary>
4547
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal PutAmazonbedrockResponse(Elastic.Clients.Elasticsearch.Serialization.Js
3939

4040
/// <summary>
4141
/// <para>
42-
/// Chunking configuration object
42+
/// The chunking configuration object.
43+
/// Applies only to the <c>sparse_embedding</c> and <c>text_embedding</c> task types.
44+
/// Not applicable to the <c>rerank</c>, <c>completion</c>, or <c>chat_completion</c> task types.
4345
/// </para>
4446
/// </summary>
4547
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal PutAmazonsagemakerResponse(Elastic.Clients.Elasticsearch.Serialization.
3939

4040
/// <summary>
4141
/// <para>
42-
/// Chunking configuration object
42+
/// The chunking configuration object.
43+
/// Applies only to the <c>sparse_embedding</c> and <c>text_embedding</c> task types.
44+
/// Not applicable to the <c>rerank</c>, <c>completion</c>, or <c>chat_completion</c> task types.
4345
/// </para>
4446
/// </summary>
4547
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal PutAnthropicResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo
3939

4040
/// <summary>
4141
/// <para>
42-
/// Chunking configuration object
42+
/// The chunking configuration object.
43+
/// Applies only to the <c>sparse_embedding</c> and <c>text_embedding</c> task types.
44+
/// Not applicable to the <c>rerank</c>, <c>completion</c>, or <c>chat_completion</c> task types.
4345
/// </para>
4446
/// </summary>
4547
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal PutAzureaistudioResponse(Elastic.Clients.Elasticsearch.Serialization.Js
3939

4040
/// <summary>
4141
/// <para>
42-
/// Chunking configuration object
42+
/// The chunking configuration object.
43+
/// Applies only to the <c>sparse_embedding</c> and <c>text_embedding</c> task types.
44+
/// Not applicable to the <c>rerank</c>, <c>completion</c>, or <c>chat_completion</c> task types.
4345
/// </para>
4446
/// </summary>
4547
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal PutAzureopenaiResponse(Elastic.Clients.Elasticsearch.Serialization.Json
3939

4040
/// <summary>
4141
/// <para>
42-
/// Chunking configuration object
42+
/// The chunking configuration object.
43+
/// Applies only to the <c>sparse_embedding</c> and <c>text_embedding</c> task types.
44+
/// Not applicable to the <c>rerank</c>, <c>completion</c>, or <c>chat_completion</c> task types.
4345
/// </para>
4446
/// </summary>
4547
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal PutCohereResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst
3939

4040
/// <summary>
4141
/// <para>
42-
/// Chunking configuration object
42+
/// The chunking configuration object.
43+
/// Applies only to the <c>sparse_embedding</c> and <c>text_embedding</c> task types.
44+
/// Not applicable to the <c>rerank</c>, <c>completion</c>, or <c>chat_completion</c> task types.
4345
/// </para>
4446
/// </summary>
4547
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }

0 commit comments

Comments
 (0)