Skip to content

Commit 2c879b9

Browse files
authored
[9.2] Regenerate client (#8814)
1 parent 2d44574 commit 2c879b9

File tree

46 files changed

+832
-617
lines changed

Some content is hidden

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

46 files changed

+832
-617
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ internal GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization
9999

100100
/// <summary>
101101
/// <para>
102-
/// Comma-separated list of component template names used to limit the request.
103-
/// Wildcard (<c>*</c>) expressions are supported.
102+
/// Name of component template to retrieve. Wildcard (<c>*</c>) expressions are supported.
104103
/// </para>
105104
/// </summary>
106105
public Elastic.Clients.Elasticsearch.Name? Name { get => P<Elastic.Clients.Elasticsearch.Name?>("name"); set => PO("name", value); }
@@ -177,8 +176,7 @@ public GetComponentTemplateRequestDescriptor()
177176

178177
/// <summary>
179178
/// <para>
180-
/// Comma-separated list of component template names used to limit the request.
181-
/// Wildcard (<c>*</c>) expressions are supported.
179+
/// Name of component template to retrieve. Wildcard (<c>*</c>) expressions are supported.
182180
/// </para>
183181
/// </summary>
184182
public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? value)

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs

Lines changed: 99 additions & 49 deletions
Large diffs are not rendered by default.

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.Converters.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public override Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateReques
3535
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
3636
LocalJsonValue<bool?> propDeprecated = default;
3737
LocalJsonValue<System.Collections.Generic.IDictionary<string, object>?> propMeta = default;
38-
LocalJsonValue<Elastic.Clients.Elasticsearch.IndexManagement.IndexState> propTemplate = default;
38+
LocalJsonValue<Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMapping> propTemplate = default;
3939
LocalJsonValue<long?> propVersion = default;
4040
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
4141
{

src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : ba
9090
}
9191

9292
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
93-
public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name name, Elastic.Clients.Elasticsearch.IndexManagement.IndexState template) : base(r => r.Required("name", name))
93+
public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name name, Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMapping template) : base(r => r.Required("name", name))
9494
{
9595
Template = template;
9696
}
@@ -169,7 +169,7 @@ internal PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization
169169
/// The template to be applied which includes mappings, settings, or aliases configuration.
170170
/// </para>
171171
/// </summary>
172-
public required Elastic.Clients.Elasticsearch.IndexManagement.IndexState Template { get; set; }
172+
public required Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMapping Template { get; set; }
173173

174174
/// <summary>
175175
/// <para>
@@ -354,7 +354,7 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
354354
/// The template to be applied which includes mappings, settings, or aliases configuration.
355355
/// </para>
356356
/// </summary>
357-
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexState value)
357+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMapping value)
358358
{
359359
Instance.Template = value;
360360
return this;
@@ -367,7 +367,7 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
367367
/// </summary>
368368
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Template()
369369
{
370-
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexStateDescriptor.Build(null);
370+
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMappingDescriptor.Build(null);
371371
return this;
372372
}
373373

@@ -376,9 +376,9 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
376376
/// The template to be applied which includes mappings, settings, or aliases configuration.
377377
/// </para>
378378
/// </summary>
379-
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Template(System.Action<Elastic.Clients.Elasticsearch.IndexManagement.IndexStateDescriptor>? action)
379+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Template(System.Action<Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMappingDescriptor>? action)
380380
{
381-
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexStateDescriptor.Build(action);
381+
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMappingDescriptor.Build(action);
382382
return this;
383383
}
384384

@@ -387,9 +387,9 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
387387
/// The template to be applied which includes mappings, settings, or aliases configuration.
388388
/// </para>
389389
/// </summary>
390-
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Template<T>(System.Action<Elastic.Clients.Elasticsearch.IndexManagement.IndexStateDescriptor<T>>? action)
390+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Template<T>(System.Action<Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMappingDescriptor<T>>? action)
391391
{
392-
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexStateDescriptor<T>.Build(action);
392+
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMappingDescriptor<T>.Build(action);
393393
return this;
394394
}
395395

@@ -635,7 +635,7 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
635635
/// The template to be applied which includes mappings, settings, or aliases configuration.
636636
/// </para>
637637
/// </summary>
638-
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexState value)
638+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMapping value)
639639
{
640640
Instance.Template = value;
641641
return this;
@@ -648,7 +648,7 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
648648
/// </summary>
649649
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Template()
650650
{
651-
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexStateDescriptor<TDocument>.Build(null);
651+
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMappingDescriptor<TDocument>.Build(null);
652652
return this;
653653
}
654654

@@ -657,9 +657,9 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
657657
/// The template to be applied which includes mappings, settings, or aliases configuration.
658658
/// </para>
659659
/// </summary>
660-
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Template(System.Action<Elastic.Clients.Elasticsearch.IndexManagement.IndexStateDescriptor<TDocument>>? action)
660+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Template(System.Action<Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMappingDescriptor<TDocument>>? action)
661661
{
662-
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexStateDescriptor<TDocument>.Build(action);
662+
Instance.Template = Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateMappingDescriptor<TDocument>.Build(action);
663663
return this;
664664
}
665665

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public sealed partial class ForcemergeRequestParameters : Elastic.Transport.Requ
5656

5757
/// <summary>
5858
/// <para>
59-
/// The number of segments the index should be merged into (defayult: dynamic)
59+
/// The number of segments the index should be merged into (default: dynamic)
6060
/// </para>
6161
/// </summary>
6262
public long? MaxNumSegments { get => Q<long?>("max_num_segments"); set => Q("max_num_segments", value); }
@@ -226,7 +226,7 @@ internal ForcemergeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
226226

227227
/// <summary>
228228
/// <para>
229-
/// The number of segments the index should be merged into (defayult: dynamic)
229+
/// The number of segments the index should be merged into (default: dynamic)
230230
/// </para>
231231
/// </summary>
232232
public long? MaxNumSegments { get => Q<long?>("max_num_segments"); set => Q("max_num_segments", value); }
@@ -425,7 +425,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor
425425

426426
/// <summary>
427427
/// <para>
428-
/// The number of segments the index should be merged into (defayult: dynamic)
428+
/// The number of segments the index should be merged into (default: dynamic)
429429
/// </para>
430430
/// </summary>
431431
public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor MaxNumSegments(long? value)
@@ -696,7 +696,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor
696696

697697
/// <summary>
698698
/// <para>
699-
/// The number of segments the index should be merged into (defayult: dynamic)
699+
/// The number of segments the index should be merged into (default: dynamic)
700700
/// </para>
701701
/// </summary>
702702
public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor<TDocument> MaxNumSegments(long? value)

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

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

189189
/// <summary>
190190
/// <para>
191-
/// Name of the index template to create.
191+
/// Array of wildcard (<c>*</c>) expressions used to match the names of data streams and indices during creation.
192192
/// </para>
193193
/// </summary>
194194
public Elastic.Clients.Elasticsearch.Indices? IndexPatterns { get; set; }
@@ -457,7 +457,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDesc
457457

458458
/// <summary>
459459
/// <para>
460-
/// Name of the index template to create.
460+
/// Array of wildcard (<c>*</c>) expressions used to match the names of data streams and indices during creation.
461461
/// </para>
462462
/// </summary>
463463
public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDescriptor IndexPatterns(Elastic.Clients.Elasticsearch.Indices? value)
@@ -874,7 +874,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDesc
874874

875875
/// <summary>
876876
/// <para>
877-
/// Name of the index template to create.
877+
/// Array of wildcard (<c>*</c>) expressions used to match the names of data streams and indices during creation.
878878
/// </para>
879879
/// </summary>
880880
public Elastic.Clients.Elasticsearch.IndexManagement.PutIndexTemplateRequestDescriptor<TDocument> IndexPatterns(Elastic.Clients.Elasticsearch.Indices? value)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public sealed partial class ChatCompletionUnifiedRequestParameters : Elastic.Tra
3535

3636
/// <summary>
3737
/// <para>
38-
/// Perform chat completion inference.
38+
/// Perform chat completion inference on the service.
3939
/// </para>
4040
/// <para>
4141
/// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation.
@@ -99,7 +99,7 @@ internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serializatio
9999

100100
/// <summary>
101101
/// <para>
102-
/// Perform chat completion inference.
102+
/// Perform chat completion inference on the service.
103103
/// </para>
104104
/// <para>
105105
/// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation.

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ public sealed partial class CompletionRequestParameters : Elastic.Transport.Requ
3737
/// <para>
3838
/// Perform completion inference on the service.
3939
/// </para>
40+
/// <para>
41+
/// Get responses for completion tasks.
42+
/// This API works only with the completion task type.
43+
/// </para>
44+
/// <para>
45+
/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.
46+
/// </para>
47+
/// <para>
48+
/// This API requires the <c>monitor_inference</c> cluster privilege (the built-in <c>inference_admin</c> and <c>inference_user</c> roles grant this privilege).
49+
/// </para>
4050
/// </summary>
4151
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.CompletionRequestConverter))]
4252
public sealed partial class CompletionRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest<Elastic.Clients.Elasticsearch.Inference.CompletionRequestParameters>
@@ -105,6 +115,16 @@ internal CompletionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
105115
/// <para>
106116
/// Perform completion inference on the service.
107117
/// </para>
118+
/// <para>
119+
/// Get responses for completion tasks.
120+
/// This API works only with the completion task type.
121+
/// </para>
122+
/// <para>
123+
/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.
124+
/// </para>
125+
/// <para>
126+
/// This API requires the <c>monitor_inference</c> cluster privilege (the built-in <c>inference_admin</c> and <c>inference_user</c> roles grant this privilege).
127+
/// </para>
108128
/// </summary>
109129
public readonly partial struct CompletionRequestDescriptor
110130
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public sealed partial class PutInferenceRequestParameters : Elastic.Transport.Re
143143
/// </item>
144144
/// <item>
145145
/// <para>
146-
/// Watsonx inference integration (<c>text_embedding</c>)
146+
/// Watsonx (<c>chat_completion</c>, <c>completion</c>, <c>rerank</c>, <c>text_embedding</c>)
147147
/// </para>
148148
/// </item>
149149
/// </list>
@@ -326,7 +326,7 @@ internal PutInferenceRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon
326326
/// </item>
327327
/// <item>
328328
/// <para>
329-
/// Watsonx inference integration (<c>text_embedding</c>)
329+
/// Watsonx (<c>chat_completion</c>, <c>completion</c>, <c>rerank</c>, <c>text_embedding</c>)
330330
/// </para>
331331
/// </item>
332332
/// </list>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ internal PutWatsonxRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
101101
/// <para>
102102
/// The chunking configuration object.
103103
/// Applies only to the <c>text_embedding</c> task type.
104-
/// Not applicable to the <c>completion</c> or <c>chat_completion</c> task types.
104+
/// Not applicable to the <c>rerank</c>, <c>completion</c> or <c>chat_completion</c> task types.
105105
/// </para>
106106
/// </summary>
107107
public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; }
@@ -194,7 +194,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor Timeo
194194
/// <para>
195195
/// The chunking configuration object.
196196
/// Applies only to the <c>text_embedding</c> task type.
197-
/// Not applicable to the <c>completion</c> or <c>chat_completion</c> task types.
197+
/// Not applicable to the <c>rerank</c>, <c>completion</c> or <c>chat_completion</c> task types.
198198
/// </para>
199199
/// </summary>
200200
public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? value)
@@ -207,7 +207,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor Chunk
207207
/// <para>
208208
/// The chunking configuration object.
209209
/// Applies only to the <c>text_embedding</c> task type.
210-
/// Not applicable to the <c>completion</c> or <c>chat_completion</c> task types.
210+
/// Not applicable to the <c>rerank</c>, <c>completion</c> or <c>chat_completion</c> task types.
211211
/// </para>
212212
/// </summary>
213213
public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor ChunkingSettings()
@@ -220,7 +220,7 @@ public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor Chunk
220220
/// <para>
221221
/// The chunking configuration object.
222222
/// Applies only to the <c>text_embedding</c> task type.
223-
/// Not applicable to the <c>completion</c> or <c>chat_completion</c> task types.
223+
/// Not applicable to the <c>rerank</c>, <c>completion</c> or <c>chat_completion</c> task types.
224224
/// </para>
225225
/// </summary>
226226
public Elastic.Clients.Elasticsearch.Inference.PutWatsonxRequestDescriptor ChunkingSettings(System.Action<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor>? action)

0 commit comments

Comments
 (0)