diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs index 42f13b4e636..b9e00de0907 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -64,6 +64,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementCreateDataStream = new ApiUrls(new[] { "/_data_stream/{name}" }); internal static ApiUrls IndexManagementCreate = new ApiUrls(new[] { "/{index}" }); internal static ApiUrls IndexManagementDeleteAlias = new ApiUrls(new[] { "/{index}/_alias/{name}" }); + internal static ApiUrls IndexManagementDeleteDataLifecycle = new ApiUrls(new[] { "/_data_stream/{name}/_lifecycle" }); internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "/_data_stream/{name}" }); internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "/{index}" }); internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "/_index_template/{name}" }); @@ -72,9 +73,11 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementExistsIndexTemplate = new ApiUrls(new[] { "/_index_template/{name}" }); internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "/{index}" }); internal static ApiUrls IndexManagementExistsTemplate = new ApiUrls(new[] { "/_template/{name}" }); + internal static ApiUrls IndexManagementExplainDataLifecycle = new ApiUrls(new[] { "/{index}/_lifecycle/explain" }); internal static ApiUrls IndexManagementFlush = new ApiUrls(new[] { "/_flush", "/{index}/_flush" }); internal static ApiUrls IndexManagementForcemerge = new ApiUrls(new[] { "/_forcemerge", "/{index}/_forcemerge" }); internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "/_alias", "/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias" }); + internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "/_data_stream/{name}/_lifecycle" }); internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "/_data_stream", "/_data_stream/{name}" }); internal static ApiUrls IndexManagementGetFieldMapping = new ApiUrls(new[] { "/_mapping/field/{fields}", "/{index}/_mapping/field/{fields}" }); internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "/{index}" }); @@ -85,6 +88,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "/_data_stream/_migrate/{name}" }); internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "/{index}/_open" }); internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "/{index}/_alias/{name}" }); + internal static ApiUrls IndexManagementPutDataLifecycle = new ApiUrls(new[] { "/_data_stream/{name}/_lifecycle" }); internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "/_index_template/{name}" }); internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "/{index}/_mapping" }); internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "/_template/{name}" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs index 007f546ab98..93a83779f99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs @@ -34,7 +34,7 @@ public sealed class AsyncSearchStatusRequestParameters : RequestParameters } /// -/// Retrieves the status of a previously submitted async search request given its ID. +/// Retreives 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 `monitoring_user` role.
///
public sealed partial class AsyncSearchStatusRequest : PlainRequest { @@ -50,7 +50,7 @@ public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => } /// -/// Retrieves the status of a previously submitted async search request given its ID. +/// Retreives 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 `monitoring_user` role.
///
public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor, AsyncSearchStatusRequestParameters> { @@ -82,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Retrieves the status of a previously submitted async search request given its ID. +/// Retreives 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 `monitoring_user` role.
///
public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs index 919368c258a..a23a386c0e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs @@ -28,6 +28,9 @@ namespace Elastic.Clients.Elasticsearch.AsyncSearch; public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse { + /// + /// If the async search completed, this field shows the status code of the search.
For example, 200 indicates that the async search was successfully completed.
503 indicates that the async search was completed with an error.
+ ///
[JsonInclude, JsonPropertyName("completion_status")] public int? CompletionStatus { get; init; } [JsonInclude, JsonPropertyName("expiration_time")] @@ -40,6 +43,10 @@ public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse public bool IsPartial { get; init; } [JsonInclude, JsonPropertyName("is_running")] public bool IsRunning { get; init; } + + /// + /// Indicates how many shards have run the query so far. + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } [JsonInclude, JsonPropertyName("start_time")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs index 13eda4f39f2..66521de9069 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs @@ -34,7 +34,7 @@ public sealed class DeleteAsyncSearchRequestParameters : RequestParameters } /// -/// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. +/// Deletes an async search by identifier.
If the search is still running, the search request will be 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 `cancel_task` cluster privilege.
///
public sealed partial class DeleteAsyncSearchRequest : PlainRequest { @@ -50,7 +50,7 @@ public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => } /// -/// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. +/// Deletes an async search by identifier.
If the search is still running, the search request will be 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 `cancel_task` cluster privilege.
///
public sealed partial class DeleteAsyncSearchRequestDescriptor : RequestDescriptor, DeleteAsyncSearchRequestParameters> { @@ -82,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. +/// Deletes an async search by identifier.
If the search is still running, the search request will be 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 `cancel_task` cluster privilege.
///
public sealed partial class DeleteAsyncSearchRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs index 63882aa0d61..1d277f4df7d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.AsyncSearch; public sealed class GetAsyncSearchRequestParameters : RequestParameters { /// - /// Specify the time interval in which the results (partial or final) for this search will be available + /// Specifies how long the async search should be available in the cluster.
When not specified, the `keep_alive` set with the corresponding submit async request will be used.
Otherwise, it is possible to override the value and extend the validity of the request.
When this period expires, the search, if still running, is cancelled.
If the search is completed, its saved results are deleted.
///
public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } @@ -42,13 +42,13 @@ public sealed class GetAsyncSearchRequestParameters : RequestParameters public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } /// - /// Specify the time that the request should block waiting for the final response + /// Specifies to wait for the search to be completed up until the provided timeout.
Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.
By default no timeout is set meaning that the currently available results will be returned without any additional wait.
///
public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } } /// -/// Retrieves the results of a previously submitted async search request given its ID. +/// Retrieves the results of a previously submitted async search request given its identifier.
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.
///
public sealed partial class GetAsyncSearchRequest : PlainRequest { @@ -63,7 +63,7 @@ public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r. internal override bool SupportsBody => false; /// - /// Specify the time interval in which the results (partial or final) for this search will be available + /// Specifies how long the async search should be available in the cluster.
When not specified, the `keep_alive` set with the corresponding submit async request will be used.
Otherwise, it is possible to override the value and extend the validity of the request.
When this period expires, the search, if still running, is cancelled.
If the search is completed, its saved results are deleted.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } @@ -75,14 +75,14 @@ public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r. public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } /// - /// Specify the time that the request should block waiting for the final response + /// Specifies to wait for the search to be completed up until the provided timeout.
Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.
By default no timeout is set meaning that the currently available results will be returned without any additional wait.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } } /// -/// Retrieves the results of a previously submitted async search request given its ID. +/// Retrieves the results of a previously submitted async search request given its identifier.
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.
///
public sealed partial class GetAsyncSearchRequestDescriptor : RequestDescriptor, GetAsyncSearchRequestParameters> { @@ -118,7 +118,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Retrieves the results of a previously submitted async search request given its ID. +/// Retrieves the results of a previously submitted async search request given its identifier.
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.
///
public sealed partial class GetAsyncSearchRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index ed9fe394da2..bf80b95380f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -32,17 +32,17 @@ namespace Elastic.Clients.Elasticsearch.AsyncSearch; public sealed class SubmitAsyncSearchRequestParameters : RequestParameters { /// - /// Specify the time that the request should block waiting for the final response + /// Blocks and waits until the search is completed up to a certain timeout.
When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster.
///
public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } /// - /// Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false) + /// If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`. /// public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); } /// - /// Update the time interval in which the results (partial or final) for this search will be available + /// Specifies how long the async search needs to be available.
Ongoing async searches and any saved search results are deleted after this period.
///
public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } @@ -67,9 +67,13 @@ public sealed class SubmitAsyncSearchRequestParameters : RequestParameters public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available. + /// Affects how often partial results become available, which happens whenever shard results are reduced.
A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default).
///
public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); } + + /// + /// The default value is the only supported value. + /// public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// @@ -112,6 +116,10 @@ public sealed class SubmitAsyncSearchRequestParameters : RequestParameters /// Specify the node or shard the operation should be performed on (default: random) /// public string? Preference { get => Q("preference"); set => Q("preference", value); } + + /// + /// 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. + /// public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } /// @@ -582,7 +590,7 @@ public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value [JsonConverter(typeof(SubmitAsyncSearchRequestConverter))] /// -/// Executes a search request asynchronously. +/// 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.
The maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting.
///
public sealed partial class SubmitAsyncSearchRequest : PlainRequest { @@ -601,19 +609,19 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) internal override bool SupportsBody => true; /// - /// Specify the time that the request should block waiting for the final response + /// Blocks and waits until the search is completed up to a certain timeout.
When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } /// - /// Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false) + /// If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`. /// [JsonIgnore] public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); } /// - /// Update the time interval in which the results (partial or final) for this search will be available + /// Specifies how long the async search needs to be available.
Ongoing async searches and any saved search results are deleted after this period.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } @@ -643,10 +651,14 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available. + /// Affects how often partial results become available, which happens whenever shard results are reduced.
A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default).
///
[JsonIgnore] public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); } + + /// + /// The default value is the only supported value. + /// [JsonIgnore] public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } @@ -699,6 +711,10 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) ///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } + + /// + /// 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. + /// [JsonIgnore] public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } @@ -926,7 +942,7 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) } /// -/// Executes a search request asynchronously. +/// 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.
The maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting.
///
public sealed partial class SubmitAsyncSearchRequestDescriptor : RequestDescriptor, SubmitAsyncSearchRequestParameters> { @@ -1996,7 +2012,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Executes a search request asynchronously. +/// 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.
The maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting.
///
public sealed partial class SubmitAsyncSearchRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryResponse.g.cs index 15b81f26254..cf60a837bcd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryResponse.g.cs @@ -46,11 +46,11 @@ public sealed partial class DeleteByQueryResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("throttled")] public Elastic.Clients.Elasticsearch.Duration? Throttled { get; init; } [JsonInclude, JsonPropertyName("throttled_millis")] - public long ThrottledMillis { get; init; } + public long? ThrottledMillis { get; init; } [JsonInclude, JsonPropertyName("throttled_until")] public Elastic.Clients.Elasticsearch.Duration? ThrottledUntil { get; init; } [JsonInclude, JsonPropertyName("throttled_until_millis")] - public long ThrottledUntilMillis { get; init; } + public long? ThrottledUntilMillis { get; init; } [JsonInclude, JsonPropertyName("timed_out")] public bool? TimedOut { get; init; } [JsonInclude, JsonPropertyName("took")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs new file mode 100644 index 00000000000..1c4c90a2b4c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs @@ -0,0 +1,120 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed class DeleteDataLifecycleRequestParameters : RequestParameters +{ + /// + /// Whether wildcard expressions should get expanded to open or closed indices (default: open) + /// + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Specify timeout for connection to master + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// Explicit timestamp for the document + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Removes the data lifecycle from a data stream rendering it not managed by DLM +/// +public sealed partial class DeleteDataLifecycleRequest : PlainRequest +{ + public DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + /// + /// Whether wildcard expressions should get expanded to open or closed indices (default: open) + /// + [JsonIgnore] + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Specify timeout for connection to master + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// Explicit timestamp for the document + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Removes the data lifecycle from a data stream rendering it not managed by DLM +/// +public sealed partial class DeleteDataLifecycleRequestDescriptor : RequestDescriptor +{ + internal DeleteDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); + + public DeleteDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) + { + } + + internal DeleteDataLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + public DeleteDataLifecycleRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public DeleteDataLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public DeleteDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.DataStreamNames name) + { + RouteValues.Required("name", name); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs new file mode 100644 index 00000000000..5444d10778d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// +public sealed partial class DeleteDataLifecycleResponse : ElasticsearchResponse +{ + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs new file mode 100644 index 00000000000..ceb081c7df0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -0,0 +1,144 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed class ExplainDataLifecycleRequestParameters : RequestParameters +{ + /// + /// indicates if the API should return the default values the system uses for the index's lifecycle + /// + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } + + /// + /// Specify timeout for connection to master + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// +public sealed partial class ExplainDataLifecycleRequest : PlainRequest +{ + public ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExplainDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + /// + /// indicates if the API should return the default values the system uses for the index's lifecycle + /// + [JsonIgnore] + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } + + /// + /// Specify timeout for connection to master + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// +public sealed partial class ExplainDataLifecycleRequestDescriptor : RequestDescriptor, ExplainDataLifecycleRequestParameters> +{ + internal ExplainDataLifecycleRequestDescriptor(Action> configure) => configure.Invoke(this); + + public ExplainDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal ExplainDataLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExplainDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + public ExplainDataLifecycleRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); + public ExplainDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + + public ExplainDataLifecycleRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// +public sealed partial class ExplainDataLifecycleRequestDescriptor : RequestDescriptor +{ + internal ExplainDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); + + public ExplainDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal ExplainDataLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExplainDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + public ExplainDataLifecycleRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); + public ExplainDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + + public ExplainDataLifecycleRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs new file mode 100644 index 00000000000..af24db80c7c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// +public sealed partial class ExplainDataLifecycleResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("indices")] + [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycleExplain))] + public IReadOnlyDictionary Indices { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs new file mode 100644 index 00000000000..d0f72f5abf9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs @@ -0,0 +1,108 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed class GetDataLifecycleRequestParameters : RequestParameters +{ + /// + /// Whether wildcard expressions should get expanded to open or closed indices (default: open) + /// + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Return all relevant default configurations for the data stream (default: false) + /// + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Retrieves the data lifecycle configuration of one or more data streams. +/// +public sealed partial class GetDataLifecycleRequest : PlainRequest +{ + public GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + /// + /// Whether wildcard expressions should get expanded to open or closed indices (default: open) + /// + [JsonIgnore] + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Return all relevant default configurations for the data stream (default: false) + /// + [JsonIgnore] + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Retrieves the data lifecycle configuration of one or more data streams. +/// +public sealed partial class GetDataLifecycleRequestDescriptor : RequestDescriptor +{ + internal GetDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) + { + } + + internal GetDataLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + public GetDataLifecycleRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public GetDataLifecycleRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); + + public GetDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.DataStreamNames name) + { + RouteValues.Required("name", name); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs new file mode 100644 index 00000000000..c92e28defd0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// +public sealed partial class GetDataLifecycleResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("data_streams")] + public IReadOnlyCollection DataStreams { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs index 0bad9d5caf8..9804e6d85a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs @@ -35,6 +35,11 @@ public sealed class GetDataStreamRequestParameters : RequestParameters /// Whether wildcard expressions should get expanded to open or closed indices (default: open) /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// If true, returns all relevant default configurations for the index template. + /// + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } /// @@ -61,6 +66,12 @@ public GetDataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamNames? name) /// [JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// If true, returns all relevant default configurations for the index template. + /// + [JsonIgnore] + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } /// @@ -81,6 +92,7 @@ public GetDataStreamRequestDescriptor() internal override bool SupportsBody => false; public GetDataStreamRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public GetDataStreamRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public GetDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.DataStreamNames? name) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs index 87d72528bba..f21836242c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs @@ -45,6 +45,11 @@ public sealed class GetIndexTemplateRequestParameters : RequestParameters /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// If true, returns all relevant default configurations for the index template. + /// + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } /// @@ -83,6 +88,12 @@ public GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base( /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// If true, returns all relevant default configurations for the index template. + /// + [JsonIgnore] + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } /// @@ -103,6 +114,7 @@ public GetIndexTemplateRequestDescriptor() internal override bool SupportsBody => false; public GetIndexTemplateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); + public GetIndexTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public GetIndexTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); public GetIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs new file mode 100644 index 00000000000..70c49aa4543 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -0,0 +1,138 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed class PutDataLifecycleRequestParameters : RequestParameters +{ + /// + /// Whether wildcard expressions should get expanded to open or closed indices (default: open) + /// + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Specify timeout for connection to master + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// Explicit timestamp for the document + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Update the data lifecycle of the specified data streams. +/// +public sealed partial class PutDataLifecycleRequest : PlainRequest +{ + public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + /// + /// Whether wildcard expressions should get expanded to open or closed indices (default: open) + /// + [JsonIgnore] + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Specify timeout for connection to master + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// Explicit timestamp for the document + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + [JsonInclude, JsonPropertyName("data_retention")] + public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Update the data lifecycle of the specified data streams. +/// +public sealed partial class PutDataLifecycleRequestDescriptor : RequestDescriptor +{ + internal PutDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) + { + } + + internal PutDataLifecycleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutDataLifecycle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + public PutDataLifecycleRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PutDataLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public PutDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.DataStreamNames name) + { + RouteValues.Required("name", name); + return Self; + } + + private Elastic.Clients.Elasticsearch.Duration? DataRetentionValue { get; set; } + + public PutDataLifecycleRequestDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) + { + DataRetentionValue = dataRetention; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DataRetentionValue is not null) + { + writer.WritePropertyName("data_retention"); + JsonSerializer.Serialize(writer, DataRetentionValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs new file mode 100644 index 00000000000..69531a0a39f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// +public sealed partial class PutDataLifecycleResponse : ElasticsearchResponse +{ + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs index 24c789a2084..c19573c80f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs @@ -40,6 +40,11 @@ public sealed class SimulateIndexTemplateRequestParameters : RequestParameters /// Period to wait for a connection to the master node. If no response is received
before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// If true, returns all relevant default configurations for the index template. + /// + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } /// @@ -68,6 +73,12 @@ public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : b /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// If true, returns all relevant default configurations for the index template. + /// + [JsonIgnore] + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } [JsonInclude, JsonPropertyName("allow_auto_create")] public bool? AllowAutoCreate { get; set; } [JsonInclude, JsonPropertyName("index_patterns")] @@ -108,6 +119,7 @@ internal SimulateIndexTemplateRequestDescriptor() internal override bool SupportsBody => true; public SimulateIndexTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); + public SimulateIndexTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public SimulateIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public SimulateIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) @@ -310,6 +322,7 @@ internal SimulateIndexTemplateRequestDescriptor() internal override bool SupportsBody => true; public SimulateIndexTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); + public SimulateIndexTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public SimulateIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public SimulateIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs index 6f2063ec4bf..900efbeffc9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs @@ -40,6 +40,11 @@ public sealed class SimulateTemplateRequestParameters : RequestParameters /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// If true, returns all relevant default configurations for the index template. + /// + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } /// @@ -72,6 +77,12 @@ public SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base( /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// If true, returns all relevant default configurations for the index template. + /// + [JsonIgnore] + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } /// @@ -92,6 +103,7 @@ public SimulateTemplateRequestDescriptor() internal override bool SupportsBody => false; public SimulateTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); + public SimulateTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public SimulateTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public SimulateTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index 85f6ca5479c..94580d24a97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -249,6 +249,12 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert continue; } + if (property == "rank") + { + variant.Rank = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "min_score") { variant.MinScore = JsonSerializer.Deserialize(ref reader, options); @@ -449,6 +455,12 @@ public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSeria JsonSerializer.Serialize(writer, value.Knn, options); } + if (value.Rank is not null) + { + writer.WritePropertyName("rank"); + JsonSerializer.Serialize(writer, value.Rank, options); + } + if (value.MinScore.HasValue) { writer.WritePropertyName("min_score"); @@ -827,6 +839,12 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude, JsonPropertyName("knn"), SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.KnnQuery))] public ICollection? Knn { get; set; } + /// + /// Defines the Reciprocal Rank Fusion (RRF) to use + /// + [JsonInclude, JsonPropertyName("rank")] + public Elastic.Clients.Elasticsearch.Rank? Rank { get; set; } + /// /// Minimum _score for matching documents. Documents with a lower _score are
not included in the search results.
///
@@ -1047,6 +1065,9 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; } private Action PitDescriptorAction { get; set; } private bool? ProfileValue { get; set; } + private Elastic.Clients.Elasticsearch.Rank? RankValue { get; set; } + private RankDescriptor RankDescriptor { get; set; } + private Action RankDescriptorAction { get; set; } private IDictionary? RuntimeMappingsValue { get; set; } private IDictionary? ScriptFieldsValue { get; set; } private ICollection? SearchAfterValue { get; set; } @@ -1486,6 +1507,33 @@ public SearchRequestDescriptor Profile(bool? profile = true) return Self; } + /// + /// Defines the Reciprocal Rank Fusion (RRF) to use + /// + public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Rank? rank) + { + RankDescriptor = null; + RankDescriptorAction = null; + RankValue = rank; + return Self; + } + + public SearchRequestDescriptor Rank(RankDescriptor descriptor) + { + RankValue = null; + RankDescriptorAction = null; + RankDescriptor = descriptor; + return Self; + } + + public SearchRequestDescriptor Rank(Action configure) + { + RankValue = null; + RankDescriptor = null; + RankDescriptorAction = configure; + return Self; + } + /// /// Defines one or more runtime fields in the search request. These fields take
precedence over mapped fields with the same name.
///
@@ -1921,6 +1969,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(ProfileValue.Value); } + if (RankDescriptor is not null) + { + writer.WritePropertyName("rank"); + JsonSerializer.Serialize(writer, RankDescriptor, options); + } + else if (RankDescriptorAction is not null) + { + writer.WritePropertyName("rank"); + JsonSerializer.Serialize(writer, new RankDescriptor(RankDescriptorAction), options); + } + else if (RankValue is not null) + { + writer.WritePropertyName("rank"); + JsonSerializer.Serialize(writer, RankValue, options); + } + if (RuntimeMappingsValue is not null) { writer.WritePropertyName("runtime_mappings"); @@ -2118,6 +2182,9 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? in private Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; } private Action PitDescriptorAction { get; set; } private bool? ProfileValue { get; set; } + private Elastic.Clients.Elasticsearch.Rank? RankValue { get; set; } + private RankDescriptor RankDescriptor { get; set; } + private Action RankDescriptorAction { get; set; } private IDictionary? RuntimeMappingsValue { get; set; } private IDictionary? ScriptFieldsValue { get; set; } private ICollection? SearchAfterValue { get; set; } @@ -2557,6 +2624,33 @@ public SearchRequestDescriptor Profile(bool? profile = true) return Self; } + /// + /// Defines the Reciprocal Rank Fusion (RRF) to use + /// + public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Rank? rank) + { + RankDescriptor = null; + RankDescriptorAction = null; + RankValue = rank; + return Self; + } + + public SearchRequestDescriptor Rank(RankDescriptor descriptor) + { + RankValue = null; + RankDescriptorAction = null; + RankDescriptor = descriptor; + return Self; + } + + public SearchRequestDescriptor Rank(Action configure) + { + RankValue = null; + RankDescriptor = null; + RankDescriptorAction = configure; + return Self; + } + /// /// Defines one or more runtime fields in the search request. These fields take
precedence over mapped fields with the same name.
///
@@ -2992,6 +3086,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(ProfileValue.Value); } + if (RankDescriptor is not null) + { + writer.WritePropertyName("rank"); + JsonSerializer.Serialize(writer, RankDescriptor, options); + } + else if (RankDescriptorAction is not null) + { + writer.WritePropertyName("rank"); + JsonSerializer.Serialize(writer, new RankDescriptor(RankDescriptorAction), options); + } + else if (RankValue is not null) + { + writer.WritePropertyName("rank"); + JsonSerializer.Serialize(writer, RankValue, options); + } + if (RuntimeMappingsValue is not null) { writer.WritePropertyName("runtime_mappings"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index 46ced9d9500..8abef9cad8e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -38,7 +38,7 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request) { @@ -48,7 +48,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) { @@ -69,7 +69,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescript /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { @@ -91,7 +91,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) { @@ -101,7 +101,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { @@ -113,7 +113,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -134,7 +134,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -156,7 +156,7 @@ public virtual Task StatusAsync(AsyncSearc /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -168,7 +168,7 @@ public virtual Task StatusAsync(Elastic.Cl /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request) { @@ -178,7 +178,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) { @@ -199,7 +199,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) { @@ -209,7 +209,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescript /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { @@ -221,7 +221,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) { @@ -231,7 +231,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { @@ -243,7 +243,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -254,7 +254,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -264,7 +264,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -276,7 +276,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -286,7 +286,7 @@ public virtual Task DeleteAsync(DeleteAsyn /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -298,7 +298,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequest request) { @@ -308,7 +308,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -318,7 +318,7 @@ public virtual Task> GetAsync(GetAs /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id) { @@ -329,7 +329,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequestDescriptor descriptor) { @@ -339,7 +339,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { @@ -351,7 +351,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -362,7 +362,7 @@ public virtual Task> GetAsync(Elast /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -372,7 +372,7 @@ public virtual Task> GetAsync(GetAs /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -384,7 +384,7 @@ public virtual Task> GetAsync(Elast /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequest request) { @@ -394,7 +394,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit() { @@ -415,7 +415,7 @@ public virtual SubmitAsyncSearchResponse Submit() /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequestDescriptor descriptor) { @@ -425,7 +425,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(Action> configureRequest) { @@ -437,7 +437,7 @@ public virtual SubmitAsyncSearchResponse Submit(Action /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { @@ -448,7 +448,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -458,7 +458,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 2fb4449ff03..59b577d8bdc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -38,7 +38,7 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequest request) { @@ -48,7 +48,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain() { @@ -69,7 +69,7 @@ public virtual AllocationExplainResponse AllocationExplain() /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(Action configureRequest) { @@ -91,7 +91,7 @@ public virtual AllocationExplainResponse AllocationExplain(Action /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) { @@ -102,7 +102,7 @@ public virtual Task AllocationExplainAsync(Cancellati /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -112,7 +112,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task AllocationExplainAsync(Action /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) { @@ -134,7 +134,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) { @@ -144,7 +144,7 @@ public virtual Task StatsAsync(ClusterStatsRequest request /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats() { @@ -155,7 +155,7 @@ public virtual ClusterStatsResponse Stats() /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descriptor) { @@ -165,7 +165,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descript /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(Action configureRequest) { @@ -177,7 +177,7 @@ public virtual ClusterStatsResponse Stats(Action /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task StatsAsync(CancellationToken cancellat /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -198,7 +198,7 @@ public virtual Task StatsAsync(ClusterStatsRequestDescript /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -210,7 +210,7 @@ public virtual Task StatsAsync(Action /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest request) { @@ -220,7 +220,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) { @@ -230,7 +230,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings() { @@ -241,7 +241,7 @@ public virtual GetClusterSettingsResponse GetSettings() /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestDescriptor descriptor) { @@ -251,7 +251,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestD /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(Action configureRequest) { @@ -263,7 +263,7 @@ public virtual GetClusterSettingsResponse GetSettings(Action /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -274,7 +274,7 @@ public virtual Task GetSettingsAsync(CancellationTok /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -284,7 +284,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -296,7 +296,7 @@ public virtual Task GetSettingsAsync(Action /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequest request) { @@ -306,7 +306,7 @@ public virtual HealthResponse Health(HealthRequest request) /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) { @@ -316,7 +316,7 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health() { @@ -327,7 +327,7 @@ public virtual HealthResponse Health() /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequestDescriptor descriptor) { @@ -337,7 +337,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor descriptor) /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(Action configureRequest) { @@ -349,7 +349,7 @@ public virtual HealthResponse Health(Action configureRe /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequestDescriptor descriptor) { @@ -359,7 +359,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(Action> configureRequest) { @@ -371,7 +371,7 @@ public virtual HealthResponse Health(Action /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -382,7 +382,7 @@ public virtual Task HealthAsync(CancellationToken cancellationTo /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -392,7 +392,7 @@ public virtual Task HealthAsync(HealthRequestDescriptor descript /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task HealthAsync(Action /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -414,7 +414,7 @@ public virtual Task HealthAsync(HealthRequestDescript /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -426,7 +426,7 @@ public virtual Task HealthAsync(Action /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) { @@ -436,7 +436,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) { @@ -446,7 +446,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequest /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks() { @@ -457,7 +457,7 @@ public virtual PendingTasksResponse PendingTasks() /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor descriptor) { @@ -467,7 +467,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor d /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks(Action configureRequest) { @@ -479,7 +479,7 @@ public virtual PendingTasksResponse PendingTasks(Action /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) { @@ -490,7 +490,7 @@ public virtual Task PendingTasksAsync(CancellationToken ca /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -500,7 +500,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequestD /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index 118568e75c8..1fdf2ffdb8d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -734,6 +734,100 @@ public virtual Task DeleteAliasAsync(Elastic.Cli return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); } + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Deletes the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Deletes the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Deletes the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) + { + var descriptor = new DeleteDataLifecycleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Deletes the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Deletes the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) + { + var descriptor = new DeleteDataLifecycleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Deletes the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteDataLifecycleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Deletes the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Deletes the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteDataLifecycleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// Deletes a data stream. /// Learn more about this API in the Elasticsearch documentation. @@ -1554,6 +1648,148 @@ public virtual Task ExistsTemplateAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + } + /// /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. @@ -1944,6 +2180,100 @@ public virtual Task GetAliasAsync(Action, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); } + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataLifecycleAsync(GetDataLifecycleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) + { + var descriptor = new GetDataLifecycleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) + { + var descriptor = new GetDataLifecycleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) + { + var descriptor = new GetDataLifecycleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataLifecycleAsync(GetDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetDataLifecycleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// Returns data streams. /// Learn more about this API in the Elasticsearch documentation. @@ -3068,6 +3398,100 @@ public virtual Task PutAliasAsync(Elastic.Clients.E return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); } + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Updates the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Updates the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Updates the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) + { + var descriptor = new PutDataLifecycleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Updates the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Updates the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) + { + var descriptor = new PutDataLifecycleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Updates the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) + { + var descriptor = new PutDataLifecycleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Updates the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Updates the data lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutDataLifecycleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// Creates or updates an index template. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs index 9b3c306bb3b..941cba1eb9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs @@ -39,7 +39,7 @@ internal TasksNamespacedClient(ElasticsearchClient client) : base(client) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CancelResponse Cancel(CancelRequest request) { @@ -50,7 +50,7 @@ public virtual CancelResponse Cancel(CancelRequest request) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequest request, CancellationToken cancellationToken = default) { @@ -61,7 +61,7 @@ public virtual Task CancelAsync(CancelRequest request, Cancellat /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CancelResponse Cancel() { @@ -73,7 +73,7 @@ public virtual CancelResponse Cancel() /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) { @@ -84,7 +84,7 @@ public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CancelResponse Cancel(Action configureRequest) { @@ -97,7 +97,7 @@ public virtual CancelResponse Cancel(Action configureRe /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancellationToken cancellationToken = default) { @@ -109,7 +109,7 @@ public virtual Task CancelAsync(CancellationToken cancellationTo /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -120,7 +120,7 @@ public virtual Task CancelAsync(CancelRequestDescriptor descript /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -133,7 +133,7 @@ public virtual Task CancelAsync(Action /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetTasksResponse Get(GetTasksRequest request) { @@ -144,7 +144,7 @@ public virtual GetTasksResponse Get(GetTasksRequest request) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequest request, CancellationToken cancellationToken = default) { @@ -155,7 +155,7 @@ public virtual Task GetAsync(GetTasksRequest request, Cancella /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id) { @@ -167,7 +167,7 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) { @@ -178,7 +178,7 @@ public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest) { @@ -191,7 +191,7 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id, Ac /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id task_id, CancellationToken cancellationToken = default) { @@ -203,7 +203,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -214,7 +214,7 @@ public virtual Task GetAsync(GetTasksRequestDescriptor descrip /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -227,7 +227,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ListResponse List(ListRequest request) { @@ -238,7 +238,7 @@ public virtual ListResponse List(ListRequest request) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequest request, CancellationToken cancellationToken = default) { @@ -249,7 +249,7 @@ public virtual Task ListAsync(ListRequest request, CancellationTok /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ListResponse List() { @@ -261,7 +261,7 @@ public virtual ListResponse List() /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ListResponse List(ListRequestDescriptor descriptor) { @@ -272,7 +272,7 @@ public virtual ListResponse List(ListRequestDescriptor descriptor) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ListResponse List(Action configureRequest) { @@ -285,7 +285,7 @@ public virtual ListResponse List(Action configureRequest) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(CancellationToken cancellationToken = default) { @@ -297,7 +297,7 @@ public virtual Task ListAsync(CancellationToken cancellationToken /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -308,7 +308,7 @@ public virtual Task ListAsync(ListRequestDescriptor descriptor, Ca /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index c57daa93fd6..09fb77a6c46 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -53,7 +53,7 @@ private partial void SetupNamespaces() /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequest request) { @@ -63,7 +63,7 @@ public virtual BulkResponse Bulk(BulkRequest request) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) { @@ -73,7 +73,7 @@ public virtual Task BulkAsync(BulkRequest request, CancellationTok /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) { @@ -83,7 +83,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(Action configureRequest) { @@ -95,7 +95,7 @@ public virtual BulkResponse Bulk(Action configureRequest) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) { @@ -105,7 +105,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor des /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(Action> configureRequest) { @@ -117,7 +117,7 @@ public virtual BulkResponse Bulk(Action /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -127,7 +127,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor descriptor, Ca /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -139,7 +139,7 @@ public virtual Task BulkAsync(Action config /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -149,7 +149,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -161,7 +161,7 @@ public virtual Task BulkAsync(Action /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) { @@ -171,7 +171,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) { @@ -181,7 +181,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll() { @@ -192,7 +192,7 @@ public virtual ClearScrollResponse ClearScroll() /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) { @@ -202,7 +202,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor desc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(Action configureRequest) { @@ -214,7 +214,7 @@ public virtual ClearScrollResponse ClearScroll(Action /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { @@ -225,7 +225,7 @@ public virtual Task ClearScrollAsync(CancellationToken canc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -235,7 +235,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequestDesc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -247,7 +247,7 @@ public virtual Task ClearScrollAsync(Action /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) { @@ -257,7 +257,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -267,7 +267,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime() { @@ -278,7 +278,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime() /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) { @@ -288,7 +288,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) { @@ -300,7 +300,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(Action /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { @@ -311,7 +311,7 @@ public virtual Task ClosePointInTimeAsync(Cancellation /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -321,7 +321,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2801,7 +2801,7 @@ public virtual Task MultiTermVectorsAsync(A /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) { @@ -2811,7 +2811,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest re /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -2821,7 +2821,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) { @@ -2832,7 +2832,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) { @@ -2842,7 +2842,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDes /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { @@ -2854,7 +2854,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) { @@ -2864,7 +2864,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { @@ -2876,7 +2876,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -2887,7 +2887,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2897,7 +2897,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2909,7 +2909,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2919,7 +2919,7 @@ public virtual Task OpenPointInTimeAsync(Ope /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs index 54199bd56a8..1f7bf29aef8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs @@ -33,8 +33,16 @@ public sealed partial class AsyncSearch public Elastic.Clients.Elasticsearch.ClusterStatistics? Clusters { get; init; } [JsonInclude, JsonPropertyName("_scroll_id")] public Elastic.Clients.Elasticsearch.ScrollId? ScrollId { get; init; } + + /// + /// Indicates how many shards have run the query.
Note that in order for shard results to be included in the search response, they need to be reduced first.
+ ///
[JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } + + /// + /// Partial aggregations results, coming from the shards that have already completed the execution of the query. + /// [JsonInclude, JsonPropertyName("aggregations")] public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; init; } [JsonInclude, JsonPropertyName("fields")] @@ -43,6 +51,10 @@ public sealed partial class AsyncSearch public Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; init; } [JsonInclude, JsonPropertyName("max_score")] public double? MaxScore { get; init; } + + /// + /// Indicates how many reductions of the results have been performed.
If this number increases compared to the last retrieved results for a get asynch search request, you can expect additional results included in the search response.
+ ///
[JsonInclude, JsonPropertyName("num_reduce_phases")] public long? NumReducePhases { get; init; } [JsonInclude, JsonPropertyName("pit_id")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs index a2f680310ca..e5d0a45b35d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -843,6 +843,8 @@ public enum TimeSeriesMetricType { [EnumMember(Value = "summary")] Summary, + [EnumMember(Value = "position")] + Position, [EnumMember(Value = "histogram")] Histogram, [EnumMember(Value = "gauge")] @@ -860,6 +862,8 @@ public override TimeSeriesMetricType Read(ref Utf8JsonReader reader, Type typeTo { case "summary": return TimeSeriesMetricType.Summary; + case "position": + return TimeSeriesMetricType.Position; case "histogram": return TimeSeriesMetricType.Histogram; case "gauge": @@ -878,6 +882,9 @@ public override void Write(Utf8JsonWriter writer, TimeSeriesMetricType value, Js case TimeSeriesMetricType.Summary: writer.WriteStringValue("summary"); return; + case TimeSeriesMetricType.Position: + writer.WriteStringValue("position"); + return; case TimeSeriesMetricType.Histogram: writer.WriteStringValue("histogram"); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycle.g.cs new file mode 100644 index 00000000000..620c05f5e85 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycle.g.cs @@ -0,0 +1,69 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +/// +/// Data lifecycle denotes that a data stream is managed by DLM and contains the configuration. +/// +public sealed partial class DataLifecycle +{ + [JsonInclude, JsonPropertyName("data_retention")] + public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } +} + +/// +/// Data lifecycle denotes that a data stream is managed by DLM and contains the configuration. +/// +public sealed partial class DataLifecycleDescriptor : SerializableDescriptor +{ + internal DataLifecycleDescriptor(Action configure) => configure.Invoke(this); + + public DataLifecycleDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Duration? DataRetentionValue { get; set; } + + public DataLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) + { + DataRetentionValue = dataRetention; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DataRetentionValue is not null) + { + writer.WritePropertyName("data_retention"); + JsonSerializer.Serialize(writer, DataRetentionValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs new file mode 100644 index 00000000000..e4a8cf1b4e3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs @@ -0,0 +1,50 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class DataLifecycleExplain +{ + [JsonInclude, JsonPropertyName("error")] + public string? Error { get; init; } + [JsonInclude, JsonPropertyName("generation_time")] + public Elastic.Clients.Elasticsearch.Duration? GenerationTime { get; init; } + [JsonInclude, JsonPropertyName("index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("index_creation_date_millis")] + public long? IndexCreationDateMillis { get; init; } + [JsonInclude, JsonPropertyName("lifecycle")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } + [JsonInclude, JsonPropertyName("managed_by_dlm")] + public bool ManagedByDlm { get; init; } + [JsonInclude, JsonPropertyName("rollover_date_millis")] + public long? RolloverDateMillis { get; init; } + [JsonInclude, JsonPropertyName("time_since_index_creation")] + public Elastic.Clients.Elasticsearch.Duration? TimeSinceIndexCreation { get; init; } + [JsonInclude, JsonPropertyName("time_since_rollover")] + public Elastic.Clients.Elasticsearch.Duration? TimeSinceRollover { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs new file mode 100644 index 00000000000..27259fef3c3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs @@ -0,0 +1,39 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +/// +/// Data lifecycle with rollover can be used to display the configuration including the default rollover conditions,
if asked.
+///
+public sealed partial class DataLifecycleWithRollover +{ + [JsonInclude, JsonPropertyName("data_retention")] + public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; init; } + [JsonInclude, JsonPropertyName("rollover")] + public Elastic.Clients.Elasticsearch.IndexManagement.DlmRolloverConditions? Rollover { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs index 7e1efa85495..c87adcc16fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs @@ -41,6 +41,8 @@ public sealed partial class DataStream public string? IlmPolicy { get; init; } [JsonInclude, JsonPropertyName("indices")] public IReadOnlyCollection Indices { get; init; } + [JsonInclude, JsonPropertyName("lifecycle")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } [JsonInclude, JsonPropertyName("replicated")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs new file mode 100644 index 00000000000..500a112d0e8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class DataStreamLifecycle +{ + [JsonInclude, JsonPropertyName("lifecycle")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? Lifecycle { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs new file mode 100644 index 00000000000..6ae7a2cd5c4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs @@ -0,0 +1,52 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class DlmRolloverConditions +{ + [JsonInclude, JsonPropertyName("max_age")] + public string? MaxAge { get; init; } + [JsonInclude, JsonPropertyName("max_docs")] + public long? MaxDocs { get; init; } + [JsonInclude, JsonPropertyName("max_primary_shard_docs")] + public long? MaxPrimaryShardDocs { get; init; } + [JsonInclude, JsonPropertyName("max_primary_shard_size")] + public Elastic.Clients.Elasticsearch.ByteSize? MaxPrimaryShardSize { get; init; } + [JsonInclude, JsonPropertyName("max_size")] + public Elastic.Clients.Elasticsearch.ByteSize? MaxSize { get; init; } + [JsonInclude, JsonPropertyName("min_age")] + public Elastic.Clients.Elasticsearch.Duration? MinAge { get; init; } + [JsonInclude, JsonPropertyName("min_docs")] + public long? MinDocs { get; init; } + [JsonInclude, JsonPropertyName("min_primary_shard_docs")] + public long? MinPrimaryShardDocs { get; init; } + [JsonInclude, JsonPropertyName("min_primary_shard_size")] + public Elastic.Clients.Elasticsearch.ByteSize? MinPrimaryShardSize { get; init; } + [JsonInclude, JsonPropertyName("min_size")] + public Elastic.Clients.Elasticsearch.ByteSize? MinSize { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs index b1730451d7b..2a0bd20137b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs @@ -39,6 +39,12 @@ public sealed partial class IndexState /// [JsonInclude, JsonPropertyName("defaults")] public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Defaults { get; set; } + + /// + /// Data lifecycle applicable iff this is a data stream. + /// + [JsonInclude, JsonPropertyName("lifecycle")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? Lifecycle { get; set; } [JsonInclude, JsonPropertyName("mappings")] public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; set; } [JsonInclude, JsonPropertyName("settings")] @@ -64,6 +70,9 @@ public IndexStateDescriptor() : base() private Action> SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } private Elastic.Clients.Elasticsearch.DataStreamName? DataStreamValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? LifecycleValue { get; set; } + private DataLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Default settings, included when the request's `include_default` is `true`. @@ -152,6 +161,33 @@ public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch. return Self; } + /// + /// Data lifecycle applicable iff this is a data stream. + /// + public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? lifecycle) + { + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; + return Self; + } + + public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + { + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; + return Self; + } + + public IndexStateDescriptor Lifecycle(Action configure) + { + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -215,6 +251,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DataStreamValue, options); } + if (LifecycleDescriptor is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleDescriptor, options); + } + else if (LifecycleDescriptorAction is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + } + else if (LifecycleValue is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleValue, options); + } + writer.WriteEndObject(); } } @@ -238,6 +290,9 @@ public IndexStateDescriptor() : base() private Action SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } private Elastic.Clients.Elasticsearch.DataStreamName? DataStreamValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? LifecycleValue { get; set; } + private DataLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Default settings, included when the request's `include_default` is `true`. @@ -326,6 +381,33 @@ public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch.DataStreamN return Self; } + /// + /// Data lifecycle applicable iff this is a data stream. + /// + public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? lifecycle) + { + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; + return Self; + } + + public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + { + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; + return Self; + } + + public IndexStateDescriptor Lifecycle(Action configure) + { + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -389,6 +471,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DataStreamValue, options); } + if (LifecycleDescriptor is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleDescriptor, options); + } + else if (LifecycleDescriptorAction is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + } + else if (LifecycleValue is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs index e962fc7f820..6dffac5514f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs @@ -31,6 +31,8 @@ public sealed partial class IndexTemplateMapping { [JsonInclude, JsonPropertyName("aliases")] public IDictionary? Aliases { get; set; } + [JsonInclude, JsonPropertyName("lifecycle")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? Lifecycle { get; set; } [JsonInclude, JsonPropertyName("mappings")] public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; set; } [JsonInclude, JsonPropertyName("settings")] @@ -52,6 +54,9 @@ public IndexTemplateMappingDescriptor() : base() private IndexSettingsDescriptor SettingsDescriptor { get; set; } private Action> SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? LifecycleValue { get; set; } + private DataLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } public IndexTemplateMappingDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) { @@ -107,6 +112,30 @@ public IndexTemplateMappingDescriptor Aliases(Func Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? lifecycle) + { + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; + return Self; + } + + public IndexTemplateMappingDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + { + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; + return Self; + } + + public IndexTemplateMappingDescriptor Lifecycle(Action configure) + { + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -148,6 +177,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, AliasesValue, options); } + if (LifecycleDescriptor is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleDescriptor, options); + } + else if (LifecycleDescriptorAction is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + } + else if (LifecycleValue is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleValue, options); + } + writer.WriteEndObject(); } } @@ -167,6 +212,9 @@ public IndexTemplateMappingDescriptor() : base() private IndexSettingsDescriptor SettingsDescriptor { get; set; } private Action SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? LifecycleValue { get; set; } + private DataLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } public IndexTemplateMappingDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) { @@ -222,6 +270,30 @@ public IndexTemplateMappingDescriptor Aliases(Func configure) + { + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -263,6 +335,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, AliasesValue, options); } + if (LifecycleDescriptor is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleDescriptor, options); + } + else if (LifecycleDescriptorAction is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + } + else if (LifecycleValue is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs index 9f26130d1d9..aee201510ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs @@ -32,6 +32,8 @@ public sealed partial class IndexTemplateSummary [JsonInclude, JsonPropertyName("aliases")] [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Alias))] public IReadOnlyDictionary? Aliases { get; init; } + [JsonInclude, JsonPropertyName("lifecycle")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } [JsonInclude, JsonPropertyName("mappings")] public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; init; } [JsonInclude, JsonPropertyName("settings")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/InferenceConfigCreate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/InferenceConfigCreate.g.cs index e5dd8014f03..4d0468a6da0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/InferenceConfigCreate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/InferenceConfigCreate.g.cs @@ -56,6 +56,7 @@ internal InferenceConfigCreate(string variantName, object variant) public static InferenceConfigCreate Regression(Elastic.Clients.Elasticsearch.Ml.RegressionInferenceOptions regressionInferenceOptions) => new InferenceConfigCreate("regression", regressionInferenceOptions); public static InferenceConfigCreate TextClassification(Elastic.Clients.Elasticsearch.Ml.TextClassificationInferenceOptions textClassificationInferenceOptions) => new InferenceConfigCreate("text_classification", textClassificationInferenceOptions); public static InferenceConfigCreate TextEmbedding(Elastic.Clients.Elasticsearch.Ml.TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => new InferenceConfigCreate("text_embedding", textEmbeddingInferenceOptions); + public static InferenceConfigCreate TextExpansion(Elastic.Clients.Elasticsearch.Ml.TextExpansionInferenceOptions textExpansionInferenceOptions) => new InferenceConfigCreate("text_expansion", textExpansionInferenceOptions); public static InferenceConfigCreate ZeroShotClassification(Elastic.Clients.Elasticsearch.Ml.ZeroShotClassificationInferenceOptions zeroShotClassificationInferenceOptions) => new InferenceConfigCreate("zero_shot_classification", zeroShotClassificationInferenceOptions); } @@ -132,6 +133,13 @@ public override InferenceConfigCreate Read(ref Utf8JsonReader reader, Type typeT return new InferenceConfigCreate(propertyName, variant); } + if (propertyName == "text_expansion") + { + var variant = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + return new InferenceConfigCreate(propertyName, variant); + } + if (propertyName == "zero_shot_classification") { var variant = JsonSerializer.Deserialize(ref reader, options); @@ -174,6 +182,9 @@ public override void Write(Utf8JsonWriter writer, InferenceConfigCreate value, J case "text_embedding": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.TextEmbeddingInferenceOptions)value.Variant, options); break; + case "text_expansion": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.TextExpansionInferenceOptions)value.Variant, options); + break; case "zero_shot_classification": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.ZeroShotClassificationInferenceOptions)value.Variant, options); break; @@ -231,6 +242,8 @@ private InferenceConfigCreateDescriptor Set(object variant, string va public InferenceConfigCreateDescriptor TextClassification(Action configure) => Set(configure, "text_classification"); public InferenceConfigCreateDescriptor TextEmbedding(TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => Set(textEmbeddingInferenceOptions, "text_embedding"); public InferenceConfigCreateDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); + public InferenceConfigCreateDescriptor TextExpansion(TextExpansionInferenceOptions textExpansionInferenceOptions) => Set(textExpansionInferenceOptions, "text_expansion"); + public InferenceConfigCreateDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); public InferenceConfigCreateDescriptor ZeroShotClassification(ZeroShotClassificationInferenceOptions zeroShotClassificationInferenceOptions) => Set(zeroShotClassificationInferenceOptions, "zero_shot_classification"); public InferenceConfigCreateDescriptor ZeroShotClassification(Action configure) => Set(configure, "zero_shot_classification"); @@ -304,6 +317,8 @@ private InferenceConfigCreateDescriptor Set(object variant, string variantName) public InferenceConfigCreateDescriptor TextClassification(Action configure) => Set(configure, "text_classification"); public InferenceConfigCreateDescriptor TextEmbedding(TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => Set(textEmbeddingInferenceOptions, "text_embedding"); public InferenceConfigCreateDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); + public InferenceConfigCreateDescriptor TextExpansion(TextExpansionInferenceOptions textExpansionInferenceOptions) => Set(textExpansionInferenceOptions, "text_expansion"); + public InferenceConfigCreateDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); public InferenceConfigCreateDescriptor ZeroShotClassification(ZeroShotClassificationInferenceOptions zeroShotClassificationInferenceOptions) => Set(zeroShotClassificationInferenceOptions, "zero_shot_classification"); public InferenceConfigCreateDescriptor ZeroShotClassification(Action configure) => Set(configure, "zero_shot_classification"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/InferenceConfigUpdate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/InferenceConfigUpdate.g.cs index ad2260d22e1..884c79b963a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/InferenceConfigUpdate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/InferenceConfigUpdate.g.cs @@ -53,6 +53,7 @@ internal InferenceConfigUpdate(string variantName, object variant) public static InferenceConfigUpdate Regression(Elastic.Clients.Elasticsearch.Ml.RegressionInferenceOptions regressionInferenceOptions) => new InferenceConfigUpdate("regression", regressionInferenceOptions); public static InferenceConfigUpdate TextClassification(Elastic.Clients.Elasticsearch.Ml.TextClassificationInferenceUpdateOptions textClassificationInferenceUpdateOptions) => new InferenceConfigUpdate("text_classification", textClassificationInferenceUpdateOptions); public static InferenceConfigUpdate TextEmbedding(Elastic.Clients.Elasticsearch.Ml.TextEmbeddingInferenceUpdateOptions textEmbeddingInferenceUpdateOptions) => new InferenceConfigUpdate("text_embedding", textEmbeddingInferenceUpdateOptions); + public static InferenceConfigUpdate TextExpansion(Elastic.Clients.Elasticsearch.Ml.TextExpansionInferenceUpdateOptions textExpansionInferenceUpdateOptions) => new InferenceConfigUpdate("text_expansion", textExpansionInferenceUpdateOptions); public static InferenceConfigUpdate ZeroShotClassification(Elastic.Clients.Elasticsearch.Ml.ZeroShotClassificationInferenceUpdateOptions zeroShotClassificationInferenceUpdateOptions) => new InferenceConfigUpdate("zero_shot_classification", zeroShotClassificationInferenceUpdateOptions); } @@ -129,6 +130,13 @@ public override InferenceConfigUpdate Read(ref Utf8JsonReader reader, Type typeT return new InferenceConfigUpdate(propertyName, variant); } + if (propertyName == "text_expansion") + { + var variant = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + return new InferenceConfigUpdate(propertyName, variant); + } + if (propertyName == "zero_shot_classification") { var variant = JsonSerializer.Deserialize(ref reader, options); @@ -171,6 +179,9 @@ public override void Write(Utf8JsonWriter writer, InferenceConfigUpdate value, J case "text_embedding": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.TextEmbeddingInferenceUpdateOptions)value.Variant, options); break; + case "text_expansion": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.TextExpansionInferenceUpdateOptions)value.Variant, options); + break; case "zero_shot_classification": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.ZeroShotClassificationInferenceUpdateOptions)value.Variant, options); break; @@ -228,6 +239,8 @@ private InferenceConfigUpdateDescriptor Set(object variant, string va public InferenceConfigUpdateDescriptor TextClassification(Action configure) => Set(configure, "text_classification"); public InferenceConfigUpdateDescriptor TextEmbedding(TextEmbeddingInferenceUpdateOptions textEmbeddingInferenceUpdateOptions) => Set(textEmbeddingInferenceUpdateOptions, "text_embedding"); public InferenceConfigUpdateDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); + public InferenceConfigUpdateDescriptor TextExpansion(TextExpansionInferenceUpdateOptions textExpansionInferenceUpdateOptions) => Set(textExpansionInferenceUpdateOptions, "text_expansion"); + public InferenceConfigUpdateDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); public InferenceConfigUpdateDescriptor ZeroShotClassification(ZeroShotClassificationInferenceUpdateOptions zeroShotClassificationInferenceUpdateOptions) => Set(zeroShotClassificationInferenceUpdateOptions, "zero_shot_classification"); public InferenceConfigUpdateDescriptor ZeroShotClassification(Action configure) => Set(configure, "zero_shot_classification"); @@ -301,6 +314,8 @@ private InferenceConfigUpdateDescriptor Set(object variant, string variantName) public InferenceConfigUpdateDescriptor TextClassification(Action configure) => Set(configure, "text_classification"); public InferenceConfigUpdateDescriptor TextEmbedding(TextEmbeddingInferenceUpdateOptions textEmbeddingInferenceUpdateOptions) => Set(textEmbeddingInferenceUpdateOptions, "text_embedding"); public InferenceConfigUpdateDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); + public InferenceConfigUpdateDescriptor TextExpansion(TextExpansionInferenceUpdateOptions textExpansionInferenceUpdateOptions) => Set(textExpansionInferenceUpdateOptions, "text_expansion"); + public InferenceConfigUpdateDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); public InferenceConfigUpdateDescriptor ZeroShotClassification(ZeroShotClassificationInferenceUpdateOptions zeroShotClassificationInferenceUpdateOptions) => Set(zeroShotClassificationInferenceUpdateOptions, "zero_shot_classification"); public InferenceConfigUpdateDescriptor ZeroShotClassification(Action configure) => Set(configure, "zero_shot_classification"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextEmbeddingInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextEmbeddingInferenceOptions.g.cs index 61ab5606bcb..054ecc117a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextEmbeddingInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextEmbeddingInferenceOptions.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.Ml; /// public sealed partial class TextEmbeddingInferenceOptions { + /// + /// The number of dimensions in the embedding output + /// + [JsonInclude, JsonPropertyName("embedding_size")] + public int? EmbeddingSize { get; set; } + /// /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. /// @@ -58,11 +64,21 @@ public TextEmbeddingInferenceOptionsDescriptor() : base() { } + private int? EmbeddingSizeValue { get; set; } private string? ResultsFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Ml.TokenizationConfig? TokenizationValue { get; set; } private TokenizationConfigDescriptor TokenizationDescriptor { get; set; } private Action TokenizationDescriptorAction { get; set; } + /// + /// The number of dimensions in the embedding output + /// + public TextEmbeddingInferenceOptionsDescriptor EmbeddingSize(int? embeddingSize) + { + EmbeddingSizeValue = embeddingSize; + return Self; + } + /// /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. /// @@ -102,6 +118,12 @@ public TextEmbeddingInferenceOptionsDescriptor Tokenization(Action +/// Text expansion inference options +/// +public sealed partial class TextExpansionInferenceOptions +{ + /// + /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. + /// + [JsonInclude, JsonPropertyName("results_field")] + public string? ResultsField { get; set; } + + /// + /// The tokenization options + /// + [JsonInclude, JsonPropertyName("tokenization")] + public Elastic.Clients.Elasticsearch.Ml.TokenizationConfig? Tokenization { get; set; } + + public static implicit operator InferenceConfigCreate(TextExpansionInferenceOptions textExpansionInferenceOptions) => Ml.InferenceConfigCreate.TextExpansion(textExpansionInferenceOptions); +} + +/// +/// Text expansion inference options +/// +public sealed partial class TextExpansionInferenceOptionsDescriptor : SerializableDescriptor +{ + internal TextExpansionInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); + + public TextExpansionInferenceOptionsDescriptor() : base() + { + } + + private string? ResultsFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Ml.TokenizationConfig? TokenizationValue { get; set; } + private TokenizationConfigDescriptor TokenizationDescriptor { get; set; } + private Action TokenizationDescriptorAction { get; set; } + + /// + /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. + /// + public TextExpansionInferenceOptionsDescriptor ResultsField(string? resultsField) + { + ResultsFieldValue = resultsField; + return Self; + } + + /// + /// The tokenization options + /// + public TextExpansionInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Ml.TokenizationConfig? tokenization) + { + TokenizationDescriptor = null; + TokenizationDescriptorAction = null; + TokenizationValue = tokenization; + return Self; + } + + public TextExpansionInferenceOptionsDescriptor Tokenization(TokenizationConfigDescriptor descriptor) + { + TokenizationValue = null; + TokenizationDescriptorAction = null; + TokenizationDescriptor = descriptor; + return Self; + } + + public TextExpansionInferenceOptionsDescriptor Tokenization(Action configure) + { + TokenizationValue = null; + TokenizationDescriptor = null; + TokenizationDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(ResultsFieldValue)) + { + writer.WritePropertyName("results_field"); + writer.WriteStringValue(ResultsFieldValue); + } + + if (TokenizationDescriptor is not null) + { + writer.WritePropertyName("tokenization"); + JsonSerializer.Serialize(writer, TokenizationDescriptor, options); + } + else if (TokenizationDescriptorAction is not null) + { + writer.WritePropertyName("tokenization"); + JsonSerializer.Serialize(writer, new TokenizationConfigDescriptor(TokenizationDescriptorAction), options); + } + else if (TokenizationValue is not null) + { + writer.WritePropertyName("tokenization"); + JsonSerializer.Serialize(writer, TokenizationValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextExpansionInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextExpansionInferenceUpdateOptions.g.cs new file mode 100644 index 00000000000..cedffdff348 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextExpansionInferenceUpdateOptions.g.cs @@ -0,0 +1,116 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ml; + +public sealed partial class TextExpansionInferenceUpdateOptions +{ + /// + /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. + /// + [JsonInclude, JsonPropertyName("results_field")] + public string? ResultsField { get; set; } + [JsonInclude, JsonPropertyName("tokenization")] + public Elastic.Clients.Elasticsearch.Ml.NlpTokenizationUpdateOptions? Tokenization { get; set; } + + public static implicit operator InferenceConfigUpdate(TextExpansionInferenceUpdateOptions textExpansionInferenceUpdateOptions) => Ml.InferenceConfigUpdate.TextExpansion(textExpansionInferenceUpdateOptions); +} + +public sealed partial class TextExpansionInferenceUpdateOptionsDescriptor : SerializableDescriptor +{ + internal TextExpansionInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); + + public TextExpansionInferenceUpdateOptionsDescriptor() : base() + { + } + + private string? ResultsFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Ml.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } + private NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } + private Action TokenizationDescriptorAction { get; set; } + + /// + /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. + /// + public TextExpansionInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) + { + ResultsFieldValue = resultsField; + return Self; + } + + public TextExpansionInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Ml.NlpTokenizationUpdateOptions? tokenization) + { + TokenizationDescriptor = null; + TokenizationDescriptorAction = null; + TokenizationValue = tokenization; + return Self; + } + + public TextExpansionInferenceUpdateOptionsDescriptor Tokenization(NlpTokenizationUpdateOptionsDescriptor descriptor) + { + TokenizationValue = null; + TokenizationDescriptorAction = null; + TokenizationDescriptor = descriptor; + return Self; + } + + public TextExpansionInferenceUpdateOptionsDescriptor Tokenization(Action configure) + { + TokenizationValue = null; + TokenizationDescriptor = null; + TokenizationDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(ResultsFieldValue)) + { + writer.WritePropertyName("results_field"); + writer.WriteStringValue(ResultsFieldValue); + } + + if (TokenizationDescriptor is not null) + { + writer.WritePropertyName("tokenization"); + JsonSerializer.Serialize(writer, TokenizationDescriptor, options); + } + else if (TokenizationDescriptorAction is not null) + { + writer.WritePropertyName("tokenization"); + JsonSerializer.Serialize(writer, new NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); + } + else if (TokenizationValue is not null) + { + writer.WritePropertyName("tokenization"); + JsonSerializer.Serialize(writer, TokenizationValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs index 7c2ae07304a..177596ff045 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs @@ -99,6 +99,7 @@ internal void WrapVariant(string variantName, SearchQuery variant) public static Query Term(Elastic.Clients.Elasticsearch.QueryDsl.TermQuery termQuery) => new Query("term", termQuery); public static Query Terms(Elastic.Clients.Elasticsearch.QueryDsl.TermsQuery termsQuery) => new Query("terms", termsQuery); public static Query TermsSet(Elastic.Clients.Elasticsearch.QueryDsl.TermsSetQuery termsSetQuery) => new Query("terms_set", termsSetQuery); + public static Query TextExpansion(Elastic.Clients.Elasticsearch.QueryDsl.TextExpansionQuery textExpansionQuery) => new Query("text_expansion", textExpansionQuery); public static Query Wildcard(Elastic.Clients.Elasticsearch.QueryDsl.WildcardQuery wildcardQuery) => new Query("wildcard", wildcardQuery); public static Query Wrapper(Elastic.Clients.Elasticsearch.QueryDsl.WrapperQuery wrapperQuery) => new Query("wrapper", wrapperQuery); } @@ -456,6 +457,13 @@ public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe return new Query(propertyName, variant); } + if (propertyName == "text_expansion") + { + var variant = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + return new Query(propertyName, variant); + } + if (propertyName == "wildcard") { var variant = JsonSerializer.Deserialize(ref reader, options); @@ -631,6 +639,9 @@ public override void Write(Utf8JsonWriter writer, Query value, JsonSerializerOpt case "terms_set": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.TermsSetQuery)value.Variant, options); break; + case "text_expansion": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.TextExpansionQuery)value.Variant, options); + break; case "wildcard": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.WildcardQuery)value.Variant, options); break; @@ -770,6 +781,8 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor Terms(Action> configure) => Set(configure, "terms"); public QueryDescriptor TermsSet(TermsSetQuery termsSetQuery) => Set(termsSetQuery, "terms_set"); public QueryDescriptor TermsSet(Action> configure) => Set(configure, "terms_set"); + public QueryDescriptor TextExpansion(TextExpansionQuery textExpansionQuery) => Set(textExpansionQuery, "text_expansion"); + public QueryDescriptor TextExpansion(Action> configure) => Set(configure, "text_expansion"); public QueryDescriptor Wildcard(WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); public QueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); public QueryDescriptor Wrapper(WrapperQuery wrapperQuery) => Set(wrapperQuery, "wrapper"); @@ -971,6 +984,9 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor TermsSet(TermsSetQuery termsSetQuery) => Set(termsSetQuery, "terms_set"); public QueryDescriptor TermsSet(Action configure) => Set(configure, "terms_set"); public QueryDescriptor TermsSet(Action> configure) => Set(configure, "terms_set"); + public QueryDescriptor TextExpansion(TextExpansionQuery textExpansionQuery) => Set(textExpansionQuery, "text_expansion"); + public QueryDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); + public QueryDescriptor TextExpansion(Action> configure) => Set(configure, "text_expansion"); public QueryDescriptor Wildcard(WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); public QueryDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); public QueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs new file mode 100644 index 00000000000..dc03762fe93 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs @@ -0,0 +1,241 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.QueryDsl; + +public sealed partial class TextExpansionQuery : SearchQuery +{ + [JsonInclude, JsonPropertyName("_name")] + public string? QueryName { get; set; } + [JsonInclude, JsonPropertyName("boost")] + public float? Boost { get; set; } + + /// + /// The text expansion NLP model to use + /// + [JsonInclude, JsonPropertyName("model_id")] + public string ModelId { get; set; } + + /// + /// The query text + /// + [JsonInclude, JsonPropertyName("model_text")] + public string ModelText { get; set; } + + /// + /// The name of the rank features field to search against + /// + [JsonInclude, JsonPropertyName("value")] + public Elastic.Clients.Elasticsearch.Field Value { get; set; } + + public static implicit operator Query(TextExpansionQuery textExpansionQuery) => QueryDsl.Query.TextExpansion(textExpansionQuery); + + internal override void InternalWrapInContainer(Query container) => container.WrapVariant("text_expansion", this); +} + +public sealed partial class TextExpansionQueryDescriptor : SerializableDescriptor> +{ + internal TextExpansionQueryDescriptor(Action> configure) => configure.Invoke(this); + + public TextExpansionQueryDescriptor() : base() + { + } + + private string? QueryNameValue { get; set; } + private float? BoostValue { get; set; } + private string ModelIdValue { get; set; } + private string ModelTextValue { get; set; } + private Elastic.Clients.Elasticsearch.Field ValueValue { get; set; } + + public TextExpansionQueryDescriptor QueryName(string? queryName) + { + QueryNameValue = queryName; + return Self; + } + + public TextExpansionQueryDescriptor Boost(float? boost) + { + BoostValue = boost; + return Self; + } + + /// + /// The text expansion NLP model to use + /// + public TextExpansionQueryDescriptor ModelId(string modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// The query text + /// + public TextExpansionQueryDescriptor ModelText(string modelText) + { + ModelTextValue = modelText; + return Self; + } + + /// + /// The name of the rank features field to search against + /// + public TextExpansionQueryDescriptor Value(Elastic.Clients.Elasticsearch.Field value) + { + ValueValue = value; + return Self; + } + + /// + /// The name of the rank features field to search against + /// + public TextExpansionQueryDescriptor Value(Expression> value) + { + ValueValue = value; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(QueryNameValue)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(QueryNameValue); + } + + if (BoostValue.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue.Value); + } + + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + writer.WritePropertyName("model_text"); + writer.WriteStringValue(ModelTextValue); + writer.WritePropertyName("value"); + JsonSerializer.Serialize(writer, ValueValue, options); + writer.WriteEndObject(); + } +} + +public sealed partial class TextExpansionQueryDescriptor : SerializableDescriptor +{ + internal TextExpansionQueryDescriptor(Action configure) => configure.Invoke(this); + + public TextExpansionQueryDescriptor() : base() + { + } + + private string? QueryNameValue { get; set; } + private float? BoostValue { get; set; } + private string ModelIdValue { get; set; } + private string ModelTextValue { get; set; } + private Elastic.Clients.Elasticsearch.Field ValueValue { get; set; } + + public TextExpansionQueryDescriptor QueryName(string? queryName) + { + QueryNameValue = queryName; + return Self; + } + + public TextExpansionQueryDescriptor Boost(float? boost) + { + BoostValue = boost; + return Self; + } + + /// + /// The text expansion NLP model to use + /// + public TextExpansionQueryDescriptor ModelId(string modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// The query text + /// + public TextExpansionQueryDescriptor ModelText(string modelText) + { + ModelTextValue = modelText; + return Self; + } + + /// + /// The name of the rank features field to search against + /// + public TextExpansionQueryDescriptor Value(Elastic.Clients.Elasticsearch.Field value) + { + ValueValue = value; + return Self; + } + + /// + /// The name of the rank features field to search against + /// + public TextExpansionQueryDescriptor Value(Expression> value) + { + ValueValue = value; + return Self; + } + + /// + /// The name of the rank features field to search against + /// + public TextExpansionQueryDescriptor Value(Expression> value) + { + ValueValue = value; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(QueryNameValue)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(QueryNameValue); + } + + if (BoostValue.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue.Value); + } + + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + writer.WritePropertyName("model_text"); + writer.WriteStringValue(ModelTextValue); + writer.WritePropertyName("value"); + JsonSerializer.Serialize(writer, ValueValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rank.g.cs new file mode 100644 index 00000000000..ba55ac58f3b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rank.g.cs @@ -0,0 +1,206 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +[JsonConverter(typeof(RankConverter))] +public sealed partial class Rank +{ + internal Rank(string variantName, object variant) + { + if (variantName is null) + throw new ArgumentNullException(nameof(variantName)); + if (variant is null) + throw new ArgumentNullException(nameof(variant)); + if (string.IsNullOrWhiteSpace(variantName)) + throw new ArgumentException("Variant name must not be empty or whitespace."); + VariantName = variantName; + Variant = variant; + } + + internal object Variant { get; } + internal string VariantName { get; } + + public static Rank Rrf(Elastic.Clients.Elasticsearch.RrfRank rrfRank) => new Rank("rrf", rrfRank); +} + +internal sealed partial class RankConverter : JsonConverter +{ + public override Rank Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + { + throw new JsonException("Expected start token."); + } + + reader.Read(); + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token representing the variant held within this container."); + } + + var propertyName = reader.GetString(); + reader.Read(); + if (propertyName == "rrf") + { + var variant = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + return new Rank(propertyName, variant); + } + + throw new JsonException(); + } + + public override void Write(Utf8JsonWriter writer, Rank value, JsonSerializerOptions options) + { + writer.WriteStartObject(); + if (value.VariantName is not null & value.Variant is not null) + { + writer.WritePropertyName(value.VariantName); + switch (value.VariantName) + { + case "rrf": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.RrfRank)value.Variant, options); + break; + } + } + + writer.WriteEndObject(); + } +} + +public sealed partial class RankDescriptor : SerializableDescriptor> +{ + internal RankDescriptor(Action> configure) => configure.Invoke(this); + + public RankDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private RankDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private RankDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + public RankDescriptor Rrf(RrfRank rrfRank) => Set(rrfRank, "rrf"); + public RankDescriptor Rrf(Action configure) => Set(configure, "rrf"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + if (!ContainsVariant) + { + writer.WriteNullValue(); + return; + } + + writer.WriteStartObject(); + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + writer.WriteEndObject(); + } +} + +public sealed partial class RankDescriptor : SerializableDescriptor +{ + internal RankDescriptor(Action configure) => configure.Invoke(this); + + public RankDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private RankDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private RankDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + public RankDescriptor Rrf(RrfRank rrfRank) => Set(rrfRank, "rrf"); + public RankDescriptor Rrf(Action configure) => Set(configure, "rrf"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + if (!ContainsVariant) + { + writer.WriteNullValue(); + return; + } + + writer.WriteStartObject(); + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RrfRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RrfRank.g.cs new file mode 100644 index 00000000000..b0efa1f780e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RrfRank.g.cs @@ -0,0 +1,93 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class RrfRank +{ + /// + /// How much influence documents in individual result sets per query have over the final ranked result set + /// + [JsonInclude, JsonPropertyName("rank_constant")] + public long? RankConstant { get; set; } + + /// + /// Size of the individual result sets per query + /// + [JsonInclude, JsonPropertyName("window_size")] + public long? WindowSize { get; set; } + + public static implicit operator Rank(RrfRank rrfRank) => Rank.Rrf(rrfRank); +} + +public sealed partial class RrfRankDescriptor : SerializableDescriptor +{ + internal RrfRankDescriptor(Action configure) => configure.Invoke(this); + + public RrfRankDescriptor() : base() + { + } + + private long? RankConstantValue { get; set; } + private long? WindowSizeValue { get; set; } + + /// + /// How much influence documents in individual result sets per query have over the final ranked result set + /// + public RrfRankDescriptor RankConstant(long? rankConstant) + { + RankConstantValue = rankConstant; + return Self; + } + + /// + /// Size of the individual result sets per query + /// + public RrfRankDescriptor WindowSize(long? windowSize) + { + WindowSizeValue = windowSize; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (RankConstantValue.HasValue) + { + writer.WritePropertyName("rank_constant"); + writer.WriteNumberValue(RankConstantValue.Value); + } + + if (WindowSizeValue.HasValue) + { + writer.WritePropertyName("window_size"); + writer.WriteNumberValue(WindowSizeValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs index 624232ed898..7929de45240 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs @@ -35,8 +35,16 @@ public sealed partial class ShardStatistics public IReadOnlyCollection? Failures { get; init; } [JsonInclude, JsonPropertyName("skipped")] public int? Skipped { get; init; } + + /// + /// Indicates how many shards have successfully run the search. + /// [JsonInclude, JsonPropertyName("successful")] public int Successful { get; init; } + + /// + /// Indicates how many shards the search will run on overall. + /// [JsonInclude, JsonPropertyName("total")] public int Total { get; init; } } \ No newline at end of file