Skip to content

Commit 9377970

Browse files
authored
[9.0] Regenerate client (#8638)
1 parent dbda108 commit 9377970

File tree

78 files changed

+3731
-1082
lines changed

Some content is hidden

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

78 files changed

+3731
-1082
lines changed

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.

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

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

2626
public sealed partial class CreateRequestParameters : Elastic.Transport.RequestParameters
2727
{
28-
/// <summary>
29-
/// <para>
30-
/// Only perform the operation if the document has this primary term.
31-
/// </para>
32-
/// </summary>
33-
public long? IfPrimaryTerm { get => Q<long?>("if_primary_term"); set => Q("if_primary_term", value); }
34-
35-
/// <summary>
36-
/// <para>
37-
/// Only perform the operation if the document has this sequence number.
38-
/// </para>
39-
/// </summary>
40-
public long? IfSeqNo { get => Q<long?>("if_seq_no"); set => Q("if_seq_no", value); }
41-
4228
/// <summary>
4329
/// <para>
4430
/// True or false if to include the document source in the error message in case of parsing errors.
4531
/// </para>
4632
/// </summary>
4733
public bool? IncludeSourceOnError { get => Q<bool?>("include_source_on_error"); set => Q("include_source_on_error", value); }
4834

49-
/// <summary>
50-
/// <para>
51-
/// Set to <c>create</c> to only index the document if it does not already exist (put if absent).
52-
/// If a document with the specified <c>_id</c> already exists, the indexing operation will fail.
53-
/// The behavior is the same as using the <c>&lt;index>/_create</c> endpoint.
54-
/// If a document ID is specified, this paramater defaults to <c>index</c>.
55-
/// Otherwise, it defaults to <c>create</c>.
56-
/// If the request targets a data stream, an <c>op_type</c> of <c>create</c> is required.
57-
/// </para>
58-
/// </summary>
59-
public Elastic.Clients.Elasticsearch.OpType? OpType { get => Q<Elastic.Clients.Elasticsearch.OpType?>("op_type"); set => Q("op_type", value); }
60-
6135
/// <summary>
6236
/// <para>
6337
/// The ID of the pipeline to use to preprocess incoming documents.
@@ -337,39 +311,13 @@ internal CreateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct
337311
#endif
338312
Elastic.Clients.Elasticsearch.IndexName Index { get => P<Elastic.Clients.Elasticsearch.IndexName>("index"); set => PR("index", value); }
339313

340-
/// <summary>
341-
/// <para>
342-
/// Only perform the operation if the document has this primary term.
343-
/// </para>
344-
/// </summary>
345-
public long? IfPrimaryTerm { get => Q<long?>("if_primary_term"); set => Q("if_primary_term", value); }
346-
347-
/// <summary>
348-
/// <para>
349-
/// Only perform the operation if the document has this sequence number.
350-
/// </para>
351-
/// </summary>
352-
public long? IfSeqNo { get => Q<long?>("if_seq_no"); set => Q("if_seq_no", value); }
353-
354314
/// <summary>
355315
/// <para>
356316
/// True or false if to include the document source in the error message in case of parsing errors.
357317
/// </para>
358318
/// </summary>
359319
public bool? IncludeSourceOnError { get => Q<bool?>("include_source_on_error"); set => Q("include_source_on_error", value); }
360320

361-
/// <summary>
362-
/// <para>
363-
/// Set to <c>create</c> to only index the document if it does not already exist (put if absent).
364-
/// If a document with the specified <c>_id</c> already exists, the indexing operation will fail.
365-
/// The behavior is the same as using the <c>&lt;index>/_create</c> endpoint.
366-
/// If a document ID is specified, this paramater defaults to <c>index</c>.
367-
/// Otherwise, it defaults to <c>create</c>.
368-
/// If the request targets a data stream, an <c>op_type</c> of <c>create</c> is required.
369-
/// </para>
370-
/// </summary>
371-
public Elastic.Clients.Elasticsearch.OpType? OpType { get => Q<Elastic.Clients.Elasticsearch.OpType?>("op_type"); set => Q("op_type", value); }
372-
373321
/// <summary>
374322
/// <para>
375323
/// The ID of the pipeline to use to preprocess incoming documents.
@@ -619,28 +567,6 @@ public Elastic.Clients.Elasticsearch.CreateRequestDescriptor<TDocument> Index(El
619567
return this;
620568
}
621569

622-
/// <summary>
623-
/// <para>
624-
/// Only perform the operation if the document has this primary term.
625-
/// </para>
626-
/// </summary>
627-
public Elastic.Clients.Elasticsearch.CreateRequestDescriptor<TDocument> IfPrimaryTerm(long? value)
628-
{
629-
Instance.IfPrimaryTerm = value;
630-
return this;
631-
}
632-
633-
/// <summary>
634-
/// <para>
635-
/// Only perform the operation if the document has this sequence number.
636-
/// </para>
637-
/// </summary>
638-
public Elastic.Clients.Elasticsearch.CreateRequestDescriptor<TDocument> IfSeqNo(long? value)
639-
{
640-
Instance.IfSeqNo = value;
641-
return this;
642-
}
643-
644570
/// <summary>
645571
/// <para>
646572
/// True or false if to include the document source in the error message in case of parsing errors.
@@ -652,22 +578,6 @@ public Elastic.Clients.Elasticsearch.CreateRequestDescriptor<TDocument> IncludeS
652578
return this;
653579
}
654580

655-
/// <summary>
656-
/// <para>
657-
/// Set to <c>create</c> to only index the document if it does not already exist (put if absent).
658-
/// If a document with the specified <c>_id</c> already exists, the indexing operation will fail.
659-
/// The behavior is the same as using the <c>&lt;index>/_create</c> endpoint.
660-
/// If a document ID is specified, this paramater defaults to <c>index</c>.
661-
/// Otherwise, it defaults to <c>create</c>.
662-
/// If the request targets a data stream, an <c>op_type</c> of <c>create</c> is required.
663-
/// </para>
664-
/// </summary>
665-
public Elastic.Clients.Elasticsearch.CreateRequestDescriptor<TDocument> OpType(Elastic.Clients.Elasticsearch.OpType? value)
666-
{
667-
Instance.OpType = value;
668-
return this;
669-
}
670-
671581
/// <summary>
672582
/// <para>
673583
/// The ID of the pipeline to use to preprocess incoming documents.

0 commit comments

Comments
 (0)