Skip to content

Commit 20ac770

Browse files
authored
Regenerate client using the latest specification (#8493)
1 parent 4700030 commit 20ac770

32 files changed

+1071
-343
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ internal static class ApiUrlLookup
148148
internal static ApiUrls InferenceCompletion = new ApiUrls(new[] { "_inference/completion/{inference_id}" });
149149
internal static ApiUrls InferenceDelete = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
150150
internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
151+
internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
151152
internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
152153
internal static ApiUrls InferencePutAlibabacloud = new ApiUrls(new[] { "_inference/{task_type}/{alibabacloud_inference_id}" });
153154
internal static ApiUrls InferencePutAmazonbedrock = new ApiUrls(new[] { "_inference/{task_type}/{amazonbedrock_inference_id}" });

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

+401
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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;
25+
26+
internal sealed partial class InferenceResponseConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Inference.InferenceResponse>
27+
{
28+
public override Elastic.Clients.Elasticsearch.Inference.InferenceResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
29+
{
30+
return new Elastic.Clients.Elasticsearch.Inference.InferenceResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { Result = reader.ReadValue<Elastic.Clients.Elasticsearch.Inference.InferenceResult>(options, null) };
31+
}
32+
33+
public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.InferenceResponse value, System.Text.Json.JsonSerializerOptions options)
34+
{
35+
writer.WriteValue(options, value.Result, null);
36+
}
37+
}
38+
39+
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.InferenceResponseConverter))]
40+
public sealed partial class InferenceResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse
41+
{
42+
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
43+
public InferenceResponse()
44+
{
45+
}
46+
47+
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
48+
internal InferenceResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
49+
{
50+
_ = sentinel;
51+
}
52+
53+
public
54+
#if NET7_0_OR_GREATER
55+
required
56+
#endif
57+
Elastic.Clients.Elasticsearch.Inference.InferenceResult Result { get; set; }
58+
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs

-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ internal GetRepositoriesMeteringInfoRequest(Elastic.Clients.Elasticsearch.Serial
9393
/// <summary>
9494
/// <para>
9595
/// Comma-separated list of node IDs or names used to limit returned information.
96-
/// All the nodes selective options are explained <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes">here</a>.
9796
/// </para>
9897
/// </summary>
9998
public
@@ -138,7 +137,6 @@ public GetRepositoriesMeteringInfoRequestDescriptor()
138137
/// <summary>
139138
/// <para>
140139
/// Comma-separated list of node IDs or names used to limit returned information.
141-
/// All the nodes selective options are explained <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes">here</a>.
142140
/// </para>
143141
/// </summary>
144142
public Elastic.Clients.Elasticsearch.Nodes.GetRepositoriesMeteringInfoRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds value)

0 commit comments

Comments
 (0)