Skip to content

Commit

Permalink
Regenerate the client using the latest specification (#8409) (#8414)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bernd <[email protected]>
  • Loading branch information
github-actions[bot] and flobernd authored Nov 19, 2024
1 parent cbf7635 commit 2b5796f
Show file tree
Hide file tree
Showing 318 changed files with 19,795 additions and 5,421 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" });
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" });
internal static ApiUrls InferenceDelete = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
Expand Down Expand Up @@ -218,6 +222,7 @@ internal static class ApiUrlLookup
internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" });
internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
internal static ApiUrls QueryRulesTest = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_test" });
internal static ApiUrls SecurityActivateUserProfile = new ApiUrls(new[] { "_security/profile/_activate" });
internal static ApiUrls SecurityAuthenticate = new ApiUrls(new[] { "_security/_authenticate" });
internal static ApiUrls SecurityBulkDeleteRole = new ApiUrls(new[] { "_security/role" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public sealed partial class AsyncSearchStatusRequestParameters : RequestParamete

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

/// <summary>
/// <para>
/// Get async search status
/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results.
/// Get the async search status.
/// </para>
/// <para>
/// Get the status of a previously submitted async search request given its identifier, without retrieving search results.
/// If the Elasticsearch security features are enabled, use of this API is restricted to the <c>monitoring_user</c> role.
/// </para>
/// </summary>
Expand Down Expand Up @@ -92,8 +96,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o

/// <summary>
/// <para>
/// Get async search status
/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results.
/// Get the async search status.
/// </para>
/// <para>
/// Get the status of a previously submitted async search request given its identifier, without retrieving search results.
/// If the Elasticsearch security features are enabled, use of this API is restricted to the <c>monitoring_user</c> role.
/// </para>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public sealed partial class DeleteAsyncSearchRequestParameters : RequestParamete

/// <summary>
/// <para>
/// Deletes an async search by identifier.
/// If the search is still running, the search request will be cancelled.
/// Delete an async search.
/// </para>
/// <para>
/// If the asynchronous search is still running, it is cancelled.
/// Otherwise, the saved search results are deleted.
/// 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.
/// </para>
Expand All @@ -59,8 +61,10 @@ public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id)

/// <summary>
/// <para>
/// Deletes an async search by identifier.
/// If the search is still running, the search request will be cancelled.
/// Delete an async search.
/// </para>
/// <para>
/// If the asynchronous search is still running, it is cancelled.
/// Otherwise, the saved search results are deleted.
/// 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.
/// </para>
Expand Down Expand Up @@ -94,8 +98,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o

/// <summary>
/// <para>
/// Deletes an async search by identifier.
/// If the search is still running, the search request will be cancelled.
/// Delete an async search.
/// </para>
/// <para>
/// If the asynchronous search is still running, it is cancelled.
/// Otherwise, the saved search results are deleted.
/// 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.
/// </para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public sealed partial class GetAsyncSearchRequestParameters : RequestParameters

/// <summary>
/// <para>
/// Retrieves the results of a previously submitted async search request given its identifier.
/// Get async search results.
/// </para>
/// <para>
/// Retrieve the results of a previously submitted asynchronous search request.
/// 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.
/// </para>
/// </summary>
Expand Down Expand Up @@ -113,7 +116,10 @@ public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : b

/// <summary>
/// <para>
/// Retrieves the results of a previously submitted async search request given its identifier.
/// Get async search results.
/// </para>
/// <para>
/// Retrieve the results of a previously submitted asynchronous search request.
/// 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.
/// </para>
/// </summary>
Expand Down Expand Up @@ -150,7 +156,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o

/// <summary>
/// <para>
/// Retrieves the results of a previously submitted async search request given its identifier.
/// Get async search results.
/// </para>
/// <para>
/// Retrieve the results of a previously submitted asynchronous search request.
/// 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.
/// </para>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete
/// </para>
/// </summary>
public long? MaxConcurrentShardRequests { get => Q<long?>("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); }
public string? MinCompatibleShardNode { get => Q<string?>("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); }

/// <summary>
/// <para>
Expand Down Expand Up @@ -652,10 +651,16 @@ public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value

/// <summary>
/// <para>
/// Runs a search request asynchronously.
/// 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.
/// Warning: Async search does not support scroll nor search requests that only include the suggest section.
/// 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.
/// Run an async search.
/// </para>
/// <para>
/// 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.
/// </para>
/// <para>
/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
/// </para>
/// <para>
/// 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.
/// 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.
/// </para>
/// </summary>
Expand Down Expand Up @@ -799,8 +804,6 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
/// </summary>
[JsonIgnore]
public long? MaxConcurrentShardRequests { get => Q<long?>("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); }
[JsonIgnore]
public string? MinCompatibleShardNode { get => Q<string?>("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); }

/// <summary>
/// <para>
Expand Down Expand Up @@ -1145,10 +1148,16 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices

/// <summary>
/// <para>
/// Runs a search request asynchronously.
/// 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.
/// Warning: Async search does not support scroll nor search requests that only include the suggest section.
/// 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.
/// Run an async search.
/// </para>
/// <para>
/// 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.
/// </para>
/// <para>
/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
/// </para>
/// <para>
/// 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.
/// 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.
/// </para>
/// </summary>
Expand Down Expand Up @@ -1187,7 +1196,6 @@ public SubmitAsyncSearchRequestDescriptor()
public SubmitAsyncSearchRequestDescriptor<TDocument> KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion);
public SubmitAsyncSearchRequestDescriptor<TDocument> Lenient(bool? lenient = true) => Qs("lenient", lenient);
public SubmitAsyncSearchRequestDescriptor<TDocument> MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests);
public SubmitAsyncSearchRequestDescriptor<TDocument> MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode);
public SubmitAsyncSearchRequestDescriptor<TDocument> Preference(string? preference) => Qs("preference", preference);
public SubmitAsyncSearchRequestDescriptor<TDocument> PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize);
public SubmitAsyncSearchRequestDescriptor<TDocument> QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax);
Expand Down Expand Up @@ -2264,10 +2272,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o

/// <summary>
/// <para>
/// Runs a search request asynchronously.
/// 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.
/// Warning: Async search does not support scroll nor search requests that only include the suggest section.
/// 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.
/// Run an async search.
/// </para>
/// <para>
/// 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.
/// </para>
/// <para>
/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
/// </para>
/// <para>
/// 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.
/// 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.
/// </para>
/// </summary>
Expand Down Expand Up @@ -2306,7 +2320,6 @@ public SubmitAsyncSearchRequestDescriptor()
public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion);
public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient);
public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests);
public SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode);
public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference);
public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize);
public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ public sealed partial class ClearScrollRequestParameters : RequestParameters

/// <summary>
/// <para>
/// Clears the search context and results for a scrolling search.
/// Clear a scrolling search.
/// </para>
/// <para>
/// Clear the search context and results for a scrolling search.
/// </para>
/// </summary>
public sealed partial class ClearScrollRequest : PlainRequest<ClearScrollRequestParameters>
Expand All @@ -61,7 +64,10 @@ public sealed partial class ClearScrollRequest : PlainRequest<ClearScrollRequest

/// <summary>
/// <para>
/// Clears the search context and results for a scrolling search.
/// Clear a scrolling search.
/// </para>
/// <para>
/// Clear the search context and results for a scrolling search.
/// </para>
/// </summary>
public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor<ClearScrollRequestDescriptor, ClearScrollRequestParameters>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ public sealed partial class ClosePointInTimeRequestParameters : RequestParameter

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

/// <summary>
/// <para>
/// Closes a point-in-time.
/// Close a point in time.
/// </para>
/// <para>
/// A point in time must be opened explicitly before being used in search requests.
/// The <c>keep_alive</c> parameter tells Elasticsearch how long it should persist.
/// A point in time is automatically closed when the <c>keep_alive</c> period has elapsed.
/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests.
/// </para>
/// </summary>
public sealed partial class ClosePointInTimeRequestDescriptor : RequestDescriptor<ClosePointInTimeRequestDescriptor, ClosePointInTimeRequestParameters>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ public sealed partial class DeleteByQueryRethrottleRequestParameters : RequestPa

/// <summary>
/// <para>
/// Changes the number of requests per second for a particular Delete By Query operation.
/// Throttle a delete by query operation.
/// </para>
/// <para>
/// Change the number of requests per second for a particular delete by query operation.
/// 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.
/// </para>
/// </summary>
public sealed partial class DeleteByQueryRethrottleRequest : PlainRequest<DeleteByQueryRethrottleRequestParameters>
Expand Down Expand Up @@ -70,7 +74,11 @@ public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.T

/// <summary>
/// <para>
/// Changes the number of requests per second for a particular Delete By Query operation.
/// Throttle a delete by query operation.
/// </para>
/// <para>
/// Change the number of requests per second for a particular delete by query operation.
/// 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.
/// </para>
/// </summary>
public sealed partial class DeleteByQueryRethrottleRequestDescriptor : RequestDescriptor<DeleteByQueryRethrottleRequestDescriptor, DeleteByQueryRethrottleRequestParameters>
Expand Down
Loading

0 comments on commit 2b5796f

Please sign in to comment.