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 fccb28c

Browse files
Regenerate client (#8755)
1 parent 52c3561 commit fccb28c

File tree

130 files changed

+6023
-622
lines changed

Some content is hidden

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

130 files changed

+6023
-622
lines changed

‎src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ internal static class ApiUrlLookup
168168
internal static ApiUrls InferencePutAzureaistudio = new ApiUrls(new[] { "_inference/{task_type}/{azureaistudio_inference_id}" });
169169
internal static ApiUrls InferencePutAzureopenai = new ApiUrls(new[] { "_inference/{task_type}/{azureopenai_inference_id}" });
170170
internal static ApiUrls InferencePutCohere = new ApiUrls(new[] { "_inference/{task_type}/{cohere_inference_id}" });
171+
internal static ApiUrls InferencePutContextualai = new ApiUrls(new[] { "_inference/{task_type}/{contextualai_inference_id}" });
171172
internal static ApiUrls InferencePutCustom = new ApiUrls(new[] { "_inference/{task_type}/{custom_inference_id}" });
172173
internal static ApiUrls InferencePutDeepseek = new ApiUrls(new[] { "_inference/{task_type}/{deepseek_inference_id}" });
173174
internal static ApiUrls InferencePutElasticsearch = new ApiUrls(new[] { "_inference/{task_type}/{elasticsearch_inference_id}" });
@@ -326,7 +327,6 @@ internal static class ApiUrlLookup
326327
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
327328
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" });
328329
internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" });
329-
internal static ApiUrls ProjectTags = new ApiUrls(new[] { "_project/tags" });
330330
internal static ApiUrls QueryRulesDeleteRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
331331
internal static ApiUrls QueryRulesDeleteRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
332332
internal static ApiUrls QueryRulesGetRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
@@ -391,6 +391,7 @@ internal static class ApiUrlLookup
391391
internal static ApiUrls SecurityGetServiceAccounts = new ApiUrls(new[] { "_security/service/{namespace}/{service}", "_security/service/{namespace}", "_security/service" });
392392
internal static ApiUrls SecurityGetServiceCredentials = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential" });
393393
internal static ApiUrls SecurityGetSettings = new ApiUrls(new[] { "_security/settings" });
394+
internal static ApiUrls SecurityGetStats = new ApiUrls(new[] { "_security/stats" });
394395
internal static ApiUrls SecurityGetToken = new ApiUrls(new[] { "_security/oauth2/token" });
395396
internal static ApiUrls SecurityGetUser = new ApiUrls(new[] { "_security/user/{username}", "_security/user" });
396397
internal static ApiUrls SecurityGetUserPrivileges = new ApiUrls(new[] { "_security/user/_privileges" });

‎src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public sealed partial class CountRequestParameters : Elastic.Transport.RequestPa
5252

5353
/// <summary>
5454
/// <para>
55-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
55+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
5656
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
5757
/// </para>
5858
/// </summary>
@@ -227,7 +227,7 @@ internal CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo
227227

228228
/// <summary>
229229
/// <para>
230-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
230+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
231231
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
232232
/// </para>
233233
/// </summary>
@@ -419,7 +419,7 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor AnalyzeWildcard(bool
419419

420420
/// <summary>
421421
/// <para>
422-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
422+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
423423
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
424424
/// </para>
425425
/// </summary>
@@ -751,7 +751,7 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor<TDocument> AnalyzeWi
751751

752752
/// <summary>
753753
/// <para>
754-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
754+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
755755
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
756756
/// </para>
757757
/// </summary>

‎src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public sealed partial class DeleteByQueryRequestParameters : Elastic.Transport.R
5959

6060
/// <summary>
6161
/// <para>
62-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
62+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
6363
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
6464
/// </para>
6565
/// </summary>
@@ -466,7 +466,7 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
466466

467467
/// <summary>
468468
/// <para>
469-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
469+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
470470
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
471471
/// </para>
472472
/// </summary>
@@ -915,7 +915,7 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Conflicts(El
915915

916916
/// <summary>
917917
/// <para>
918-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
918+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
919919
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
920920
/// </para>
921921
/// </summary>
@@ -1645,7 +1645,7 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> C
16451645

16461646
/// <summary>
16471647
/// <para>
1648-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
1648+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
16491649
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
16501650
/// </para>
16511651
/// </summary>

‎src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public sealed partial class ExplainRequestParameters : Elastic.Transport.Request
4343

4444
/// <summary>
4545
/// <para>
46-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
46+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
4747
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
4848
/// </para>
4949
/// </summary>
@@ -195,7 +195,7 @@ internal ExplainRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc
195195

196196
/// <summary>
197197
/// <para>
198-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
198+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
199199
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
200200
/// </para>
201201
/// </summary>
@@ -360,7 +360,7 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor AnalyzeWildcard(bo
360360

361361
/// <summary>
362362
/// <para>
363-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
363+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
364364
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
365365
/// </para>
366366
/// </summary>
@@ -721,7 +721,7 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor<TDocument> Analyze
721721

722722
/// <summary>
723723
/// <para>
724-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
724+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
725725
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
726726
/// </para>
727727
/// </summary>

‎src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public sealed partial class IndicesStatsRequestParameters : Elastic.Transport.Re
8585

8686
/// <summary>
8787
/// <para>
88-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
88+
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
8989
/// </para>
9090
/// </summary>
9191
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
@@ -221,7 +221,7 @@ internal IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon
221221

222222
/// <summary>
223223
/// <para>
224-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
224+
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
225225
/// </para>
226226
/// </summary>
227227
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
@@ -449,7 +449,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript
449449

450450
/// <summary>
451451
/// <para>
452-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
452+
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
453453
/// </para>
454454
/// </summary>
455455
public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? value)
@@ -736,7 +736,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript
736736

737737
/// <summary>
738738
/// <para>
739-
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
739+
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
740740
/// </para>
741741
/// </summary>
742742
public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor<TDocument> Level(Elastic.Clients.Elasticsearch.Level? value)

‎src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public sealed partial class ValidateQueryRequestParameters : Elastic.Transport.R
5757

5858
/// <summary>
5959
/// <para>
60-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
60+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
6161
/// </para>
6262
/// </summary>
6363
public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q<Elastic.Clients.Elasticsearch.QueryDsl.Operator?>("default_operator"); set => Q("default_operator", value); }
@@ -192,7 +192,7 @@ internal ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
192192

193193
/// <summary>
194194
/// <para>
195-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
195+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
196196
/// </para>
197197
/// </summary>
198198
public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q<Elastic.Clients.Elasticsearch.QueryDsl.Operator?>("default_operator"); set => Q("default_operator", value); }
@@ -347,7 +347,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip
347347

348348
/// <summary>
349349
/// <para>
350-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
350+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
351351
/// </para>
352352
/// </summary>
353353
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? value)
@@ -628,7 +628,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip
628628

629629
/// <summary>
630630
/// <para>
631-
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
631+
/// The default operator for query string query: <c>and</c> or <c>or</c>.
632632
/// </para>
633633
/// </summary>
634634
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor<TDocument> DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? 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.
@@ -107,7 +107,7 @@ internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serializatio
107107

108108
/// <summary>
109109
/// <para>
110-
/// Perform chat completion inference
110+
/// Perform chat completion inference on the service
111111
/// </para>
112112
/// <para>
113113
/// 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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ public sealed partial class CompletionRequestParameters : Elastic.Transport.Requ
3636
/// <summary>
3737
/// <para>
3838
/// Perform completion inference on the service
39+
/// Get responses for completion tasks.
40+
/// This API works only with the completion task type.
41+
/// </para>
42+
/// <para>
43+
/// 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.
44+
/// </para>
45+
/// <para>
46+
/// 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).
3947
/// </para>
4048
/// </summary>
4149
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.Json.CompletionRequestConverter))]
@@ -112,6 +120,14 @@ internal CompletionRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
112120
/// <summary>
113121
/// <para>
114122
/// Perform completion inference on the service
123+
/// Get responses for completion tasks.
124+
/// This API works only with the completion task type.
125+
/// </para>
126+
/// <para>
127+
/// 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.
128+
/// </para>
129+
/// <para>
130+
/// 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).
115131
/// </para>
116132
/// </summary>
117133
public readonly partial struct CompletionRequestDescriptor
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information.
4+
//
5+
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
6+
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
7+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
8+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
9+
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
10+
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
11+
// ------------------------------------------------
12+
//
13+
// This file is automatically generated.
14+
// Please do not edit these files manually.
15+
//
16+
// ------------------------------------------------
17+
18+
#nullable restore
19+
20+
using System;
21+
using System.Linq;
22+
using Elastic.Clients.Elasticsearch.Serialization;
23+
24+
namespace Elastic.Clients.Elasticsearch.Inference.Json;
25+
26+
public sealed partial class PutContextualaiRequestConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest>
27+
{
28+
private static readonly System.Text.Json.JsonEncodedText PropChunkingSettings = System.Text.Json.JsonEncodedText.Encode("chunking_settings");
29+
private static readonly System.Text.Json.JsonEncodedText PropService = System.Text.Json.JsonEncodedText.Encode("service");
30+
private static readonly System.Text.Json.JsonEncodedText PropServiceSettings = System.Text.Json.JsonEncodedText.Encode("service_settings");
31+
private static readonly System.Text.Json.JsonEncodedText PropTaskSettings = System.Text.Json.JsonEncodedText.Encode("task_settings");
32+
33+
public override Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
34+
{
35+
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
36+
LocalJsonValue<Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings?> propChunkingSettings = default;
37+
LocalJsonValue<Elastic.Clients.Elasticsearch.Inference.ContextualAIServiceSettings> propServiceSettings = default;
38+
LocalJsonValue<Elastic.Clients.Elasticsearch.Inference.ContextualAITaskSettings?> propTaskSettings = default;
39+
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
40+
{
41+
if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null))
42+
{
43+
continue;
44+
}
45+
46+
if (reader.ValueTextEquals(PropService))
47+
{
48+
reader.SafeSkip();
49+
continue;
50+
}
51+
52+
if (propServiceSettings.TryReadProperty(ref reader, options, PropServiceSettings, null))
53+
{
54+
continue;
55+
}
56+
57+
if (propTaskSettings.TryReadProperty(ref reader, options, PropTaskSettings, null))
58+
{
59+
continue;
60+
}
61+
62+
if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
63+
{
64+
reader.SafeSkip();
65+
continue;
66+
}
67+
68+
throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
69+
}
70+
71+
reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
72+
return new Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
73+
{
74+
ChunkingSettings = propChunkingSettings.Value,
75+
ServiceSettings = propServiceSettings.Value,
76+
TaskSettings = propTaskSettings.Value
77+
};
78+
}
79+
80+
public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.PutContextualaiRequest value, System.Text.Json.JsonSerializerOptions options)
81+
{
82+
writer.WriteStartObject();
83+
writer.WriteProperty(options, PropChunkingSettings, value.ChunkingSettings, null, null);
84+
writer.WriteProperty(options, PropService, value.Service, null, null);
85+
writer.WriteProperty(options, PropServiceSettings, value.ServiceSettings, null, null);
86+
writer.WriteProperty(options, PropTaskSettings, value.TaskSettings, null, null);
87+
writer.WriteEndObject();
88+
}
89+
}

0 commit comments

Comments
(0)

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