Skip to content

Commit fc56596

Browse files
floberndgithub-actions[bot]
authored andcommitted
Regenerate client using the latest specification (#8440)
1 parent 8c0aba0 commit fc56596

File tree

466 files changed

+34090
-5669
lines changed

Some content is hidden

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

466 files changed

+34090
-5669
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,15 @@ internal static class ApiUrlLookup
9393
internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
9494
internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
9595
internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
96+
internal static ApiUrls IngestDeleteIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" });
9697
internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
9798
internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
9899
internal static ApiUrls IngestGetGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database", "_ingest/geoip/database/{id}" });
100+
internal static ApiUrls IngestGetIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database", "_ingest/ip_location/database/{id}" });
99101
internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "_ingest/pipeline", "_ingest/pipeline/{id}" });
100102
internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "_ingest/processor/grok" });
101103
internal static ApiUrls IngestPutGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
104+
internal static ApiUrls IngestPutIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" });
102105
internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
103106
internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "_ingest/pipeline/_simulate", "_ingest/pipeline/{id}/_simulate" });
104107
internal static ApiUrls LicenseManagementGet = new ApiUrls(new[] { "_license" });

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs

+20
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
3232

3333
public sealed partial class AsyncSearchStatusRequestParameters : RequestParameters
3434
{
35+
/// <summary>
36+
/// <para>
37+
/// Specifies how long the async search needs to be available.
38+
/// Ongoing async searches and any saved search results are deleted after this period.
39+
/// </para>
40+
/// </summary>
41+
public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("keep_alive"); set => Q("keep_alive", value); }
3542
}
3643

3744
/// <summary>
@@ -56,6 +63,15 @@ public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id)
5663
internal override bool SupportsBody => false;
5764

5865
internal override string OperationName => "async_search.status";
66+
67+
/// <summary>
68+
/// <para>
69+
/// Specifies how long the async search needs to be available.
70+
/// Ongoing async searches and any saved search results are deleted after this period.
71+
/// </para>
72+
/// </summary>
73+
[JsonIgnore]
74+
public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("keep_alive"); set => Q("keep_alive", value); }
5975
}
6076

6177
/// <summary>
@@ -83,6 +99,8 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
8399

84100
internal override string OperationName => "async_search.status";
85101

102+
public AsyncSearchStatusRequestDescriptor<TDocument> KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
103+
86104
public AsyncSearchStatusRequestDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
87105
{
88106
RouteValues.Required("id", id);
@@ -119,6 +137,8 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
119137

120138
internal override string OperationName => "async_search.status";
121139

140+
public AsyncSearchStatusRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
141+
122142
public AsyncSearchStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
123143
{
124144
RouteValues.Required("id", id);

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

+10-39
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete
110110
/// </summary>
111111
public bool? IgnoreUnavailable { get => Q<bool?>("ignore_unavailable"); set => Q("ignore_unavailable", value); }
112112

113-
/// <summary>
114-
/// <para>
115-
/// Specifies how long the async search needs to be available.
116-
/// Ongoing async searches and any saved search results are deleted after this period.
117-
/// </para>
118-
/// </summary>
119-
public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("keep_alive"); set => Q("keep_alive", value); }
120-
121113
/// <summary>
122114
/// <para>
123115
/// If <c>true</c>, results are stored for later retrieval when the search completes within the <c>wait_for_completion_timeout</c>.
@@ -148,24 +140,23 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete
148140

149141
/// <summary>
150142
/// <para>
151-
/// The default value cannot be changed, which enforces the execution of a pre-filter roundtrip to retrieve statistics from each shard so that the ones that surely don’t hold any document matching the query get skipped.
143+
/// Query in the Lucene query string syntax
152144
/// </para>
153145
/// </summary>
154-
public long? PreFilterShardSize { get => Q<long?>("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); }
146+
public string? QueryLuceneSyntax { get => Q<string?>("q"); set => Q("q", value); }
155147

156148
/// <summary>
157149
/// <para>
158-
/// Query in the Lucene query string syntax
150+
/// Specify if request cache should be used for this request or not, defaults to true
159151
/// </para>
160152
/// </summary>
161-
public string? QueryLuceneSyntax { get => Q<string?>("q"); set => Q("q", value); }
153+
public bool? RequestCache { get => Q<bool?>("request_cache"); set => Q("request_cache", value); }
162154

163155
/// <summary>
164156
/// <para>
165-
/// Specify if request cache should be used for this request or not, defaults to true
157+
/// Indicates whether hits.total should be rendered as an integer or an object in the rest search response
166158
/// </para>
167159
/// </summary>
168-
public bool? RequestCache { get => Q<bool?>("request_cache"); set => Q("request_cache", value); }
169160
public bool? RestTotalHitsAsInt { get => Q<bool?>("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); }
170161

171162
/// <summary>
@@ -174,7 +165,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete
174165
/// </para>
175166
/// </summary>
176167
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q<Elastic.Clients.Elasticsearch.Serverless.Routing?>("routing"); set => Q("routing", value); }
177-
public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("scroll"); set => Q("scroll", value); }
178168

179169
/// <summary>
180170
/// <para>
@@ -772,15 +762,6 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
772762
[JsonIgnore]
773763
public bool? IgnoreUnavailable { get => Q<bool?>("ignore_unavailable"); set => Q("ignore_unavailable", value); }
774764

775-
/// <summary>
776-
/// <para>
777-
/// Specifies how long the async search needs to be available.
778-
/// Ongoing async searches and any saved search results are deleted after this period.
779-
/// </para>
780-
/// </summary>
781-
[JsonIgnore]
782-
public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("keep_alive"); set => Q("keep_alive", value); }
783-
784765
/// <summary>
785766
/// <para>
786767
/// If <c>true</c>, results are stored for later retrieval when the search completes within the <c>wait_for_completion_timeout</c>.
@@ -815,28 +796,26 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
815796

816797
/// <summary>
817798
/// <para>
818-
/// The default value cannot be changed, which enforces the execution of a pre-filter roundtrip to retrieve statistics from each shard so that the ones that surely don’t hold any document matching the query get skipped.
799+
/// Query in the Lucene query string syntax
819800
/// </para>
820801
/// </summary>
821802
[JsonIgnore]
822-
public long? PreFilterShardSize { get => Q<long?>("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); }
803+
public string? QueryLuceneSyntax { get => Q<string?>("q"); set => Q("q", value); }
823804

824805
/// <summary>
825806
/// <para>
826-
/// Query in the Lucene query string syntax
807+
/// Specify if request cache should be used for this request or not, defaults to true
827808
/// </para>
828809
/// </summary>
829810
[JsonIgnore]
830-
public string? QueryLuceneSyntax { get => Q<string?>("q"); set => Q("q", value); }
811+
public bool? RequestCache { get => Q<bool?>("request_cache"); set => Q("request_cache", value); }
831812

832813
/// <summary>
833814
/// <para>
834-
/// Specify if request cache should be used for this request or not, defaults to true
815+
/// Indicates whether hits.total should be rendered as an integer or an object in the rest search response
835816
/// </para>
836817
/// </summary>
837818
[JsonIgnore]
838-
public bool? RequestCache { get => Q<bool?>("request_cache"); set => Q("request_cache", value); }
839-
[JsonIgnore]
840819
public bool? RestTotalHitsAsInt { get => Q<bool?>("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); }
841820

842821
/// <summary>
@@ -846,8 +825,6 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
846825
/// </summary>
847826
[JsonIgnore]
848827
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q<Elastic.Clients.Elasticsearch.Serverless.Routing?>("routing"); set => Q("routing", value); }
849-
[JsonIgnore]
850-
public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("scroll"); set => Q("scroll", value); }
851828

852829
/// <summary>
853830
/// <para>
@@ -1192,17 +1169,14 @@ public SubmitAsyncSearchRequestDescriptor()
11921169
public SubmitAsyncSearchRequestDescriptor<TDocument> ExpandWildcards(ICollection<Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard>? expandWildcards) => Qs("expand_wildcards", expandWildcards);
11931170
public SubmitAsyncSearchRequestDescriptor<TDocument> IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled);
11941171
public SubmitAsyncSearchRequestDescriptor<TDocument> IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable);
1195-
public SubmitAsyncSearchRequestDescriptor<TDocument> KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
11961172
public SubmitAsyncSearchRequestDescriptor<TDocument> KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion);
11971173
public SubmitAsyncSearchRequestDescriptor<TDocument> Lenient(bool? lenient = true) => Qs("lenient", lenient);
11981174
public SubmitAsyncSearchRequestDescriptor<TDocument> MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests);
11991175
public SubmitAsyncSearchRequestDescriptor<TDocument> Preference(string? preference) => Qs("preference", preference);
1200-
public SubmitAsyncSearchRequestDescriptor<TDocument> PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize);
12011176
public SubmitAsyncSearchRequestDescriptor<TDocument> QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax);
12021177
public SubmitAsyncSearchRequestDescriptor<TDocument> RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache);
12031178
public SubmitAsyncSearchRequestDescriptor<TDocument> RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt);
12041179
public SubmitAsyncSearchRequestDescriptor<TDocument> Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing);
1205-
public SubmitAsyncSearchRequestDescriptor<TDocument> Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll);
12061180
public SubmitAsyncSearchRequestDescriptor<TDocument> SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType);
12071181
public SubmitAsyncSearchRequestDescriptor<TDocument> SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes);
12081182
public SubmitAsyncSearchRequestDescriptor<TDocument> SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes);
@@ -2316,17 +2290,14 @@ public SubmitAsyncSearchRequestDescriptor()
23162290
public SubmitAsyncSearchRequestDescriptor ExpandWildcards(ICollection<Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard>? expandWildcards) => Qs("expand_wildcards", expandWildcards);
23172291
public SubmitAsyncSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled);
23182292
public SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable);
2319-
public SubmitAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
23202293
public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion);
23212294
public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient);
23222295
public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests);
23232296
public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference);
2324-
public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize);
23252297
public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax);
23262298
public SubmitAsyncSearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache);
23272299
public SubmitAsyncSearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt);
23282300
public SubmitAsyncSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing);
2329-
public SubmitAsyncSearchRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll);
23302301
public SubmitAsyncSearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType);
23312302
public SubmitAsyncSearchRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes);
23322303
public SubmitAsyncSearchRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes);

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs

+34
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
3232

3333
public sealed partial class BulkRequestParameters : RequestParameters
3434
{
35+
/// <summary>
36+
/// <para>
37+
/// If <c>true</c>, the response will include the ingest pipelines that were executed for each index or create.
38+
/// </para>
39+
/// </summary>
40+
public bool? ListExecutedPipelines { get => Q<bool?>("list_executed_pipelines"); set => Q("list_executed_pipelines", value); }
41+
3542
/// <summary>
3643
/// <para>
3744
/// ID of the pipeline to use to preprocess incoming documents.
@@ -56,6 +63,13 @@ public sealed partial class BulkRequestParameters : RequestParameters
5663
/// </summary>
5764
public bool? RequireAlias { get => Q<bool?>("require_alias"); set => Q("require_alias", value); }
5865

66+
/// <summary>
67+
/// <para>
68+
/// If <c>true</c>, the request's actions must target a data stream (existing or to-be-created).
69+
/// </para>
70+
/// </summary>
71+
public bool? RequireDataStream { get => Q<bool?>("require_data_stream"); set => Q("require_data_stream", value); }
72+
5973
/// <summary>
6074
/// <para>
6175
/// Custom value used to route operations to a specific shard.
@@ -125,6 +139,14 @@ public BulkRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) :
125139

126140
internal override string OperationName => "bulk";
127141

142+
/// <summary>
143+
/// <para>
144+
/// If <c>true</c>, the response will include the ingest pipelines that were executed for each index or create.
145+
/// </para>
146+
/// </summary>
147+
[JsonIgnore]
148+
public bool? ListExecutedPipelines { get => Q<bool?>("list_executed_pipelines"); set => Q("list_executed_pipelines", value); }
149+
128150
/// <summary>
129151
/// <para>
130152
/// ID of the pipeline to use to preprocess incoming documents.
@@ -152,6 +174,14 @@ public BulkRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) :
152174
[JsonIgnore]
153175
public bool? RequireAlias { get => Q<bool?>("require_alias"); set => Q("require_alias", value); }
154176

177+
/// <summary>
178+
/// <para>
179+
/// If <c>true</c>, the request's actions must target a data stream (existing or to-be-created).
180+
/// </para>
181+
/// </summary>
182+
[JsonIgnore]
183+
public bool? RequireDataStream { get => Q<bool?>("require_data_stream"); set => Q("require_data_stream", value); }
184+
155185
/// <summary>
156186
/// <para>
157187
/// Custom value used to route operations to a specific shard.
@@ -229,9 +259,11 @@ public BulkRequestDescriptor() : this(typeof(TDocument))
229259

230260
internal override string OperationName => "bulk";
231261

262+
public BulkRequestDescriptor<TDocument> ListExecutedPipelines(bool? listExecutedPipelines = true) => Qs("list_executed_pipelines", listExecutedPipelines);
232263
public BulkRequestDescriptor<TDocument> Pipeline(string? pipeline) => Qs("pipeline", pipeline);
233264
public BulkRequestDescriptor<TDocument> Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh);
234265
public BulkRequestDescriptor<TDocument> RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias);
266+
public BulkRequestDescriptor<TDocument> RequireDataStream(bool? requireDataStream = true) => Qs("require_data_stream", requireDataStream);
235267
public BulkRequestDescriptor<TDocument> Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing);
236268
public BulkRequestDescriptor<TDocument> Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source);
237269
public BulkRequestDescriptor<TDocument> SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes);
@@ -279,9 +311,11 @@ public BulkRequestDescriptor()
279311

280312
internal override string OperationName => "bulk";
281313

314+
public BulkRequestDescriptor ListExecutedPipelines(bool? listExecutedPipelines = true) => Qs("list_executed_pipelines", listExecutedPipelines);
282315
public BulkRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline);
283316
public BulkRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh);
284317
public BulkRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias);
318+
public BulkRequestDescriptor RequireDataStream(bool? requireDataStream = true) => Qs("require_data_stream", requireDataStream);
285319
public BulkRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing);
286320
public BulkRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source);
287321
public BulkRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes);

0 commit comments

Comments
 (0)