Skip to content

Commit eeec4b7

Browse files
authored
[8.19] Regenerate client (#8636)
1 parent 697ce10 commit eeec4b7

File tree

114 files changed

+9712
-1115
lines changed

Some content is hidden

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

114 files changed

+9712
-1115
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,13 @@ internal static class ApiUrlLookup
152152
internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
153153
internal static ApiUrls InferencePutAlibabacloud = new ApiUrls(new[] { "_inference/{task_type}/{alibabacloud_inference_id}" });
154154
internal static ApiUrls InferencePutAmazonbedrock = new ApiUrls(new[] { "_inference/{task_type}/{amazonbedrock_inference_id}" });
155+
internal static ApiUrls InferencePutAmazonsagemaker = new ApiUrls(new[] { "_inference/{task_type}/{amazonsagemaker_inference_id}" });
155156
internal static ApiUrls InferencePutAnthropic = new ApiUrls(new[] { "_inference/{task_type}/{anthropic_inference_id}" });
156157
internal static ApiUrls InferencePutAzureaistudio = new ApiUrls(new[] { "_inference/{task_type}/{azureaistudio_inference_id}" });
157158
internal static ApiUrls InferencePutAzureopenai = new ApiUrls(new[] { "_inference/{task_type}/{azureopenai_inference_id}" });
158159
internal static ApiUrls InferencePutCohere = new ApiUrls(new[] { "_inference/{task_type}/{cohere_inference_id}" });
160+
internal static ApiUrls InferencePutCustom = new ApiUrls(new[] { "_inference/{task_type}/{custom_inference_id}" });
161+
internal static ApiUrls InferencePutDeepseek = new ApiUrls(new[] { "_inference/{task_type}/{deepseek_inference_id}" });
159162
internal static ApiUrls InferencePutElasticsearch = new ApiUrls(new[] { "_inference/{task_type}/{elasticsearch_inference_id}" });
160163
internal static ApiUrls InferencePutElser = new ApiUrls(new[] { "_inference/{task_type}/{elser_inference_id}" });
161164
internal static ApiUrls InferencePutGoogleaistudio = new ApiUrls(new[] { "_inference/{task_type}/{googleaistudio_inference_id}" });

src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : Elastic.Transpo
131131
/// </para>
132132
/// </summary>
133133
public long? MaxConcurrentShardRequests { get => Q<long?>("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); }
134-
public string? MinCompatibleShardNode { get => Q<string?>("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); }
135134

136135
/// <summary>
137136
/// <para>
@@ -710,7 +709,6 @@ internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js
710709
/// </para>
711710
/// </summary>
712711
public long? MaxConcurrentShardRequests { get => Q<long?>("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); }
713-
public string? MinCompatibleShardNode { get => Q<string?>("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); }
714712

715713
/// <summary>
716714
/// <para>
@@ -1226,12 +1224,6 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip
12261224
return this;
12271225
}
12281226

1229-
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? value)
1230-
{
1231-
Instance.MinCompatibleShardNode = value;
1232-
return this;
1233-
}
1234-
12351227
/// <summary>
12361228
/// <para>
12371229
/// Specify the node or shard the operation should be performed on (default: random)
@@ -2611,12 +2603,6 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip
26112603
return this;
26122604
}
26132605

2614-
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor<TDocument> MinCompatibleShardNode(string? value)
2615-
{
2616-
Instance.MinCompatibleShardNode = value;
2617-
return this;
2618-
}
2619-
26202606
/// <summary>
26212607
/// <para>
26222608
/// Specify the node or shard the operation should be performed on (default: random)

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

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ internal sealed partial class ClusterStatsResponseConverter : System.Text.Json.S
3131
private static readonly System.Text.Json.JsonEncodedText PropIndices = System.Text.Json.JsonEncodedText.Encode("indices");
3232
private static readonly System.Text.Json.JsonEncodedText PropNodes = System.Text.Json.JsonEncodedText.Encode("nodes");
3333
private static readonly System.Text.Json.JsonEncodedText PropNodeStats = System.Text.Json.JsonEncodedText.Encode("_nodes");
34+
private static readonly System.Text.Json.JsonEncodedText PropRepositories = System.Text.Json.JsonEncodedText.Encode("repositories");
35+
private static readonly System.Text.Json.JsonEncodedText PropSnapshots = System.Text.Json.JsonEncodedText.Encode("snapshots");
3436
private static readonly System.Text.Json.JsonEncodedText PropStatus = System.Text.Json.JsonEncodedText.Encode("status");
3537
private static readonly System.Text.Json.JsonEncodedText PropTimestamp = System.Text.Json.JsonEncodedText.Encode("timestamp");
3638

@@ -43,7 +45,9 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
4345
LocalJsonValue<Elastic.Clients.Elasticsearch.Cluster.ClusterIndices> propIndices = default;
4446
LocalJsonValue<Elastic.Clients.Elasticsearch.Cluster.ClusterNodes> propNodes = default;
4547
LocalJsonValue<Elastic.Clients.Elasticsearch.NodeStatistics?> propNodeStats = default;
46-
LocalJsonValue<Elastic.Clients.Elasticsearch.HealthStatus> propStatus = default;
48+
LocalJsonValue<System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyDictionary<string, long>>> propRepositories = default;
49+
LocalJsonValue<Elastic.Clients.Elasticsearch.Cluster.ClusterSnapshotStats> propSnapshots = default;
50+
LocalJsonValue<Elastic.Clients.Elasticsearch.HealthStatus?> propStatus = default;
4751
LocalJsonValue<long> propTimestamp = default;
4852
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
4953
{
@@ -77,7 +81,17 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
7781
continue;
7882
}
7983

80-
if (propStatus.TryReadProperty(ref reader, options, PropStatus, null))
84+
if (propRepositories.TryReadProperty(ref reader, options, PropRepositories, static System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyDictionary<string, long>> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue<string, System.Collections.Generic.IReadOnlyDictionary<string, long>>(o, null, static System.Collections.Generic.IReadOnlyDictionary<string, long> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue<string, long>(o, null, null)!)!))
85+
{
86+
continue;
87+
}
88+
89+
if (propSnapshots.TryReadProperty(ref reader, options, PropSnapshots, null))
90+
{
91+
continue;
92+
}
93+
94+
if (propStatus.TryReadProperty(ref reader, options, PropStatus, static Elastic.Clients.Elasticsearch.HealthStatus? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<Elastic.Clients.Elasticsearch.HealthStatus>(o)))
8195
{
8296
continue;
8397
}
@@ -105,6 +119,8 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
105119
Indices = propIndices.Value,
106120
Nodes = propNodes.Value,
107121
NodeStats = propNodeStats.Value,
122+
Repositories = propRepositories.Value,
123+
Snapshots = propSnapshots.Value,
108124
Status = propStatus.Value,
109125
Timestamp = propTimestamp.Value
110126
};
@@ -119,7 +135,9 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
119135
writer.WriteProperty(options, PropIndices, value.Indices, null, null);
120136
writer.WriteProperty(options, PropNodes, value.Nodes, null, null);
121137
writer.WriteProperty(options, PropNodeStats, value.NodeStats, null, null);
122-
writer.WriteProperty(options, PropStatus, value.Status, null, null);
138+
writer.WriteProperty(options, PropRepositories, value.Repositories, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyDictionary<string, long>> v) => w.WriteDictionaryValue<string, System.Collections.Generic.IReadOnlyDictionary<string, long>>(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary<string, long> v) => w.WriteDictionaryValue<string, long>(o, v, null, null)));
139+
writer.WriteProperty(options, PropSnapshots, value.Snapshots, null, null);
140+
writer.WriteProperty(options, PropStatus, value.Status, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.HealthStatus? v) => w.WriteNullableValue<Elastic.Clients.Elasticsearch.HealthStatus>(o, v));
123141
writer.WriteProperty(options, PropTimestamp, value.Timestamp, null, null);
124142
writer.WriteEndObject();
125143
}
@@ -203,14 +221,32 @@ internal ClusterStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo
203221

204222
/// <summary>
205223
/// <para>
206-
/// Health status of the cluster, based on the state of its primary and replica shards.
224+
/// Contains stats on repository feature usage exposed in cluster stats for telemetry.
225+
/// </para>
226+
/// </summary>
227+
public
228+
#if NET7_0_OR_GREATER
229+
required
230+
#endif
231+
System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyDictionary<string, long>> Repositories { get; set; }
232+
233+
/// <summary>
234+
/// <para>
235+
/// Contains stats cluster snapshots.
207236
/// </para>
208237
/// </summary>
209238
public
210239
#if NET7_0_OR_GREATER
211240
required
212241
#endif
213-
Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; }
242+
Elastic.Clients.Elasticsearch.Cluster.ClusterSnapshotStats Snapshots { get; set; }
243+
244+
/// <summary>
245+
/// <para>
246+
/// Health status of the cluster, based on the state of its primary and replica shards.
247+
/// </para>
248+
/// </summary>
249+
public Elastic.Clients.Elasticsearch.HealthStatus? Status { get; set; }
214250

215251
/// <summary>
216252
/// <para>

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ public sealed partial class GetComponentTemplateRequestParameters : Elastic.Tran
5454
/// </para>
5555
/// </summary>
5656
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Duration?>("master_timeout"); set => Q("master_timeout", value); }
57+
58+
/// <summary>
59+
/// <para>
60+
/// Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
61+
/// </para>
62+
/// </summary>
63+
public System.Collections.Generic.ICollection<string>? SettingsFilter { get => Q<System.Collections.Generic.ICollection<string>?>("settings_filter"); set => Q("settings_filter", value); }
5764
}
5865

5966
internal sealed partial class GetComponentTemplateRequestConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequest>
@@ -158,6 +165,13 @@ internal GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization
158165
/// </para>
159166
/// </summary>
160167
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Duration?>("master_timeout"); set => Q("master_timeout", value); }
168+
169+
/// <summary>
170+
/// <para>
171+
/// Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
172+
/// </para>
173+
/// </summary>
174+
public System.Collections.Generic.ICollection<string>? SettingsFilter { get => Q<System.Collections.Generic.ICollection<string>?>("settings_filter"); set => Q("settings_filter", value); }
161175
}
162176

163177
/// <summary>
@@ -247,6 +261,28 @@ public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescript
247261
return this;
248262
}
249263

264+
/// <summary>
265+
/// <para>
266+
/// Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
267+
/// </para>
268+
/// </summary>
269+
public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescriptor SettingsFilter(System.Collections.Generic.ICollection<string>? value)
270+
{
271+
Instance.SettingsFilter = value;
272+
return this;
273+
}
274+
275+
/// <summary>
276+
/// <para>
277+
/// Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
278+
/// </para>
279+
/// </summary>
280+
public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescriptor SettingsFilter(params string[] values)
281+
{
282+
Instance.SettingsFilter = [.. values];
283+
return this;
284+
}
285+
250286
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
251287
internal static Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequest Build(System.Action<Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescriptor>? action)
252288
{

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ namespace Elastic.Clients.Elasticsearch.Cluster;
2525

2626
public sealed partial class PutComponentTemplateRequestParameters : Elastic.Transport.RequestParameters
2727
{
28+
/// <summary>
29+
/// <para>
30+
/// User defined reason for create the component template.
31+
/// </para>
32+
/// </summary>
33+
public string? Cause { get => Q<string?>("cause"); set => Q("cause", value); }
34+
2835
/// <summary>
2936
/// <para>
3037
/// If <c>true</c>, this request cannot replace or update existing component templates.
@@ -185,6 +192,13 @@ internal PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization
185192
#endif
186193
Elastic.Clients.Elasticsearch.Name Name { get => P<Elastic.Clients.Elasticsearch.Name>("name"); set => PR("name", value); }
187194

195+
/// <summary>
196+
/// <para>
197+
/// User defined reason for create the component template.
198+
/// </para>
199+
/// </summary>
200+
public string? Cause { get => Q<string?>("cause"); set => Q("cause", value); }
201+
188202
/// <summary>
189203
/// <para>
190204
/// If <c>true</c>, this request cannot replace or update existing component templates.
@@ -310,6 +324,17 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
310324
return this;
311325
}
312326

327+
/// <summary>
328+
/// <para>
329+
/// User defined reason for create the component template.
330+
/// </para>
331+
/// </summary>
332+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Cause(string? value)
333+
{
334+
Instance.Cause = value;
335+
return this;
336+
}
337+
313338
/// <summary>
314339
/// <para>
315340
/// If <c>true</c>, this request cannot replace or update existing component templates.
@@ -573,6 +598,17 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
573598
return this;
574599
}
575600

601+
/// <summary>
602+
/// <para>
603+
/// User defined reason for create the component template.
604+
/// </para>
605+
/// </summary>
606+
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Cause(string? value)
607+
{
608+
Instance.Cause = value;
609+
return this;
610+
}
611+
576612
/// <summary>
577613
/// <para>
578614
/// If <c>true</c>, this request cannot replace or update existing component templates.

0 commit comments

Comments
 (0)