Skip to content

Commit be0c6b7

Browse files
committed
Regenerate client
1 parent d5e72bf commit be0c6b7

File tree

99 files changed

+5703
-489
lines changed

Some content is hidden

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

99 files changed

+5703
-489
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" });
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)