Skip to content

Commit 33ffcdc

Browse files
authored
Regenerate client using the latest specification (#8369)
1 parent b077a88 commit 33ffcdc

File tree

211 files changed

+8948
-2868
lines changed

Some content is hidden

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

211 files changed

+8948
-2868
lines changed

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs

+8
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ public sealed partial class HealthResponse : ElasticsearchResponse
145145
[JsonInclude, JsonPropertyName("timed_out")]
146146
public bool TimedOut { get; init; }
147147

148+
/// <summary>
149+
/// <para>
150+
/// The number of primary shards that are not allocated.
151+
/// </para>
152+
/// </summary>
153+
[JsonInclude, JsonPropertyName("unassigned_primary_shards")]
154+
public int UnassignedPrimaryShards { get; init; }
155+
148156
/// <summary>
149157
/// <para>
150158
/// The number of shards that are not allocated.

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public sealed partial class EsqlQueryRequestParameters : RequestParameters
5151
/// A short version of the Accept header, e.g. json, yaml.
5252
/// </para>
5353
/// </summary>
54-
public string? Format { get => Q<string?>("format"); set => Q("format", value); }
54+
public Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? Format { get => Q<Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat?>("format"); set => Q("format", value); }
5555
}
5656

5757
/// <summary>
@@ -92,7 +92,7 @@ public sealed partial class EsqlQueryRequest : PlainRequest<EsqlQueryRequestPara
9292
/// </para>
9393
/// </summary>
9494
[JsonIgnore]
95-
public string? Format { get => Q<string?>("format"); set => Q("format", value); }
95+
public Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? Format { get => Q<Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat?>("format"); set => Q("format", value); }
9696

9797
/// <summary>
9898
/// <para>
@@ -163,7 +163,7 @@ public EsqlQueryRequestDescriptor()
163163

164164
public EsqlQueryRequestDescriptor<TDocument> Delimiter(string? delimiter) => Qs("delimiter", delimiter);
165165
public EsqlQueryRequestDescriptor<TDocument> DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns);
166-
public EsqlQueryRequestDescriptor<TDocument> Format(string? format) => Qs("format", format);
166+
public EsqlQueryRequestDescriptor<TDocument> Format(Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? format) => Qs("format", format);
167167

168168
private bool? ColumnarValue { get; set; }
169169
private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; }
@@ -328,7 +328,7 @@ public EsqlQueryRequestDescriptor()
328328

329329
public EsqlQueryRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter);
330330
public EsqlQueryRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns);
331-
public EsqlQueryRequestDescriptor Format(string? format) => Qs("format", format);
331+
public EsqlQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? format) => Qs("format", format);
332332

333333
private bool? ColumnarValue { get; set; }
334334
private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs

+16
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ public sealed partial class GetDataStreamRequestParameters : RequestParameters
5252
/// </para>
5353
/// </summary>
5454
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); }
55+
56+
/// <summary>
57+
/// <para>
58+
/// Whether the maximum timestamp for each data stream should be calculated and returned.
59+
/// </para>
60+
/// </summary>
61+
public bool? Verbose { get => Q<bool?>("verbose"); set => Q("verbose", value); }
5562
}
5663

5764
/// <summary>
@@ -102,6 +109,14 @@ public GetDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamN
102109
/// </summary>
103110
[JsonIgnore]
104111
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); }
112+
113+
/// <summary>
114+
/// <para>
115+
/// Whether the maximum timestamp for each data stream should be calculated and returned.
116+
/// </para>
117+
/// </summary>
118+
[JsonIgnore]
119+
public bool? Verbose { get => Q<bool?>("verbose"); set => Q("verbose", value); }
105120
}
106121

107122
/// <summary>
@@ -133,6 +148,7 @@ public GetDataStreamRequestDescriptor()
133148
public GetDataStreamRequestDescriptor ExpandWildcards(ICollection<Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard>? expandWildcards) => Qs("expand_wildcards", expandWildcards);
134149
public GetDataStreamRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults);
135150
public GetDataStreamRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout);
151+
public GetDataStreamRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose);
136152

137153
public GetDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames? name)
138154
{

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs

+36
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement;
3131

3232
public sealed partial class ResolveIndexRequestParameters : RequestParameters
3333
{
34+
/// <summary>
35+
/// <para>
36+
/// If <c>false</c>, the request returns an error if any wildcard expression, index alias, or <c>_all</c> value targets only missing or closed indices.
37+
/// This behavior applies even if the request targets other open indices.
38+
/// For example, a request targeting <c>foo*,bar*</c> returns an error if an index starts with <c>foo</c> but no index starts with <c>bar</c>.
39+
/// </para>
40+
/// </summary>
41+
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
42+
3443
/// <summary>
3544
/// <para>
3645
/// Type of index that wildcard patterns can match.
@@ -40,6 +49,13 @@ public sealed partial class ResolveIndexRequestParameters : RequestParameters
4049
/// </para>
4150
/// </summary>
4251
public ICollection<Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard>? ExpandWildcards { get => Q<ICollection<Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard>?>("expand_wildcards"); set => Q("expand_wildcards", value); }
52+
53+
/// <summary>
54+
/// <para>
55+
/// If <c>false</c>, the request returns an error if it targets a missing or closed index.
56+
/// </para>
57+
/// </summary>
58+
public bool? IgnoreUnavailable { get => Q<bool?>("ignore_unavailable"); set => Q("ignore_unavailable", value); }
4359
}
4460

4561
/// <summary>
@@ -62,6 +78,16 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Names name)
6278

6379
internal override string OperationName => "indices.resolve_index";
6480

81+
/// <summary>
82+
/// <para>
83+
/// If <c>false</c>, the request returns an error if any wildcard expression, index alias, or <c>_all</c> value targets only missing or closed indices.
84+
/// This behavior applies even if the request targets other open indices.
85+
/// For example, a request targeting <c>foo*,bar*</c> returns an error if an index starts with <c>foo</c> but no index starts with <c>bar</c>.
86+
/// </para>
87+
/// </summary>
88+
[JsonIgnore]
89+
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
90+
6591
/// <summary>
6692
/// <para>
6793
/// Type of index that wildcard patterns can match.
@@ -72,6 +98,14 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Names name)
7298
/// </summary>
7399
[JsonIgnore]
74100
public ICollection<Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard>? ExpandWildcards { get => Q<ICollection<Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard>?>("expand_wildcards"); set => Q("expand_wildcards", value); }
101+
102+
/// <summary>
103+
/// <para>
104+
/// If <c>false</c>, the request returns an error if it targets a missing or closed index.
105+
/// </para>
106+
/// </summary>
107+
[JsonIgnore]
108+
public bool? IgnoreUnavailable { get => Q<bool?>("ignore_unavailable"); set => Q("ignore_unavailable", value); }
75109
}
76110

77111
/// <summary>
@@ -96,7 +130,9 @@ public ResolveIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Na
96130

97131
internal override string OperationName => "indices.resolve_index";
98132

133+
public ResolveIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices);
99134
public ResolveIndexRequestDescriptor ExpandWildcards(ICollection<Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard>? expandWildcards) => Qs("expand_wildcards", expandWildcards);
135+
public ResolveIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable);
100136

101137
public ResolveIndexRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name)
102138
{

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs

+47
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ public PutPipelineRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base
9797
[JsonIgnore]
9898
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("timeout"); set => Q("timeout", value); }
9999

100+
/// <summary>
101+
/// <para>
102+
/// Marks this ingest pipeline as deprecated.
103+
/// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.
104+
/// </para>
105+
/// </summary>
106+
[JsonInclude, JsonPropertyName("deprecated")]
107+
public bool? Deprecated { get; set; }
108+
100109
/// <summary>
101110
/// <para>
102111
/// Description of the ingest pipeline.
@@ -170,6 +179,7 @@ public PutPipelineRequestDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.
170179
return Self;
171180
}
172181

182+
private bool? DeprecatedValue { get; set; }
173183
private string? DescriptionValue { get; set; }
174184
private IDictionary<string, object>? MetaValue { get; set; }
175185
private ICollection<Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor>? OnFailureValue { get; set; }
@@ -182,6 +192,18 @@ public PutPipelineRequestDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.
182192
private Action<Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor<TDocument>>[] ProcessorsDescriptorActions { get; set; }
183193
private long? VersionValue { get; set; }
184194

195+
/// <summary>
196+
/// <para>
197+
/// Marks this ingest pipeline as deprecated.
198+
/// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.
199+
/// </para>
200+
/// </summary>
201+
public PutPipelineRequestDescriptor<TDocument> Deprecated(bool? deprecated = true)
202+
{
203+
DeprecatedValue = deprecated;
204+
return Self;
205+
}
206+
185207
/// <summary>
186208
/// <para>
187209
/// Description of the ingest pipeline.
@@ -300,6 +322,12 @@ public PutPipelineRequestDescriptor<TDocument> Version(long? version)
300322
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
301323
{
302324
writer.WriteStartObject();
325+
if (DeprecatedValue.HasValue)
326+
{
327+
writer.WritePropertyName("deprecated");
328+
writer.WriteBooleanValue(DeprecatedValue.Value);
329+
}
330+
303331
if (!string.IsNullOrEmpty(DescriptionValue))
304332
{
305333
writer.WritePropertyName("description");
@@ -416,6 +444,7 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.
416444
return Self;
417445
}
418446

447+
private bool? DeprecatedValue { get; set; }
419448
private string? DescriptionValue { get; set; }
420449
private IDictionary<string, object>? MetaValue { get; set; }
421450
private ICollection<Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor>? OnFailureValue { get; set; }
@@ -428,6 +457,18 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.
428457
private Action<Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor>[] ProcessorsDescriptorActions { get; set; }
429458
private long? VersionValue { get; set; }
430459

460+
/// <summary>
461+
/// <para>
462+
/// Marks this ingest pipeline as deprecated.
463+
/// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.
464+
/// </para>
465+
/// </summary>
466+
public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true)
467+
{
468+
DeprecatedValue = deprecated;
469+
return Self;
470+
}
471+
431472
/// <summary>
432473
/// <para>
433474
/// Description of the ingest pipeline.
@@ -546,6 +587,12 @@ public PutPipelineRequestDescriptor Version(long? version)
546587
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
547588
{
548589
writer.WriteStartObject();
590+
if (DeprecatedValue.HasValue)
591+
{
592+
writer.WritePropertyName("deprecated");
593+
writer.WriteBooleanValue(DeprecatedValue.Value);
594+
}
595+
549596
if (!string.IsNullOrEmpty(DescriptionValue))
550597
{
551598
writer.WritePropertyName("description");

0 commit comments

Comments
 (0)