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 aaf4ebb

Browse files
[9.2] Regenerate client (#8756)
1 parent 40b7608 commit aaf4ebb

File tree

96 files changed

+5446
-135
lines changed

Some content is hidden

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

96 files changed

+5446
-135
lines changed

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

Lines changed: 2 additions & 0 deletions
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}" });
@@ -391,6 +392,7 @@ internal static class ApiUrlLookup
391392
internal static ApiUrls SecurityGetServiceAccounts = new ApiUrls(new[] { "_security/service/{namespace}/{service}", "_security/service/{namespace}", "_security/service" });
392393
internal static ApiUrls SecurityGetServiceCredentials = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential" });
393394
internal static ApiUrls SecurityGetSettings = new ApiUrls(new[] { "_security/settings" });
395+
internal static ApiUrls SecurityGetStats = new ApiUrls(new[] { "_security/stats" });
394396
internal static ApiUrls SecurityGetToken = new ApiUrls(new[] { "_security/oauth2/token" });
395397
internal static ApiUrls SecurityGetUser = new ApiUrls(new[] { "_security/user/{username}", "_security/user" });
396398
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)
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 によって変換されたページ (->オリジナル) /