Skip to content

Commit cfde688

Browse files
Regenerate client (#8519) (#8521)
Co-authored-by: Florian Bernd <[email protected]>
1 parent e8c894b commit cfde688

File tree

127 files changed

+7430
-954
lines changed

Some content is hidden

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

127 files changed

+7430
-954
lines changed

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

+20
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ namespace Elastic.Clients.Elasticsearch.Cluster;
2525

2626
internal sealed partial class ClusterStatsResponseConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse>
2727
{
28+
private static readonly System.Text.Json.JsonEncodedText PropCcs = System.Text.Json.JsonEncodedText.Encode("ccs");
2829
private static readonly System.Text.Json.JsonEncodedText PropClusterName = System.Text.Json.JsonEncodedText.Encode("cluster_name");
2930
private static readonly System.Text.Json.JsonEncodedText PropClusterUuid = System.Text.Json.JsonEncodedText.Encode("cluster_uuid");
3031
private static readonly System.Text.Json.JsonEncodedText PropIndices = System.Text.Json.JsonEncodedText.Encode("indices");
@@ -36,6 +37,7 @@ internal sealed partial class ClusterStatsResponseConverter : System.Text.Json.S
3637
public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
3738
{
3839
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
40+
LocalJsonValue<Elastic.Clients.Elasticsearch.Cluster.CCSStats> propCcs = default;
3941
LocalJsonValue<string> propClusterName = default;
4042
LocalJsonValue<string> propClusterUuid = default;
4143
LocalJsonValue<Elastic.Clients.Elasticsearch.Cluster.ClusterIndices> propIndices = default;
@@ -45,6 +47,11 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
4547
LocalJsonValue<long> propTimestamp = default;
4648
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
4749
{
50+
if (propCcs.TryReadProperty(ref reader, options, PropCcs, null))
51+
{
52+
continue;
53+
}
54+
4855
if (propClusterName.TryReadProperty(ref reader, options, PropClusterName, null))
4956
{
5057
continue;
@@ -92,6 +99,7 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
9299
reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
93100
return new Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
94101
{
102+
Ccs = propCcs.Value,
95103
ClusterName = propClusterName.Value,
96104
ClusterUuid = propClusterUuid.Value,
97105
Indices = propIndices.Value,
@@ -105,6 +113,7 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
105113
public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse value, System.Text.Json.JsonSerializerOptions options)
106114
{
107115
writer.WriteStartObject();
116+
writer.WriteProperty(options, PropCcs, value.Ccs, null, null);
108117
writer.WriteProperty(options, PropClusterName, value.ClusterName, null, null);
109118
writer.WriteProperty(options, PropClusterUuid, value.ClusterUuid, null, null);
110119
writer.WriteProperty(options, PropIndices, value.Indices, null, null);
@@ -130,6 +139,17 @@ internal ClusterStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo
130139
_ = sentinel;
131140
}
132141

142+
/// <summary>
143+
/// <para>
144+
/// Cross-cluster stats
145+
/// </para>
146+
/// </summary>
147+
public
148+
#if NET7_0_OR_GREATER
149+
required
150+
#endif
151+
Elastic.Clients.Elasticsearch.Cluster.CCSStats Ccs { get; set; }
152+
133153
/// <summary>
134154
/// <para>
135155
/// Name of the cluster, based on the cluster name setting.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ public CreateRequest(TDocument document, Elastic.Clients.Elasticsearch.IndexName
283283
}
284284

285285
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
286-
public CreateRequest(TDocument document, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", typeof(TDocument)).Required("id", id))
286+
public CreateRequest(TDocument document, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("index", (Elastic.Clients.Elasticsearch.IndexName)typeof(TDocument)).Required("id", id))
287287
{
288288
Document = document;
289289
}
290290

291291
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
292-
public CreateRequest(TDocument document) : base(r => r.Required("index", typeof(TDocument)).Required("id", Elastic.Clients.Elasticsearch.Id.From(document)))
292+
public CreateRequest(TDocument document) : base(r => r.Required("index", (Elastic.Clients.Elasticsearch.IndexName)typeof(TDocument)).Required("id", Elastic.Clients.Elasticsearch.Id.From(document)))
293293
{
294294
Document = document;
295295
}

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

+114
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,45 @@ internal CreateIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons
176176
/// <summary>
177177
/// <para>
178178
/// Name of the index you wish to create.
179+
/// Index names must meet the following criteria:
179180
/// </para>
181+
/// <list type="bullet">
182+
/// <item>
183+
/// <para>
184+
/// Lowercase only
185+
/// </para>
186+
/// </item>
187+
/// <item>
188+
/// <para>
189+
/// Cannot include <c>\</c>, <c>/</c>, <c>*</c>, <c>?</c>, <c>"</c>, <c>&lt;</c>, <c>></c>, <c>|</c>, <c> </c> (space character), <c>,</c>, or <c>#</c>
190+
/// </para>
191+
/// </item>
192+
/// <item>
193+
/// <para>
194+
/// Indices prior to 7.0 could contain a colon (<c>:</c>), but that has been deprecated and will not be supported in later versions
195+
/// </para>
196+
/// </item>
197+
/// <item>
198+
/// <para>
199+
/// Cannot start with <c>-</c>, <c>_</c>, or <c>+</c>
200+
/// </para>
201+
/// </item>
202+
/// <item>
203+
/// <para>
204+
/// Cannot be <c>.</c> or <c>..</c>
205+
/// </para>
206+
/// </item>
207+
/// <item>
208+
/// <para>
209+
/// Cannot be longer than 255 bytes (note thtat it is bytes, so multi-byte characters will reach the limit faster)
210+
/// </para>
211+
/// </item>
212+
/// <item>
213+
/// <para>
214+
/// Names starting with <c>.</c> are deprecated, except for hidden indices and internal indices managed by plugins
215+
/// </para>
216+
/// </item>
217+
/// </list>
180218
/// </summary>
181219
public
182220
#if NET7_0_OR_GREATER
@@ -314,7 +352,45 @@ public CreateIndexRequestDescriptor()
314352
/// <summary>
315353
/// <para>
316354
/// Name of the index you wish to create.
355+
/// Index names must meet the following criteria:
356+
/// </para>
357+
/// <list type="bullet">
358+
/// <item>
359+
/// <para>
360+
/// Lowercase only
361+
/// </para>
362+
/// </item>
363+
/// <item>
364+
/// <para>
365+
/// Cannot include <c>\</c>, <c>/</c>, <c>*</c>, <c>?</c>, <c>"</c>, <c>&lt;</c>, <c>></c>, <c>|</c>, <c> </c> (space character), <c>,</c>, or <c>#</c>
366+
/// </para>
367+
/// </item>
368+
/// <item>
369+
/// <para>
370+
/// Indices prior to 7.0 could contain a colon (<c>:</c>), but that has been deprecated and will not be supported in later versions
371+
/// </para>
372+
/// </item>
373+
/// <item>
374+
/// <para>
375+
/// Cannot start with <c>-</c>, <c>_</c>, or <c>+</c>
376+
/// </para>
377+
/// </item>
378+
/// <item>
379+
/// <para>
380+
/// Cannot be <c>.</c> or <c>..</c>
381+
/// </para>
382+
/// </item>
383+
/// <item>
384+
/// <para>
385+
/// Cannot be longer than 255 bytes (note thtat it is bytes, so multi-byte characters will reach the limit faster)
317386
/// </para>
387+
/// </item>
388+
/// <item>
389+
/// <para>
390+
/// Names starting with <c>.</c> are deprecated, except for hidden indices and internal indices managed by plugins
391+
/// </para>
392+
/// </item>
393+
/// </list>
318394
/// </summary>
319395
public Elastic.Clients.Elasticsearch.IndexManagement.CreateIndexRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName value)
320396
{
@@ -731,7 +807,45 @@ public CreateIndexRequestDescriptor()
731807
/// <summary>
732808
/// <para>
733809
/// Name of the index you wish to create.
810+
/// Index names must meet the following criteria:
811+
/// </para>
812+
/// <list type="bullet">
813+
/// <item>
814+
/// <para>
815+
/// Lowercase only
816+
/// </para>
817+
/// </item>
818+
/// <item>
819+
/// <para>
820+
/// Cannot include <c>\</c>, <c>/</c>, <c>*</c>, <c>?</c>, <c>"</c>, <c>&lt;</c>, <c>></c>, <c>|</c>, <c> </c> (space character), <c>,</c>, or <c>#</c>
734821
/// </para>
822+
/// </item>
823+
/// <item>
824+
/// <para>
825+
/// Indices prior to 7.0 could contain a colon (<c>:</c>), but that has been deprecated and will not be supported in later versions
826+
/// </para>
827+
/// </item>
828+
/// <item>
829+
/// <para>
830+
/// Cannot start with <c>-</c>, <c>_</c>, or <c>+</c>
831+
/// </para>
832+
/// </item>
833+
/// <item>
834+
/// <para>
835+
/// Cannot be <c>.</c> or <c>..</c>
836+
/// </para>
837+
/// </item>
838+
/// <item>
839+
/// <para>
840+
/// Cannot be longer than 255 bytes (note thtat it is bytes, so multi-byte characters will reach the limit faster)
841+
/// </para>
842+
/// </item>
843+
/// <item>
844+
/// <para>
845+
/// Names starting with <c>.</c> are deprecated, except for hidden indices and internal indices managed by plugins
846+
/// </para>
847+
/// </item>
848+
/// </list>
735849
/// </summary>
736850
public Elastic.Clients.Elasticsearch.IndexManagement.CreateIndexRequestDescriptor<TDocument> Index(Elastic.Clients.Elasticsearch.IndexName value)
737851
{

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,13 @@ public IndexRequest(TDocument document, Elastic.Clients.Elasticsearch.IndexName
336336
}
337337

338338
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
339-
public IndexRequest(TDocument document, Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Required("index", typeof(TDocument)).Optional("id", id))
339+
public IndexRequest(TDocument document, Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Required("index", (Elastic.Clients.Elasticsearch.IndexName)typeof(TDocument)).Optional("id", id))
340340
{
341341
Document = document;
342342
}
343343

344344
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
345-
public IndexRequest(TDocument document) : base(r => r.Required("index", typeof(TDocument)).Optional("id", Elastic.Clients.Elasticsearch.Id.From(document)))
345+
public IndexRequest(TDocument document) : base(r => r.Required("index", (Elastic.Clients.Elasticsearch.IndexName)typeof(TDocument)).Optional("id", Elastic.Clients.Elasticsearch.Id.From(document)))
346346
{
347347
Document = document;
348348
}

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

+28
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
5050
/// <para>
5151
/// Perform chat completion inference
5252
/// </para>
53+
/// <para>
54+
/// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation.
55+
/// It only works with the <c>chat_completion</c> task type for <c>openai</c> and <c>elastic</c> inference services.
56+
/// </para>
57+
/// <para>
58+
/// 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.
59+
/// 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.
60+
/// </para>
61+
/// <para>
62+
/// NOTE: The <c>chat_completion</c> task type is only available within the _stream API and only supports streaming.
63+
/// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities.
64+
/// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support.
65+
/// If you use the <c>openai</c> service or the <c>elastic</c> service, use the Chat completion inference API.
66+
/// </para>
5367
/// </summary>
5468
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequestConverter))]
5569
public sealed partial class ChatCompletionUnifiedRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest<Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequestParameters>
@@ -112,6 +126,20 @@ internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serializatio
112126
/// <para>
113127
/// Perform chat completion inference
114128
/// </para>
129+
/// <para>
130+
/// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation.
131+
/// It only works with the <c>chat_completion</c> task type for <c>openai</c> and <c>elastic</c> inference services.
132+
/// </para>
133+
/// <para>
134+
/// 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.
135+
/// 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.
136+
/// </para>
137+
/// <para>
138+
/// NOTE: The <c>chat_completion</c> task type is only available within the _stream API and only supports streaming.
139+
/// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities.
140+
/// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support.
141+
/// If you use the <c>openai</c> service or the <c>elastic</c> service, use the Chat completion inference API.
142+
/// </para>
115143
/// </summary>
116144
public readonly partial struct ChatCompletionUnifiedRequestDescriptor
117145
{

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

-14
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
9999
/// <para>
100100
/// Create an inference endpoint to perform an inference task with the <c>alibabacloud-ai-search</c> service.
101101
/// </para>
102-
/// <para>
103-
/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
104-
/// After creating the endpoint, wait for the model deployment to complete before using it.
105-
/// To verify the deployment status, use the get trained model statistics API.
106-
/// Look for <c>"state": "fully_allocated"</c> in the response and ensure that the <c>"allocation_count"</c> matches the <c>"target_allocation_count"</c>.
107-
/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
108-
/// </para>
109102
/// </summary>
110103
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestConverter))]
111104
public sealed partial class PutAlibabacloudRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest<Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestParameters>
@@ -203,13 +196,6 @@ internal PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Serialization.Json
203196
/// <para>
204197
/// Create an inference endpoint to perform an inference task with the <c>alibabacloud-ai-search</c> service.
205198
/// </para>
206-
/// <para>
207-
/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
208-
/// After creating the endpoint, wait for the model deployment to complete before using it.
209-
/// To verify the deployment status, use the get trained model statistics API.
210-
/// Look for <c>"state": "fully_allocated"</c> in the response and ensure that the <c>"allocation_count"</c> matches the <c>"target_allocation_count"</c>.
211-
/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
212-
/// </para>
213199
/// </summary>
214200
public readonly partial struct PutAlibabacloudRequestDescriptor
215201
{

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

-14
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
103103
/// info
104104
/// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys.
105105
/// </para>
106-
/// <para>
107-
/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
108-
/// After creating the endpoint, wait for the model deployment to complete before using it.
109-
/// To verify the deployment status, use the get trained model statistics API.
110-
/// Look for <c>"state": "fully_allocated"</c> in the response and ensure that the <c>"allocation_count"</c> matches the <c>"target_allocation_count"</c>.
111-
/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
112-
/// </para>
113106
/// </summary>
114107
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestConverter))]
115108
public sealed partial class PutAmazonbedrockRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest<Elastic.Clients.Elasticsearch.Inference.PutAmazonbedrockRequestParameters>
@@ -211,13 +204,6 @@ internal PutAmazonbedrockRequest(Elastic.Clients.Elasticsearch.Serialization.Jso
211204
/// info
212205
/// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys.
213206
/// </para>
214-
/// <para>
215-
/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
216-
/// After creating the endpoint, wait for the model deployment to complete before using it.
217-
/// To verify the deployment status, use the get trained model statistics API.
218-
/// Look for <c>"state": "fully_allocated"</c> in the response and ensure that the <c>"allocation_count"</c> matches the <c>"target_allocation_count"</c>.
219-
/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
220-
/// </para>
221207
/// </summary>
222208
public readonly partial struct PutAmazonbedrockRequestDescriptor
223209
{

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

-14
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
9999
/// <para>
100100
/// Create an inference endpoint to perform an inference task with the <c>anthropic</c> service.
101101
/// </para>
102-
/// <para>
103-
/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
104-
/// After creating the endpoint, wait for the model deployment to complete before using it.
105-
/// To verify the deployment status, use the get trained model statistics API.
106-
/// Look for <c>"state": "fully_allocated"</c> in the response and ensure that the <c>"allocation_count"</c> matches the <c>"target_allocation_count"</c>.
107-
/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
108-
/// </para>
109102
/// </summary>
110103
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestConverter))]
111104
public sealed partial class PutAnthropicRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest<Elastic.Clients.Elasticsearch.Inference.PutAnthropicRequestParameters>
@@ -204,13 +197,6 @@ internal PutAnthropicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon
204197
/// <para>
205198
/// Create an inference endpoint to perform an inference task with the <c>anthropic</c> service.
206199
/// </para>
207-
/// <para>
208-
/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
209-
/// After creating the endpoint, wait for the model deployment to complete before using it.
210-
/// To verify the deployment status, use the get trained model statistics API.
211-
/// Look for <c>"state": "fully_allocated"</c> in the response and ensure that the <c>"allocation_count"</c> matches the <c>"target_allocation_count"</c>.
212-
/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
213-
/// </para>
214200
/// </summary>
215201
public readonly partial struct PutAnthropicRequestDescriptor
216202
{

0 commit comments

Comments
 (0)