Skip to content

Commit 2b5796f

Browse files
Regenerate the client using the latest specification (#8409) (#8414)
Co-authored-by: Florian Bernd <[email protected]>
1 parent cbf7635 commit 2b5796f

File tree

318 files changed

+19795
-5421
lines changed

Some content is hidden

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

318 files changed

+19795
-5421
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ internal static class ApiUrlLookup
8888
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
8989
internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" });
9090
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" });
91+
internal static ApiUrls InferenceDelete = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
92+
internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
93+
internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
94+
internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
9195
internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
9296
internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
9397
internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
@@ -218,6 +222,7 @@ internal static class ApiUrlLookup
218222
internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" });
219223
internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
220224
internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
225+
internal static ApiUrls QueryRulesTest = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_test" });
221226
internal static ApiUrls SecurityActivateUserProfile = new ApiUrls(new[] { "_security/profile/_activate" });
222227
internal static ApiUrls SecurityAuthenticate = new ApiUrls(new[] { "_security/_authenticate" });
223228
internal static ApiUrls SecurityBulkDeleteRole = new ApiUrls(new[] { "_security/role" });

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

+12-6
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ public sealed partial class AsyncSearchStatusRequestParameters : RequestParamete
3636

3737
/// <summary>
3838
/// <para>
39-
/// Get async search status
40-
/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results.
39+
/// Get the async search status.
40+
/// </para>
41+
/// <para>
42+
/// Get the status of a previously submitted async search request given its identifier, without retrieving search results.
4143
/// If the Elasticsearch security features are enabled, use of this API is restricted to the <c>monitoring_user</c> role.
4244
/// </para>
4345
/// </summary>
@@ -58,8 +60,10 @@ public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id)
5860

5961
/// <summary>
6062
/// <para>
61-
/// Get async search status
62-
/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results.
63+
/// Get the async search status.
64+
/// </para>
65+
/// <para>
66+
/// Get the status of a previously submitted async search request given its identifier, without retrieving search results.
6367
/// If the Elasticsearch security features are enabled, use of this API is restricted to the <c>monitoring_user</c> role.
6468
/// </para>
6569
/// </summary>
@@ -92,8 +96,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
9296

9397
/// <summary>
9498
/// <para>
95-
/// Get async search status
96-
/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results.
99+
/// Get the async search status.
100+
/// </para>
101+
/// <para>
102+
/// Get the status of a previously submitted async search request given its identifier, without retrieving search results.
97103
/// If the Elasticsearch security features are enabled, use of this API is restricted to the <c>monitoring_user</c> role.
98104
/// </para>
99105
/// </summary>

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs

+12-6
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ public sealed partial class DeleteAsyncSearchRequestParameters : RequestParamete
3636

3737
/// <summary>
3838
/// <para>
39-
/// Deletes an async search by identifier.
40-
/// If the search is still running, the search request will be cancelled.
39+
/// Delete an async search.
40+
/// </para>
41+
/// <para>
42+
/// If the asynchronous search is still running, it is cancelled.
4143
/// Otherwise, the saved search results are deleted.
4244
/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the <c>cancel_task</c> cluster privilege.
4345
/// </para>
@@ -59,8 +61,10 @@ public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id)
5961

6062
/// <summary>
6163
/// <para>
62-
/// Deletes an async search by identifier.
63-
/// If the search is still running, the search request will be cancelled.
64+
/// Delete an async search.
65+
/// </para>
66+
/// <para>
67+
/// If the asynchronous search is still running, it is cancelled.
6468
/// Otherwise, the saved search results are deleted.
6569
/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the <c>cancel_task</c> cluster privilege.
6670
/// </para>
@@ -94,8 +98,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
9498

9599
/// <summary>
96100
/// <para>
97-
/// Deletes an async search by identifier.
98-
/// If the search is still running, the search request will be cancelled.
101+
/// Delete an async search.
102+
/// </para>
103+
/// <para>
104+
/// If the asynchronous search is still running, it is cancelled.
99105
/// Otherwise, the saved search results are deleted.
100106
/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the <c>cancel_task</c> cluster privilege.
101107
/// </para>

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs

+12-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ public sealed partial class GetAsyncSearchRequestParameters : RequestParameters
6262

6363
/// <summary>
6464
/// <para>
65-
/// Retrieves the results of a previously submitted async search request given its identifier.
65+
/// Get async search results.
66+
/// </para>
67+
/// <para>
68+
/// Retrieve the results of a previously submitted asynchronous search request.
6669
/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
6770
/// </para>
6871
/// </summary>
@@ -113,7 +116,10 @@ public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : b
113116

114117
/// <summary>
115118
/// <para>
116-
/// Retrieves the results of a previously submitted async search request given its identifier.
119+
/// Get async search results.
120+
/// </para>
121+
/// <para>
122+
/// Retrieve the results of a previously submitted asynchronous search request.
117123
/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
118124
/// </para>
119125
/// </summary>
@@ -150,7 +156,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
150156

151157
/// <summary>
152158
/// <para>
153-
/// Retrieves the results of a previously submitted async search request given its identifier.
159+
/// Get async search results.
160+
/// </para>
161+
/// <para>
162+
/// Retrieve the results of a previously submitted asynchronous search request.
154163
/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
155164
/// </para>
156165
/// </summary>

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

+30-17
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete
138138
/// </para>
139139
/// </summary>
140140
public long? MaxConcurrentShardRequests { get => Q<long?>("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); }
141-
public string? MinCompatibleShardNode { get => Q<string?>("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); }
142141

143142
/// <summary>
144143
/// <para>
@@ -652,10 +651,16 @@ public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value
652651

653652
/// <summary>
654653
/// <para>
655-
/// Runs a search request asynchronously.
656-
/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested.
657-
/// Warning: Async search does not support scroll nor search requests that only include the suggest section.
658-
/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
654+
/// Run an async search.
655+
/// </para>
656+
/// <para>
657+
/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.
658+
/// </para>
659+
/// <para>
660+
/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
661+
/// </para>
662+
/// <para>
663+
/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
659664
/// The maximum allowed size for a stored async search response can be set by changing the <c>search.max_async_search_response_size</c> cluster level setting.
660665
/// </para>
661666
/// </summary>
@@ -799,8 +804,6 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
799804
/// </summary>
800805
[JsonIgnore]
801806
public long? MaxConcurrentShardRequests { get => Q<long?>("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); }
802-
[JsonIgnore]
803-
public string? MinCompatibleShardNode { get => Q<string?>("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); }
804807

805808
/// <summary>
806809
/// <para>
@@ -1145,10 +1148,16 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
11451148

11461149
/// <summary>
11471150
/// <para>
1148-
/// Runs a search request asynchronously.
1149-
/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested.
1150-
/// Warning: Async search does not support scroll nor search requests that only include the suggest section.
1151-
/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
1151+
/// Run an async search.
1152+
/// </para>
1153+
/// <para>
1154+
/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.
1155+
/// </para>
1156+
/// <para>
1157+
/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
1158+
/// </para>
1159+
/// <para>
1160+
/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
11521161
/// The maximum allowed size for a stored async search response can be set by changing the <c>search.max_async_search_response_size</c> cluster level setting.
11531162
/// </para>
11541163
/// </summary>
@@ -1187,7 +1196,6 @@ public SubmitAsyncSearchRequestDescriptor()
11871196
public SubmitAsyncSearchRequestDescriptor<TDocument> KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion);
11881197
public SubmitAsyncSearchRequestDescriptor<TDocument> Lenient(bool? lenient = true) => Qs("lenient", lenient);
11891198
public SubmitAsyncSearchRequestDescriptor<TDocument> MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests);
1190-
public SubmitAsyncSearchRequestDescriptor<TDocument> MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode);
11911199
public SubmitAsyncSearchRequestDescriptor<TDocument> Preference(string? preference) => Qs("preference", preference);
11921200
public SubmitAsyncSearchRequestDescriptor<TDocument> PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize);
11931201
public SubmitAsyncSearchRequestDescriptor<TDocument> QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax);
@@ -2264,10 +2272,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
22642272

22652273
/// <summary>
22662274
/// <para>
2267-
/// Runs a search request asynchronously.
2268-
/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested.
2269-
/// Warning: Async search does not support scroll nor search requests that only include the suggest section.
2270-
/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
2275+
/// Run an async search.
2276+
/// </para>
2277+
/// <para>
2278+
/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.
2279+
/// </para>
2280+
/// <para>
2281+
/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
2282+
/// </para>
2283+
/// <para>
2284+
/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
22712285
/// The maximum allowed size for a stored async search response can be set by changing the <c>search.max_async_search_response_size</c> cluster level setting.
22722286
/// </para>
22732287
/// </summary>
@@ -2306,7 +2320,6 @@ public SubmitAsyncSearchRequestDescriptor()
23062320
public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion);
23072321
public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient);
23082322
public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests);
2309-
public SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode);
23102323
public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference);
23112324
public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize);
23122325
public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax);

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs

+8-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ public sealed partial class ClearScrollRequestParameters : RequestParameters
3636

3737
/// <summary>
3838
/// <para>
39-
/// Clears the search context and results for a scrolling search.
39+
/// Clear a scrolling search.
40+
/// </para>
41+
/// <para>
42+
/// Clear the search context and results for a scrolling search.
4043
/// </para>
4144
/// </summary>
4245
public sealed partial class ClearScrollRequest : PlainRequest<ClearScrollRequestParameters>
@@ -61,7 +64,10 @@ public sealed partial class ClearScrollRequest : PlainRequest<ClearScrollRequest
6164

6265
/// <summary>
6366
/// <para>
64-
/// Clears the search context and results for a scrolling search.
67+
/// Clear a scrolling search.
68+
/// </para>
69+
/// <para>
70+
/// Clear the search context and results for a scrolling search.
6571
/// </para>
6672
/// </summary>
6773
public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor<ClearScrollRequestDescriptor, ClearScrollRequestParameters>

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs

+14-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ public sealed partial class ClosePointInTimeRequestParameters : RequestParameter
3636

3737
/// <summary>
3838
/// <para>
39-
/// Closes a point-in-time.
39+
/// Close a point in time.
40+
/// </para>
41+
/// <para>
42+
/// A point in time must be opened explicitly before being used in search requests.
43+
/// The <c>keep_alive</c> parameter tells Elasticsearch how long it should persist.
44+
/// A point in time is automatically closed when the <c>keep_alive</c> period has elapsed.
45+
/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests.
4046
/// </para>
4147
/// </summary>
4248
public sealed partial class ClosePointInTimeRequest : PlainRequest<ClosePointInTimeRequestParameters>
@@ -60,7 +66,13 @@ public sealed partial class ClosePointInTimeRequest : PlainRequest<ClosePointInT
6066

6167
/// <summary>
6268
/// <para>
63-
/// Closes a point-in-time.
69+
/// Close a point in time.
70+
/// </para>
71+
/// <para>
72+
/// A point in time must be opened explicitly before being used in search requests.
73+
/// The <c>keep_alive</c> parameter tells Elasticsearch how long it should persist.
74+
/// A point in time is automatically closed when the <c>keep_alive</c> period has elapsed.
75+
/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests.
6476
/// </para>
6577
/// </summary>
6678
public sealed partial class ClosePointInTimeRequestDescriptor : RequestDescriptor<ClosePointInTimeRequestDescriptor, ClosePointInTimeRequestParameters>

Diff for: src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs

+10-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ public sealed partial class DeleteByQueryRethrottleRequestParameters : RequestPa
4242

4343
/// <summary>
4444
/// <para>
45-
/// Changes the number of requests per second for a particular Delete By Query operation.
45+
/// Throttle a delete by query operation.
46+
/// </para>
47+
/// <para>
48+
/// Change the number of requests per second for a particular delete by query operation.
49+
/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.
4650
/// </para>
4751
/// </summary>
4852
public sealed partial class DeleteByQueryRethrottleRequest : PlainRequest<DeleteByQueryRethrottleRequestParameters>
@@ -70,7 +74,11 @@ public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.T
7074

7175
/// <summary>
7276
/// <para>
73-
/// Changes the number of requests per second for a particular Delete By Query operation.
77+
/// Throttle a delete by query operation.
78+
/// </para>
79+
/// <para>
80+
/// Change the number of requests per second for a particular delete by query operation.
81+
/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.
7482
/// </para>
7583
/// </summary>
7684
public sealed partial class DeleteByQueryRethrottleRequestDescriptor : RequestDescriptor<DeleteByQueryRethrottleRequestDescriptor, DeleteByQueryRethrottleRequestParameters>

0 commit comments

Comments
 (0)