Skip to content

Commit 6482394

Browse files
authored
Regenerate client (#8705)
1 parent b38db28 commit 6482394

File tree

56 files changed

+2481
-86
lines changed

Some content is hidden

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

56 files changed

+2481
-86
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
@@ -449,6 +449,9 @@ internal static class ApiUrlLookup
449449
internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "_sql/async/status/{id}" });
450450
internal static ApiUrls SqlQuery = new ApiUrls(new[] { "_sql" });
451451
internal static ApiUrls SqlTranslate = new ApiUrls(new[] { "_sql/translate" });
452+
internal static ApiUrls StreamsLogsDisable = new ApiUrls(new[] { "_streams/logs/_disable" });
453+
internal static ApiUrls StreamsLogsEnable = new ApiUrls(new[] { "_streams/logs/_enable" });
454+
internal static ApiUrls StreamsStatus = new ApiUrls(new[] { "_streams/status" });
452455
internal static ApiUrls SynonymsDeleteSynonym = new ApiUrls(new[] { "_synonyms/{id}" });
453456
internal static ApiUrls SynonymsDeleteSynonymRule = new ApiUrls(new[] { "_synonyms/{set_id}/{rule_id}" });
454457
internal static ApiUrls SynonymsGetSynonym = new ApiUrls(new[] { "_synonyms/{id}" });

src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public sealed partial class AsyncQueryRequestConverter : System.Text.Json.Serial
2828
private static readonly System.Text.Json.JsonEncodedText PropColumnar = System.Text.Json.JsonEncodedText.Encode("columnar");
2929
private static readonly System.Text.Json.JsonEncodedText PropFilter = System.Text.Json.JsonEncodedText.Encode("filter");
3030
private static readonly System.Text.Json.JsonEncodedText PropIncludeCcsMetadata = System.Text.Json.JsonEncodedText.Encode("include_ccs_metadata");
31+
private static readonly System.Text.Json.JsonEncodedText PropIncludeCcsMetadata1 = System.Text.Json.JsonEncodedText.Encode("include_execution_metadata");
3132
private static readonly System.Text.Json.JsonEncodedText PropKeepAlive = System.Text.Json.JsonEncodedText.Encode("keep_alive");
3233
private static readonly System.Text.Json.JsonEncodedText PropKeepOnCompletion = System.Text.Json.JsonEncodedText.Encode("keep_on_completion");
3334
private static readonly System.Text.Json.JsonEncodedText PropLocale = System.Text.Json.JsonEncodedText.Encode("locale");
@@ -61,7 +62,7 @@ public override Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest Read(ref Sy
6162
continue;
6263
}
6364

64-
if (propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<bool>(o)))
65+
if (propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<bool>(o)) || propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata1, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<bool>(o)))
6566
{
6667
continue;
6768
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ internal AsyncQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
166166

167167
/// <summary>
168168
/// <para>
169-
/// When set to <c>true</c> and performing a cross-cluster query, the response will include an extra <c>_clusters</c>
169+
/// When set to <c>true</c> and performing a cross-cluster/cross-project query, the response will include an extra <c>_clusters</c>
170170
/// object with information about the clusters that participated in the search along with info such as shards
171171
/// count.
172172
/// </para>
@@ -361,7 +361,7 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Filter<T>(
361361

362362
/// <summary>
363363
/// <para>
364-
/// When set to <c>true</c> and performing a cross-cluster query, the response will include an extra <c>_clusters</c>
364+
/// When set to <c>true</c> and performing a cross-cluster/cross-project query, the response will include an extra <c>_clusters</c>
365365
/// object with information about the clusters that participated in the search along with info such as shards
366366
/// count.
367367
/// </para>
@@ -635,7 +635,7 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor<TDocument>
635635

636636
/// <summary>
637637
/// <para>
638-
/// When set to <c>true</c> and performing a cross-cluster query, the response will include an extra <c>_clusters</c>
638+
/// When set to <c>true</c> and performing a cross-cluster/cross-project query, the response will include an extra <c>_clusters</c>
639639
/// object with information about the clusters that participated in the search along with info such as shards
640640
/// count.
641641
/// </para>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public sealed partial class EsqlQueryRequestConverter : System.Text.Json.Seriali
2828
private static readonly System.Text.Json.JsonEncodedText PropColumnar = System.Text.Json.JsonEncodedText.Encode("columnar");
2929
private static readonly System.Text.Json.JsonEncodedText PropFilter = System.Text.Json.JsonEncodedText.Encode("filter");
3030
private static readonly System.Text.Json.JsonEncodedText PropIncludeCcsMetadata = System.Text.Json.JsonEncodedText.Encode("include_ccs_metadata");
31+
private static readonly System.Text.Json.JsonEncodedText PropIncludeCcsMetadata1 = System.Text.Json.JsonEncodedText.Encode("include_execution_metadata");
3132
private static readonly System.Text.Json.JsonEncodedText PropLocale = System.Text.Json.JsonEncodedText.Encode("locale");
3233
private static readonly System.Text.Json.JsonEncodedText PropParams = System.Text.Json.JsonEncodedText.Encode("params");
3334
private static readonly System.Text.Json.JsonEncodedText PropProfile = System.Text.Json.JsonEncodedText.Encode("profile");
@@ -55,7 +56,7 @@ public override Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest Read(ref Sys
5556
continue;
5657
}
5758

58-
if (propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<bool>(o)))
59+
if (propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<bool>(o)) || propIncludeCcsMetadata.TryReadProperty(ref reader, options, PropIncludeCcsMetadata1, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<bool>(o)))
5960
{
6061
continue;
6162
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ internal EsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr
153153

154154
/// <summary>
155155
/// <para>
156-
/// When set to <c>true</c> and performing a cross-cluster query, the response will include an extra <c>_clusters</c>
156+
/// When set to <c>true</c> and performing a cross-cluster/cross-project query, the response will include an extra <c>_clusters</c>
157157
/// object with information about the clusters that participated in the search along with info such as shards
158158
/// count.
159159
/// </para>
@@ -312,7 +312,7 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Filter<T>(S
312312

313313
/// <summary>
314314
/// <para>
315-
/// When set to <c>true</c> and performing a cross-cluster query, the response will include an extra <c>_clusters</c>
315+
/// When set to <c>true</c> and performing a cross-cluster/cross-project query, the response will include an extra <c>_clusters</c>
316316
/// object with information about the clusters that participated in the search along with info such as shards
317317
/// count.
318318
/// </para>
@@ -538,7 +538,7 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor<TDocument>
538538

539539
/// <summary>
540540
/// <para>
541-
/// When set to <c>true</c> and performing a cross-cluster query, the response will include an extra <c>_clusters</c>
541+
/// When set to <c>true</c> and performing a cross-cluster/cross-project query, the response will include an extra <c>_clusters</c>
542542
/// object with information about the clusters that participated in the search along with info such as shards
543543
/// count.
544544
/// </para>

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.Converters.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed partial class CreateFromRequestConverter : System.Text.Json.Serial
2727
{
2828
public override Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
2929
{
30-
return new Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { CreateFrom = reader.ReadValue<Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom>(options, null) };
30+
return new Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { CreateFrom = reader.ReadValue<Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom?>(options, null) };
3131
}
3232

3333
public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequest value, System.Text.Json.JsonSerializerOptions options)

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,10 @@ public sealed partial class CreateFromRequestParameters : Elastic.Transport.Requ
3838
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.CreateFromRequestConverter))]
3939
public sealed partial class CreateFromRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest<Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestParameters>
4040
{
41-
[System.Obsolete("The request contains additional required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
4241
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
4342
public CreateFromRequest(Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest) : base(r => r.Required("source", source).Required("dest", dest))
4443
{
4544
}
46-
47-
[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
48-
public CreateFromRequest(Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest, Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom) : base(r => r.Required("source", source).Required("dest", dest))
49-
{
50-
CreateFrom = createFrom;
51-
}
5245
#if NET7_0_OR_GREATER
5346
public CreateFromRequest()
5447
{
@@ -89,11 +82,7 @@ internal CreateFromRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst
8982
required
9083
#endif
9184
Elastic.Clients.Elasticsearch.IndexName Source { get => P<Elastic.Clients.Elasticsearch.IndexName>("source"); set => PR("source", value); }
92-
public
93-
#if NET7_0_OR_GREATER
94-
required
95-
#endif
96-
Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom CreateFrom { get; set; }
85+
public Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom? CreateFrom { get; set; }
9786
}
9887

9988
/// <summary>
@@ -116,9 +105,7 @@ public CreateFromRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement
116105

117106
public CreateFromRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest)
118107
{
119-
#pragma warning disable CS0618
120108
Instance = new Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequest(source, dest);
121-
#pragma warning restore CS0618
122109
}
123110

124111
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
@@ -152,7 +139,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor
152139
return this;
153140
}
154141

155-
public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom value)
142+
public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom? value)
156143
{
157144
Instance.CreateFrom = value;
158145
return this;
@@ -247,9 +234,7 @@ public CreateFromRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement
247234

248235
public CreateFromRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest)
249236
{
250-
#pragma warning disable CS0618
251237
Instance = new Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequest(source, dest);
252-
#pragma warning restore CS0618
253238
}
254239

255240
[System.Obsolete("The use of the parameterless constructor is not permitted for this type.")]
@@ -283,7 +268,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor
283268
return this;
284269
}
285270

286-
public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor<TDocument> CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom value)
271+
public Elastic.Clients.Elasticsearch.IndexManagement.CreateFromRequestDescriptor<TDocument> CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom? value)
287272
{
288273
Instance.CreateFrom = value;
289274
return this;

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public sealed partial class DiskUsageRequestParameters : Elastic.Transport.Reque
7979
/// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate.
8080
/// The stored size of the <c>_id</c> field is likely underestimated while the <c>_source</c> field is overestimated.
8181
/// </para>
82+
/// <para>
83+
/// For usage examples see the External documentation or refer to <a href="https://www.elastic.co/docs/reference/elasticsearch/rest-apis/index-disk-usage">Analyze the index disk usage example</a> for an example.
84+
/// </para>
8285
/// </summary>
8386
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.DiskUsageRequestConverter))]
8487
public sealed partial class DiskUsageRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest<Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestParameters>
@@ -172,6 +175,9 @@ internal DiskUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr
172175
/// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate.
173176
/// The stored size of the <c>_id</c> field is likely underestimated while the <c>_source</c> field is overestimated.
174177
/// </para>
178+
/// <para>
179+
/// For usage examples see the External documentation or refer to <a href="https://www.elastic.co/docs/reference/elasticsearch/rest-apis/index-disk-usage">Analyze the index disk usage example</a> for an example.
180+
/// </para>
175181
/// </summary>
176182
public readonly partial struct DiskUsageRequestDescriptor
177183
{
@@ -346,6 +352,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor
346352
/// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate.
347353
/// The stored size of the <c>_id</c> field is likely underestimated while the <c>_source</c> field is overestimated.
348354
/// </para>
355+
/// <para>
356+
/// For usage examples see the External documentation or refer to <a href="https://www.elastic.co/docs/reference/elasticsearch/rest-apis/index-disk-usage">Analyze the index disk usage example</a> for an example.
357+
/// </para>
349358
/// </summary>
350359
public readonly partial struct DiskUsageRequestDescriptor<TDocument>
351360
{

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public sealed partial class RefreshRequestParameters : Elastic.Transport.Request
6161
/// You can change this default interval with the <c>index.refresh_interval</c> setting.
6262
/// </para>
6363
/// <para>
64+
/// In Elastic Cloud Serverless, the default refresh interval is 5 seconds across all indices.
65+
/// </para>
66+
/// <para>
6467
/// Refresh requests are synchronous and do not return a response until the refresh operation completes.
6568
/// </para>
6669
/// <para>
@@ -147,6 +150,9 @@ internal RefreshRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc
147150
/// You can change this default interval with the <c>index.refresh_interval</c> setting.
148151
/// </para>
149152
/// <para>
153+
/// In Elastic Cloud Serverless, the default refresh interval is 5 seconds across all indices.
154+
/// </para>
155+
/// <para>
150156
/// Refresh requests are synchronous and do not return a response until the refresh operation completes.
151157
/// </para>
152158
/// <para>
@@ -310,6 +316,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor Re
310316
/// You can change this default interval with the <c>index.refresh_interval</c> setting.
311317
/// </para>
312318
/// <para>
319+
/// In Elastic Cloud Serverless, the default refresh interval is 5 seconds across all indices.
320+
/// </para>
321+
/// <para>
313322
/// Refresh requests are synchronous and do not return a response until the refresh operation completes.
314323
/// </para>
315324
/// <para>

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.Converters.g.cs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,11 @@ public sealed partial class SimulateIndexTemplateRequestConverter : System.Text.
2727
{
2828
public override Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
2929
{
30-
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
31-
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
32-
{
33-
if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
34-
{
35-
reader.Skip();
36-
continue;
37-
}
38-
39-
throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'.");
40-
}
41-
42-
reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject);
43-
return new Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)
44-
{
45-
};
30+
return new Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { IndexTemplate = reader.ReadValue<Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplate?>(options, null) };
4631
}
4732

4833
public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.SimulateIndexTemplateRequest value, System.Text.Json.JsonSerializerOptions options)
4934
{
50-
writer.WriteStartObject();
51-
writer.WriteEndObject();
35+
writer.WriteValue(options, value.IndexTemplate, null);
5236
}
5337
}

0 commit comments

Comments
 (0)