Skip to content

Commit 6bb513a

Browse files
authored
Regenerate client (#8772)
1 parent 084ed70 commit 6bb513a

27 files changed

+439
-160
lines changed

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

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,29 @@ public sealed partial class DownsampleRequestParameters : Elastic.Transport.Requ
3030
/// <summary>
3131
/// <para>
3232
/// Downsample an index.
33-
/// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (<c>min</c>, <c>max</c>, <c>sum</c>, <c>value_count</c> and <c>avg</c>) for each metric field grouped by a configured time interval.
33+
/// Downsamples a time series (TSDS) index and reduces its size by keeping the last value or by pre-aggregating metrics:
34+
/// </para>
35+
/// <list type="bullet">
36+
/// <item>
37+
/// <para>
38+
/// When running in <c>aggregate</c> mode, it pre-calculates and stores statistical summaries (<c>min</c>, <c>max</c>, <c>sum</c>, <c>value_count</c> and <c>avg</c>)
39+
/// for each metric field grouped by a configured time interval and their dimensions.
40+
/// </para>
41+
/// </item>
42+
/// <item>
43+
/// <para>
44+
/// When running in <c>last_value</c> mode, it keeps the last value for each metric in the configured interval and their dimensions.
45+
/// </para>
46+
/// </item>
47+
/// </list>
48+
/// <para>
3449
/// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.
3550
/// All documents within an hour interval are summarized and stored as a single document in the downsample index.
3651
/// </para>
3752
/// <para>
3853
/// NOTE: Only indices in a time series data stream are supported.
3954
/// Neither field nor document level security can be defined on the source index.
40-
/// The source index must be read only (<c>index.blocks.write: true</c>).
55+
/// The source index must be read-only (<c>index.blocks.write: true</c>).
4156
/// </para>
4257
/// </summary>
4358
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DownsampleRequestConverter))]
@@ -104,14 +119,29 @@ internal DownsampleRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
104119
/// <summary>
105120
/// <para>
106121
/// Downsample an index.
107-
/// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (<c>min</c>, <c>max</c>, <c>sum</c>, <c>value_count</c> and <c>avg</c>) for each metric field grouped by a configured time interval.
122+
/// Downsamples a time series (TSDS) index and reduces its size by keeping the last value or by pre-aggregating metrics:
123+
/// </para>
124+
/// <list type="bullet">
125+
/// <item>
126+
/// <para>
127+
/// When running in <c>aggregate</c> mode, it pre-calculates and stores statistical summaries (<c>min</c>, <c>max</c>, <c>sum</c>, <c>value_count</c> and <c>avg</c>)
128+
/// for each metric field grouped by a configured time interval and their dimensions.
129+
/// </para>
130+
/// </item>
131+
/// <item>
132+
/// <para>
133+
/// When running in <c>last_value</c> mode, it keeps the last value for each metric in the configured interval and their dimensions.
134+
/// </para>
135+
/// </item>
136+
/// </list>
137+
/// <para>
108138
/// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.
109139
/// All documents within an hour interval are summarized and stored as a single document in the downsample index.
110140
/// </para>
111141
/// <para>
112142
/// NOTE: Only indices in a time series data stream are supported.
113143
/// Neither field nor document level security can be defined on the source index.
114-
/// The source index must be read only (<c>index.blocks.write: true</c>).
144+
/// The source index must be read-only (<c>index.blocks.write: true</c>).
115145
/// </para>
116146
/// </summary>
117147
public readonly partial struct DownsampleRequestDescriptor
@@ -228,14 +258,29 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DownsampleRequestDescriptor
228258
/// <summary>
229259
/// <para>
230260
/// Downsample an index.
231-
/// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (<c>min</c>, <c>max</c>, <c>sum</c>, <c>value_count</c> and <c>avg</c>) for each metric field grouped by a configured time interval.
261+
/// Downsamples a time series (TSDS) index and reduces its size by keeping the last value or by pre-aggregating metrics:
262+
/// </para>
263+
/// <list type="bullet">
264+
/// <item>
265+
/// <para>
266+
/// When running in <c>aggregate</c> mode, it pre-calculates and stores statistical summaries (<c>min</c>, <c>max</c>, <c>sum</c>, <c>value_count</c> and <c>avg</c>)
267+
/// for each metric field grouped by a configured time interval and their dimensions.
268+
/// </para>
269+
/// </item>
270+
/// <item>
271+
/// <para>
272+
/// When running in <c>last_value</c> mode, it keeps the last value for each metric in the configured interval and their dimensions.
273+
/// </para>
274+
/// </item>
275+
/// </list>
276+
/// <para>
232277
/// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.
233278
/// All documents within an hour interval are summarized and stored as a single document in the downsample index.
234279
/// </para>
235280
/// <para>
236281
/// NOTE: Only indices in a time series data stream are supported.
237282
/// Neither field nor document level security can be defined on the source index.
238-
/// The source index must be read only (<c>index.blocks.write: true</c>).
283+
/// The source index must be read-only (<c>index.blocks.write: true</c>).
239284
/// </para>
240285
/// </summary>
241286
public readonly partial struct DownsampleRequestDescriptor<TDocument>

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/CompletionRequest.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ internal CompletionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
111111

112112
/// <summary>
113113
/// <para>
114-
/// Optional task settings
114+
/// Task settings for the individual inference request. These settings are specific to the &lt;task_type> you specified and override the task settings specified when initializing the service.
115115
/// </para>
116116
/// </summary>
117117
public object? TaskSettings { get; set; }
@@ -204,7 +204,7 @@ public Elastic.Clients.Elasticsearch.Inference.CompletionRequestDescriptor Input
204204

205205
/// <summary>
206206
/// <para>
207-
/// Optional task settings
207+
/// Task settings for the individual inference request. These settings are specific to the &lt;task_type> you specified and override the task settings specified when initializing the service.
208208
/// </para>
209209
/// </summary>
210210
public Elastic.Clients.Elasticsearch.Inference.CompletionRequestDescriptor TaskSettings(object? value)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed partial class DeleteInferenceRequestParameters : Elastic.Transport
2727
{
2828
/// <summary>
2929
/// <para>
30-
/// When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned.
30+
/// When true, checks the semantic_text fields and inference processors that reference the endpoint and returns them in a list, but does not delete the endpoint.
3131
/// </para>
3232
/// </summary>
3333
public bool? DryRun { get => Q<bool?>("dry_run"); set => Q("dry_run", value); }
@@ -96,7 +96,7 @@ internal DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.Json
9696

9797
/// <summary>
9898
/// <para>
99-
/// When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned.
99+
/// When true, checks the semantic_text fields and inference processors that reference the endpoint and returns them in a list, but does not delete the endpoint.
100100
/// </para>
101101
/// </summary>
102102
public bool? DryRun { get => Q<bool?>("dry_run"); set => Q("dry_run", value); }
@@ -167,7 +167,7 @@ public Elastic.Clients.Elasticsearch.Inference.DeleteInferenceRequestDescriptor
167167

168168
/// <summary>
169169
/// <para>
170-
/// When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned.
170+
/// When true, checks the semantic_text fields and inference processors that reference the endpoint and returns them in a list, but does not delete the endpoint.
171171
/// </para>
172172
/// </summary>
173173
public Elastic.Clients.Elasticsearch.Inference.DeleteInferenceRequestDescriptor DryRun(bool? value = true)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ internal PutAnthropicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon
120120

121121
/// <summary>
122122
/// <para>
123-
/// Settings used to install the inference model. These settings are specific to the <c>watsonxai</c> service.
123+
/// Settings used to install the inference model. These settings are specific to the <c>anthropic</c> service.
124124
/// </para>
125125
/// </summary>
126126
public
@@ -241,7 +241,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor Chu
241241

242242
/// <summary>
243243
/// <para>
244-
/// Settings used to install the inference model. These settings are specific to the <c>watsonxai</c> service.
244+
/// Settings used to install the inference model. These settings are specific to the <c>anthropic</c> service.
245245
/// </para>
246246
/// </summary>
247247
public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettings value)
@@ -252,7 +252,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor Ser
252252

253253
/// <summary>
254254
/// <para>
255-
/// Settings used to install the inference model. These settings are specific to the <c>watsonxai</c> service.
255+
/// Settings used to install the inference model. These settings are specific to the <c>anthropic</c> service.
256256
/// </para>
257257
/// </summary>
258258
public Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestDescriptor ServiceSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettingsDescriptor> action)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ internal PutAzureaistudioRequest(Elastic.Clients.Elasticsearch.Serialization.Jso
119119

120120
/// <summary>
121121
/// <para>
122-
/// Settings used to install the inference model. These settings are specific to the <c>openai</c> service.
122+
/// Settings used to install the inference model. These settings are specific to the <c>azureaistudio</c> service.
123123
/// </para>
124124
/// </summary>
125125
public
@@ -239,7 +239,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor
239239

240240
/// <summary>
241241
/// <para>
242-
/// Settings used to install the inference model. These settings are specific to the <c>openai</c> service.
242+
/// Settings used to install the inference model. These settings are specific to the <c>azureaistudio</c> service.
243243
/// </para>
244244
/// </summary>
245245
public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettings value)
@@ -250,7 +250,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor
250250

251251
/// <summary>
252252
/// <para>
253-
/// Settings used to install the inference model. These settings are specific to the <c>openai</c> service.
253+
/// Settings used to install the inference model. These settings are specific to the <c>azureaistudio</c> service.
254254
/// </para>
255255
/// </summary>
256256
public Elastic.Clients.Elasticsearch.Inference.PutAzureaistudioRequestDescriptor ServiceSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettingsDescriptor> action)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ internal SparseEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.Json
103103

104104
/// <summary>
105105
/// <para>
106-
/// Optional task settings
106+
/// Task settings for the individual inference request. These settings are specific to the &lt;task_type> you specified and override the task settings specified when initializing the service.
107107
/// </para>
108108
/// </summary>
109109
public object? TaskSettings { get; set; }
@@ -188,7 +188,7 @@ public Elastic.Clients.Elasticsearch.Inference.SparseEmbeddingRequestDescriptor
188188

189189
/// <summary>
190190
/// <para>
191-
/// Optional task settings
191+
/// Task settings for the individual inference request. These settings are specific to the &lt;task_type> you specified and override the task settings specified when initializing the service.
192192
/// </para>
193193
/// </summary>
194194
public Elastic.Clients.Elasticsearch.Inference.SparseEmbeddingRequestDescriptor TaskSettings(object? value)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ internal StreamCompletionRequest(Elastic.Clients.Elasticsearch.Serialization.Jso
114114

115115
/// <summary>
116116
/// <para>
117-
/// Optional task settings
117+
/// Task settings for the individual inference request. These settings are specific to the &lt;task_type> you specified and override the task settings specified when initializing the service.
118118
/// </para>
119119
/// </summary>
120120
public object? TaskSettings { get; set; }
@@ -213,7 +213,7 @@ public Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequestDescriptor
213213

214214
/// <summary>
215215
/// <para>
216-
/// Optional task settings
216+
/// Task settings for the individual inference request. These settings are specific to the &lt;task_type> you specified and override the task settings specified when initializing the service.
217217
/// </para>
218218
/// </summary>
219219
public Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequestDescriptor TaskSettings(object? value)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ internal TextEmbeddingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
138138

139139
/// <summary>
140140
/// <para>
141-
/// Optional task settings
141+
/// Task settings for the individual inference request. These settings are specific to the &lt;task_type> you specified and override the task settings specified when initializing the service.
142142
/// </para>
143143
/// </summary>
144144
public object? TaskSettings { get; set; }
@@ -262,7 +262,7 @@ public Elastic.Clients.Elasticsearch.Inference.TextEmbeddingRequestDescriptor In
262262

263263
/// <summary>
264264
/// <para>
265-
/// Optional task settings
265+
/// Task settings for the individual inference request. These settings are specific to the &lt;task_type> you specified and override the task settings specified when initializing the service.
266266
/// </para>
267267
/// </summary>
268268
public Elastic.Clients.Elasticsearch.Inference.TextEmbeddingRequestDescriptor TaskSettings(object? value)

0 commit comments

Comments
 (0)